Re: automatic boot up and login - VNC related
Hi Dan
I'll answer the second question first - To change the boot up level, edit
/etc/inittab and look for a line :-
id:5:initdefault:
Change it to a 3 instead of 5, and next time you reboot, you'll be in a text
mode.
When you talk about running a program at login - Do you mean after a user has
logged on or at boot up time ?
In the first case, just add the command that you want to run at the end of
the $HOME/.bash_profile
For the latter case, a number of methods can be used - One is to add the
commands to one of the files in /etc/rc.d - Usually the rc.local is the one
to use. A methode that I use is to add a couple of bash scripts to /etc/rc3.d
called S99myscript and K99myscript. Files starting with an S are for kicking
off the application, and K99 will terminate it in a controlled manner (handy
for loadable modules). Just noticed an S99local that can be used for running
various commands....
The advantage of putting scripts in the /etc/rcX.d directories is you can
control which run level will use them - rc.local is a catch all script, so if
it does something fatal, you have no way back.
If you want some notes on running an X app from the boot up scripts, I can
email my notes later on.
BTW plain text is very easy to import into a LyX document.
Regards, Paul.
On Sunday 10 Mar 2002 4:22 pm, Dan Falck wrote:
> I set up VNC again yesterday with the 2.12 BDI system. As soon as I
> figure out how to run Lyx, I will send Ray a document on how I did it.
> My question today is: How can one set up the EMC BDI system to log in
> automatically and launch a program right after it logs in? It has
> something to do with rc.d or an rc file somewher, but I am a weekend
> warrior when it comes to this and haven't figured it out yet.
> Also, I have forgotten how to set up to NOT boot into X. When I boot
> up now, I type in 'linux 3' at the lilo prompt. This gets me there
> temporarily.
Date Index |
Thread Index |
Back to archive index |
Back to Mailing List Page
Problems or questions? Contact