您的位置:首页 > 其它

Ubuntu 配置vncserver(10.04~12.04通用)

2013-05-30 09:34 281 查看
1. 安装gonme核心包(如果是字符界面的话)

apt-get install x-window-system-core

apt-get install gnome-core (下载完成后需要安装dgm,不能选择lightdgm,不然重启以后不能登陆桌面了)

apt-get install metacity

apt-get install gnome-desktop-environment    (optional)

2.安装vnc4server

apt-get install vnc4server

3.设置vncserver密码

# vncpasswd

      Password: ******

      Verify:*****

4.启动VNC server

        # vncserver

# vncserver -kill :1   (:1表示5901端口)

5.修改~/.vnc/xstartup文件

#!/bin/sh

# Uncomment the following two lines for normal desktop:

#unset SESSION_MANAGER

#exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources

xsetroot -solid grey

vncconfig -iconic &

xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

#twm &

gnome-session-fallback &

 

 6.登录时更换为经典界面。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: