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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
10-20-2004, 03:42 AM
|
#1
|
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038
Rep:
|
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)
|
|
|
10-20-2004, 03:48 AM
|
#2
|
Senior Member
Registered: Dec 2001
Location: 35.7480° N, 95.3690° W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070
Rep:
|
|
|
|
10-20-2004, 05:41 AM
|
#3
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637
Rep: 
|
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 06:17 AM.
|
|
|
10-20-2004, 09:44 AM
|
#4
|
Senior Member
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038
Original Poster
Rep:
|
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
|
|
|
10-20-2004, 09:59 AM
|
#5
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,637
Rep: 
|
I see. Misunderstanding, sorry  .
|
|
|
All times are GMT -5. The time now is 06:32 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|