SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Hi... I'm using Slackware 12.0, and I would like to open GUI applications as multiple, different users, and while running on USERA, I can't open GUI applications on USERB such as :
Code:
su USERB -c "firefox"
No protocol specified
(firefox-bin:26512): Gtk-WARNING **: cannot open display:
Also, I cannot switch between X sessions without logging out from one session, switching to other user, and starting x with startx command.
Also, I cannot switch between X sessions without logging out from one session, switching to other user, and starting x with startx command.
Is there a way to make my life easier?
Thanks!
Here's what I do, and pardon me if this seems very basic.
1) I boot to runlevel 3, the console (the default Slackware behavior). So I start my X Windows session by typing "startx". Then X starts in a virtual terminal "bound" to the F7 key.
2) So then (for example) my wife wants to check her e-mail, all I do is hit CTRL-ALT-F2 to go to the next open console terminal where my wife logs in and starts X Windows by typing "startx -- :1". Which opens her X server on a virtual terminal "bound" to the F8 key.
3) Then she and I can switch between our sessions by hitting CTRL-ALT-F7 for my session or CTRL-ALT-F8 for hers. We're both logged in the whole time.
Here's what I do, and pardon me if this seems very basic.
1) I boot to runlevel 3, the console (the default Slackware behavior). So I start my X Windows session by typing "startx". Then X starts in a virtual terminal "bound" to the F7 key.
2) So then (for example) my wife wants to check her e-mail, all I do is hit CTRL-ALT-F2 to go to the next open console terminal where my wife logs in and starts X Windows by typing "startx -- :1". Which opens her X server on a virtual terminal "bound" to the F8 key.
3) Then she and I can switch between our sessions by hitting CTRL-ALT-F7 for my session or CTRL-ALT-F8 for hers. We're both logged in the whole time.
I did it, I used terminal 2, could go back to X :0 with ALT+CTRL+F7 but when I enterted terminal 2 and written startx -- :1 it got me a black screen which I couldn't escape out of it (CTRL + C, CTRL + BREAK, CTRL + ALT + f7, f1, CTRL+ALT+DEL+ ...... any combination I know of didn't get me out of this black screen including the CTRL + ALT + BACKSPACE.)
So I had to do reboot, manually, twice.
Is there something you suggesting?
I did it, I used terminal 2, could go back to X :0 with ALT+CTRL+F7 but when I enterted terminal 2 and written startx -- :1 it got me a black screen which I couldn't escape out of it (CTRL + C, CTRL + BREAK, CTRL + ALT + f7, f1, CTRL+ALT+DEL+ ...... any combination I know of didn't get me out of this black screen including the CTRL + ALT + BACKSPACE.)
So I had to do reboot, manually, twice.
Is there something you suggesting?
Wow. I'm very sorry this didn't work for you, and I'm not sure why that would happen.
Did you get a chance to read the link that I placed in my post. Maybe there is information in it that would help you.
I'm at work now, so I won't be able to check things out on my machine for another several hours. Maybe between now and then somebody else can help.
What surprises me is that you weren't able to switch to another terminal when you got the blank screen.
I haven't seen you posting here for a while -- maybe I've just missed your posts.
FWIW, I have no trouble when I switch to the console first, which is why I typed the instructions that way. But, I guess depending on how the original poster has things set up, you're solution might work better.
I just wish I knew more about what configuration options or drivers, or ... whatever... would allow this to work for me, but not somebody else.
>>> I haven't seen you posting here for a while -- maybe I've just missed your posts.
My MB died earlier in the summer, so while awaiting new parts I wasn't on very much at all. Spent more time out-doors but now I have a new machine (new guts anyway) and I'M BaaaAAAAaack!
>>> FWIW, I have no trouble when I switch to the console first, which is why I typed the instructions that way. But, I guess depending on how the original poster has things set up, you're solution might work better. I just wish I knew more about what configuration options or drivers, or ... whatever... would allow this to work for me, but not somebody else.
Indeed, though it probably wouldn't take very much in some config file somewhere to cause it to not work or work differently for some people. I can't explain it either. Let's see what the OP has to say when he next posts
Would you post the section of your /etc/inittab file, that looks like this:
# Standard console login getties in multiuser mode: c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:12345:respawn:/sbin/agetty 38400 tty2 linux
c3:12345:respawn:/sbin/agetty 38400 tty3 linux
c4:12345:respawn:/sbin/agetty 38400 tty4 linux
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
c6:1235:respawn:/sbin/agetty 38400 tty6 linux
Maybe (this is a semi-educated guess) your setup doesn't have another TTY available for X besides TTY7.
Last edited by GrapefruiTgirl; 09-29-2007 at 09:39 AM.
Maybe (this is a semi-educated guess) your setup doesn't have another TTY available for X besides TTY7.
Maybe. How can I check that?
about the file :
Quote:
c1:1235:respawn:/sbin/agetty 38400 tty1 linux
c2:1235:respawn:/sbin/agetty 38400 tty2 linux
c3:1235:respawn:/sbin/agetty 38400 tty3 linux
c4:1235:respawn:/sbin/agetty 38400 tty4 linux
c5:1235:respawn:/sbin/agetty 38400 tty5 linux
c6:12345:respawn:/sbin/agetty 38400 tty6 linux
I don't really know HOW to check it, other than the half-assed way I am perusing here..
This may not work, infact it may make absolutely no difference at all, but TRY changing one of your c1-c5 lines so that it matches the c6 line. Specifically, adding the 4 to the 1235 and see if that makes any difference at all.
This is quite uncertain (it won't break anything) but I'm basing it on some recent changes I made in the same manner, when I set up my second serverlayout for X to start my second session and use my TV as a screen.
I just tried an experiment on my machine, which ***may*** have proved my idea, but we won't know till you try this.
If it makes no difference, you may as well undo the change, but if it works, well.. Happy day
NOTE: After the change, I suspect you'll need to reboot to make it officially take effect.
I don't really know HOW to check it, other than the half-assed way I am perusing here..
This may not work, infact it may make absolutely no difference at all, but TRY changing one of your c1-c5 lines so that it matches the c6 line. Specifically, adding the 4 to the 1235 and see if that makes any difference at all.
This is quite uncertain (it won't break anything) but I'm basing it on some recent changes I made in the same manner, when I set up my second serverlayout for X to start my second session and use my TV as a screen.
I just tried an experiment on my machine, which ***may*** have proved my idea, but we won't know till you try this.
If it makes no difference, you may as well undo the change, but if it works, well.. Happy day
NOTE: After the change, I suspect you'll need to reboot to make it officially take effect.
I didn't understand what actually to change, to what...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.