You are not logged in.
Pages: 1
I want to configure the system as follows:
1) On starting called fsck with autofix flag ( this pc works without keyboard)
2) On tty1 auto login with start myprogram (my python programm)
Offline
https://wiki.archlinux.org/index.php/Fsck#fstab_options
https://wiki.archlinux.org/index.php/Fs … _frequency
https://wiki.archlinux.org/index.php/Au … al_console
To run something as soon as you login, you can use ~/.bash_profile.
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Thx, now i think how can i launch script only on first tty?
Offline
https://wiki.archlinux.org/index.php/Autostarting
Maybe from /etc/rc.local? I'm not sure.
Try it.
Last edited by DSpider (2012-04-24 08:29:55)
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
Or just put a test in .bashrc.
if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then
myProgram
fi
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
thx
Offline
Pages: 1