Ubuntu Server configuration Remote VNC service

Source: Internet
Author: User

    1. [Email protected]:~# cat/etc/issue
    2. Ubuntu 12.04 LTS \ \l

Requirements: Now you need to remotely connect to the Ubuntu GUI because there is a program that needs to be configured using a graphical interface.

By default, Ubuntu server is no graphical interface, using Xmanager remote connection Ubuntu, after the connection is completed, would like to use the Xmanager features, to implement a graphical interface, but no matter how to play, the program is not bounce out, very tangled, It is possible to test with xclock. It can only be done separately.

Previously configured VNC, are in the redhat inside the configuration, Ubuntu did not get inside, this has studied a bit. The following is a detailed configuration process, using the graphics program for Xface

First, install the configuration VNC

1. First install VNC

    1. # Apt-get Install Vnc4server

2. Set the password for VNC

    1. [Email protected]:~/.vnc# vncpasswd
    2. Password:

Enter the password, and then confirm it again, OK.

3. Start VNC

  1. [Email protected]:~# vncserver:1
  2. New ' node1:1 (root) ' Desktop is node1:1
  3. Starting applications specified In/root/.vnc/xstartup
  4. Log file Is/root/.vnc/node1:1.log
  5. [Email protected]:~# ps-ef | grep VNC
  6. Root 1768 1 0 06:10 pts/0 00:00:00 xvnc4:1-desktop node1:1 (Root)-auth/root/. Xauthority-geometry 1024x768-depth 16-rfbwait 30000-rfbaut
  7. H/root/.vnc/passwd-rfbport 5901-pn-fp/usr/x11r6/lib/x11/fonts/type1/,/usr/x11r6/lib/x11/fonts/speedo/,/usr/ x11r6/lib/x11/fonts/misc/,/usr/x11r6/lib/x11/fonts/75dpi/,/usr/x11r6/lib/x11/fonts/100dpi/,/usr/share/fonts/ x11/misc/,/usr/share/fonts/x11/type1/,/usr/share/fonts/x11/75dpi/,/usr/share/fonts/x11/100dpi/-co/etc/x11/rgb

Startup success

Second, the Client connection

The client installs Vncview and then connects

Input IP, input ip:no, that is, IP address plus session number, just opened the account is 1, here input

1.1.1.1:1

Then enter the password and you can connect

Because there is no desktop environment, so we need to install one, here using Xface

Third, installation Xface

    1. # Apt-get Install Xfce4

The process is relatively long, the size of 200MB or so. When the installation is complete, we can call Xface using VNC.

Change VNC configuration, load Xface desktop

    1. [Email protected]:~# pwd
    2. /root
    3. [Email protected]:~# CD. vnc/
    4. [Email protected]:~/.vnc# ls
    5. Node1:1.log node1:1.pid passwd Xstartup
    6. [Email protected]:~/.vnc# vim Xstartup

The original configuration to comment out, the new xface configuration can be, under the configuration file

  1. [Email protected]:~/.vnc# cat Xstartup
  2. #!/bin/sh
  3. # Uncomment the following-lines for normal desktop:
  4. # unset Session_manager
  5. # EXEC/ETC/X11/XINIT/XINITRC
  6. [-x/etc/vnc/xstartup] && Exec/etc/vnc/xstartup
  7. [-R $HOME/. Xresources] && Xrdb $HOME/. Xresources
  8. Xsetroot-solid Grey
  9. Vncconfig-iconic &
  10. #x-terminal-emulator-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
  11. #x-window-manager &
  12. Sesion-manager & Xfdesktop & Xfce4-panel &
  13. Xfce4-menu-plugin &
  14. XFSETTINGSD &
  15. XFCONFD &
  16. XFWM4 &

Then restart VNC

    1. [Email protected]:~/.vnc# vncserver-kill:1
    2. Killing Xvnc4 process ID 1844
    3. [Email protected]:~/.vnc# vncserver:1
    4. New ' node1:1 (root) ' Desktop is node1:1
    5. Starting applications specified In/root/.vnc/xstartup
    6. Log file Is/root/.vnc/node1:1.log

And then connect with the client

See the Xface, so far, has been configured.

Ubuntu Server configuration Remote VNC service

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.