Friday, August 17, 2012

Auto start BackTrack

To enable BackTrack to AutoStart without password, you will need to install rungetty and a few other tweeks.

1. Install Rungetty

apt-get install rungetty

2. Now you have to edit the conf file of getty.

vi /etc/init/tty1.conf

Go down to exec /sbin/getty -9 38400 tty1, and put a # in front of it

#exec /sbin/getty -9 38400 tty1

After doing that, you need to add this line

exec /sbin/rungetty tty1 --autologin root

3. Now ur done editing this file and you need to save and exit

Press "Esc" to exit insert mode. Then type :x to save and exit

4. Now we need to create a bash file to run BackTrack automatically.

Lets view is the bash profile is there.

ls /root/.bash_profile

file does not exist. Lets create the .bash_profile file now. We are going to use "touch" as it will also include current time stamp on the newly create file.

touch ~/.bash_profile

~ is show the current directory. If you want to know the current directory, just type "pwd".

5. Since the .bash_profile file is empty, we need to edit and enter values in it.

vi /root/.bash_profile

once you are in insert mode , just add 1 line

startx

Now save and exit. There you go. Now you can start running BackTrack without login in.





No comments:

Post a Comment