vncserver详细设置
这两天给公司买了2台超豪华的机器,8G内存,4核。呵呵,下面记录一下我配置VNCSERVER的过程。
1. 开用户
修改配置文件/etc/sysconfig/vncservers
VNCSERVERS=”1:root 2:Jack 3:Marry”
开了3个用户root, Jack,Marry.
VNCSERVERARGS[1]=”-geometry 1280×1024 -alwaysshared -depth 16″
其中-alwaysshared表示允许多终端同时登录,-depth指颜色分辨率,可以是8,16,24,32。
2.产生.vnc文件
按1:root 2:Jack 3:Marry顺序切换用户,执行vncserver命令,产生vnc的需要的文件。
产生过程中会提示输入用户密码。
3.修改~/.vnc/xstartup文件
将文件其他内容全部注释掉,加入下面这一行
exec /etc/X11/xinit/xinitrc
这个会启动xwindows登陆
4.关于防火墙的设置
如果在局域网内,我是直接关闭了iptable的功能。在servers中停止该功能就可以使用vncviewer访问服务器了。
5. 使用vncviewer登陆。
标签:Linux, vncserver相关日志
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.
