Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.