Redhat RHEL 5.5 VNC 安装配置

VNC 桌面很丑,不好看,丑陋,奇怪的桌面,怎么办? 

其实是

详细参考:

http://stevejenkins.com/blog/2010/03/set-up-vnc-from-windows-to-fedora-12-over-the-internet/

http://stevejenkins.com/blog/2010/08/set-up-vnc-on-rhel-5-5-centos-5-5/


1. 安装vncserver

yum install vnc-server

2. 配置vnc 桌面

/home/username/.vnc/xstartup file, you need to uncomment two lines near the top of the file so that it reads:

# Uncomment the following two lines for normal desktop:


unset SESSION_MANAGER


exec /etc/X11/xinit/xinitrc

After uncommenting those two lines, go to the bottom of the file and comment out the twm & line, then add a line that tells VNC to start GNOME desktop. The last two lines should read:

# twm &


startx &


or:
gnome-session &
当然,倒数第一行也可以改为文章中第一段中提到的startkde &,表示启动KDE桌面系统。

3. 重启VNC
vncserver -kill :1
vncserver :1

4.  注意,如果没有安装gnome, 请用: yum install gnome-desktop安装

5.

现有的配置文件:xstartup; 注意需要用合适的用户启动vncserver


[ -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 &
#startx &
gnome-session &

 


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值