Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»General Articles»How to Install x11vnc Server on Fedora

    How to Install x11vnc Server on Fedora

    By 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.

    Advertisement

    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

    Related Posts

    How to List Manually Installed Packages in Ubuntu & Debian

    10 Bash Tricks Every Developer Should Know

    How to Validate Email Address in JavaScript

    View 1 Comment

    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

    Advertisement
    Recent Posts
    • How to List Manually Installed Packages in Ubuntu & Debian
    • 10 Bash Tricks Every Developer Should Know
    • How to Validate Email Address in JavaScript
    • Firewalld: Common Firewall Rules and Commands
    • 12 Apk Commands in Alpine Linux Package Management
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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