9

This may be a stupid question - But is it possible to run GUI apps (Firefox for example) on a computer where I don't have a graphical desktop installed (like GNOME, Xfce)?

Kitchi
  • 255
  • 1
  • 3
  • 11

4 Answers4

9

You can install X windows without installing a desktop, and run apps under bare X. It's a bit strange like that: no background, no window borders. Or you can add a minimal window manager.

Can I have Graphics on Linux without a desktop manager?

pjc50
  • 6,041
  • 24
  • 29
3

Sure. There are couple of options (which you want is not clear from question).

  1. Some programs can be run in headless mode where they accept the situation where X-server is not available
  2. You only need X-server running at client computer, it is not necessary at the server running the software. For example, if Firefox is installed in server you use ssh to connect to you can use ssh -X to connect and run firefox at the server => firefox UI is drawn to your computer.
Ahe
  • 1,049
  • 8
  • 10
  • So for example, would firefox look/behave the same even though it doesn't have X to run off of? – Kitchi Nov 09 '12 at 13:04
  • In short, yes. Settings, history and other stuff (if not synced otherwise) would of course be from machine executing firefox, not from one displaying the UI. – Ahe Nov 12 '12 at 06:50
3

Here are several headless X servers some of them are:

  • virtual x server: xpra,
  • nested: xnest, xserver-xephyr

Also, you can run xorg with dummy display driver.

zb'
  • 592
  • 1
  • 6
  • 15
1

i know this is an old post if anyone is searching for this use this:

install xorg first

sudo apt-get install xorg

if you dont already have install xterm

sudo apt install xterm

this is the command to run it in the same window or console

xinit firefox $* -- :0 vt$XDG_VTNR

use this to run on a different display

sudo xinit firefox $* -- :1

where 1 is display 1.