Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know that this is possible, I've seen it done, but I've forgotten the command.

Basically, what I want to do (for various reasons) is to spawn a GDM/Gnome/etc session (a new one) from within my current session. I don't want to use another tty. I want it to be windowed, and appear under my current session, so I can easily Alt+Tab, start/stop the session easily.

Ideally I'll be able to do something to the effect of: <command> /path/to/gdm

share|improve this question
up vote 5 down vote accepted

Possibly xnest or xephyr - these both let you start up an X session in a window.

share|improve this answer
Yep, these were what I was after, unfortunately seems not compatible with my end goal, but the question is answered. – N J May 1 '11 at 6:54
What is your end goal? Maybe we can refine these answers. Maybe ask another question? – Caleb May 2 '11 at 11:58

In addition to the above two mentioned commands, you can also use:


share|improve this answer

Your Answer


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.