Aliyun ECS uses VNC remote connections

Source: Internet
Author: User
Tags aliyun

Windows VNC remote connection Aliyun server configuration Ubuntu16.04

In ECS's security group, open the appropriate port: VNC service default port 5900-59001.

Open a remote connection, under terminal

Apt-get Update system software first

1. Install Vncserver, enter Apt-get install Vnc4server

2. Open VNC Service, enter Vncserver, after the successful configuration will see the new---desktop is---, at the same time in the home directory generated a. VNC directory, the resulting port number is 1

3. Download VNC client at VNC website: Click on the Open link to download the installation run. Through the client connection, enter in the server bar: IP (server extranet IP): 1


Click OK to enter the password, you can see the VNC connection screen:


This is just a shabby window manager. Continue to configure the use of the graphical interface below

4. Install required software $ sudo apt-get install Gnome-panel Gnome-settings-daemon metacity Nautilus

Backup xstartup file, input: CP ~/.vnc/xstartup ~/.vnc/xstartup.bak

Below modify VNC startup file, input: VI ~/.vnc/xstartup

Modify Result:




Note Unset Session_manager This line is originally commented out, to remove the annotation. In addition to the original X-window-manager & comment out, add a line gnome-session &

Add another line to the previous illustration: Export xkl_xmodmap_disable=1

This means that when VNC opens a remote access to the Linux terminal, it can enter characters, otherwise it cannot be entered.

#!/bin/sh

# Uncomment the following two 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 &

Reference: Ubuntu14.04 using VNC cannot display graphical interface problem Resolution


5. Kill the original desktop process, enter vncserver-kill:1

Re-enter Vncserver:1 to generate a new session (after each session is generated, do not kill, otherwise multiple sessions (interface) occur)

6. Install GNOME desktop environment (install graphical interface, there will be an option in the middle, I choose LIGHTDM)

(1) Installation of X-window Foundation, input: sudo apt-get install X-window-system-core

(2) Install Login manager, enter: sudo apt-get install GDM

(3) Install Ubuntu Desktop, Input: sudo apt-get install Ubuntu-desktop

7. Repeat step 5, enter vncserver-kill:1

Then enter Vncserver:1 to generate a new session. You can then use the VNC client connection to see the graphical interface.




When the VCN is turned on, a gray screen or a black screen is present, indicating that the Xstartup file was modified incorrectly, and that different versions might not be the same.

Reference:

Install graphical interface: http://blog.csdn.net/losin/article/details/35774081

Gray Screen Solution: http://www.voidcn.com/article/p-hxprvedn-vx.html

Black screen: http://blog.csdn.net/sindy_yoga/article/details/51398541

Application of VNC and gray-screen mouse x problem: http://blog.csdn.net/wyy_sunshine/article/details/41778617

Http://www.jb51.net/os/Ubuntu/104948.html

Http://www.cnblogs.com/kanuore/p/7494256.html

Http://blog.csdn.net/qq_32384313/article/details/77533012?locationNum=4&fps=1

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.