Ubuntu 16.04 configuring VNC for Remote Desktop Connection

Source: Internet
Author: User

Description: In fact, it is better to install VNC than to install a teamview faster, and full platform support.

1. Installation

$$sudo apt-get install vnc4server$sudo apt-get Install XRDP  

2. Start Vncserver, initialize

Vncserver    
#启动vncserver, the first time you need to enter a setup login password

If the password is forgotten, you can go in the ~/.vnc/directory to delete the password file.

3. Modify the configuration file Xstartup

sudo gedit ~/.vnc/xstartup

Replace it with the following:

#!/bin/SH# Uncomment the following and the lines forNormal 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 &unset session_managerunset dbus_session_bus_address[-X/etc/vnc/xstartup] && exec/etc/vnc/xstartup[-R$HOME/. Xresources] && Xrdb $HOME/.xresourcesvncconfig-iconic &xfce4-session &

4. Restart Vncserver and XRDP

sudo vncserver-kill:1         #杀死关闭vncserver
Vncserver           #vncserver再次重启
sudo service xrdp restart      #重新启动xrdp 

5. Connection

Use your own Remmina Remote Desktop

"New", protocol Select "svn-virtual network Compute" Server "Ip:1"

Enter the VNC password to connect.

Close again, and then use "ip:5901" to connect.

If you are using a firewall, you need to open 5901 remote ports (sudo UFW allow 5901) on the fire wall.

Reference:

Http://www.playubuntu.cn/article/289.html (the above content is transferred from this article)

Ubuntu 16.04 configuring VNC for Remote Desktop Connection

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.