原文连接
安装步骤:
先使用阿里云或者putty远程连接上服务器以后再执行以下操作
输入以下代码
更新软件库
(1)apt-get update
升级软件
(2)apt-get upgrade
安装ubuntu桌面系统
(3)apt-get install ubuntu-desktop
重启服务器
(4)reboot
这样已经完成图形化界面,但是只有guest账号,guest账号没什么用,我们需要的是root
(5)vim /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
# 文件 /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
# 修改前
[Seat:*]
user-session=ubuntu
# 修改后
[Seat:*]
user-session=ubuntu
greeter-show-manual-login=true
allow-guest=false
(6)vim /root/.profile
# 文件 /root/.profile
# 文件修改前
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n || true
# 文件修改后
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
tty -s && mesg n || true
(7)reboot
最后,进入控制台点击VNC连接即可