User Tools

Site Tools


bash:run_a_program_or_script:run_graphical_linux_applications

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.

bash/run_a_program_or_script/run_graphical_linux_applications.txt · Last modified: 2021/02/04 13:28 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki