Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-17-2001, 10:42 AM   #1
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Rep: Reputation: 15
Multiple X terminals?

Something I have never thought of (for some reason) is: Can there be more than one user logged into XWindow at the same workstation at the same time?

The reason I ask is that I'd like to log myself AND my wife into my linbox, then make it easy to have her switch between her and my X desktop. T

he main reason for this is that Evolution doesn't support multiple Identities (as Outlook Express does), and my wife doesn't want to have to learn how to log out, then log back in then startx etc. If it was as easy as hitting Alt F7 or something that would be great.

Is this possible?
Old 11-17-2001, 02:34 PM   #2
Senior Member
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Instead of alt+F1-6 for extra console terms, in X it's ctrl-alt-F1-6 for extra X sessions.
Old 11-17-2001, 02:55 PM   #3
LQ Newbie
Registered: Nov 2001
Location: Basel, Switzerland
Distribution: SuSE Linux 8.1
Posts: 9

Rep: Reputation: 0
multiple X-sessions?

Where does this work?
In the versions of Linux I know, ctrl-alt-F1-6 activates console terms (that is quite useful, too), but I don't know of any possibility to activate multiple X sessions simultaneously.
Old 11-17-2001, 03:06 PM   #4
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Original Poster
Rep: Reputation: 15

Which addresses this (although it isn't *quite* clear whether you use Alt -Fx for X window switching or not):

There are normally 6 virtual terminals in Linux, available by using Alt-F1 through Alt-F6. Each one can be logged in as a different user. There are normally 6 terminals available in X also, F7 through F12. The first X session will be on F7 (if on a local terminal), the second on F8, and so forth. If an X session is started from F1 and you also have an active session on F2, you can type Ctrl-Alt-F2 to go from the X session to the virtual console on F2. Also to get back to your X session, you can type Ctrl-Alt-F7. This example assumes that your terminals are setup in the standard manner with 6 virtual terminals that spawn the getty program available. You can check your setup by checking your /etc/inittab file. You should have lines like the following in your file.

1:2345:respawn:/sbin/mingetty tty1
2:2345:respawn:/sbin/mingetty tty2
3:2345:respawn:/sbin/mingetty tty3
4:2345:respawn:/sbin/mingetty tty4
5:2345:respawn:/sbin/mingetty tty5
6:2345:respawn:/sbin/mingetty tty6

See the section on init for further information on this file.

My question is this: Would I have to login as user A, startx, then switch to another virtual login prompt, login as user B and startx before I could switch between X terminals?

I guess this is a newbie question, but seeing as it's here now I'm not going to multi-post....

Could someone clarify the steps to take to be able to do this, please?

Thanks in advance.
Old 11-17-2001, 03:34 PM   #5
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977Reputation: 1977
yeah X just adds a CTRL to the ALT + F? thing... probably to try to stop people doing that by mistake as it sets it apart from standard x hotkeys which generally operate at a different kinda level.

i'm farly sure you can't have two x servers running, as they lock various resources which won't be shared.

not sure about any otehr easy solutions, but what you can do is to set up ssh and the log into the same machine over ssh using X forwarding. that does slow it down a bit tho, the delays in ssh logging in.. once you're logged in you can then run any app as whoever.

if that works, you could easily automate it to log in using RSA to save using a password, and run whatever X progams automatically in a script...

probably a better way than that tho
Old 11-18-2001, 03:11 AM   #6
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 358

Rep: Reputation: 97
Use ctrl-alt-F2 to get to a new console login. Log in and type "startx -- :1" and it will start X in a new session. You can now go back to you old X session(:0) by using ctrl-alt-F7 and your newly created session by using ctrl-alt-F8. FYI, the console/X corresponding function keys are F1==F7, F2==F8, F3==F9 etc.

You can start a third X session by using ctrl-alt-F3, logging in and typing "startx -- :2". This session will be on F3/F9. All that is assuming you haven't changed any of the mingetty settings in /etc/inittab .

Old 11-18-2001, 10:27 AM   #7
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Original Poster
Rep: Reputation: 15
That's as clear a set of instructions as anyone could hope for.

Old 11-19-2001, 10:21 AM   #8
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
A word of caution though:

I have found that running startx -- :2 will work fine as long as you don't intend switching back and forth from your x sessions. Using kdm or gdm works a treat though. Just do the same as mentioned above (but type kdm instead).
Old 11-19-2001, 02:37 PM   #9
Registered: Apr 2001
Location: Cambridge, England
Distribution: Slackware 10, Fedora Core 3, Mac OS X
Posts: 617

Rep: Reputation: 30
im not sure if this will work with evolution but i do know that the su command (that everyone uses to become root) can be used to log you in as another user. type

su <your_wife's_login_name>

then it will ask you for the password, enter it and your laughing!

this will work in Xterms (or eterm. whatever you use)



Last edited by webtoe; 11-19-2001 at 02:38 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple terminals one computer Fice Linux - Hardware 2 05-11-2005 08:13 PM
Multiple NICs, virtual terminals? Ned2 Linux - Networking 6 02-27-2005 04:44 PM
script + multiple terminals jnusa Linux - Software 4 12-06-2004 07:11 AM
Terminals - spying on local terminals with ssh BeatRyder Linux - Software 5 10-21-2004 01:47 AM
Adding Multiple Terminals to Linux thesam Linux - Networking 3 12-31-2001 05:15 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:48 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration