Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 11-28-2007, 06:42 AM   #1
LQ Newbie
Registered: May 2006
Posts: 18

Rep: Reputation: 0
fc6 multiple x sessions

Hi all,

I would like X by default to enable an additional x session ie by default ctrl+alt+f7 has an xsession running. I would like this to be enabled during boot ie I want to avoid to logging into a text based console and then running startx etc.

I already boot into runlevel 5. What I am wanting is an additional virtual xsession ie on F9, by default F7 has one running.

Can someone direct me in achieving this? I have two users using the same computer and everytime the other person wants to use it I have to log out and then let the other user log in. I would rather switch to an other virtual terminal running X.

I have read up alot on multi seats and it sounds great, but at the moment I am restricted to one keyboard, mouse, and lcd.

Old 11-28-2007, 01:11 PM   #2
Senior Member
Registered: Dec 2005
Distribution: Slackware -current, 14.2
Posts: 1,102

Rep: Reputation: 227Reputation: 227Reputation: 227
I recently posed the same question, which I answered myself, here:

Basically, edit inittab so that the second user autologsin on one of the ttys, then, as part of that user's .bash_profile, add startx.

Actually, to eliminate error messages when the same user logs into a different console/terminal, put this in .bash_profile:

# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc

# User specific environment and startup programs
if [ $(tty) == /dev/tty4 ]; then
export PATH
startx -- :1 &
What this does is check to see if the user has logged into the tty that you wish it to startx from. If so, then x starts; if not, you'll get a bash prompt.

The only issue I have, thus far, is that after a reboot, the 2nd user's display is often what ends up on the screen, and I have to ctl-alt-f7 to get mine. I haven't come up with a way that guarantees that the f7 display is default. Small potatoes, really.

Old 12-01-2007, 08:45 PM   #3
LQ Newbie
Registered: May 2006
Posts: 18

Original Poster
Rep: Reputation: 0
hey mrclisdue,

thanks for the link, I got it going! for everyone else heres my config.


3:2345:respawn:/sbin/mingetty --autologin username1 tty3
4:2345:respawn:/sbin/mingetty --autologin username2 tty4
and for each users .bash_profile usename1

startx -- :1 &
and username2
startx -- :2
The only problem that I have is that the xSession for username1 its not able to play any sound, whereas username2 its fine. This is major issue for me as i need sound! I am sure that many users will understand. This are the error messages I get when I try to access the volume control btw the volume control has a little red cross on it like when its disabled.

No volume Control Gstreamer plugins and/or devices found.
also when running mplayer...
[AO_ALSA] alsa-lib: confmisc.c:848:(snd_func_card_driver) cannot find card '0'
[AO_ALSA] alsa-lib: conf.c:3500:(_snd_config_evaluate) function snd_func_card_driver returned error: No such device
[AO_ALSA] alsa-lib: confmisc.c:397:(snd_func_concat) error evaluating strings
[AO_ALSA] alsa-lib: conf.c:3500:(_snd_config_evaluate) function snd_func_concat returned error: No such device
[AO_ALSA] alsa-lib: confmisc.c:1248:(snd_func_refer) error evaluating name
[AO_ALSA] alsa-lib: conf.c:3500:(_snd_config_evaluate) function snd_func_refer returned error: No such device
[AO_ALSA] alsa-lib: conf.c:3972:(snd_config_expand) Evaluate error: No such device
[AO_ALSA] alsa-lib: pcm.c:2145:(snd_pcm_open_noupdate) Unknown PCM default
[AO_ALSA] Playback open error: No such device
Could not open/initialize audio device -> no sound.
heres my lsmod...
Module                  Size  Used by
autofs4                24773  2 
w83627hf               26965  0 
hwmon_vid               6849  1 w83627hf
hwmon                   7365  1 w83627hf
eeprom                 11217  0 
sunrpc                161981  1 
nf_conntrack_netbios_ns     7105  0 
ipt_REJECT              8641  1 
nf_conntrack_ipv4      21837  1 
xt_state                6593  1 
nf_conntrack           64713  3 nf_conntrack_netbios_ns,nf_conntrack_ipv4,xt_state
nfnetlink               9945  2 nf_conntrack_ipv4,nf_conntrack
iptable_filter          7105  1 
ip_tables              16517  1 iptable_filter
ip6t_REJECT             9537  1 
xt_tcpudp               7233  6 
ip6table_filter         6849  1 
ip6_tables             17669  1 ip6table_filter
x_tables               18629  6 ipt_REJECT,xt_state,ip_tables,ip6t_REJECT,xt_tcpudp,ip6_tables
dm_mirror              25153  0 
dm_multipath           21961  0 
dm_mod                 57089  2 dm_mirror,dm_multipath
video                  20937  0 
sbs                    22729  0 
button                 12113  0 
dock                   13921  0 
battery                14149  0 
ac                      9285  0 
ipv6                  277957  23 ip6t_REJECT
lp                     16105  0 
snd_via82xx            30809  1 
gameport               19017  1 snd_via82xx
snd_ac97_codec         96613  1 snd_via82xx
ac97_bus                6465  1 snd_ac97_codec
snd_seq_dummy           7877  0 
snd_seq_oss            33473  0 
snd_seq_midi_event     11073  1 snd_seq_oss
snd_seq                50609  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss            43457  0 
snd_mixer_oss          19521  1 snd_pcm_oss
snd_pcm                74949  3 snd_via82xx,snd_ac97_codec,snd_pcm_oss
via_ircc               24021  0 
irda                  118009  1 via_ircc
snd_timer              24901  2 snd_seq,snd_pcm
snd_page_alloc         14281  2 snd_via82xx,snd_pcm
crc_ccitt               6337  1 irda
snd_mpu401_uart        12225  1 snd_via82xx
snd_rawmidi            26817  1 snd_mpu401_uart
snd_seq_device         11981  4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
snd                    53317  13 snd_via82xx,snd_ac97_codec,snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
8139too                29249  0 
i2c_viapro             12373  0 
floppy                 58661  0 
soundcore              11681  1 snd
8139cp                 26433  0 
i2c_core               27841  2 eeprom,i2c_viapro
cdc_ether              10049  0 
ide_cd                 40545  0 
usbnet                 22089  1 cdc_ether
serio_raw              10821  0 
parport_pc             30821  1 
cdrom                  37089  1 ide_cd
parport                38281  2 lp,parport_pc
mii                     9409  3 8139too,8139cp,usbnet
ext3                  125641  1 
jbd                    59881  1 ext3
mbcache                12485  1 ext3
ehci_hcd               35405  0 
ohci_hcd               23877  0 
uhci_hcd               27089  0
The driver is loaded but it seems that only one xsession can access it? I really dont know what the problem is, maybe some sort of priviledge persmissions for the tty's.. this is out of my depth, any suggestions are welcome.

Old 12-03-2007, 12:30 AM   #4
Registered: Apr 2006
Location: Trivandrum
Distribution: Debian Etch, RHEL 5.0
Posts: 30

Rep: Reputation: 15
try adding these lines to the [servers] section of the /etc/gdm/gdm.conf


this would bring up Xsessions on Ctrl+Alt+F7 , Ctrl+Alt+F8 and Ctrl+Alt+F9

Old 12-04-2007, 06:13 AM   #5
LQ Newbie
Registered: May 2006
Posts: 18

Original Poster
Rep: Reputation: 0
hi fatal_err0r,

in my /etc/gdm dir i dont have a gdm.conf ... any suggestions?

Old 12-04-2007, 09:42 AM   #6
Registered: Apr 2006
Location: Trivandrum
Distribution: Debian Etch, RHEL 5.0
Posts: 30

Rep: Reputation: 15
try /etc/gdm/custom.conf

search for files which has [servers] section in it..
in most distros, it will be either gdm.conf or custom.conf


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Autologins; Multiple Users; Multiple Sessions mrclisdue Linux - Desktop 1 09-26-2007 05:50 AM
FC6 Multiple Simultaneous VNC Sessions mpride Fedora 7 01-05-2007 06:10 AM
Multiple Sessions? ttague Linux - Newbie 4 01-02-2005 10:00 AM
Multiple X sessions tw001_tw Slackware 9 05-31-2004 12:35 PM
Multiple X sessions gluon Linux - General 1 09-29-2001 10:20 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration