Re: Auto login and window manager specification with xdm?

Giorgos Keramidas (keramida@ceid.upatras.gr)
11 Nov 1999 04:34:11 +0200


keith tang <keith.tang@marathonelectric.com> writes:

[snip]
> I would prefer the system, upon power up, log itself into the proper
> account, and auto start Xwindow and the application. Is this a
> realistic objective?

Yes, as long as you make a proper .xinitrc file, which loads your window
manager (if one is required at all), and your application with the
geometry you want it to have. For instance, if you want /app/foo to
cover the entire desktop, with fvwm being the window manager (mostly
used for moving around popup dialogs), you can get away with an .xinitrc
as simple as:

fvwm &
exec /app/foo -geometry 800x600+0+0

assuming, of course, that your desktop size is 800x600. This has
another nice aspect, once your application exits, the X session will end
too, which you'll quite likely find a useful feature.

> At present, I have not been able to get to computer auto start
> Xwindows invoking the fvwm window manager. If I change the run level
> to 5 in /etc/inittab, Xwindows starts with twm. It uses xdm to start
> Xwindows. I have not been able to find what specifies which window
> manager xdm is going to use. Any suggestions?

Edit /usr/X11R6/lib/X11/xinit/xinitrc and make sure it's last lines fire
up fvwm instead of twm. This is the script uses in the absence of a
custom ~/.xinitrc in a user's directory.

> I have been starting Xwindows with startx which calls xinit, using
> /root/.fvwmrc to set up fvwm.

System wide defaults can be set, as you have probably guessed by now, in
/usr/X11R6/lib/X11/fvwm2/system.fvwmrc and then you can be sure that the
fvwm2 started by init level 5 will use those as the defaults.

Ciao.

-- 
Giorgos Keramidas, <keramida@ceid.upatras.gr>
"What we have to learn to do, we learn by doing." [Aristotle]
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.rutgers.edu