Installation instructions for Login.app


NOTE!
--------------------------------------------------------------
Installing this program requires root access and should only
be done by people who is familiar with the system /etc/inittab
file. Since installing requires you to make changes in this
file, as described below, it is important that you know what 
these changes does to your system. If you edit this file in 
a completely wrong way your computer may not boot correctly 
any more. You should be aware of this!



Requirenemts
--------------------------------------------------------------
- libXpm 4.9
	Developed, and only tested, with version 4.9. 
	Older versions may or may not work!
	Available at ftp://sunsite.unc.edu/pub/Linux/libs/X/

- root access
	To be able to complete the installation you need to
	make changes in the system /etc/inittab file.



Installation
--------------------------------------------------------------
1) % gunzip -c Login.app-X.X.X.tar.gz | tar xf -
2) If needed, edit Config.h to fit your system

	- By default the ~/.xinitrc file is executed when a user is 
	  logging in. If you want a different file to be executed 
	  change the LOGIN_CMD in Config.h. 

	- If your system is not a Linux system you maybe need to change
	  the HALT_CMD and REBOOT_CMD in Config.h.

3) % ./build
4) % su root
5) % cp Login.app /usr/local/bin
6) Edit /etc/inittab to look something like this:

	[...]
	id:5:initdefault:
	[...]
	x:5:respawn:/usr/X11/bin/xinit /usr/local/bin/Login.app -- /usr/X11/bin/X [server-options]

	The server-options can for example be "-bpp 16" or any other
	command line option that you would like to give the x-server.

	NOTE! These changes discribes how a RedHat 4.2 Linux system
	could be configured. It could look a little bit different on
	other unix platforms. For example on a Slackware system it
	looks like this:

	[...]
	id:4:initdefault:
	[...]
	x1:4:respawn:/usr/X11/bin/xinit /usr/local/bin/Login.app -- /usr/X11/bin/X [server-options]

	ALSO NOTE! Before you modify your /etc/inittab make sure that
	your X-server is configured correctly and that Login.app is 
	working ok. Log in as root and execute the same line you will 
	put in your /etc/inittab from the console, for example:
	/usr/X11/bin/xinit /usr/local/bin/Login.app -- /usr/X11/bin/X
	this way you can avoid unpleasant respawns of the X-server if
	something isn't working correctly. 

7) % exit
8) Reboot your system! (or just switch runlevel)
