Install vnc in ubuntu and enable x11vnc

Source: Internet
Author: User
This article describes how to enable x11vnc in ubuntu and how to create a VNC logon password.

Start the Ubuntu Software Center and select "X11VNC server" for installation. Of course, you can also install it using the sudo apt-get install command.

Next, create the login password.


Copy codeThe code is as follows:
Sudo x11vnc-storepasswd


After entering and confirming the password, it is saved to the user's password Directory:

Set the X11VNC password file:


Copy codeThe code is as follows:
Sudo x11vnc-storepasswd in/etc/x11vnc. pass

Copy the password file:


Copy codeThe code is as follows:
Sudo cp/root/. vnc/passwd/etc/x11vnc. pass

Open the/etc/init/x11vnc. conf file and paste the following content. If this file is not available, use a text tool to create one. Port: 5900, which can be customized.


Copy codeThe code is as follows:
Start on login-session-start
Script
/Usr/bin/x11vnc-auth/var/run/lightdm/root/: 0-noxrecord-noxfixes
-Noxdamage-rfbauth/etc/x11vnc. pass-forever-bg-rfbport 5900-o
/Var/log/x11vnc. log
End script


Save and restart Ubuntu.

Start VNC Viewer in another operating system. here, Real VNC installed in Windows 7 is used. Enter the corresponding IP address or host name and click Connect.

, You can see the Ubuntu login interface.

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.