Ubuntu Server LTS 20.04 安装桌面

lcy6个月前 (03-15)技术文章174

Ubuntu server版安装后没有图形界面,为了管理方便,安装完成后,即可安装界面和远程桌面工具。

1、更新源nano /etc/apt/sources.list在sources.list中加入以下代码:

# 清华源# 注释源码镜像以提高更新速度
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multivers
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse

然后在命令行运行以下命令更新apt-get updateapt-get upgrade

2、安装桌面apt-get install -y ubuntu-desktop

3、安装xrdpapt-get install -y xrdp安装完成后,即可使用Windows远程桌面工具登录Ubuntu。


相关文章

macos 安装vue 运行环境

在 MacOS 上安装 Vue 运行环境需要以下步骤: 安装 Node.js:Vue 需要依赖 Node.js 运行环境,可以从官网下载并安装:https://nodejs.org/en/dow...

Mac下使用Wireshark抓iphone手机数据包

首先需要用数据线连接手机 终端输入 rvictl -s iphone设备id 断开链接执行 rvictl -x iphone设备id...

下载AppStore中应用的ipa

程序包管理器 (macOS)您可以使用自制软件安装ipatool。 $ brew tap majd/repo $ brew install ipatool 执行 ./ipatool aut...

centos7 关闭防火墙

在 CentOS 7 上关闭防火墙可以通过以下步骤: 使用 root 用户登录 CentOS 7 系统。 运行下列命令关闭防火墙: systemctl stop firewalld.serv...

编译后的exe文件添加ico图标

下载工具resourcehacker,zip版本解压 http://www.angusj.com/resourcehacker/ 执行命令 go build源文件:main.exe 输出:...

Mac 将文件及制作成iso文件

命令 hdiutil makehybrid -o <outfile> [options] <source> hdiutil makehybrid -o <文件夹路径&...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。