收藏文章 楼主

ubuntu server 18.04 上安装 GNOME gnome-core 图形桌面 和 xrdp mstsc远程连接ubuntu

版块:linux   类型:普通   作者:小绿叶技术博客   查看:517   回复:0   获赞:0   时间:2021-09-11 23:51:07


#/bin/bash

# ubuntu 其他版本软件仓库: https://developer.aliyun.com/mirror/ubuntu?spm=a2c6h.13651102.0.0.3e221b11Lyoail

# ubuntu18 阿里云仓库源 配置案例:

echo "

deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse


deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse


deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse


deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse


deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse


" >>  /etc/apt/sources.list

# 写入软件仓库配置文件


sudo rm /var/lib/dpkg/updates/*

sudo apt-get update                       

# 更新软件仓库,否则无法安装出现问题:

# E: dpkg uas interrupted, you nus tn an ually run 'dpkg --com figure-a' to correct the proble n. -+a:7k-11m7uAo..L.o..f..7.~m m一 -11 

# E: dpkg 被中断,您必须手工运行 sudo dpkg –configure -a 解决此问题。


 apt install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal ubuntu-desktop

# 安装图形化依赖



#---------------------- 开启 3389 远程 ------------------#

步骤一:设置->共享->启用屏幕共享(设置远程连接的密码)

步骤二:安装xrdp和dconf-editor


apt-get install ubuntu-desktop  xrdp dconf-editor


步骤三:配置dconf-editor

打开dconf程序,依次展开org->gnome->desktop->remote-access,然后取消 “requlre-encryption”的勾选即可。


提供企业建站服务,免费网防系统,提交信息登录 http://yundun.ddoss.cn 邮箱: proposal@ddoss.cn 
回复列表
默认   热门   正序   倒序

回复:ubuntu server 18.04 上安装 GNOME gnome-core 图形桌面 和 xrdp mstsc远程连接ubuntu

头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息