更新软件库
root@iZ2zef7avvm4qvuh1f2bhxZ:~# apt-get update root@iZ2zef7avvm4qvuh1f2bhxZ:~# apt-get update -y
安装 ubuntu-desktop
root@iZ2zef7avvm4qvuh1f2bhxZ:~# apt-get install ubuntu-desktop -y
此项安装过程比较慢,如果是国内服务器,建议在安装前更换为国内源,否则会慢的你怀疑人生
- 重启系统
root@iZ2zef7avvm4qvuh1f2bhxZ:~# reboot
- 进入阿里云vnc安装,安装完之后再次重启系统
安装vnc
root@iZ2zef7avvm4qvuh1f2bhxZ:~# apt-get update && apt-get -f -y install root@iZ2zef7avvm4qvuh1f2bhxZ:~# curl -O https://www.realvnc.com/download/file/vnc.files/VNC-Server-6.4.1-Linux-x64.deb lucky@iZ2zef7avvm4qvuh1f2bhxZ:~$ dpkg -i VNC-Server-6.4.1-Linux-x64.deb root@iZ2zef7avvm4qvuh1f2bhxZ:~# systemctl start vncserver-x11-serviced && systemctl enable vncserver-x11-serviced Created symlink /etc/systemd/system/multi-user.target.wants/vncserver-x11-serviced.service → /usr/lib/systemd/system/vncserver-x11-serviced.service.
安装GNOME桌面环境
root@iZ2zef7avvm4qvuh1f2bhxZ:~# apt-get install x-window-system-core root@iZ2zef7avvm4qvuh1f2bhxZ:~# apt-get install gnome-core
安装完成后,通过startx
命令,启动图形化桌面。
普通用户执行
[root@localhost ~]# chmod -R 777 /tmp
chmod +s /usr/bin/Xorg
chmod +s /usr/bin/X11/Xorg
继续阅读
- 我的QQ
- QQ扫一扫
-
- 我的头条
- 头条扫一扫
-
评论