Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a GUI app on linux, without showing the gui?

I'm working with an api that requires an app to be started, the app runs a GUI on linux.

I need to punsh in some login information and then hide the app.

Is there a way I can go to the machine start the GUI and then hide it, log out, and have other users log in with out having the GUI shown, but still having the app running?

like image 357
Martin Kristiansen Avatar asked May 08 '12 11:05

Martin Kristiansen


People also ask

Do you need GUI for Linux?

Most Linux distros come with a desktop environment preinstalled by default. But is it possible to run Linux without a GUI at all? While modern Linux systems have attractive desktop interfaces, you may be wondering whether you can use Linux without them. The straightforward answer is "yes."

Can you run a GUI from SSH?

SSH, the Secure Shell, supports remote login and command-line or GUI access across the network through encrypted tunnels protected by public-key cryptography.

Can you run GUI apps on Ubuntu Server?

Ubuntu Server is a variant of the Ubuntu OS that does not include a graphical user interface (GUI) by default. GUI applications consume system resources needed for server-oriented tasks, so Linux server distributions usually avoid a GUI in favor of the command-line terminal.

How does GUI work in Linux?

Linux GUI (Graphical User Interface) is defined as a utility or feature which supports an interface for users and allows users to interact with the system and takes help from windows, icons, graphics, etc., and responds to the manipulation of mouse and keyboard.


2 Answers

You can take a look at Xvfb http://en.wikipedia.org/wiki/Xvfb

it's a framebuffer version of X. It will launch an X11 server without displaying it (useful with selenium for example)

like image 116
X-Blaster Avatar answered Sep 18 '22 22:09

X-Blaster


Xdotool can send input to anyb xwindow, including xvfb

like image 23
johnshen64 Avatar answered Sep 19 '22 22:09

johnshen64