Ubuntu18.04桌面版远程教程VNC
2020-02-26 本文已影响0人
Firetheworld
系统:Ubuntu18.04LTS
远程客户端软件:VNC
目录:
一、最小化安装Ubuntu18.04系统。
二、配置网络。
三、更新源
四、安装ssh
五、安装dconfig-edit,关闭权限
六、配置远程。
一、安装ubuntu18.04,
略过。
二、配置网络:
编辑网络配置文件:sudo vi /etc/netplan/01-network-manager-all.yaml
# Let NetworkManager manage all devices on this system
network:
version: 2
ethernets:
eno1:
addresses: [10.192.38.171/26] #IP、子网掩码
gateway4: 10.192.38.129 #网关
nameservers:
addresses: [114.114.114.114] #DNS
配置生效:sudo netplan apply
三、更新源
备份源地址,
sudo cp /etc/apt/sources.list{,_bak}
更改/etc/apt/sources.list
:
sed -i "s#security.ubuntu.com#mirrors.aliyun.com#g" /etc/apt/source.list
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted
deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted
deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed universe multiverse
更新系统:sudo apt update
四、安装ssh,并设置开机自启动
sudo apt -y install ssh
sudo systemctl start ssh &&sudo systemctl enable ssh
五、安装dconfig-edit,关闭权限
打开之后,依次展开org->gnome->desktop->remote-access,然后取消 “requlre-encryption”的勾选即可。如图所示:
image.png六、配置远程。
安装VNC:
apt-get update && apt-get -f -y install
curl -O https://www.realvnc.com/download/file/vnc.files/VNC-Server-6.4.1-Linux-x64.deb
dpkg -i VNC-Server-6.4.1-Linux-x64.deb
systemctl start vncserver-x11-serviced && systemctl enable vncserver-x11-serviced
使用key,命令为:
sudo vnclicense -add WHJRK-UXY7V-Q34M9-CZU8L-8KGFA
开启自动登陆
image.png