Ubuntu installation VNC, remote link when the gray screen, the configuration document is wrong

Source: Internet
Author: User

Excerpt from:https://zhidao.baidu.com/question/1949169099296473348.html

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 8-bit password for the client connection

3. After opening the service, connect according to the client number. You can also specify the client number

$vncserver-geometry 1366x768:1

Where-geometry specifies the size of the client window: 1 refers to the client connection number

The client enters 192.168.0.253:1 in the VNC Viewer to connect to the server

4. Gray screen and X-type mouse are present because Vncserver cannot find the specified graphical software

At the site, one of the netizens pointed out:

There is a number of things which can cause the grey screen problem.
Your Best bet was to look at the log file.
Is. The log file name is Hostname:display#.log, for example, on my
Machine, whose name is ' Golden ', it was golden:1.log.

In my case the./vnc/xstartup file do not has the right permissions,
So chmod +x/vnc/xstartup fixed the problem. I could has fiddled with
The contents of Xstartup until the cows came home and it wouldn ' t has
Helped.

We can see the cause of the problem by looking at ~/.vnc/xxx:1.log.

Note that the log 1.log here indicates a connection log with a client number of 1.

Error opening security Policy File/etc/x11/xserver/securitypolicy

Could not init font path element/usr/x11r6/lib/x11/fonts/type1/, removing from list!

Could not init font path element/usr/x11r6/lib/x11/fonts/speedo/, removing from list!

Could not init font path element/usr/x11r6/lib/x11/fonts/misc/, removing from list!

Could not init font path element/usr/x11r6/lib/x11/fonts/75dpi/, removing from list!

Could not init font path element/usr/x11r6/lib/x11/fonts/100dpi/, removing from list!

Could not init font path element/usr/share/fonts/x11/75dpi/, removing from list!

Could not init font path element/usr/share/fonts/x11/100dpi/, removing from list!

Under Ubuntu15.10 not see the related folder, it may be the version path change problem, we find the fonts by finding command is actually under/usr/share/fonts/.

Here we need to create the specified directory and then use ln soft connect to point the latter's path, stitching it into the path name in the log.

After the configuration is complete, there will be several errors, but it will not be an error.

Error opening security Policy File/etc/x11/xserver/securitypolicy

Could not init font path element/usr/x11r6/lib/x11/fonts/speedo/, removing from list!

Could not init font path element/usr/x11r6/lib/x11/fonts/75dpi/, removing from list!

Could not init font path element/usr/share/fonts/x11/75dpi/, removing from list!

5. Need to change the ~/.vnc/xstartup file

Before installing, we should install the following software:

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

Then modify the Xstartup file

#!/bin/sh

# Uncomment the following-lines for normal desktop:

Export xkl_xmodmap_disable=1

Unset Session_manager

# EXEC/ETC/X11/XINIT/XINITRC

Unset dbus_session_bus_address

Gnome-panel &

Gnmoe-settings-daemon &

Metacity &

Nautilus &

Gnome-terminal &

Restarting the vncserver will be OK.

Note:

Vncserver:1 Open Service

Vncserver-kill:1 Close this connection number
Pasting

Ubuntu installation VNC, remote link when the gray screen, the configuration document is wrong

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.