华为云服务器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登录,输入密码即可进入系统界面

相关推荐
-
第18问:MySQL CPU 高了,怎么办?2025-02-24 10:27:18
-
mysql索引类型 normal, unique, full text
mysql索引类型 normal, unique, full text2025-02-24 10:05:05 -
uwsgi+django+nginx 搭建部分总结2025-02-24 10:03:33
-
使用Docker配置Nginx环境部署Nextcloud2025-02-24 10:02:03
-
Nginx安装和怎么使用2025-02-24 10:00:45