首页 > 代码库 > Ubuntu 12.04 Server LTS下安装桌面及vncserver

Ubuntu 12.04 Server LTS下安装桌面及vncserver

亲测通过

1. 安装相关的包:


    apt-getupdate

    apt-get install ubuntu-desktop

    apt-getinstall vnc4server

    apt-get install x-window-system-core

    apt-get install gdm

    apt-get install gnome-panel


2. 设置vncserver


    Vncpasswd

    以root身份chmod +x/etc/X11/xinit/xinitrc 

    Vi /root/.vnc/xstartup

    #!/bin/sh
    #gnome-session --session=gnome-classic &
    [-x /etc/vnc/xstartup] && exec/etc/vnc/xstartup
    [ -r $HOME/.Xresources ] && xrdb$HOME/.Xresources
    xsetroot -solid grey
    vncconfig -iconic &
    #gnome-session --session=gnome-classic &
    xterm -gemetry 80x24+10+10 -ls -title"$VNCDESKTOP Desktop" &
    #x-terminal-emulator -gemetry 80x24+10+10 -ls-title "$VNCDESKTOP Desktop" &
    #x-window-manager &
    #twm &
    gnome-session &

    chmod +x xstartup

          vncserver :1                wKiom1Os2a3xq7CjAAWjl_wRtIk732.jpg


本文出自 “水滴石穿” 博客,转载请与作者联系!