Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
autologin_mit_linux [2011/02/24 14:42] admin |
autologin_mit_linux [2011/02/24 14:45] admin |
||
---|---|---|---|
Zeile 10: | Zeile 10: | ||
<code bash /home/user/.bashrc> | <code bash /home/user/.bashrc> | ||
- | $HOME/.bash_profile folgende Zeilen hinzufügen: | + | ... |
case `/usr/bin/tty` in /dev/tty1) | case `/usr/bin/tty` in /dev/tty1) | ||
/sbin/autostartx | /sbin/autostartx | ||
Zeile 18: | Zeile 18: | ||
<code bash /sbin/autlogin> | <code bash /sbin/autlogin> | ||
#!/bin/bash | #!/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 | exec 0</dev/$1 1>/dev/$1 2>&1 | ||
cat /etc/issue | cat /etc/issue | ||
Zeile 35: | Zeile 26: | ||
<code bash /sbin/autologinx> | <code bash /sbin/autologinx> | ||
#!/bin/bash | #!/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]*) | case `/usr/bin/tty` in /dev/tty[0-9]*) | ||
echo -e "\nLocal login - finding X-Lockfile.\n" | echo -e "\nLocal login - finding X-Lockfile.\n" |