redhat Enterprise LinuxVNC安裝_第1頁
redhat Enterprise LinuxVNC安裝_第2頁
redhat Enterprise LinuxVNC安裝_第3頁
redhat Enterprise LinuxVNC安裝_第4頁
redhat Enterprise LinuxVNC安裝_第5頁
已閱讀5頁,還剩2頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡(jiǎn)介

1、redhat Enterprise Linux 6.2 beta VNC安裝經(jīng)驗(yàn)VNC(Virtual Network Computing)是可操控遠(yuǎn)程的計(jì)算機(jī)的軟件,任何人都可免費(fèi)取得該軟件,其官方網(wǎng)站為 主要由兩個(gè)部分組成:VNC server及VNC viewer。用戶需先將VNC server安裝在被控端的計(jì)算機(jī)上后,才能在主控端執(zhí)行VNC viewer控制被控端。在N年前,本人記得有支持LINUX的免費(fèi)版,但現(xiàn)在一看,雖然也有免費(fèi)的,但只能下載在WINDOWS上安裝的EXE文件,只好到其它網(wǎng)站下載,都沒有運(yùn)行成功。不過從Linux 6.2 beta光盤的package目錄下發(fā)現(xiàn)有VN

2、C的軟件包,不管三七二十一安裝再說,居然成功了。與VNC有關(guān)的包為:rootwen Packages# ls | grep vnc1, 使用rpm ivh 分別將上面的包進(jìn)行安裝2, 使用rpm qa | grep vnc進(jìn)行確認(rèn)是否安裝成功3,運(yùn)行vncserver設(shè)置密碼rootwen Packages# vncserverYou will require a password to access your desktops.Password:Verify:4,修改文件rootwen Packages# vi /root/.vnc/xstartup將最后一行注釋,追加一行如下#twm &a

3、mp;gnome-session &其中g(shù)nome-session是啟動(dòng)Gnome圖形界面;startkde是啟動(dòng)KDE圖形界面;twm是啟動(dòng)文本界面。三者選其一。 此時(shí)運(yùn)行下面命令。將出現(xiàn)錯(cuò)誤rootwen Packages# service vncserver start正在啟動(dòng)VNC服務(wù):no displays configured 失敗5,修改vi /etc/sysconfig/vncserversrootwen Packages# vi /etc/sysconfig/vncservers將最后兩行修改為# VNCSERVERS="2:myusername"

4、# VNCSERVERARGS2="-geometry 800x600 -nolisten tcp -localhost"VNCSERVERS="1:root 2:wen"VNCSERVERARGS2="-geometry 800x600 -nolisten tcp -localhost"啟動(dòng)VNC有錯(cuò)誤信息rootwen Packages# service vncserver start正在啟動(dòng)VNC服務(wù)器:1:root xauth: (stdin):1: bad display name ":1" in &qu

5、ot;add" commandNew ':1 (root)' desktop is :1Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/:1.log2:wen 失敗但可以用下面運(yùn)程控制、修改vi /etc/sysconfig/vncserversVNCSERVERARGS2="-geometry 800x600 -alwaysshared tcp -localhost""/etc/sysconfig/vncservers"

6、20L, 768C writtenrootwen Packages# service vncserver restart關(guān)閉 VNC 服務(wù)器1:root 2:wen 失敗正在啟動(dòng)VNC服務(wù)器1:root xauth: (stdin):1: bad display name ":1" in "add" commandNew ':1 (root)' desktop is :1Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/:1.log2:

7、wen 失敗可以判斷與此參數(shù)無關(guān)進(jìn)入用戶wenrootwen Packages# su wen追加密碼wenwen Packages$ vncserverYou will require a password to access your desktops.Password:Verify:xauth: creating new authority file /home/wen/.Xauthorityxauth: (stdin):1: bad display name ":2" in "add" commandNew ':2 (wen)'

8、desktop is :2Creating default startup script /home/wen/.vnc/xstartupStarting applications specified in /home/wen/.vnc/xstartupLog file is /home/wen/.vnc/:2.log沒有重啟vnc就能進(jìn)入但再次運(yùn)行VNC出現(xiàn)Fatal server error:Unrecognized option: tcp 失敗恢復(fù)VNCSERVERARGS2="-geometry 800x600 -nolisten tcp -localhost"重啟V

9、NC rootwen Packages# service vncserver restart關(guān)閉 VNC 服務(wù)1:root 2:wen 確定正在啟動(dòng)VNC服務(wù)器1:root xauth: (stdin):1: bad display name ":1" in "add" commandNew ':1 (root)' desktop is :1Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/:1.log2:wen xauth: (std

10、in):1: bad display name ":2" in "add" commandNew ':2 (wen)' desktop is :2Starting applications specified in /home/wen/.vnc/xstartupLog file is /home/wen/.vnc/:2.log 確定啟動(dòng)成功但無法登錄將VNCSERVERARGS2="-geometry 800x600 -alwaysshared -depth 24"rootwen Packages# service v

11、ncserver restart兩個(gè)都能登錄查資料-alwaysshared代表允許多用戶同時(shí)登錄 -depth代為色深,參數(shù)有8,16,24,32。-geometry 指定顯示桌面的分辨率。參照下面資料資料1補(bǔ)充多用戶配置:1.創(chuàng)建用戶:user01,user02,并設(shè)置密碼. 2.開啟user01 桌面2,user02桌面3并修改各自家目錄下的xstartup 3.配置/etc/sysconfig/vncservers, 內(nèi)容格式如下:vi /etc/sysconfig/vncserversVNCSERVERS="1:root,2:user01,3:user02"VNC

12、SERVERARGS1="-geometry 1024x768"VNCSERVERARGS2="-geometry 1024x768"VNCSERVERARGS3="-geometry 1024x768"資料2為xuhua和root打開vnc,設(shè)置分辨率為800x600,不允許http方式VNCSERVERS="1:xuhua 2:root"VNCSERVERARGS1="-geometry 800x600 -nohttpd"VNCSERVERARGS2="-geometry 800x600 -nohttpd修

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。

最新文檔

評(píng)論

0/150

提交評(píng)論