LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-17-2001, 10:42 AM   #1
zhenwu
Member
 
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
taz.devil
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
Jadrano
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
zhenwu
Member
 
Registered: Jul 2001
Location: Taiwan (ex-Victoria BC)
Distribution: RH 9.0
Posts: 126

Original Poster
Rep: Reputation: 15
From http://www.comptechdoc.org/os/linux/...ide/index.html

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
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
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
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
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 .

Speck
 
Old 11-18-2001, 10:27 AM   #7
zhenwu
Member
 
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.

Thanks!
 
Old 11-19-2001, 10:21 AM   #8
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
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
webtoe
Member
 
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



Code:
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)

HTH



Alex

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


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:46 AM.

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