一般云服务器不需要图形界面,如果有需要配置的,可以参考以下文章:

运行命令使用 SSH 工具,这里以 Putty 软件为例,软件下载官网:https://www.putty.org/

将公网 IP 输入以上 HostName (or IP address) 这里,一般云服务器都开启 22 端口,在下方 Saved Sessions 输入名字,右边 Save 可以保存 IP 信息。

点击 open 连接,连接之后输入以下代码更新软件库:
apt-get update

升级软件:
apt-get upgrade

安装 Ubuntu 桌面系统:
apt-get install ubuntu-desktop

重启服务器:
reboot

在 putty 中继续输入如下代码:
cd /usr/share/lightdm/lightdm.conf.d

回车,继续输入:
chmod 777 50-ubuntu.conf

回车:
vi 50-ubuntu.conf

然后会显示内容,输入 i(光标前插入):
将原来的文件做一修改:

修改前:

[Seat:*]
user-session=ubuntu

修改后:

[Seat:*]
user-session=ubuntu
greeter-show-manual-login=true
allow-guest=false

改完之后,ctrl+c 结束输入:w!保存,再输入:q!退出编辑模式,输入 reboot 重启。
打开 /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

保存, reboot 重启,配置完成!

更新于 阅读次数

请我喝[茶]~( ̄▽ ̄)~*

Lavender 微信支付

微信支付

Lavender 支付宝

支付宝