x11vnc Server Setup

Home Forums Operating Systems Linux PeppermintOS x11vnc Server Setup

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #605
    Voodoo
    Keymaster

    https://tecadmin.net/setup-x11vnc-server-on-ubuntu-linuxmint/

    X11VNC is the popular VNC server for creating remote desktop connection and access the remote desktop. It works will almost all the desktop environments available for Ubuntu and Debian based systems. Using remote desktop connection we can connect any remote system and access graphical user interface and work. We can use any available vnc viewer like the tight vnc viewer, real vnc viewer or ultra vnc viewer.

    X11VNC can be a better remote support software for you. This tutorial will help you to set up the x11vnc server on your Ubuntu, LinuxMint & Debian system and connect using vnc viewer from the client system.

    Step 1 – Install X11VNC
    X11vnc packages are available under default repositories. Open a terminal and run the following commands to update default repositories and install required packages.

    sudo apt-get update
    sudo apt-get install x11vnc net-tools

    Step 2 – Create Password
    Now create a password to connect using vnc viewer from the client system.

    x11vnc -storepasswd

    Enter VNC password: *********
    Verify password: *********
    Write password to /home/rahul/.vnc/passwd? [y]/n y
    Password written to: /home/rahul/.vnc/passwd

    Step 3 – Start X11VNC Server
    After the successful installation of the x11vnc server on your system. Let’s start it using the following command. Change the parameters as per your setup.

    sudo x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/owner/.vnc/passwd -rfbport 5900 -shared

    The VNC server will start on default port 5900. In case the port 5900 is busy with some other service, it will automatically select the next available port like 5901.

    Step 4 – Connect from VNC Clinet
    To connect to the server using VNC, you need a VNC client on your system. For this tutorial, I am using RealVNC viewer on our system. You can use any other client of your choice.

    Step 5 – Setup AutoStart on Boot
    Finally setup the auto start of x11vnc server on system boot. Create a x11vnc.conf file under /etc/init/ directory using following content.

    sudo nano /etc/init/x11vnc.conf

    # description "Start x11vnc on system boot"
    
    description "x11vnc"
    
    start on runlevel [2345]
    stop on runlevel [^2345]
    
    console log
    
    respawn
    respawn limit 20 5
    
    exec /usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/owner/.vnc/passwd -rfbport 5900 -shared
    • This topic was modified 5 months ago by Voodoo.
Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.