You are not logged in.
Hi all,
Since KDM/GDM are so resource hungry and require you to bloat your system with libraries for their desktop environments, I decided to improve the otherwise not so pleasent look of XDM. This piece of software is included with xfree86 and x.org, which means that no extra packages are needed.
To try it out, get xdm-archlinux-0.1-1.tar.gz from incoming and install the pkg.tar.gz inside. Then make the xdm line near the end of /etc/inittab read:
x:5:respawn:/usr/X11R6/bin/xdm -nodaemon -config /etc/X11/xdm/archlinux/xdm-config
It's a good idea to test XDM either by manually changing to runlevel 5 (type 'init 5') or, even better, running xdm itself, before making 5 the default runlevel. Remember that ~/.xsession is the script used to start things when you login with XDM. To make the same WM and other programs start both with startx and XDM, simply symlink .xsession to .xinitrc. Hope you like it, feedback is appreciated.
All of your mips are belong to us!!
Offline
great work!!! (i do not boot into X, but if i would, it would be using this xdm-theme for some time)
one comment: is it possible to tell it what font to use for the user/password? maybe bitstream vera sans would look better
The impossible missions are the only ones which succeed.
Offline
one comment: is it possible to tell it what font to use for the user/password? maybe bitstream vera sans would look better
Yes, one reason why the defaults look so ugly is because of the fonts. I wanted to use a font that is included with the x-server and used Helvetica, but the Bitstream fonts are also part of the x-server packages. I tried the theme using bitstream vera sans, and I believe it looked slightly better. Changing fonts also changes the gap between lines, though. This is something I didn't manage to control.
Would it be a good idea to have a clock up in the NW corner and a console in the SW corner? Or is it better to keep it simple? Also, if there was a console, should it be killed when the user logged in, or live on when his desktop was started? I'm not quite sure whether I would want these extras. Any opinions?
All of your mips are belong to us!!
Offline
I think a clock would be nice, but anything else might be too much, and personally, once I log in, I never come back, so fire away! I don't much about XDM, but is there any chance this is just an easy config or two?
If you develop an ear for sounds that are musical it is like developing an ego. You begin to refuse sounds that are not musical and that way cut yourself off from a good deal of experience.
- John Cage
Offline
I don't much about XDM, but is there any chance this is just an easy config or two?
It's all shell scripts and X resources. Fairly simple, but yet very few efforts have been made to theme XDM (judging from google's response). Could be because it doesn't really support theming in the traditional sense.
All of your mips are belong to us!!
Offline
I see... Let's go on an XDM theming campaign to spread Arch Linux propaganda!!! or not...
If you develop an ear for sounds that are musical it is like developing an ego. You begin to refuse sounds that are not musical and that way cut yourself off from a good deal of experience.
- John Cage
Offline
Thanks for that theme. I like it.
I made a couple modifications to it so I could shutdown/reboot from the xdm login page. Stole it from the Cronos theme.
Xsetup:
### reboot & halt buttons
pidfile=/var/run/xdmbutton_0.pid
if [ -f $pidfile ]; then
# Huh? Abnormally terminated?
rm $pidfile
fi
HOME=/root /usr/bin/wish -name Powerbox <<EOF &
wm geometry . +0-0
tk_setPalette background black
button .halt -background #223377 -foreground #ff0000 -font -altsys-silkscreen-m
-borderwidth 1 -text shutdown -command {exec /sbin/shutdown -h now 2>/dev/consol
button .reboot -background #223377 -foreground #00ff00 -font -altsys-silkscreen-
-borderwidth 1 -text reboot -command {exec /sbin/shutdown -r now 2>/dev/console
pack .halt .reboot -side left -fill both
EOF
echo $! >$pidfile
###
xsetroot -solid "#223377" -cursor_name left_ptr
and this in GiveConsole:
# remove reboot/halt buttons
pidfile=/var/run/xdmbutton_0.pid
if [ -f $pidfile ]; then
kill $(cat $pidfile)
rm $pidfile
fi
chown $USER /dev/console
/usr/X11R6/bin/sessreg -a -w "/var/log/wtmp" -u "/var/run/utmp"
-x "/etc/X11/xdm/Xservers" -l $DISPLAY -h "" $USER
Offline
Glad you liked it Judd.
I'll probably make another version of the package one of these days. It will use Bitstream fonts and have a clock, a console, and halt/reboot buttons. The latter is implemented using xmessage so that it won't require Tcl/Tk. I'll make the xconsole disabled by default, I think.
All of your mips are belong to us!!
Offline
Offline
Where should i extract contents of this archive???
Offline
xdm-archlinux-0.2-1.tar.gz is now in incoming.
Very nice addition! 1 minor thing; erromessages disappear behind the logo (I run 1600x1200). I've installed it on all my boxes
Offline
Where should i extract contents of this archive???
it doesn't matter, but /var/abs/local is a good place ;-)
The impossible missions are the only ones which succeed.
Offline
How do you make a screen shot of the xdm login?
Offline
How do you make a screen shot of the xdm login?
From the console, something like this perhaps:
$ DISPLAY=:0 import -window root login_shot.png
Or one could make the script that starts various apps displayed on the login screen (xclock, power buttons, etc) run the screen grab command
All of your mips are belong to us!!
Offline
How do you make a screen shot of the xdm login?
The impossible missions are the only ones which succeed.
Offline
When I run
DISPLAY=:0 import -window root login_shot.png
I get this message
Xlib: connection to ":0.0" refused by server
Xlib: No protocol server
import: unable to open X server `:0.0'.
And I get this whether I am running kdm, gdm or xdm.
It does not matter if I am logged in as root or not.
Offline
Thanks to everyone for your help. After picking up some hints
here and there I finally came up with a solution. At the end
of Xsetup_0 I placed this:
# get the xdm screenshot
import -display :0.0 -window root -pause 5 /etc/X11/xdm/xdm_login.png &
This way, a screen shot of the xdm logon is taken every time
is loads.
Offline
When I run
DISPLAY=:0 import -window root login_shot.pngI get this message
Xlib: connection to ":0.0" refused by server
Xlib: No protocol serverimport: unable to open X server `:0.0'.
And I get this whether I am running kdm, gdm or xdm.
It does not matter if I am logged in as root or not.
Try "xhost +localhost" (as a regular user) - I'm not really sure though that it would work.
:: / my web presence
Offline
Now that I have one, I thought I would post a screenshot of
my xdm logon:
And here is an archive of all of the files:
http://segmental.dyndns.org/arch/custom-xdm.tar.gz
There is included a small script (set-xdm) that copies the files
over to /etc/X11/xdm. If you are going to use it you had better
backup up your originals first. Otherwise they could get written
over.
Offline
I've been using this XDM theme for a while, but since I upgraded ttf-ms-fonts 1.3-5 to 1.3-6, the fonts are kind of borked. Well, not really borked, but appears pretty much the same as the screen shot shown here. It was fine before I did the upgrade. I didn't mess around with it until now, but I was wondering if there's a way to fix it? Would be nice to get that pretty look again
Polarrr
P.S. Actually I'm gonna try segmental's theme too 8)
Offline
I am glad that at least one person tried using this theme
after I posted it.
As for the font problem, I don't know. If you look in the
Xresources file you will see that "xlogin", which is all I have
ever used, only uses the Adobe Helvetica Type 1 fonts included
in the xorg package.
"Chooser" in Xresources does specify "new century schoolbook"
but that font is not included in ttf-ms-fonts.
Offline
Here, I've put it on my site...
http://shabi.homelinux.org/xdm-archlinux-0.2-1.tar.gz
don't expect much of the download speed, but it's a small package so it should be enaugh
Grey
Offline
thanks greycloack
ditto
Offline
Here is a screenshot of my xdm theme:
http://www.astro.umontreal.ca/~belanger … enshot.png
I used bogomipz's configs as a template. I could make a pkg with the configs if someone is interested. Any comments, suggestion?
Offline
I've never used xdm before, and am running kdm on my HTPC for automatic X login.
Is there a way to do automatic login with XDM?
Offline