making linux easier for noob and kids by automatic login into linux, then startx and then shutdown the computer when they quit.

first, setup mingetty for automatic login on debian minimal desktop:

# sudo aptitude install mingetty
# sudo nano -w /etc/inittab 
# then comment this line and add the next line:
# 1:2345:respawn:/sbin/getty 38400 tty1
1:2345:respawn:/sbin/mingetty --autologin replacewithyourusername tty1

or, on ubuntu minimal desktop:
# sudo aptitude install mingetty
# sudo nano -w /etc/event.d/tty1
# look at the last line
# comment this line and add the next line:
# exec /sbin/getty 38400 tty1 
exec /sbin/mingetty --autologin replacewithyourusername tty1

then allow everyone to shutdown:
sudo chmod +s /sbin/halt

then, automatic startx and shutdown after exiting x:
# nano -w .bashrc
# put these lines at the most bottom
if [ $(tty) == "/dev/tty1" ]; then
  startx
  /sbin/halt
fi
--
tips & tricks on computers and gadgets
denny on IT ; let's doIT
documenting the brain

blog comments powered by Disqus