Install and configure remote desktop (VNC) in Ubuntu 16.10 and ubuntu16.10

Source: Internet
Author: User
Tags x11vnc

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

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.