Ubuntu – Do I need a desktop to run a GUI

guiwindow-managerxfcexorg

I am setting up a light weight VM, following the guide in the Ubuntu Documentation

What I want to be able to do is launch a GUI application. I don't need / want anything on the desktop.

First I installed xorg. But I can't launch a gui. The next step is to install a "Window Manager". So I installed xfce4, and then startx launches a desktop.

What do I need to launch a gui but not launch a desktop?

Best Answer

If you want to control exactly what runs when you run startx you should create a .xinitrc file in your home directory. If you make .xinitrc something very simple like:

xfwm4 &
xterm

Then startx will run with only a window manager and a terminal.