Linux下配置VNC
Linux下配置VNC
;環(huán)境: ;REDHAT ;5。1. ;檢查是否安裝了VNC。rpm ;-qa ;vnc-server。vnc-server-4.1.2-9.el5。沒安裝的話,安裝一下。yum ;install ;vnc-server。2. ;配置vncserver登錄密碼。[root@Redhat ;~]# ;vncserver。You ;will ;require ;a ;password ;to ;access ;your ;desktops。Password。Verify。
導讀 ;環(huán)境: ;REDHAT ;5。1. ;檢查是否安裝了VNC。rpm ;-qa ;vnc-server。vnc-server-4.1.2-9.el5。沒安裝的話,安裝一下。yum ;install ;vnc-server。2. ;配置vncserver登錄密碼。[root@Redhat ;~]# ;vncserver。You ;will ;require ;a ;password ;to ;access ;your ;desktops。Password。Verify。
系統(tǒng)大全為您提供?環(huán)境:?REDHAT?51.?檢查是否安裝了VNC:rpm?-qa?vnc-servervnc-server-4.1.2-9.el5沒安裝的話,安裝一下:yum?install?vnc-server2.?配置vncserver登錄密碼:[root@Redhat?~]#?vncserverYou?will?require?a?password?to?access?your?desktops.Password:Verify:xauth:?creating?new?authority?file?/root/.XauthorityNew?'Redhat:1?(root)'?desktop?is?Redhat:1Creating?default?startup?script?/root/.vnctartupStarting?applications?specified?in?/root/.vnctartupLog?file?is?/root/.vnc/Redhat:1.log3.?配置vncserver啟動文件:vi?~/.vnctartup修改后文件:#!/bin#?Uncomment?the?following?two?lines?for?normal?desktop:unset?SESSION_MANAGERexec?/etc/X11ititrc[?-x?/etcnctartup?]?&&?exec?/etcnctartup[?-r?$HOME/.Xresources?]?&&?xrdb?$HOME/.Xresourcesxsetroot?-solid?greyvncconfig?-iconic?&xterm?-geometry?80x24+10+10?-ls?-title?"$VNCDESKTOP?Desktop"??twm?&gnome-session?&4.?配置vncservers文件vi?/etc/sysconfigncservers修改后文件:#?The?VNCSERVERS?variable?is?a?list?of?display:user?pairs.##?Uncomment?the?lines?below?to?start?a?VNC?server?on?display?:2#?as?my?'myusername'?(adjust?this?to?your?own).?You?will?also#?need?to?set?a?VNC?password;?run?'man?vncpasswd'?to?see?how#?to?do?that.##?DO?NOT?RUN?THIS?SERVICE?if?your?local?area?network?is#?untrusted!?For?a?secure?way?of?using?VNC,?see#?
.#?Use?"-nolisten?tcp"?to?prevent?X?connections?to?your?VNC?server?via?TCP.#?Use?"-nohttpd"?to?prevent?web-based?VNC?clients?connecting.#?Use?"-localhost"?to?prevent?remote?VNC?clients?connecting?except?when#?doing?so?through?a?secure?tunnel.?See?the?"-via"?option?in?the#?`man?vncviewer'?manual?page.#?VNCSERVERS="2:myusername"#?VNCSERVERARGS[2]="-geometry?800x600?-nolisten?tcp?-nohttpd?-localhost"VNCSERVERS="1:root"VNCSERVERARGS[1]="-geometry?1024x768?-nolisten?tcp?-nohttpd?-localhost"5.?關閉防火墻service?iptables?stop或者開放VNC端口:/sbin/iptables?-I?INPUT?-p?tcp?--dport?5801?-j?ACCEPT/sbin/iptables?-I?INPUT?-p?tcp?--dport?5900:5903?-j?ACCEPT/etc/rc.d/init.d/iptables?save/etc/init.d/iptables?restart6.?殺掉當前進程:vncserver?-kill?:1vncserver?-kill?:2...7.?啟動vncserver[root@Redhat?~]#?vncserverNew?'Redhat:1?(root)'?desktop?is?Redhat:1Starting?applications?specified?in?/root/.vnctartupLog?file?is?/root/.vnc/Redhat:1.log8.?通過瀏覽器(JAVA)連接:http://192.168.65.131:5801/9.通過VNCViewer客戶端連接:192.168.65.131:1根據(jù)提示輸入前面配置的登錄密碼即可打開!??PS:可能出現(xiàn)的問題:a、黑屏在Linux里安裝配置完VNC服務端,發(fā)現(xiàn)多用戶登陸會出現(xiàn)黑屏的情況,具體的現(xiàn)象為:客戶端可以通過IP與會話號登陸進入系統(tǒng),但登陸進去是漆黑一片,除了一個叉形的鼠標以外,伸手不見五指。原因:用戶的VNC的啟動文件權限未設置正確。解決方法:將黑屏用戶的xstartup(一般為:/home/用戶名稱/.vnctartup)文件的屬性修改為755(rwxr-xr-x)。b、vnc?能輸入數(shù)字,但不能輸入字母原因:vnc?server這邊會要求vnc?viewer這邊OS的輸入法要和vnc?server那邊OS的語言要一致。解決方法:一般我們裝的Linux?OS都是E文的,所以使用vnc?viewer連入的時候,請關閉本地OS的中文輸入法,切換到英語就可以了。--------------------------------Dylan?Presents.??以上就是系統(tǒng)大全給大家介紹的如何使的方法都有一定的了解了吧,好了,如果大家還想了解更多的資訊,那就趕緊點擊系統(tǒng)大全官網吧。??本文來自系統(tǒng)大全http:///如需轉載請注明!推薦:win7純凈版
Linux下配置VNC
;環(huán)境: ;REDHAT ;5。1. ;檢查是否安裝了VNC。rpm ;-qa ;vnc-server。vnc-server-4.1.2-9.el5。沒安裝的話,安裝一下。yum ;install ;vnc-server。2. ;配置vncserver登錄密碼。[root@Redhat ;~]# ;vncserver。You ;will ;require ;a ;password ;to ;access ;your ;desktops。Password。Verify。
為你推薦