Ubuntu server's tutorial on installing a graphical desktop environment

Source: Internet
Author: User

Ubuntu server if you want to use a graphical interface commonly used in 3 kinds of desktop environment (UBUNUT-DESKTOP/KUBUNUT-DESKTOP/XUBUNTU-DESKTOP), login Manager also has the corresponding 3 kinds of (GDM/KDM/XDM), I prefer to use Ubuntu and GDM.

PS: If the software is now installed when prompted to fail, indicating that the source software is missing the package, you can first try Apt-get Update software source after the attempt to install. If you still do not, you need to replace the software source.

First, the foundation of installation X-windows

#apt-get Install X-window-system-core

Second, install the login manager


#apt-get Install GDM

Third, install Ubuntu desktop


#apt-get Install Ubuntu-desktop
Complete the above 3 steps, the desktop environment is completed. Next, configure VNC to connect remotely

Iv. installation of Vncserver


#apt-get Install Vnc4server

V. Open VNC Service

The first time you start, you will be prompted to enter the VNC login password


#vncserver
Seeing the New ' ****:1 ' Desktop is ****:1 (* * * on behalf of the host name) means that the start VNC succeeds and a. VNC directory is generated in the home directory

Vi. Configuring VNC configuration Files

Vncserver The default window manager is TWM, which is a rudimentary window manager that can only use the command line; so we're going to change the desktop to gnome.
Edit Xstartup File


#vim ~/.vnc/xstartup

Comment out the "X-window-manager &" line and add a line to "Gnome-session &" below, and if KDE is installed, modify it to "Startkde &".
Seven, restart VNC service


#vncserver-kill:1 # #先kill掉原来的进程

#vncserver # #再重新启动服务
The above operation completes the server-side configuration, as long as the VNC client installed on this machine, enter ip:1 in VNC server to connect.

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.