CENTOS6.4安装vnc-server
yum install tigervnc-server
vi /etc/sysconfig/vncservers
只需要兩類內容就可以了,一個是定義用戶,一個是定義用戶登錄情況:
參考:
VNCSERVERS="1:root 2:river"
VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp"
VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp"
實際:
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1024 x768 -nolisten tcp"
接下來分別使用命令行模式先后登錄root和river用戶,登錄后設定vncserver密碼,登錄后的操作如下:
vncpasswd
啟動vnc服務:
/sbin/service vncserver start?
設置防火墻:
iptables -I INPUT -p tcp --dport 5901:5902 -j ACCEPT
?iptables -I INPUT -p?udp --dport 5901:5902 -j ACCEPT
配置圖形界面:
cd ~/.vnc
vi xstartup
修改文檔中最后位置的twm為gnome-session或startkde即可,不要在這個后面再添加什么字符,否則后果自負。哈哈。
使用vnc viewer登錄即可:
xxx.xxx.xxx.xx:1
看清冒號后面
轉載于:https://blog.51cto.com/481814/1544269
總結
以上是生活随笔為你收集整理的CENTOS6.4安装vnc-server的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: colorUI的使用
- 下一篇: Javascript this关键字 指