win7系統遠端桌面連結linux系統

來源:互聯網
上載者:User

連結:http://www.cnblogs.com/CoolPigs/archive/2012/03/22/2411319.html

windows系統一般內建了遠端桌面連結工具(開始-附件-遠端桌面連結)用於遠端桌面windows系統,但是如果親們想要遠端桌面linux系統此工具就失效了。

最近有由於工作需求,搭建了win7遠端桌面ubuntu的環境,特此分享。

host端系統配置:win7,32bit

server端系統配置:ubuntu10.04.4 LTS

遠端桌面工具:VNC

一、在ubuntu中配置VNC server

1.安裝vnc4server

兩種方法:

命令列: sudo apt-get install vnc4server

圖形介面:在System -> Administration -> Synaptic Package Manager中安裝

$ sudo apt-get install vnc4server

 

2.設定vnc4passwd

$ vnc4passwd

在$HOME/.vnc目錄下面產生一個passwd檔案。

 $HOME/.vnc是一個vnc4server的關鍵目錄。

隱藏目錄,需要show hide files

 

3.啟動vnc4server

$ vnc4server

在./vnc目錄下產生下列檔案:

###-desktop:1.log

###-desktop:1.pid

xstartup

desktop的名稱在用戶端串連的時候用到。

如果是desktop:1,在用戶端串連的時候就填寫:ip:1;

如果是Desktop 2,在用戶端的時候填寫:ip:2....

首次運行vnc4server會提示產生了xstartup檔案,這個檔案裡麵包含著登入啟動X時的一些配置。

 

4.重啟vnc4server

$ vnc4server -kill :1$ vnc4server

注意:“-kill”和“:1”之間有空格

 

5.額外的重要配置

網上查到資料從UltraVNC登入,可能得到一個比較簡單的視窗,因為VNC4Server預設啟動的WM是twm,如果希望啟動gnome,需要改動.vnc/xstartup

修改前:

#!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop"& x-window-manager & 

修改後:

#!/bin/sh # Uncomment the following two lines for normal desktop: unset SESSION_MANAGER exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources # xsetroot -solid grey # vncconfig -iconic & # x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop"& # x-window-manager & 

這兩篇blog不錯,特此引用:

http://blog.csdn.net/huaciom/article/details/6198414

http://blog.csdn.net/fisher_jiang/article/details/4192482

 

6.多用戶端配置

只需多次運行vnc4server,產生多個desktop id可供多個用戶端使用

 

7.vnc4server設定成開機自啟動

在etc/profile裡面加入vnc4server命令

 參考http://wenku.baidu.com/view/56f7b05f804d2b160b4ec0da.html

二、在win7中配置VNC Client

1.下載UltraVNC並安裝

連結地址:http://www.uvnc.com/component/jdownloads/summary/4/44.html

 

2.填入ubuntu的ip地址及你想使用的desktop pid,,點擊connect

在彈出的輸入密碼框中輸入vnc4passwd中設定的密碼,即可登入,遠端桌面之旅就此開始

有個問題:有些應用程式無法同時被使用

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.