标签:
yum groupinstall Desktop
yum install tigervnc-server
useradd aca
su - aca
vncpasswd
su - aca
vncserver
用户home下面有个.vnc隐藏文件夹,log,pid ,xstartup启动文件都在里面。
#!/bin/sh
[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18n
export LANG
export SYSFONT
vncconfig -iconic &
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
OS=`uname -s`
if [ $OS = ‘Linux‘ ]; then
case "$WINDOWMANAGER" in
*gnome*)
if [ -e /etc/SuSE-release ]; then
PATH=$PATH:/opt/gnome/bin
export PATH
fi
;;
esac
fi
if [ -x /etc/X11/xinit/xinitrc ]; then
exec /etc/X11/xinit/xinitrc
fi
if [ -f /etc/X11/xinit/xinitrc ]; then
exec sh /etc/X11/xinit/xinitrc
fi
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
里面会调用xterm,twm,所以运行vnc之前最好把这2个安装好
yum install twm xterm -y
http://www.realvnc.com/download/viewer/,这个程序本身是跨平台的支持windows和mac,用起来的体验都很不错!
最后来张图
![这里写图片描述](http://img.blog.csdn.net/20150507153232998)
标签:
原文地址:http://blog.csdn.net/aca_jingru/article/details/45561739