知识屋:更实用的电脑技术知识网站
所在位置:首页 > 操作系统 > linux

vnc linux CentOS

发布时间:2014-09-05 17:03:10作者:知识屋

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 &
去掉红色处的注释
 
本文出自 “怀想” 博客

(免责声明:文章内容如涉及作品内容、版权和其它问题,请及时与我们联系,我们将在第一时间删除内容,文章内容仅供参考)
收藏
  • 人气文章
  • 最新文章
  • 下载排行榜
  • 热门排行榜