How To Install x2vnc on Ubuntu
Posted on April 1, 2023  (Last modified on May 20, 2023 )
2 minutes • 393 words
Introduction
In this tutorial we learn how to install x2vnc
on Ubuntu.
What is x2vnc
x2vnc is:
This program merges the capabilities of x2x and vncviewer. It will allow a machine with an X display and a machine with a VNC server running on its main screen to act as if they were two displays connected to one machine. When you move your mouse pointer off the screen in a direction of your choosing, the pointer will appear on the other screen instead.
There are three methods to install x2vnc
on Ubuntu. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install x2vnc Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install x2vnc
using apt-get
by running the following command:
sudo apt-get -y install x2vnc
Install x2vnc Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install x2vnc
using apt
by running the following command:
sudo apt -y install x2vnc
Install x2vnc Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install x2vnc
using aptitude
by running the following command:
sudo aptitude -y install x2vnc
How To Uninstall x2vnc on Ubuntu
To uninstall only the x2vnc
package we can use the following command:
sudo apt-get remove x2vnc
Uninstall x2vnc And Its Dependencies
To uninstall x2vnc
and its dependencies that are no longer needed by Ubuntu, we can use the command below:
sudo apt-get -y autoremove x2vnc
Remove x2vnc Configurations and Data
To remove x2vnc
configuration and data from Ubuntu we can use the following command:
sudo apt-get -y purge x2vnc
Remove x2vnc configuration, data, and all of its dependencies
We can use the following command to remove x2vnc
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge x2vnc
Dependencies
x2vnc have the following dependencies:
References
Summary
In this tutorial we learn how to install x2vnc
package on Ubuntu using different package management tools: apt, apt-get and aptitude.