Changes between Version 18 and Version 19 of Xen_Lab8


Ignore:
Timestamp:
Oct 26, 2009, 3:39:33 PM (15 years ago)
Author:
rider
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Xen_Lab8

    v18 v19  
    156156$ sudo apt-get install lxde openbox-themes gnome-settings-daemon gnome-settings-daemon-dev gnome-icon-theme
    157157}}}
    158  * 預設 LXDE 為VNC桌面環境.
    159 {{{
    160 $ echo "startlxde &" >> .vnc/xstartup
    161 }}}
    162158 * 說明:輕量級桌面環境相關套件.
    163159{{{
     
    203199# FontPath:
    204200
    205 /usr/X11R6/lib/X11/fonts
    206 or
    207 /usr/share/fonts/X11
     201/usr/X11R6/lib/X11/fonts (新路徑)
     202        or
     203/usr/share/fonts/X11     (系統預設路徑)
    208204}}}
    209205 * 確認 rgb 存在於對應路徑.
    210206{{{
    211 $ less /usr/X11R6/lib/X11/rgb.txt
     207$ sudo ln -sf /usr/share/X11/rgb.txt /usr/X11R6/lib/X11/rgb.txt
     208$ cat /usr/X11R6/lib/X11/rgb.txt
    212209}}}
    213210 * 設定 DomU 上的 VMGL 環境變數.
     
    245242{{{
    246243$ sudo /etc/init.d/ssh restart
    247 }}}
    248  * 設定 VNC server 使用者密碼.
    249 {{{
    250 $ vncpasswd
    251 }}}
    252  * 啟動 VNC server.
    253 {{{
    254 $ vncserver
    255 }}}
    256 {{{
    257 #!sh
    258 xauth:  creating new authority file /root/.Xauthority
    259 
    260 New 'X' desktop is guest:1
    261 
    262 Creating default startup script /root/.vnc/xstartup
    263 Starting applications specified in /root/.vnc/xstartup
    264 Log file is /root/.vnc/vg01:1.log
    265 }}}
    266  * 關閉 VNC server.
    267 {{{
    268 $ vncserver -kill :1
    269 }}}
    270  * 設定 VNC server 啟動參數.
    271 {{{
    272 $ vim .vnc/xstartup
    273 }}}
    274 {{{
    275 #!sh
    276 # xrdb $HOME/.Xresources
    277 }}}
    278  * 開啟 DomU 上的第一台VNC Server,並指定解析度為 1024 x 768.
    279 {{{
    280 $ vncserver -geometry 1024x768 -depth 24 :1
    281 }}}
    282  * 檢查 VNCserver 有無開啟對應之 port(5901開始).
    283 {{{
    284 $ netstat -tunlp
    285 }}}
    286 {{{
    287 #!sh
    288 (Not all processes could be identified, non-owned process info
    289  will not be shown, you would have to be root to see it all.)
    290 Active Internet connections (only servers)
    291 Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    292 tcp        0      0 0.0.0.0:5901            0.0.0.0:*               LISTEN      10652/Xtightvnc ---> guest:1
    293 tcp        0      0 0.0.0.0:5902            0.0.0.0:*               LISTEN      10630/Xtightvnc
    294 tcp        0      0 0.0.0.0:6001            0.0.0.0:*               LISTEN      10652/Xtightvnc ---> guest:2
    295 tcp        0      0 0.0.0.0:6002            0.0.0.0:*               LISTEN      10630/Xtightvnc
    296 tcp        0      0 127.0.0.1:6010          0.0.0.0:*               LISTEN      -
    297 tcp6       0      0 :::22                   :::*                    LISTEN      -
    298 tcp6       0      0 ::1:6010                :::*                    LISTEN      -
    299 }}}
    300 
    301  * 將 VNC Server:1 export 出來.
    302 {{{
    303 $ export DISPLAY=:1
    304244}}}
    305245----