LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-20-2004, 02:42 AM   #1
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
xdm and multiple logins?


hello, does anyone know of how xdm starts up the X server

what i want to do is write a script, so that when a user logs in (on terminal 7, default xdm screen) the script will start the users session on a different display, then revert the term 7 xdm to the login screen to allow another user to do the same (i only have 4 users that will use the X server)
 
Old 10-20-2004, 02:48 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
This may help you out

http://www.tldp.org/HOWTO/XDM-Xterm/
 
Old 10-20-2004, 04:41 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.3, MX-18, Mandrake
Posts: 4,491

Rep: Reputation: Disabled
As I understand it, XDM is started after the x-server is already up and running.

Possibly adding an ampersand to your bootup file which is calling XDM might help: "XDM &" to free your terminal ... dunno, test won't hurt (I hope ).

Last edited by JZL240I-U; 10-20-2004 at 05:17 AM.
 
Old 10-20-2004, 08:44 AM   #4
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Original Poster
Rep: Reputation: 51
JZL240I-U : actually the role of display managers (like xdm) is to allow logins into X after X has started ..

to put it into a time-line from start to finish

1)startup scripts call xdm (startup scripts run as root)
2) xdm (requiring the X server to display a login screen) starts the X server (as root)
3) xdm sets up the screen, calls whatever programs (from configuration scripts), and displays the login box
4) the users logs in, and X kills itself (or does it?) and restarts running as the users process
5) xdm runs the session scripts (usually XSession, which in my case i modified to scripts so every user has the same script ( /usr/share/.Xrc )
6) X fully takes over

what i want is to setup a script (either /usr/share/.Xrc , or some other script that gets called when a use logs in, but before they can do anything) to startup the server for that specific user on a predefined display (or terminate and move viewing to that display) then terminate allowing for xdm to restart on terminal 7 (ctrl alt f7) so users can just press the keys so they can log in with no hassle

if all else fails tho, i can just setup xdm to start 4 displays ... but i rather not, as i want it to spawn X on certain terminals as needed

darthtux : thanks ill look into that link and see if it can help
 
Old 10-20-2004, 08:59 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 18.3+19.3, MX-18, Mandrake
Posts: 4,491

Rep: Reputation: Disabled
I see. Misunderstanding, sorry .
 
  


Reply


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple logins from XP to Samba jbraum Linux - Networking 2 10-28-2005 10:35 AM
multiple simultaneous logins phonecian Linux - Newbie 6 06-05-2005 09:40 AM
multiple logins edgjerp Mandriva 8 02-24-2005 10:10 AM
why multiple desktops/logins? DJOtaku Linux - General 2 02-04-2005 12:48 AM
Multiple Logins jbraum Mandriva 1 01-21-2004 06:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:33 PM.

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