LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-06-2004, 10:24 PM   #1
Bowman
LQ Newbie
 
Registered: Oct 2004
Location: Yosemite National Park, California
Distribution: Slackware 10
Posts: 12

Rep: Reputation: 0
Session menu in xdm login screen?


[First of all, thank you to everyone who helped me out several weeks ago when I was just getting started with Linux. I haven't posted in a while because I learned everything I needed from lurking. Thank you everyone.]

Ok, here's the deal. I have been playing around with the graphical login. KDM and GDM seem very slow and have given me hell, so I want to try using XDM. XDM seems like it should be rather configurable. If I can configure it, that is. I read the man pages, and they went over my head, but I did get a nice tour of the config files etc. I tried Googling for help, but the little that is out there is either outdated or just plain unhelpful.

So my first question is does anyone even use XDM?

My real question is can anyone point me in the right direction to configure XDM? All I want is to spiff up the login screen and add a session menu and shutdown button. (I suppose I may have to learn Perl. I've been avoiding that. . .)
 
Old 12-07-2004, 02:53 AM   #2
Waldi
Member
 
Registered: Apr 2003
Location: Warsaw, Poland
Distribution: Slackware current
Posts: 133

Rep: Reputation: 15
KDM and GDM slow??? Never noticed that.....
XDM is outdated and probably not maintained anymore, lack of shutdown button and session management makes it completely useless. I never found a way to add this functionality, probably it is impossible, but maybe I am wrong.
In my opinion it is not worth to bother with such a thing, there are so many other interesting tasks to learn...
 
Old 12-07-2004, 05:10 AM   #3
Cedrik
Senior Member
 
Registered: Jul 2004
Distribution: Slackware
Posts: 2,140

Rep: Reputation: 244Reputation: 244Reputation: 244
You can configure xdm apparence by tweaking /etc/X11/xdm/Xresources file
 
Old 12-07-2004, 07:29 AM   #4
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
Making an xdm shutdown/reboot/sleep etc buttons is quite simple really. You can use xmessage or something similar.

A very simple example:

#!/bin/bash

xmessage "" -buttons " Shutdown , Reboot " -geometry 228x36-10-10 -font '-*-bitstream vera sans-*-r-*-*-18-*-*-*-*-*-*-*' -bg black -fg white

SELECTION=$?

case $SELECTION in 101)
poweroff ;;
102)
reboot ;;
esac

You might want to change xmessage text sizes (with -font option, use xfontsel to select font), location (use -geometry option -0-0 would place the xmessage in the lower right corner), foreground and background colors (-fg and -bg, see /usr/X11R6/lib/X11/rgb.txt for valid color names). Furthermore, you might want to timber with xmessage's resources to get rid of button/textarea borders etc if they bother you.

I'm not quite sure about the name of the file where you should place this as I don't currently use XDM, but I think its /etc/X11/xdm/Xsetup (or Xsetup_0 or whatever).

Note that you will also have to get rid of xmessage on login (the simpliest, though maybe not the best way to do this is to do killall xmessage in /etc/X11/xdm/Xsession). A better way would be to write the pid of xmessage to temporary file and kill that pid from Xsession.

In my experience XDM is much faster than KDM and GDM and it doesn't require you to install anything as it comes with X. It's also very configurable (though not the easiest around to configure), you can create quite nice looking login screens with it using background graphics (with external tools like xsetbg). You can even have an xscreensaver running on root window when XDM is on display

Last edited by alienDog; 12-07-2004 at 07:53 AM.
 
Old 12-07-2004, 09:27 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You might try WDM -the Wings display mgr. written on xdm but pretty.
 
Old 12-07-2004, 12:36 PM   #6
Bowman
LQ Newbie
 
Registered: Oct 2004
Location: Yosemite National Park, California
Distribution: Slackware 10
Posts: 12

Original Poster
Rep: Reputation: 0
Lightbulb

Thank you alienDog! I'll have to try that and get back to you.

I might give WDM a try as well. . .
 
Old 12-09-2004, 03:44 PM   #7
Bowman
LQ Newbie
 
Registered: Oct 2004
Location: Yosemite National Park, California
Distribution: Slackware 10
Posts: 12

Original Poster
Rep: Reputation: 0
Well, I couldn't get that script or any other to work, but I tried WDM, and I rather like it.
 
Old 12-09-2004, 07:58 PM   #8
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
Good for you

What was wrong with the script? It could be that you need to enter paths to commands i.e. /usr/X11R6/bin/xmessage instead of just xmessage and /sbin/poweroff and /sbin/reboot instead of plain poweroff and reboot.

But I guess that if you like WDM, the problem got solved. I might give it a try some day soon myself.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Solution: Login XDM Screen instead of KDM jess1975 SUSE / openSUSE 2 04-26-2005 01:51 AM
XDM, KDE.... Looking to Modify the Login Screen Devils_Guardian Debian 6 02-12-2005 01:37 AM
X login screen XDM/KDM/GDM jesselong Linux - Software 4 06-12-2004 10:02 PM
need to add 'gnome-session' to kdm login screen in KDE 3.2.2 kastorff Linux - Software 0 04-30-2004 01:22 PM
XDM opens XDM after login jpbarto Linux - Software 1 01-26-2004 10:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:20 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