How To Install spice-vdagent on Kali Linux
Introduction
In this tutorial we learn how to install spice-vdagent on Kali Linux.
What is spice-vdagent
spice-vdagent is:
spice-vdagent is the spice agent for Linux, it is used in conjunction with spice-compatible hypervisor, its feature includes:
- Client mouse mode (no need to grab mouse by client, no mouse lag) this is handled by the daemon by feeding mouse events into the kernel via uinput. This will only work if the active X-session is running a spice-vdagent process so that its resolution can be determined.
- Automatic adjustment of the X-session resolution to the client resolution
- Support of copy and paste (text and images) between the active X-session and the client
There are three methods to install spice-vdagent on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install spice-vdagent Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install spice-vdagent using apt-get by running the following command:
sudo apt-get -y install spice-vdagentInstall spice-vdagent Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install spice-vdagent using apt by running the following command:
sudo apt -y install spice-vdagentInstall spice-vdagent Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install spice-vdagent using aptitude by running the following command:
sudo aptitude -y install spice-vdagentHow To Uninstall spice-vdagent on Kali Linux
To uninstall only the spice-vdagent package we can use the following command:
sudo apt-get remove spice-vdagentUninstall spice-vdagent And Its Dependencies
To uninstall spice-vdagent and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove spice-vdagentRemove spice-vdagent Configurations and Data
To remove spice-vdagent configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge spice-vdagentRemove spice-vdagent configuration, data, and all of its dependencies
We can use the following command to remove spice-vdagent configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge spice-vdagentDependencies
spice-vdagent have the following dependencies:
- init-system-helpers
- libasound2
- libc6
- libdbus-1-3
- libdrm2
- libglib2.0-0
- libgtk-3-0
- libpciaccess0
- libsystemd0
- libx11-6
- libxinerama1
- libxrandr2
References
Summary
In this tutorial we learn how to install spice-vdagent package on Kali Linux using different package management tools: apt, apt-get and aptitude.