Dies ist eine alte Version des Dokuments!
Problem: Ohne gestartem kdm/gdm/xdm soll ein Benutzer automatisch beim Start angemeldet werden, und ein leerer X-Server gestartet werden:
…
1:2345:respawn:/sbin/mingetty tty1" ändern in "1:2345:respawn:/sbin/autologin tty1 login -f username ...
#!/bin/bash # Scriptname: autologin # autologin-script based on article in Linux Journal 58 # Put script in /sbin and make root owner # Edit /etc/inittab and change the line(s) that looks like this: # 1:2345:respawn:/sbin/mingetty tty1 # to # 1:2345:respawn:/sbin/autologin tty1 login -f username # where username is your username # reboot to take effect exec 0</dev/$1 1>/dev/$1 2>&1 cat /etc/issue shift exec $*
#!/bin/bash # Scriptname: autostartx # autostartx-script based on article in Linux Magazine No 2 # This script checks to see if X is up, if not # the script startx X automatically in 5 seconds case `/usr/bin/tty` in /dev/tty[0-9]*) echo -e "\nLocal login - finding X-Lockfile.\n" if [ -f /tmp/.X0-lock ]; then echo -e "X-Lockfile present - X will not be started.\n" else echo "X is not active - starting X in 5 seconds (abort using Ctrl-C) ..." sleep 1s echo "4 seconds ..." sleep 1s echo "3 seconds ..." sleep 1s echo "2 seconds ..." sleep 1s echo -e "1 seconds ...\a" sleep 1s if [ $? -eq 0 ]; then startx fi fi esac