Install desktop and vncserver in Ubuntu 12.04 server lts

Source: Internet
Author: User

Pass the test

1. Install related packages:


Apt-getupdate

Apt-get inStall Ubuntu-Desktop

Apt-getinstall vnc4server

Apt-Get install x-window-system-core

Apt-Get install TPD

Apt-Get install gnome-panel


2. Set vncserver


Vncpasswd

As 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 650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/37/6D/wKiom1Os2a3xq7CjAAWjl_wRtIk732.jpg "Title =" VNC connection for Ubuntu "alt =" wkiom1os2a3xq7cjaawjl_wrtik732.jpg "/>


This article is from the "drop by Stone" blog. For more information, contact the author!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.