华为云服务器ubuntu图形界面首次安装使用
无论是官方还是一些个人博客使用攻略都存在一些小小的问题导致首次使用会踩很多坑,今天就给大家详细介绍华为云服务器ubuntu的使用。
一.点击远程连接,第一次选择Cloudshell登录。在购买服务器的时候如果已经设置了密码,此处可以直接使用。

二.依次执行如下命令
apt-get update 更新软件库
apt-get install xubuntu-desktop 安装图形化界面
运行过程中需要手动确认,请选择Y

vi /root/.profile 编辑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
三.回到控制台,在更多里选择重启,重启完成后选择VNC登录,输入密码即可进入系统界面
