Re: [gentoo-user] Running multiple X logins
Well, it doesn't work! If I put anything but this in Xservers it locks up after booting. I put /etc/X11/xdm/xdm-config back to original. :0 local /usr/X11R6/bin/X :0 vt7 If I add another line with :1 ... :1 vt8 it hangs. What's strange is if I add the extra line and then restart X (ctl-alt-bspc) it works - just doesn't on boot. Looking through info on the web and the forums I should be able to do this. However, on the forums I see lines like :0 local reserve /usr/X11R6/bin/X :0 vt7 but unfortunately, most of the posts are trying to make this work on KDE or Gnome. Do they use a diffrent syntax? Nothing on the web or man pages indicates anything about reserve. Any suggestions? On Sat, 26 Feb 2005, Brett I. Holcomb wrote: Well, I got it kind of working and did so by the doing the following. I say sort of because it worked fine before reboot. I set up the files as shown below and could to a ctl-alt-bkspc and I had three terminals. I played with this for a while and it always worked. However, when I rebooted the system hung and would not respond to the keyboard or mouse and it had a blank screen with the framebuffer image. It looks like it tried to start X and failed. At this point I'm not sure how to make it work. I know Caldera 2.4 could do it but this just isn't working and I've exhausted all I know. If anyone has any ideas I'd be greatful! -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running multiple X logins
On Sat, 26 Feb 2005 08:17:21 -0500, Bill Roberts <[EMAIL PROTECTED]> wrote: > On 16:09 Sat 26 Feb , Ric de France wrote: > > Brett, > > > > On Fri, 25 Feb 2005 21:44:44 -0500 (EST), Brett I. Holcomb > > <[EMAIL PROTECTED]> wrote: > > > I start up using xdm and get an login window on vt7 from which I can > > > login. However, if I got to another console (say vt5) and run startx I am > > > told that display 0 is in use - well of course it is! I have > > > /etc/X11/xdm/Xservers setup as this: > > > > > > :0 local /usr/X11R6/bin/X > > > :1 local /usr/X11R6/bin/X > > > > > > I've checked the bug about pam_env.conf messing up things so I commented > > > out the display and Xauth lines but still does not work. > > > > > > What is the proper way to stop and restart X when running in this mode? I > > > tried /etc/init.d/xdm restart and that simply gives me a grey X screen > > > with a cursor instead of a login box. > > > > I don't know if this will help, but from the new virtual terminal line, try: > > > > $ startx -- :1 & > > > > The & is optional. That should start up another X display. You can > > then swap between them using Ctrl+Alt+Fx buttons... > > I tried: > > "startxfce4 -- :1 &" > > and it works as well. Cool! > I tried this on one of my audio machines. It works nicely. Seems to me that this is almost good enough to be useful in a multiuser environment. Would it be possibly to do something like this: 1) Alt-Ctrl-Del takes you to a gdm login screen 2) You enter your name and password. The system figures out what display to give you and starts your X session. 3) Alt-Ctrl-F1-6 still take you to consoles from any user account. 4) If you are in any console or in any display other than your own and you hit Alt-Ctrl-F6-8 then the system requires you to give a password appropriate for the user account that has that display. 5) No user can shutdown or reboot unless there are no other users logged in. I don't know if all of that is possible, but it would be cool if it could be set up. Cheers, Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running multiple X logins
On 16:09 Sat 26 Feb , Ric de France wrote: > Brett, > > On Fri, 25 Feb 2005 21:44:44 -0500 (EST), Brett I. Holcomb > <[EMAIL PROTECTED]> wrote: > > I start up using xdm and get an login window on vt7 from which I can > > login. However, if I got to another console (say vt5) and run startx I am > > told that display 0 is in use - well of course it is! I have > > /etc/X11/xdm/Xservers setup as this: > > > > :0 local /usr/X11R6/bin/X > > :1 local /usr/X11R6/bin/X > > > > I've checked the bug about pam_env.conf messing up things so I commented > > out the display and Xauth lines but still does not work. > > > > What is the proper way to stop and restart X when running in this mode? I > > tried /etc/init.d/xdm restart and that simply gives me a grey X screen > > with a cursor instead of a login box. > > I don't know if this will help, but from the new virtual terminal line, try: > > $ startx -- :1 & > > The & is optional. That should start up another X display. You can > then swap between them using Ctrl+Alt+Fx buttons... I tried: "startxfce4 -- :1 &" and it works as well. Cool! Bill Roberts -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running multiple X logins
Well, I got it kind of working and did so by the doing the following. I say sort of because it worked fine before reboot. I set up the files as shown below and could to a ctl-alt-bkspc and I had three terminals. I played with this for a while and it always worked. However, when I rebooted the system hung and would not respond to the keyboard or mouse and it had a blank screen with the framebuffer image. It looks like it tried to start X and failed. At this point I'm not sure how to make it work. I know Caldera 2.4 could do it but this just isn't working and I've exhausted all I know. If anyone has any ideas I'd be greatful! 1. Create symlinks to /usr/X11R6/bin/Xorg for X0, X1, x2. 2. Modify /etc/X11/xdm/Xservers :0 local /usr/X11R6/bin/X0 :0 :1 local /usr/X11R6/bin/X1 :1 :2 local /usr/X11R6/bin/X2 :2 3. I then modified /etc/X11/xdm/xdm-config to create two more entries for each server. ! The following three resources set up display :0 as the console. DisplayManager._0.setup:/etc/X11/xdm/Xsetup_0 DisplayManager._0.startup: /etc/X11/xdm/GiveConsole_0 DisplayManager._0.reset:/etc/X11/xdm/TakeConsole_0 ! The following three resources set up display :1 as the console. DisplayManager._1.setup:/etc/X11/xdm/Xsetup_1 DisplayManager._1.startup: /etc/X11/xdm/GiveConsole_1 DisplayManager._1.reset:/etc/X11/xdm/TakeConsole_1 ! The following three resources set up display :2 as the console. DisplayManager._2.setup:/etc/X11/xdm/Xsetup_2 DisplayManager._1.startup: /etc/X11/xdm/GiveConsole_2 DisplayManager._1.reset:/etc/X11/xdm/TakeConsole_2 4. Copied the _x files from the main one. For example cp TakeConsole TakeConsole_1 On Sat, 26 Feb 2005, Brett I. Holcomb wrote: Some more research shows multiple ways to set up the Xserver lines Gentoo: :0 local /usr/X11R6/bin/X Others: :0 local /usr/X11R6/bin/X vt7 More: :0 local /usr/X11R6/bin/X vt7 :0 and again :0 local /usr/X11R6/bin/X :0 -- Brett I. Holcomb [EMAIL PROTECTED] Registered Linux User #188143 Remove R777 to email -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running multiple X logins
Some more research shows multiple ways to set up the Xserver lines Gentoo: :0 local /usr/X11R6/bin/X Others: :0 local /usr/X11R6/bin/X vt7 More: :0 local /usr/X11R6/bin/X vt7 :0 and again :0 local /usr/X11R6/bin/X :0 What is correct. Supposedly all I have to do is set them up that way. However, it doesn't work and I notice this in Xorg.0.log. Perhaps a permissions problem - or maybe Pam involved! Any ideas. AUDIT: Sat Feb 26 17:02:18 2005: 9224 X: client 9 rejected from local host Auth name: MIT-MAGIC-COOKIE-1 ID: -1 AUDIT: Sat Feb 26 17:02:33 2005: 9224 X: client 9 rejected from local host Auth name: MIT-MAGIC-COOKIE-1 ID: -1 AUDIT: Sat Feb 26 17:02:48 2005: 9224 X: client 9 rejected from local host Auth name: MIT-MAGIC-COOKIE-1 ID: -1 On Fri, 25 Feb 2005, Brett I. Holcomb wrote: If I leave the :1 line uncommented and restart the machine I get the grey screen with no login box. I comment the line, then ctl-bkspc and I get a login box. Also, my Xserver file has no space between the : and the number 0 or 1. On Fri, 25 Feb 2005, Brett I. Holcomb wrote: I start up using xdm and get an login window on vt7 from which I can login. However, if I got to another console (say vt5) and run startx I am told that display 0 is in use - well of course it is! I have /etc/X11/xdm/Xservers setup as this: : 0 local /usr/X11R6/bin/X : 1 local /usr/X11R6/bin/X I've checked the bug about pam_env.conf messing up things so I commented out the display and Xauth lines but still does not work. What is the proper way to stop and restart X when running in this mode? I tried /etc/init.d/xdm restart and that simply gives me a grey X screen with a cursor instead of a login box. Thanks. -- Brett I. Holcomb [EMAIL PROTECTED] Registered Linux User #188143 Remove R777 to email -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running multiple X logins
Thanks. anyway. It gave me some ideas. I'm trying to remember from years ago . On Sat, 26 Feb 2005, Peter Ruskin wrote: On Saturday 26 February 2005 18:49, Brett I. Holcomb wrote: Thank you. I will try this. I notice you have a name after "local" and and have the dispaly again after the /usr/bin/X. On Sat, 26 Feb 2005, Peter Ruskin wrote: On Saturday 26 February 2005 02:44, Brett I. Holcomb wrote: I have /etc/X11/xdm/Xservers setup as this: :0 local /usr/X11R6/bin/X :1 local /usr/X11R6/bin/X I use kdm and my /etc/X11/xdm/Xservers (or /usr/kde/3.3/share/config/kdm/Xservers) looks like this: xsessions from F7 to F10 # :0 [EMAIL PROTECTED] /usr/bin/X :0 -dpi 100 -nolisten tcp vt7 :1 local reserve /usr/bin/X :1 -dpi 100 -nolisten tcp vt8 :2 local reserve /usr/bin/X :2 -dpi 100 -nolisten tcp vt9 :3 local reserve /usr/bin/X :3 -dpi 100 -nolisten tcp vt10 I may have given you a bum steer here Brett. This setup is for KDE, it allows you to start up to three other KDM sessions by selecting "Start New Session..." from the K menu. I guess it wouldn't work from your xfce. -- Brett I. Holcomb [EMAIL PROTECTED] Registered Linux User #188143 Remove R777 to email
Re: [gentoo-user] Running multiple X logins
I notice that in /etc/X11/xdm there is an Xsetup_0 file which starts display 0 evidently. Do I have to modify /etc/X11/xdm/xdm-config to include startup entries for displays 1 and 2? On Sat, 26 Feb 2005, Peter Ruskin wrote: On Saturday 26 February 2005 02:44, Brett I. Holcomb wrote: I have /etc/X11/xdm/Xservers setup as this: :0 local /usr/X11R6/bin/X :1 local /usr/X11R6/bin/X I use kdm and my /etc/X11/xdm/Xservers (or /usr/kde/3.3/share/config/kdm/Xservers) looks like this: xsessions from F7 to F10 # :0 [EMAIL PROTECTED]/usr/bin/X :0 -dpi 100 -nolisten tcp vt7 :1 local reserve /usr/bin/X :1 -dpi 100 -nolisten tcp vt8 :2 local reserve /usr/bin/X :2 -dpi 100 -nolisten tcp vt9 :3 local reserve /usr/bin/X :3 -dpi 100 -nolisten tcp vt10 -- Brett I. Holcomb [EMAIL PROTECTED] Registered Linux User #188143 Remove R777 to email -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running multiple X logins
Thank you. I will try this. I notice you have a name after "local" and and have the dispaly again after the /usr/bin/X. On Sat, 26 Feb 2005, Peter Ruskin wrote: On Saturday 26 February 2005 02:44, Brett I. Holcomb wrote: I have /etc/X11/xdm/Xservers setup as this: :0 local /usr/X11R6/bin/X :1 local /usr/X11R6/bin/X I use kdm and my /etc/X11/xdm/Xservers (or /usr/kde/3.3/share/config/kdm/Xservers) looks like this: xsessions from F7 to F10 # :0 [EMAIL PROTECTED]/usr/bin/X :0 -dpi 100 -nolisten tcp vt7 :1 local reserve /usr/bin/X :1 -dpi 100 -nolisten tcp vt8 :2 local reserve /usr/bin/X :2 -dpi 100 -nolisten tcp vt9 :3 local reserve /usr/bin/X :3 -dpi 100 -nolisten tcp vt10 -- Brett I. Holcomb [EMAIL PROTECTED] Registered Linux User #188143 Remove R777 to email -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running multiple X logins
Doing the startx -- :1 works. However, I shouldn't have to do that. On other distros I've set xdm up so it creates a couple of servers and if I do type startx it figures out where to put the display if display 0 is in use. On Sat, 26 Feb 2005, Ric de France wrote: Brett, On Fri, 25 Feb 2005 21:44:44 -0500 (EST), Brett I. Holcomb <[EMAIL PROTECTED]> wrote: I start up using xdm and get an login window on vt7 from which I can tried /etc/init.d/xdm restart and that simply gives me a grey X screen with a cursor instead of a login box. I don't know if this will help, but from the new virtual terminal line, try: $ startx -- :1 & The & is optional. That should start up another X display. You can then swap between them using Ctrl+Alt+Fx buttons... HTH, ...Ric -- Brett I. Holcomb [EMAIL PROTECTED] Registered Linux User #188143 Remove R777 to email -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running multiple X logins
Brett, On Fri, 25 Feb 2005 21:44:44 -0500 (EST), Brett I. Holcomb <[EMAIL PROTECTED]> wrote: > I start up using xdm and get an login window on vt7 from which I can > login. However, if I got to another console (say vt5) and run startx I am > told that display 0 is in use - well of course it is! I have > /etc/X11/xdm/Xservers setup as this: > > :0 local /usr/X11R6/bin/X > :1 local /usr/X11R6/bin/X > > I've checked the bug about pam_env.conf messing up things so I commented > out the display and Xauth lines but still does not work. > > What is the proper way to stop and restart X when running in this mode? I > tried /etc/init.d/xdm restart and that simply gives me a grey X screen > with a cursor instead of a login box. I don't know if this will help, but from the new virtual terminal line, try: $ startx -- :1 & The & is optional. That should start up another X display. You can then swap between them using Ctrl+Alt+Fx buttons... HTH, ...Ric -- Ric de France Ph: +61412945554 (international) or 0412945554 (Australia) == Do you, uh... Gentoo? Gent-hooo!! == -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running multiple X logins
Yes, there should be an easier way. I run XFCE4, not KDE. Supposedly - and this has worked on other systems - if I set the XServers file up any new requests will go to the next available window. Thus startx will use display :1 when :0 is already in use and do it automatically. In fact on one system I had it start two or three xdm logins. I think there is something wrong on my system because if I uncomment the :1 line all I get is X with no login window. On Fri, 25 Feb 2005, Perral1 wrote: Brett I. Holcomb wrote: If I leave the :1 line uncommented and restart the machine I get the grey screen with no login box. I comment the line, then ctl-bkspc and I get a login box. > > 'X :1' will start another X session. However, nothing is running. No window manager, no xterm, etc. In order to run programs there you have to 'export DISPLAY=:1.0' in the console and then ex to start kde run startkde. I've had some weird results though. There's probably a much easier way to do it, but I know that works. -- gentoo-user@gentoo.org mailing list -- Brett I. Holcomb [EMAIL PROTECTED] Registered Linux User #188143 Remove R777 to email -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running multiple X logins
Brett I. Holcomb wrote: If I leave the :1 line uncommented and restart the machine I get the grey screen with no login box. I comment the line, then ctl-bkspc and I get a login box. Also, my Xserver file has no space between the : and the number 0 or 1. On Fri, 25 Feb 2005, Brett I. Holcomb wrote: I start up using xdm and get an login window on vt7 from which I can login. However, if I got to another console (say vt5) and run startx I am told that display 0 is in use - well of course it is! I have /etc/X11/xdm/Xservers setup as this: :0 local /usr/X11R6/bin/X :1 local /usr/X11R6/bin/X I've checked the bug about pam_env.conf messing up things so I commented out the display and Xauth lines but still does not work. What is the proper way to stop and restart X when running in this mode? I tried /etc/init.d/xdm restart and that simply gives me a grey X screen with a cursor instead of a login box. Thanks. 'X :1' will start another X session. However, nothing is running. No window manager, no xterm, etc. In order to run programs there you have to 'export DISPLAY=:1.0' in the console and then ex to start kde run startkde. I've had some weird results though. There's probably a much easier way to do it, but I know that works. -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] Running multiple X logins
If I leave the :1 line uncommented and restart the machine I get the grey screen with no login box. I comment the line, then ctl-bkspc and I get a login box. Also, my Xserver file has no space between the : and the number 0 or 1. On Fri, 25 Feb 2005, Brett I. Holcomb wrote: I start up using xdm and get an login window on vt7 from which I can login. However, if I got to another console (say vt5) and run startx I am told that display 0 is in use - well of course it is! I have /etc/X11/xdm/Xservers setup as this: :0 local /usr/X11R6/bin/X :1 local /usr/X11R6/bin/X I've checked the bug about pam_env.conf messing up things so I commented out the display and Xauth lines but still does not work. What is the proper way to stop and restart X when running in this mode? I tried /etc/init.d/xdm restart and that simply gives me a grey X screen with a cursor instead of a login box. Thanks. -- Brett I. Holcomb [EMAIL PROTECTED] Registered Linux User #188143 Remove R777 to email -- gentoo-user@gentoo.org mailing list