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 &