Table of Contents
BASH - Run a program or script - Run graphical Linux applications
To have BASH run graphical apps a X server is needed.
This is basically the same technique people would use to run graphical Linux desktop applications over a network.
Install an X server
The Xming X Server for Windows works well for this, although there are other X servers for Windows and they should also work.
Download and install it on your Windows 10 PC to get started.
You can just use the default settings and it’ll work fine.
Launch Xming and it will appear in your system tray, running in the background and waiting for you to launch a graphical Linux program.
Launch applications from Ubuntu’s Bash shell
Install a graphical app. For example, the Linux version of Firefox from Ubuntu’s repositories:
sudo apt install firefox
Once you’ve installed the program, you can specify the X server and then launch the application.
For example, to launch Firefox, run the below commands. (To launch another graphical application, just specify its name instead of “firefox.)”
export DISPLAY=:0 firefox
Assuming you’re running an X server like Xming on your Windows PC, the graphical application should run.
It may not run as speedily—applications can’t use direct rendering to run on your hardware directly.