vnc linux CentOS


1.修改如下文件vi /etc/sysconfig/vncservers
把最后的两行注释去掉
改为下面的
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600"
 
2 .修改vncmim
vncpasswd
 
3.修改配置文件
[root@localhost ~]# cat /root/.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 &
去掉红色处的注释
 
本文出自 “怀想” 博客

相关内容

    暂无相关文章