1、apt-get update。
2、参考如下。
- 对于Ubuntu16.04版本,请执行以下命令:apt-get install -y scite xorg xubuntu-desktop
- 2.对于Ubuntu18.04和20.04版本,请执行以下命令:apt-get install -y ubuntu-desktop
3、执行以下命令,编辑/root/.profile文件。vim /root/.profile
修改末尾行“mesg n || true”为“tty -s && 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