在rhel5上面启动vncserver
service vncserver start
然后通过 RealVNC 汉化版 在windows上连接: xx.xx.xx.xx:1
发现桌面是字符方式的,可以如下修改:/root/.vnc/xstartup
文件,修改启动的桌面:
改为这样:
[ -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 &
#startked &
gnome-session &然后 service vncserver restart 启动时报错:no displays configured
就需要设置分辨率等等
vi /etc/sysconfig/vncservers
如下两行添加:
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024x800 -nolisten tcp "
当然,分辨率根据你的系统实际情况来调整,我一开始用1248*1024还是没法显示,修改后就好了
然后 service vncserver restart 就可以正常连接并看到gnome的桌面了。如图:
更多RedHat相关信息见RedHat 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=10RedHat 6u机器的redhat.repo文件yum源码分析相关资讯 RHEL5 VNC SERVER
- Oracle Linux 7配置VNC Server (03月29日)
- RHEL5 多路径配置 (04/16/2015 15:10:11)
- Red Hat Enterprise Linux 5产品线 (09/25/2014 16:37:23)
| - RHEL5上安装salt-minion (05/05/2015 06:17:34)
- RHEL5/6安装注意事项 (12/16/2014 12:25:29)
- RHEL5因开机服务报错停滞无法启动 (08/12/2014 19:54:08)
|
本文评论 查看全部评论 (0)