VNC Server on Ubuntu

Source: Internet
Author: User

Virtual Network Computing (VNC) is a software for Remote Desktop control. The client's keyboard input and mouse actions are transmitted over the network to the remote server, controlling the operation of the server

(Only background, no menu bar problem not resolved) Virtual Network Computing (VNC) is a software for Remote Desktop control. The client's keyboard input and mouse actions are transmitted over the network to the remote server, controlling the operation of the server. The graphical interface of the server is displayed to the user through the network transport client. It feels like you're working directly on the local computer, except that all programs and commands are executed on the server side.

1. Open a terminal, install Vnc4server

sudo apt-get install Vnc4server



2. Then install sudo apt-get installation Gnome-panel

3, Start Vnc4server, enter the vnc4server you will be prompted to enter the password, when the link through the client will use this password.

After entering the password you will see a hint similar to the following:



Here you can see the new created a desktop for ubuntu:1 this as a background connection server with

4. Edit Start Step

vim/home/User name/.vnc/xstartup
In &x-window-manager & Add #
And then add 2 more lines to the bottom.
Startgnome &
Display=:1 Gnome-session &

A detailed summary of changes to the configuration file is as follows:
To run the service side:
After installation, run Vncserver directly, more parameters can refer to man vncserver. The first run requires the password to be set, and the build configuration file runs under the ~/.vnc directory with unlimited root privileges.

configuration problem:
The default profile ~/.vnc/xstartup as follows:

#!/bin/sh

# Uncomment the following-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 &
X-terminal-emulator-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
X-window-manager &


Problems that may exist with the default configuration:
1. With the default configuration, when you log on to the VNC desktop, you can only see the desktop background and a terminal, and nothing else, such as.

2. The login appears counld not acquire name on the session bus and other error prompts, such as.


#!/bin/sh

# Uncomment the following-lines for normal desktop:
Unset Session_manager
Unset dbus_session_bus_address
# EXEC/ETC/X11/XINIT/XINITRC

[-x/etc/vnc/xstartup] && Exec/etc/vnc/xstartup
[-R $HOME/. Xresources] && Xrdb $HOME/. Xresources
Xsetroot-solid Grey
Vncconfig-iconic &
X-terminal-emulator-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
# X-window-manager &

Export desktop_session=ubuntu-2d #这个 ubuntu-2d The file name under reference/usr/share/gnome-session/sessions/is set to a different value
Export gdmsession=ubuntu-2d
Export startup= "/usr/bin/gnome-session--session=ubuntu-2d"

$STARTUP
The final results are as follows:

For other Ubuntu versions of VNC configuration, the basic is to use the default configuration.



5. Restart the VNC service

Vncserver-kill:1 and then start the VNC service input Vnc4server

Note here: The default port is 5900 if it is vncserver:1 that means 5901 port,

Of course, under the 1024 port requires root permissions, so you actually directly input: 1, VNC software will default 5900+x (x is the number you entered)



6. Open the VNC client Input Server under window Ip+:1:



7. Click OK to enter the password on the server



8. Successful Login



PS: Here by the way to introduce a window under the operation of Linux-like FTP tool WINSCP, pull a file from window to Linux, directly pull to the corresponding folder to achieve the upload effect

+++++++++++++++++++ the method of attaching XRDP ++++++++++++++

Open Terminal: Install in sequence

Sudoapt-get Install XRDP

Sudoapt-get Install Vnc4server Tightvncserver

After installation, execute the following command (This command is due to install the GNOME desktop, ubuntu12.04 in the same unity, Gnome multiple desktop manager, need to start the time to specify one, or even if the remote login verification succeeds, but also the background, nothing else)

Cd/home/youruser (Youruser is everyone's own user name)

SUDO/ETC/INIT.D/XRDP restart

3. MSTSC running Windows

VNC Server on Ubuntu

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.