Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a HTPC with Debian currently installed on. I would like to run applications which got a gui but without using a desktop environment such as gnome, kde etc.

I was wondering if running X would be enough to run the applications and then use screen so I can switch between different gui applications running.

  1. Is this possible?
  2. If no, what else do I need?
  3. Are there any potential problems I might bump into?
  4. Are there a better way to achieve what I want?

Thank you

share|improve this question
1  
I saw in another question that you've already found Ratpoison. I was surprised that noone mentioned it since it's modeled on GNU Screen. Some other screen-like wms (ie keyboard oriented, minimal, non-stacking) worth mentioning are also awesome and Scrotwm –  micke Jan 10 '12 at 23:47

4 Answers 4

up vote 1 down vote accepted

So far as I know, screen won't help for X Windows applications.

I believe the minimum you need is a Window Manager for X11 (e.g. FVWM or Blackbox). Without a desktop I think you'd have to start a xterm shell manually for subsequent launching of X apps (e.g. xterm & exec fvwm - see xwinman.org)

You might try a lightweight desktop environment (e.g. XFCE or LXDE) Your distro's package installer should be able to install this.

share|improve this answer
    
Thank you. I will look into using xterm first and have the lightweight desktop environments as a fallback if it doesn't work out as I have planned :) –  rzetterberg Jan 9 '12 at 12:02
    
I've found openbox and fluxbox a bit lighter on resources than XFCE or LXDE, but others might have different results. –  Rob Jan 9 '12 at 15:00

You can run twm and xterm over a plain vanilla x install - gentoo does this for testing purposes, and run screen on that xterm session that. I do believe there's supposed to be a way to just run xterm over x as well.

The moment you have x installed, you wouldn't need to use screen to switch - run the programme with an & at the end to start it, use xkill or similar to stop it (though you could get a keyboard centric window manager of some sort) - and for moving and switching you can treat it just as you would any window.

It isn't exactly what you want, but it should give you a close enough result.

share|improve this answer
    
Thank you. I will look into using twm and xterm :) –  rzetterberg Jan 9 '12 at 12:00

Maybe it's worth giving tinywm a try.

TinyWM is a tiny window manager that I created as an exercise in minimalism. It is also maybe helpful in learning some of the very basics of creating a window manager. It is only around 50 lines of C. There is also a Python version using python-xlib.

share|improve this answer
    
Looks interesting. I'll look into it, thanks :) –  rzetterberg Jan 10 '12 at 8:19

There is no correlation between screen and a windowing environment ("window manager"). No matter what form of windowing manager you run, you can still run screen.

The question then becomes what lose/gain by moving away from a desktop environment to a windowing manager. What does a desktop environment give you:

  • Standardized programming interfaces for apps (from Gnome and KDE) to integrate with the environment.
  • Notification systems
  • Integration with display manager (gdm, kdm, lightdm, lxdm); automated starting of environment.
  • System tray (window managers can include, but are more like "task lists" than real system trays) and other add-ons.
  • Better integration with settings managers to automated settings up the environment.

For a list of Window managers, look at http://xwinman.org/. When you have chosen which system to work with, then you will need to figure out how to start the system (for the most part it is the same, but each window manager has their own convention).

Desktop environments all have a window manager running underneath so you could still choose a different window manager and keep your desktop.

share|improve this answer
    
Yes, I understand that they don't correlate at all. The idea of using screen was so that I can switch between running applications easily without being forced to use a window manager. Of my time using my computer I use the terminal about 80%, so that's why I wanted to eliminate as much as possible that has something to do with the DE/WM. So I could just launch certain gui applications (such as the browser) when I needed them. –  rzetterberg Jan 10 '12 at 8:26
    
You won't need a desktop, but you need at least a window manager. Otherwise you will have trouble switching between windows (from screen in an xterm, for example, to the graphical web browser) and with simple decoration (like the 'close' button) - it is doable, but less than satisfactory. From inside screen, you could bind keys to launch the apps to X. –  Arcege Jan 10 '12 at 13:15
    
Alright, thank you for clarifying :) –  rzetterberg Jan 10 '12 at 13:23

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.