阿里云ECS服务器Ubuntu桌面安装

1、首先你的注册购买阿里云账户;

同时安装putty软件

2、配置文件

#!/bin/bash
# 更新软件库
apt-get update
# 升级软件
apt-get upgrade
# 安装ubuntu桌面系统
apt-get install ubuntu-desktop

# 分别执行以上的命令
# 完成之后执行 reboot

3、修改root权限

step1: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

# 修改之后执行 reboot
step2: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

# 执行 reboot 命令

4、配置VNC

apt-get update


apt-get install vnc4server


vncserver

5、gnome 桌面环境安装与配置

sudo apt-get install x-window-system-core


sudo apt-get install gdm


sudo apt-get install ubuntu-desktop


sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal


#修改VNC配置文件


vim ~/.vnc/xstartup


如下:

step1:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
unset DBUS_SESSION_BUS_ADDRESS

gnome-panel &
gnmoe-settings-daemon &
metacity &
nautilus &
gnome-terminal &

step2:
vncserver -kill :1

step3:
vncserver :1

至此所有的配置文件已经结束,以下需要安装可视化工具VNC Viewer

惊喜来了,翘首期盼的Ubuntu桌面来了,来了,来了,它来了~~~~

6、问题总结

需要去阿里云ECS开放服务器端口号(此处会出现错误)

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值