Ubuntu12.04 64bit 下安裝VNC server


 1. 安裝gonme核心包(如果是字符界面的話)

apt-get install x-window-system-core
apt-get install gnome-core (下載完成后需要安裝dgm,不能選擇lightdgm,不然重啟以后不能登陸桌面了)
apt-get install metacity
apt-get install gnome-desktop-environment    (optional)

2.安裝vnc4server
apt-get install vnc4server

3.設置vncserver密碼

# vncpasswd

      Password: ******

      Verify:*****

4.啟動VNC server

        # vncserver
# vncserver -kill :1   (:1表示5901端口)

5.修改~/.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 &

xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

#twm &

gnome-session-fallback &

 

 6.遠程登錄

 

轉自:

http://blog.csdn.net/vfatfish/article/details/7594094


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM