I would like to have a program starting right after boot. I have made
some research about it but I could not find any solution for my
problem until now. I want to connect the power supply of my board, it
will boot, automatically login, open a terminal and start a program
automatically. Could anyone give me a hint who to automatically open a
terminal and run a certain program?
Thanks,
Frederico Lima
I think you could have a detailed study about init file.
You can achieve what you want. Since, init file decides which programs to run after the board boots.
regards
you can write a simple script to run your program to /etc/init.d directory
2011/5/2 bumble omap <ti.omap35x@gmail.com>
yeah. after writing it in /etc/init.d, you have make changes in rcS and make it start after the booting happens.
Thanks for your answers!
>> I think you could have a detailed study about init file.
>> You can achieve what you want. Since, init file decides which programs to
>> run after the board boots.
Well, I know that I could solve with this with init. The question is
just how.
The auto login was solved using the command gdmsetup.
I have written a small shell script called test.sh:
#!/bin/bash
sudo ./my_programs_name
bash
Both "my_programs_name" and "test.sh" are located on the desktop.
Using Settings -> Session and Startup -> Application Autostart, and
writing the command:
xterm -e ~/test.sh
After booting, the command to execute the program is entered but one
has to enter the password. I would like to have it automatically
entered.
So, I would to share my solution here.
My system has an autologin as root defined by custom.conf which is
located in /etc/gdm :
Code:
TimedLoginEnable=false
AutomaticLoginEnalbe=true
TimedLogin=root
AutomaticLogin=root
TimedLoginDelay=30
I have edited my /root/.bashrc, adding in the last line to start the
file test.sh:
Code:
/home/ebv/levmar-2.5/test.sh
And last, the "test.sh" is shown bellow:
Code:
#!/bin/bash
/home/ebv/levmar-2.5/expfit_spifunc2