Fix configuration in Ubuntu remote display gray screen for VNC

Source: Internet
Author: User

What is VNC?


VNC (Virtual network console) is the abbreviation for the virtualization console. It is an excellent remote control tool software developed by the prestigious European Research Laboratory at T. VNC is a free, open source software based on UNIX and Linux operating systems that is powerful, efficient and practical, with performance comparable to any remote control software in Windows and Macs. In Linux, VNC consists of the following four commands: VNCSERVER,VNCVIEWER,VNCPASSWD, and Vncconnect. In most cases, users only need two of these commands: Vncserver and Vncviewer.


1. First need to install Vnc4server on Ubuntu

# Apt-get Install Vnc4server


2. The first time you execute the vncserver, you need to set a 6-bit password for the client connection

# Vncserver

Password


3. Remote link ip:1 in VNC client (novnc/vncviewer), but gray screen after entering password and mouse x type

This is because Vncserver cannot find the specified graphical tool in the Ubuntu system


Now you need to download the graphical tool in Ubuntu

# apt-get Install Gnome-panel Gnome-settings-daemon metacity Nautilus gnome-terminal


After the installation is complete, you need to change the ~/.vnc/xstartup file to add the following:

# Vim ~/.vnc/xstartup

Export xkl_xmodmap_disable=1

Unset Session_manager

Unset dbus_session_bus_address

Gnome-panel &

Gnmoe-settings-daemon &

Metacity &

Nautilus &

Gnome-terminal &


4. Restart Vncserver then OK

# Vncserver:2

Note:

Stop a VNC service

# Vncserver-kill: Port number


Fix configuration in Ubuntu remote display gray screen for VNC

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.