How to Install xsrv on Elementary OS Latest
xsrv is an open-source X server for Windows. It enables you to use Linux GUI applications in a Windows environment.
This tutorial will guide you through the installation process of xsrv on Elementary OS Latest.
Prerequisites
Before you begin, ensure that you have the following:
- A computer running Elementary OS Latest
- A terminal application
- Root or Sudo privileges
Steps
Open the terminal application by pressing
Ctrl + Alt + Tor searching for it in the applications menu.Add the xsrv PPA repository by running the following command:
sudo add-apt-repository ppa:a-albionic/xsrv
- Update the list of available packages by running the following command:
sudo apt-get update
- Install xsrv by running the following command:
sudo apt-get install xsrv
- Start xsrv by running the following command:
xsrv :0 -multiwindow
The -multiwindow option ensures that each Linux GUI application will run in its own window.
- To test xsrv, you can run any Linux GUI application by prefixing it with
DISPLAY=:0. For example, to run thegnome-calculatorapplication, run the following command:
DISPLAY=:0 gnome-calculator
You should now see the gnome-calculator application running in a new window.
Conclusion
xsrv is an excellent tool for running Linux GUI applications in a Windows environment. By following the steps in this tutorial, you should be able to install and use xsrv on Elementary OS Latest.