From: "Peter T Campbell" To: Subject: Autologin Date: Saturday, November 02, 2002 8:38 AM Hi Greg, These are the steps I've taken to auto-login user "guest". This is based on an article in Linux Gazette #72 by Adrian J. Chung First, make a user "guest" with the adduser command. Now we have to compile a C program. With an editor, type in the following program to a file autologinguest.c (it's almost a one-liner): int main() { execlp( "login", "login", "-f", "guest", 0); } compile the program with gcc -o autologinguest autologinguest.c Then, as root, mv autologinguest /usr/local/sbin Now, as root, put the following in /etc/inittab /etc/inittab: 1:2345:respawn:/sbin/getty -n -l /usr/local/sbin/autologinguest 38400 tty1 This will log guest into the console. To auto-start a gui, add the following to /home/guest/.bash_profile: if [ -z "$DISPLAY" ] && [ $(tty) == /dev/tty1 ]; then startx fi ---------------------------------------------------------------------- To put up buttons to start/stop an internet connection: With an editor, create the file /usr/local/bin/ppponoff with the following content while [ 0 ] do xmessage -iconic \ -geometry +0-30 \ -title "Internet Connection" \ -buttons Dialin,Hangup \ "Internet Connection" case $? in 101 ) pon ;; # Online was pressed, execute pon 102 ) poff ;; # Offline was pressed, execute poff esac done and in /home/guest/.xsession add the line: ppponoff -iconic & ---------------------------------------------------------------------- Pete