To uninstall TigerVNC from an Ubuntu system, you typically need to use the command line interface. The steps may vary slightly based on how you installed TigerVNC, but generally, the process for uninstallation is straightforward if you used a package manager like apt. Here’s how you can do it:
Open a Terminal:
You can open the terminal by pressing or by searching for "Terminal" in your system's application launcher.
User
vncserver: command not found
Assistant
If you're encountering the error vncserver: command not found on your Ubuntu system, it could mean that TigerVNC (or another VNC server) is not installed, or the installation did not complete successfully. Here’s how you can address this:
Ctrl+Alt+T
Check if TigerVNC is installed:
Before uninstalling, you might want to check if TigerVNC or any related packages are indeed installed on your system. You can do this with:
bash
dpkg -l | grep tigervnc
This command lists all installed packages that include "tigervnc" in their names.
Uninstall TigerVNC:
If TigerVNC is installed via the Ubuntu package manager (apt), you can uninstall it using the following command:
bash
sudo apt-get remove --purge tigervnc*
The --purge option is used to remove both the package and its configuration files. Without --purge, the configuration files are usually left on the system.
Note: The wildcard * in tigervnc* ensures that all packages with names starting with tigervnc are targeted.
Autoremove and Clean Up:
After uninstalling, it's a good practice to remove any unused dependencies and clear the APT cache:
bash
sudo apt-get autoremove
sudo apt-get autoclean
Check Removal:
To verify that all TigerVNC packages have been removed, you can run:
bash
dpkg -l | grep tigervnc
If the output is empty, then TigerVNC has been successfully uninstalled from your system.
These steps should help you completely remove TigerVNC from an Ubuntu system. If TigerVNC was installed from source or by using a different package manager, the steps to uninstall it might differ. For installations from source, you would generally need to run make uninstall from the source directory, provided the source was configured to support uninstallation.
1. Install TigerVNC
First, ensure that TigerVNC is not already installed:
bash
dpkg -l | grep tigervnc
If no packages are listed, you likely need to install TigerVNC. You can install it using the following commands:
After installation, verify that the vncserver command is available:
bash
vncserver -version
This should display the version of TigerVNC installed, indicating that the installation was successful.
3. Run VNC Server
You can start the VNC server by simply typing:
bash
vncserver
You will be prompted to set a password on the first run and then the server will start, displaying output similar to:
code
New 'X' desktop is your_hostname:1
This output means a VNC server instance is running on display :1 of your host.
4. Access the VNC Server
To access the server, you'll need a VNC client. From another machine, you can connect using a VNC client by entering:
code
your_hostname:1
Or if using the IP address:
code
192.168.x.x:1
Replace 192.168.x.x with the server's IP address.
5. Troubleshooting
If vncserver still isn’t recognized after installation, try the following:
**Check your PATH:∗∗Ensurethatthedirectorywhere‘vncserver‘isinstalledisincludedinyoursystem′s‘PATH. You can find which directory has vncserver` using:
bash
sudo find / -name vncserver
Reload your shell: After installation, sometimes you may need to restart your terminal or reload your shell configuration.
bash
exec $SHELL
Profile scripts: Sometimes, the path to the executables might not be automatically added to your profile. You can manually add the directory to your $PATH by editing your .bashrc or .profile files.
If you followed these steps and still face issues, consider checking the software repository, the availability of TigerVNC for your version of Ubuntu, or the possibility of user-specific configuration issues.