




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、redhat Enterprise Linux 6.2 beta VNC安裝經(jīng)驗VNC(Virtual Network Computing)是可操控遠程的計算機的軟件,任何人都可免費取得該軟件,其官方網(wǎng)站為 主要由兩個部分組成:VNC server及VNC viewer。用戶需先將VNC server安裝在被控端的計算機上后,才能在主控端執(zhí)行VNC viewer控制被控端。在N年前,本人記得有支持LINUX的免費版,但現(xiàn)在一看,雖然也有免費的,但只能下載在WINDOWS上安裝的EXE文件,只好到其它網(wǎng)站下載,都沒有運行成功。不過從Linux 6.2 beta光盤的package目錄下發(fā)現(xiàn)有VN
2、C的軟件包,不管三七二十一安裝再說,居然成功了。與VNC有關(guān)的包為:rootwen Packages# ls | grep vncgtk-vnc-0.3.10-3.el6.i686.rpmgtk-vnc-python-0.3.10-3.el6.i686.rpmlibvncserver-0.9.7-4.el6.i686.rpmtigervnc-1.0.90-0.15.20110314svn4359.el6_1.1.i686.rpmtigervnc-server-1.0.90-0.15.20110314svn4359.el6_1.1.i686.rpm1, 使用rpm ivh 分別將上面的包進行安裝
3、2, 使用rpm qa | grep vnc進行確認是否安裝成功gtk-vnc-0.3.10-3.el6.i686.rpmgtk-vnc-python-0.3.10-3.el6.i686.rpmlibvncserver-0.9.7-4.el6.i686.rpmtigervnc-1.0.90-0.15.20110314svn4359.el6_1.1.i686.rpmtigervnc-server-1.0.90-0.15.20110314svn4359.el6_1.1.i686.rpm3,運行vncserver設(shè)置密碼rootwen Packages# vncserverYou will requ
4、ire a password to access your desktops.Password:Verify:4,修改文件rootwen Packages# vi /root/.vnc/xstartup將最后一行注釋,追加一行如下#twm &gnome-session &推薦精選其中g(shù)nome-session是啟動Gnome圖形界面;startkde是啟動KDE圖形界面;twm是啟動文本界面。三者選其一。 此時運行下面命令。將出現(xiàn)錯誤rootwen Packages# service vncserver start正在啟動VNC服務(wù):no displays configured
5、 失敗5,修改vi /etc/sysconfig/vncserversrootwen Packages# vi /etc/sysconfig/vncservers將最后兩行修改為# VNCSERVERS="2:myusername"# VNCSERVERARGS2="-geometry 800x600 -nolisten tcp -localhost"VNCSERVERS="1:root 2:wen"VNCSERVERARGS2="-geometry 800x600 -nolisten tcp -localhost"
6、;啟動VNC有錯誤信息rootwen Packages# service vncserver start正在啟動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 失敗但可以用下面運程控制推薦精選、修改vi /etc/s
7、ysconfig/vncserversVNCSERVERARGS2="-geometry 800x600 -alwaysshared tcp -localhost""/etc/sysconfig/vncservers" 20L, 768C writtenrootwen Packages# service vncserver restart關(guān)閉 VNC 服務(wù)器1:root 2:wen 失敗正在啟動VNC服務(wù)器1:root xauth: (stdin):1: bad display name ":1" in "add"
8、 command推薦精選New ':1 (root)' desktop is :1Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/:1.log2:wen 失敗可以判斷與此參數(shù)無關(guān)進入用戶wenrootwen Packages# su wen追加密碼wenwen Packages$ vncserverYou will require a password to access your desktops.Password:Verify:xauth: creating new a
9、uthority file /home/wen/.Xauthorityxauth: (stdin):1: bad display name ":2" in "add" commandNew ':2 (wen)' 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
10、就能進入推薦精選但再次運行VNC出現(xiàn)Fatal server error:Unrecognized option: tcp 失敗恢復VNCSERVERARGS2="-geometry 800x600 -nolisten tcp -localhost"重啟VNC rootwen Packages# service vncserver restart關(guān)閉 VNC 服務(wù)1:root 2:wen 確定正在啟動VNC服務(wù)器1:root xauth: (stdin):1: bad display name ":1" in "add" comman
11、dNew ':1 (root)' desktop is :1Starting applications specified in /root/.vnc/xstartupLog file is /root/.vnc/:1.log2:wen xauth: (stdin):1: bad display name ":2" in "add" commandNew ':2 (wen)' desktop is :2推薦精選Starting applications specified in /home/wen/.vnc/xstartu
12、pLog file is /home/wen/.vnc/:2.log 確定啟動成功但無法登錄將VNCSERVERARGS2="-geometry 800x600 -alwaysshared -depth 24"rootwen Packages# service vncserver restart兩個都能登錄查資料-alwaysshared代表允許多用戶同時登錄 -depth代為色深,參數(shù)有8,16,24,32。-geometry 指定顯示桌面的分辨率。參照下面資料資料1補充多用戶配置:1.創(chuàng)建用戶:user01,user02,并設(shè)置密碼. 2.開啟user01 桌面2,us
13、er02桌面3并修改各自家目錄下的xstartup 3.配置/etc/sysconfig/vncservers, 內(nèi)容格式如下:vi /etc/sysconfig/vncserversVNCSERVERS="1:root,2:user01,3:user02"VNCSERVERARGS1="-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修改,但重啟VNC時失
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 技術(shù)服務(wù)費合同書
- 人員轉(zhuǎn)公司合同范本
- 2025湖北省安全員《A證》考試題庫及答案
- 高爐煤氣管道拆除施工方案
- 2025江蘇省建筑安全員《B證》考試題庫
- 不銹鋼警示樁施工方案
- 2025陜西省建筑安全員A證考試題庫附答案
- 養(yǎng)豬基地合同范本
- 出售車輛合同范本
- 二年級口算題庫100道
- 《智慧旅游認知與實踐》課件-第九章 智慧旅行社
- 馬工程《刑法學(下冊)》教學課件 第16章 刑法各論概述
- 廣東省中小學生休學、復學申請表
- GPIB控制VP-8194D收音信號發(fā)生器指令
- 建立良好師生關(guān)系
- 鋼管、扣件、絲杠租賃明細表
- 施工現(xiàn)場臨電臨水施工方案
- 員工預(yù)支現(xiàn)金與費用報銷流程
- 唐詩三百首(楷書)
- (新版)公用設(shè)備工程師《專業(yè)知識》(給排水)考試題庫及答案
評論
0/150
提交評論