Install and configure remote desktop (VNC) in Ubuntu 16.10 and ubuntu16.10
--------------------------------
# Step 1: Install x11vnc
--------------------------------
Root @ local :~ # Apt-get install x11vnc-y
--------------------------------
# Step 2: configure the access password
--------------------------------
Root @ local :~ # X11vnc-storepasswd/etc/x11vnc. pass
--------------------------------
# Step 3: create a service
--------------------------------
Root @ local :~ # Vim/lib/systemd/system/x11vnc. service
# Note: you must use the root user to edit the file.
# Paste the following code.
[Unit]
Description = Start x11vnc at startup.
After1_multi-user.tar get
[Service]
Type = simple
ExecStart =/usr/bin/x11vnc-auth guess-forever-loop-noxdamage-repeat-rfbauth/etc/x11vnc. pass-rfbport 5900-shared
[Install]
Wantedbypolicmulti-user.tar get
--------------------------------
# Step 4: configure the firewall
--------------------------------
# Note that the following port numbers must be the same as the port numbers in step 3.
Root @ local :~ # Ufw allow5900
--------------------------------
# Step 5: Configure and start the service
--------------------------------
# Run the following command to enable the configuration service.
Root @ local :~ # Systemctl enable x11vnc. service
# The following command re-loads the service configuration.
Root @ local :~ # Systemctl daemon-reload
--------------------------------
# Step 6: restart the system.
--------------------------------
# The End