autostart program on boot

In the terminal, edit inittab file.

sudo nano /etc/inittab

Disable getty:
find this line in inittab
1:2345:respawn:/sbin/getty 115200 tty1

And add a # at the beginning of the line to comment it out

add below this line:

12345:respawn:/bin/login -f root tty1 </dev/tty1 >/dev/tty1 2>&1
This will run the login program with root user and without any authentication

Step 1: Open a terminal session and edit  /etc/profile

sudo nano /etc/profile
Add the following line at the end:
. /home/

make this script and do your stuff.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>