233 lines
9.9 KiB
HTML
233 lines
9.9 KiB
HTML
<!--startcut ==============================================-->
|
|
<!-- *** BEGIN HTML header *** -->
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
|
|
<HTML><HEAD>
|
|
<title>Configuring GDM 2.2 LG #66</title>
|
|
</HEAD>
|
|
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#0000AF"
|
|
ALINK="#FF0000">
|
|
<!-- *** END HTML header *** -->
|
|
|
|
<CENTER>
|
|
<A HREF="http://www.linuxgazette.com/">
|
|
<H1><IMG ALT="LINUX GAZETTE" SRC="../gx/lglogo.png"
|
|
WIDTH="600" HEIGHT="124" border="0"></H1></A>
|
|
|
|
<!-- *** BEGIN navbar *** -->
|
|
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="nielsen.html"><IMG ALT="[ Prev ]" SRC="../gx/navbar/prev.jpg" WIDTH="16" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="index.html"><IMG ALT="[ Table of Contents ]" SRC="../gx/navbar/toc.jpg" WIDTH="220" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../index.html"><IMG ALT="[ Front Page ]" SRC="../gx/navbar/frontpage.jpg" WIDTH="137" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="http://www.linuxgazette.com/cgi-bin/talkback/all.py?site=LG&article=http://www.linuxgazette.com/issue66/nielsen2.html"><IMG ALT="[ Talkback ]" SRC="../gx/navbar/talkback.jpg" WIDTH="121" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../faq/index.html"><IMG ALT="[ FAQ ]" SRC="./../gx/navbar/faq.jpg"WIDTH="62" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="sharma.html"><IMG ALT="[ Next ]" SRC="../gx/navbar/next.jpg" WIDTH="15" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><IMG ALT="" SRC="../gx/navbar/right.jpg" WIDTH="15" HEIGHT="45" ALIGN="bottom">
|
|
<!-- *** END navbar *** -->
|
|
<P>
|
|
</CENTER>
|
|
|
|
<!--endcut ============================================================-->
|
|
|
|
<H4 ALIGN="center">
|
|
"Linux Gazette...<I>making Linux just a little more fun!</I>"
|
|
</H4>
|
|
|
|
<P> <HR> <P>
|
|
<!--===================================================================-->
|
|
|
|
<center>
|
|
<H1><font color="maroon">Configuring GDM 2.2</font></H1>
|
|
<H4>By <a href="mailto:articles@gnujobs.com">Mark Nielsen</a></H4>
|
|
</center>
|
|
<P> <HR> <P>
|
|
|
|
<!-- END header -->
|
|
|
|
|
|
|
|
|
|
<ol>
|
|
<li>
|
|
<a href="#Introduction">Introduction</a></li>
|
|
<li><a href="#install">Downloading and installing GDM.</a></li>
|
|
<li><a href="#config">Configuring GDM</a></li>
|
|
<li><a href="#Conclusion">Conclusion</a></li>
|
|
<li><a href="#REF">References</a></li>
|
|
</ol>
|
|
|
|
<h3>
|
|
<a NAME="Introduction"></a>Introduction</h3>
|
|
GDM or GNOME Display Manager, is a nice GUI login screen which makes it nice
|
|
and pretty to login to X-windows. It it much nicer for non-linux people to have
|
|
a GUI interface to login to rather than a console.
|
|
<p>
|
|
One thing that bothered me with some of the older versions of GDM was the
|
|
fact that I couldn't place the login window anywhere I wanted on the
|
|
screen. With the latest version, it as very easy. Also, I couldn't figure
|
|
out how to make logos of people in the login window, and now I figured
|
|
that out. The latest version of GDM is really nice and I have figured out
|
|
how to configure it the way I wanted it to be configured, so I finally
|
|
decided to write this article.
|
|
|
|
<h3><a name="install">Downloading and installing GDM.</h3>
|
|
I could have downloaded an RPM from somewhere, but instead I decided to
|
|
compile it manually. I was testing it on a RH 6.2 system. As soon as I can
|
|
get the 7.1 version of RH (as the 7.0 wasn't worth the trouble), I will
|
|
test it on it as well, and Debian of course.
|
|
<p>
|
|
The danger of not using RPMs to install GDM, is the fact that I am installing
|
|
a newer version of GDM on top of a GDM version which was installed by RPMs.
|
|
This could cause problems if I decided to use an RPM in the future. I found
|
|
an RPM version at
|
|
<a href="ftp://ftp.gnome.org/pub/GNOME/stable/latest/redhat/i386/Base/gdm-2.2.0-1.i386.rpm">
|
|
ftp://ftp.gnome.org/pub/GNOME/stable/latest/redhat/i386/Base/gdm-2.2.0-1.i386.rpm</a>
|
|
in case you don't want to install it manually.
|
|
|
|
<p>
|
|
Initial Steps
|
|
<ol>
|
|
<li> Downloaded GDM from <a href="ftp://ftp.gnome.org/pub/GNOME/stable/latest/sources/gdm-2.2.0.tar.gz">
|
|
ftp://ftp.gnome.org/pub/GNOME/stable/latest/sources/gdm-2.2.0.tar.gz</a>
|
|
<li> tar -zxvf gdm-2.2.0.tar.gz
|
|
<li> cd gdm-2.2.0
|
|
<li> ./configure --prefix=/usr
|
|
<li> make
|
|
<li> make install
|
|
</ol>
|
|
|
|
After fooling around a bit, I found out that /etc/X11/gdm wasn't being
|
|
used for the configuration files, so I linked /etc/X11/gdm to the place
|
|
that gdm was looking. I probably could have recompiled gdm to fix this problem,
|
|
but I am being lazy. Also, one directory was missing, so I created it.
|
|
<p>
|
|
Three additional Steps
|
|
<ol>
|
|
<li>mv /usr/etc/gdm /usr/etc/gdm_new
|
|
<li>ln -s /etc/X11/gdm /usr/etc/gdm
|
|
<li>mkdir /usr/share/faces/
|
|
</ol>
|
|
|
|
Again, I emphasize the fact that you should probably use the rpm and
|
|
not bother installing it manually.
|
|
|
|
<h3>
|
|
<a NAME="config"></a>Configuring GDM</h3>
|
|
The goals I had were,
|
|
<ol>
|
|
<li> Be able to place the login screen anywhere I wanted.
|
|
<li> Be able to play a game before someone has to login.
|
|
<li> Be able to put images in the background just for fun.
|
|
<li> Be able to put a clock on the background.
|
|
<li> Be able to put pictures or logos of people on the browser part of GDM.
|
|
</ol>
|
|
|
|
I had to change some of the settings in the file gdm.conf. My changes
|
|
were
|
|
<pre>
|
|
Browser=true
|
|
SetPosition=true
|
|
PositionX=100
|
|
PositionY=100
|
|
Exclude=bin,daemon,adm,lp,sync,shutdown,halt,mail,news,uucp,operator,nobody,gdm,postgres,pvm,otherlogin
|
|
GlobalFaceDir=/usr/share/faces/
|
|
</pre>
|
|
Also, here was my Init/Default script,
|
|
<pre>
|
|
#!/bin/sh
|
|
|
|
/usr/X11R6/bin/xsetroot -solid "#363047"
|
|
|
|
xsri -geometry +5+5 /etc/X11/xdm/Logo2.png
|
|
xsri -geometry +400+5 /home/mark/public_html/wedding/wed2.jpg
|
|
xsri -geometry +700+500 /home/mark/public_html/wedding/walk.jpg
|
|
xsri -geometry +200+500 /home/mark/public_html/wedding/kiss.jpg
|
|
|
|
xsri -geometry +5+175 /home/mark/public_html/kiss.gif
|
|
|
|
xsri -geometry +5+500 /usr/local/apache_gnujobs/htdocs/images/zing.png
|
|
|
|
xeyes -geometry +825+5 &
|
|
|
|
xclock -digital -geometry +825+125 -update 1 &
|
|
|
|
xtriangles -geometry +800+300 &
|
|
</pre>
|
|
|
|
In order to get logos or pictures of people on the GDM screen, I had to
|
|
make the name of the image exactly the name of username and put it in
|
|
/usr/share/faces/. To test this, I took my logo for ZING and copied it
|
|
to
|
|
"/usr/share/faces/root" like
|
|
<pre>
|
|
cp /usr/local/apache_gnujobs/htdocs/images/zing.png /usr/share/faces/root
|
|
</pre>
|
|
Notice that there is no extension.
|
|
|
|
<h3>
|
|
<a NAME="Conclusion"></a>Conclusion</h3>
|
|
|
|
Everything worked perfectly once I followed these steps. Using the rpm
|
|
might have been easier, but oh well. I will try that out next time. I
|
|
highly recommend to back up any gdm configuration files before installing
|
|
any new RPMs (though the RPMs should back them up for you). I don't really
|
|
see any other features that I would need. Some miscellaneous features, like maybe
|
|
a ticker tape, downloading the weather, or other games besides triangles
|
|
would be cool. I imagine it is possible, but it isn't necessary for me.
|
|
It also might be a security risk to let people play games before they
|
|
have to login, in case they figure out some way to break out to a shell,
|
|
so I wouldn't advise putting games into GDM on public computers.
|
|
<p>
|
|
I would have liked to compare KDM with GDM, but I wasn't able to easily
|
|
find a recent web page for KDM. I am also waiting until I install the latest
|
|
version of KDE before I mess around with KDM anyways.
|
|
|
|
<h3>
|
|
<a NAME="REF"></a>References</h3>
|
|
|
|
<ol>
|
|
<li><a href="http://www.socsci.auc.dk/~mkp/gdm/">Gnome Display Manager</a>
|
|
<li> 6-24-1999 <a href="../issue43/nielsen.xdm.html">Setting up XDM</a>.
|
|
<li>
|
|
If this article
|
|
changes, it will be available here
|
|
<a href="http://www.gnujobs.com/Articles/19/GDM.html">
|
|
http://www.gnujobs.com/Articles/19/GDM.html</a></li>
|
|
</ol>
|
|
|
|
<p>
|
|
<i> Mark works as an independent consultant donating time to causes like
|
|
GNUJobs.com, writing articles, writing free software, and working
|
|
as a volunteer at <a href="http://www.eastmont.net">eastmont.net</a>.</i>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- *** BEGIN bio *** -->
|
|
<SPACER TYPE="vertical" SIZE="30">
|
|
<p>
|
|
<h4><img align=bottom alt="" src="../gx/note.gif">Mark Nielsen</h4>
|
|
Mark works at ZING
|
|
(<A HREF="http://www.genericbooks.com">www.genericbooks.com</A>) and
|
|
<A HREF="http://GNUJobs.com">GNUJobs.com</A>. Previously,
|
|
Mark founded <A HREF="http://www.gnujobs.com">The Computer Underground</A>.
|
|
Mark works on non-profit and volunteer projects which promote free literature
|
|
and software. To make a living, he recruits people for GNU related jobs and
|
|
also provides solutions for web/database problems using Linux, FreeBSD, Apache,
|
|
Zope, Perl, Python, and PostgreSQL.
|
|
|
|
<!-- *** END bio *** -->
|
|
|
|
<!-- *** BEGIN copyright *** -->
|
|
<P> <hr> <!-- P -->
|
|
<H5 ALIGN=center>
|
|
|
|
Copyright © 2001, Mark Nielsen.<BR>
|
|
Copying license <A HREF="../copying.html">http://www.linuxgazette.com/copying.html</A><BR>
|
|
Published in Issue 66 of <i>Linux Gazette</i>, May 2001</H5>
|
|
<!-- *** END copyright *** -->
|
|
|
|
<!--startcut ==========================================================-->
|
|
<HR><P>
|
|
<CENTER>
|
|
<!-- *** BEGIN navbar *** -->
|
|
<IMG ALT="" SRC="../gx/navbar/left.jpg" WIDTH="14" HEIGHT="45" BORDER="0" ALIGN="bottom"><A HREF="nielsen.html"><IMG ALT="[ Prev ]" SRC="../gx/navbar/prev.jpg" WIDTH="16" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="index.html"><IMG ALT="[ Table of Contents ]" SRC="../gx/navbar/toc.jpg" WIDTH="220" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../index.html"><IMG ALT="[ Front Page ]" SRC="../gx/navbar/frontpage.jpg" WIDTH="137" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="http://www.linuxgazette.com/cgi-bin/talkback/all.py?site=LG&article=http://www.linuxgazette.com/issue66/nielsen2.html"><IMG ALT="[ Talkback ]" SRC="../gx/navbar/talkback.jpg" WIDTH="121" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><A HREF="../faq/index.html"><IMG ALT="[ FAQ ]" SRC="./../gx/navbar/faq.jpg"WIDTH="62" HEIGHT="45" BORDER="0" ALIGN="bottom"></A><A HREF="sharma.html"><IMG ALT="[ Next ]" SRC="../gx/navbar/next.jpg" WIDTH="15" HEIGHT="45" BORDER="0" ALIGN="bottom" ></A><IMG ALT="" SRC="../gx/navbar/right.jpg" WIDTH="15" HEIGHT="45" ALIGN="bottom">
|
|
<!-- *** END navbar *** -->
|
|
</CENTER>
|
|
</BODY></HTML>
|
|
<!--endcut ============================================================-->
|