Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»General Articles»How to Install x11vnc Server on Fedora

    How to Install x11vnc Server on Fedora

    RahulBy RahulOctober 8, 20214 Mins Read

    Remote desktops can be used in a variety of ways to gain access to a computer for example VNC, RDP, ssh, XDMCP, ICA, and many others. The x11vnc is an example of a Virtual Network Computing (VNC) server that allows a remote client to connect to a computer running the x11vnc software and an X Window session by polling the X server’s frame buffer for updates.

    Remote desktops can come in very handy in many different ways. For example, you can access your office computer from home and even manage the entire IT infrastructure. There are many different situations where you will need the x11vnc tool to assist you.

    The x11vnc is one of the most widely used tools for remote desktops hence in this post, we will teach you how to install x11vnc on Fedora. The commands used are generic and can be used in any Linux distribution such as Ubuntu and Debian.

    Install x11vnc on Fedora

    The first step is to update the fedora cache repository by executing the below-mentioned command:

    sudo dnf update 
    

    The x11vnc is included in the default repository hence we don’t have to download it. We just have to run the below given command to install x11vnc on Fedora:

    sudo dnf install x11vnc net-tools 
    

    Run x11vnc Application

    The next step is to create a password so that you can connect to the VNC viewer from any client system for that execute:

    x11vnc -storepasswd 
    

    It will ask you for your VNC password and the path where you want to store that password.

    Create Password for x11vnc
    Create Password for x11vnc

    Once you have successfully created the x11vnc password, we will start our x11vnc server with the following command:

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

    Before executing the above command, it should be noted that you have to change the /home/rahul/.vnc/passwd parameters you set in the above step. By default your x11vnc server will start on the port 5900 however if the 5900 port is busy or used by some other operation then it will move to the next port which would be 5901.

    Adjust Firewall

    Use the below-mentioned command to allow the default port of 5900 through the firewall so that your Fedora system can be accessed through remote desktops using this port.

    sudo ufw allow 5900/tcp 
    

    To verify:

    sudo ufw status 
    

    Connect with VNC Client

    Now that we have successfully installed the x11vnc server and set a password for the VNC server, we will connect to our server from a VNC client. To achieve the purpose of connecting to the server from the client, we need a VNC client on our client system. There are different VNC clients available, of which one is the RealVNC viewer. You can download RealVNC from it official website:

    Download VNC Viewer
    Download VNC Viewer

    Once downloaded, install and launch the RealVNC viewer; you have to enter the IP address of the Fedora system then the x11vnc server’s port number.

    Connect to vnc server
    Connect to vnc server

    You can easily find the IP address of your Fedora system using the command given below:

    ip a 
    
    Find IP address on Fedora
    Find IP address on Fedora

    After providing the IP address of your Fedora system along with the port number, VNC will begin to connect:

    Connect to Vnc Server
    Connect to Vnc Server

    You will be asked to enter the password and then you will be able to successfully access the Fedora system remotely from the client system.

    Conclusion

    Linux distributions use applications like Secure Shell (SSH) to connect to other systems via the terminal however, the drawback in using this traditional method is that with the command-line interface you can’t use a graphical user interface (GUI) to interact with the other systems. The solution is the x11vnc server which comes in very handy as it gives you the GUI to access the remote computers over a network. This article discussed how to install, configure and use x11vnc on Fedora.

    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow To Setup Apache, PHP & MongoDB in Ubuntu & Debian
    Next Article How to Install and Configure Postfix on Ubuntu 20.04

    Related Posts

    Filesystem Hierarchy Structure (FHS) in Linux

    Updated:July 1, 20222 Mins Read

    What is CPU? – Definition, Types and Parts

    3 Mins Read

    How to Install Ionic Framework on Ubuntu 22.04

    3 Mins Read

    What is the /etc/hosts file in Linux

    Updated:June 27, 20222 Mins Read

    Creating DMARC Record for Your Domain

    Updated:June 29, 20223 Mins Read

    What is Computer Hardware?

    4 Mins Read

    1 Comment

    1. userone on June 18, 2022 9:49 pm

      I am getting constant loop when launching “sudo x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/rahul/.vnc/passwd -rfbport 5900 -shared” as it constantly fails on fresh Fedora install in virtual machine Parallels Desktop.

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • Filesystem Hierarchy Structure (FHS) in Linux
    • How to accept user input in Python
    • What is difference between var, let and const in JavaScript?
    • What is CPU? – Definition, Types and Parts
    • What is the /etc/aliases file
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.