You are not logged in.

#1 2012-04-23 09:21:14

XaverOz
Member
Registered: 2012-02-24
Posts: 18

Changing load parametrs

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

#2 2012-04-23 10:17:35

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Changing load parametrs


"How to Succeed with Linux"

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

#3 2012-04-24 04:47:40

XaverOz
Member
Registered: 2012-02-24
Posts: 18

Re: Changing load parametrs

Thx, now i think how can i launch script only on first tty?

Offline

#4 2012-04-24 08:25:10

DSpider
Member
From: Romania
Registered: 2009-08-23
Posts: 2,273

Re: Changing load parametrs

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)


"How to Succeed with Linux"

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

#5 2012-04-24 10:28:34

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,564
Website

Re: Changing load parametrs

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

#6 2012-04-25 08:21:43

XaverOz
Member
Registered: 2012-02-24
Posts: 18

Re: Changing load parametrs

thx

Offline

Board footer

Powered by FluxBB