You are not logged in.

#1 2009-01-21 19:27:04

Xiong Chiamiov
Member
From: central coast, california
Registered: 2008-06-18
Posts: 142
Website

running multiple X sessions (f6, f7, etc)

Back in my *buntu days, I could press ctrl+alt+f7 to get to another login screen, so I could run Gnome and KDE simultaneously.  In Arch, though, all I get is a black screen.

It isn't very often that I want to do that, but I'm curious about how *buntu went about doing it.  I would be content with either being put into SLIM or having my .xinitrc file loaded.

Offline

#2 2009-01-21 19:52:30

Mektub
Member
From: Lisbon /Portugal
Registered: 2008-01-02
Posts: 647

Re: running multiple X sessions (f6, f7, etc)

Xiong Chiamiov wrote:

Back in my *buntu days, I could press ctrl+alt+f7 to get to another login screen, so I could run Gnome and KDE simultaneously.  In Arch, though, all I get is a black screen.

It isn't very often that I want to do that, but I'm curious about how *buntu went about doing it.  I would be content with either being put into SLIM or having my .xinitrc file loaded.

Using GDM, in /etc/gdm/custom.conf, puting following two lines at the end of the file:

0=Standard device=/dev/console
1=Standard

will start two GDM logins, one in f7 and the other in f8.

Mektub


Follow me on twitter: https://twitter.com/johnbina

Offline

#3 2009-01-21 19:57:35

Xiong Chiamiov
Member
From: central coast, california
Registered: 2008-06-18
Posts: 142
Website

Re: running multiple X sessions (f6, f7, etc)

Mektub wrote:
Xiong Chiamiov wrote:

Back in my *buntu days, I could press ctrl+alt+f7 to get to another login screen, so I could run Gnome and KDE simultaneously.  In Arch, though, all I get is a black screen.

It isn't very often that I want to do that, but I'm curious about how *buntu went about doing it.  I would be content with either being put into SLIM or having my .xinitrc file loaded.

Using GDM, in /etc/gdm/custom.conf, puting following two lines at the end of the file:

0=Standard device=/dev/console
1=Standard

will start two GDM logins, one in f7 and the other in f8.

Mektub

Ah, so that's how they did it!

Anyone know if it's possible with SLIM?

Offline

#4 2009-01-22 01:34:42

my0pic
Member
From: Melbourne, Australia
Registered: 2008-05-23
Posts: 206

Re: running multiple X sessions (f6, f7, etc)

I have aliased 'startx' in my .bashrc to run this script to start X on the next available display:

#!/bin/sh

# Script to start X on next available display.

if [ $# -eq 0 ]      # check to see if arguements are given (color depth)
       then a=24    # default color depth
        else a=$1    # use given arguement
fi

if [ $a -ne 8 -a $a -ne 16 -a $a -ne 24 ]
        then
                echo "Invalid color depth. Use 8, 16, or 24."
        exit 1
fi

for display in 0 1 2 3 4 5    # checks for open display, starts X on next available
        {
        if [ ! -f "/tmp/.X$display-lock" ]
                then
                        exec startx -- :$display -depth $a
                exit0
        fi
        }
echo "No displays available."
exit 1

To start an additional X display but without using a script you can use

startx -- :1

but note that the script checks if any displays have already been started.

Offline

#5 2009-01-22 09:26:18

signor_rossi
Member
Registered: 2007-08-24
Posts: 257

Re: running multiple X sessions (f6, f7, etc)

qingy allows to start multiple X sessions easily, even with different X configurations. Another advantage is that it is fast to start, since X is not needed as for the kdm/gdm login managers.
Unfortunately there are some issues with paths that are not sourced as they should in certain situations...

SignorRossi.

Offline

#6 2009-01-22 14:03:19

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: running multiple X sessions (f6, f7, etc)

You probably already know, but you can use Xnest and VNC servers to let you run stuff outside your normal X server.


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

Board footer

Powered by FluxBB