您的位置:首页 > 其它

VPS上使用Ubuntu server 14.04系统搭建Gnome桌面并用VNC连接

2017-09-26 17:06 507 查看
这篇文章就不贴图了

1.apt-get update

2.apt-get install ubuntu-desktop

3.apt-get install vnc4server

4.在/etc/hosts文件添加自己主机名并指向127.0.0.1 (不添加会导致启动vncserver报错)

5.vncserver 启动下vnc

6.vncserver -kill :1 删除display1

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

8.修改xstartup文件,内容如下

#!/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 &


9.vncserver 重新启动

mac上需要在finder上连接服务器vnc://192.168.0.27:5901

最后附上参考的链接:http://blog.csdn.net/wwq_1111/article/details/46502873
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ubuntu vnc server