1. Home
  2. Computing & Technology
  3. Focus on Linux
Linux Newbie Administrator FAQ: X-Windows

Part 4 of the Linux Newbie Administrator Guide

4.3.6 Can I have multiple sessions of X running at the same time?
(continued after the ads...)

Related Resources
Linux Newbie Administrator Guide
0. Linux Benefit
1. Before Installation
2. Linux Resources/Help
3. Basic Operations FAQ
4. Newbie Admin FAQ
~ 4.1 Lilo
~ 4.2 Drives
~ 4.3 X-Windows
~ 4.4 Configurations
~ 4.5 Networking
5. Shortcuts / Commands
6. Linux Applications
7. Learn Linux Commands
A. How to Upgrade Kernel?

Yes, you can. When you issue the first startx command on your system, it opens the first X-session on the default display 0. The second X-session must be opened on a different display. For example, this will open a second X-session on the display 1:

startx -- :1

You can have up to 6 concurrent X sessions. Use to switch to display 0, to second screen, etc. up to Try man startx if you need more info.

In a similar fashion, you can open another bare X-server session without a window manager. This will open one on display 2:

xinit -- :2

On this bare-bone X-display I can run a different windows manager (so as to have two different ones running at the same time) by typing in the X-terminal window one of these (see the previous answer for more details):

startkde
gnome-session
xfce
afterstep
AnotherLevel
fvwm2
fvwm

Next > 4.3.7 Can my sister have second GUI login prompt so she does not have to kill my X-session to start hers?

Can't find what you are looking for?
Search the

Stay up-to-date!
Subscribe to the Linux free newsletter.

More from About.com

  1. Home
  2. Computing & Technology
  3. Focus on Linux