SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am running Slackware Linux 11 with kernel 2.6.18 and KDE 3.5.4.
I have the following newbie question:
What do I need to do, so that I start more that one X sessions on the same machine, for example under different users?
I read some literature on the problem, but probably I misunderstand something. They say that e.g. if I am in a X session with kde, and I need to login as a different user and start his X kde session without stopping my current session, I have to:
2. login as the other user
3. type startx -- :1 v8
However. this does not seem to work, something goes wrong. In addition then I cannot return to my X session, although I type Alt+F7. The screen just goes blank and nothing seems to work.
I would be thankful to any suggestions or any literature on the issue recommended
I am running in runlevel 3, not in 4. so I do not have a switch user option. I wish those thing that I read there worked on my machine. Besides, once I am in kde up and running and I type Ctrl+Alt+F2, I can no more return to my kde session. typing Alt+F7 makes a blank screen and all I can do is ctr+alt+del Why?
Ok, I have put myself into the same config as you (Slack11, KDE, runlevel 3).
1- I login as user "pu" on tty1 and type "startx" -> X session :0 opens on tty7. You are right, you don't have a switch user option then.
2- I go to tty2 using CTRL-ALT-F2. I login as user "sy". "startx" complains about session :0 already being in use, so I type "startx -- :1" (no v8 suffix as in your first post). X opens session :1 on tty8.
3- At this point, I can switch to tty1 with CTRL-ALT-F1, to tty2 with CTRL-ALT-F2, to tty7 i.e. X session :0 i.e. user "pu" with CTRL-ALT-F7, and to tty8 i.e. X session :1 i.e. user "sy" with CTRL-ALT-F8.
So basically it works. I can advise you to always use the CTRL-ALT-Fx combination because it always works. Apart from that, you need to post more information - error messages, what do you do exactly, what happens.
Also, if your machine doesn't respond anymore, if you have another machine try connecting to the first one using ssh and look what's happening.
Thank you very much for your responsiveness. The problem with startx has been the nolisten -tcp server argument that was passed by default to the startx script. I had long ago added that option to the startx script to mute some messages, but now I saw what it actually serves for . So I removed the "nolisten tcp" from startx, and now the command "startx -- :1" works. So I login as "marto" in tty1, issue "startx", kde loads ok, then I do ctrl+alt+f2, login as "user", issue "startx -- :1", kde starts successfully. So far so good. The next step is return to marto's kde by typing ctrl+alt+f7. Alas! Again the infamous blank screen . Typing neither alt+f3, or alt+"f"whatsoever works, nor ctrl+alt+f8, or ctrl+alt+"f"whatsoever. The only command that works in that blank screen is ctrl+alt+del. This is the only way to get rid of the blank screen. Do you have any idea?
The only modifications to the startx script after the fresh Slackware 11.0 installation I have made is the one I mentioned above-I added "nolisten tcp" to the serverargs option, and now I have deleted it. But why can I not switch between X sessions by means of ctrl+alt+fx?
Thank you very much for your attention.
Which keyboard layout do you have?
Check which keyboard layout is specified in /etc/X11/xorg.conf: XkbModel, XkbLayout, XkbVariant. Maybe it doesn't match so your keyboard combinations are not properly interpreted by X.
This is an excerpt from my xorg.conf:
Option "XkbModel" "pc101"
Option "XkbLayout" "us"
hmmm. My locale is set to en_GB. The keyboard layout I use is also GB... Probably this is the problem? What do I have to do? I would like to preserve my keyboard layout and locale settings to GB, however. Will just replacing the "us" option above with "gb" work?
So I tried everything I could figure out, but in vain. I changed all the locale settings back to en_US, set the keyboard layout to us, modified xorg.conf for pc101,pc104 and pc105, and xkblayout="us", but I always got the ubiquitous blank screen where the only working command is ctrl+alt+del.
I as well tried all these combinations with xkblayout="gb" in xorg.conf, and the locale in en_GB,and the kde keyboard layout in gb, but all the same. I really have no idea what to try further
However, I notice that when I start kde, it says:"initialising system services" even when the locale and the default keyboard layout is set to en_US. As I can remember it used to say "initializing system services" before I had for the first time moved to GB. Probably there is something else that has to be set to us? I am really at a loss now
Is it possible that the keyboard kombinations are different on my machine for some reason or other? Does xorg.conf need some special settings to enable this feature? I have generated the xorg.conf with xorgsetup.