LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (https://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   fc6 multiple x sessions (https://www.linuxquestions.org/questions/linux-desktop-74/fc6-multiple-x-sessions-602968/)

.:neogeo:. 11-28-2007 06:42 AM

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.

geo.

mrclisdue 11-28-2007 01:11 PM

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

Code:

http://www.linuxquestions.org/questions/linux-desktop-74/multiple-autologins-multiple-users-multiple-sessions-587056/
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:

Code:

# .bash_profile

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

# User specific environment and startup programs
if [ $(tty) == /dev/tty4 ]; then
PATH=$PATH:$HOME/bin
export PATH
startx -- :1 &
fi

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.

cheers,

.:neogeo:. 12-01-2007 08:45 PM

hey mrclisdue,

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

/etc/inittab

Code:

3:2345:respawn:/sbin/mingetty --autologin username1 tty3
4:2345:respawn:/sbin/mingetty --autologin username2 tty4

and for each users .bash_profile usename1

Code:

startx -- :1 &
and username2
Code:

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.

Code:

No volume Control Gstreamer plugins and/or devices found.
also when running mplayer...
Code:

[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...
Code:

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.

geo.

fatal_err0r 12-03-2007 12:30 AM

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

0=Standard
1=Standard
2=Standard

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

~HTH

.:neogeo:. 12-04-2007 06:13 AM

hi fatal_err0r,

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

geo.

fatal_err0r 12-04-2007 09:42 AM

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


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