How to Login BackTrack Automatically

Discussion in 'Resources' started by Mr. Penguin, 20 Aug 2012.

  1. Mr. Penguin

    Mr. Penguin Administrator
    Staff Member VIP Admin

    Joined:
    18 May 2012
    Messages:
    3,093
    Likes Received:
    1,268
    Don't you hate it when you have to type root, toor, startx all the time when you want to use BackTrack? Solution:

    You will need to log into BackTrack and navigate to:
    Code:
    Select All
    ~/etc/rc.local
    and add this line to the code:
    Code:
    Select All
    su -c root startx
    Edit the file / save with your favourite text editor or within Terminal itself.

    This should work with Backtrack 5, R1, R2 and R3. If you have any issues post below.

    Then Reboot :)

    Alternatively there is another method:

    OR

    Install Rungetty
    Code:
    Select All
    apt-get install rungetty
    Now you want to configure the file
    Code:
    Select All
    nano /etc/init/tty1.conf
    Move to the last line and add this symbol: # " before the line "exec /sbin/getty -8 38400 tty1"

    Copy and paste the following below it:
    Code:
    Select All
    exec /sbin/rungetty tty1 --autologin root
    Press Ctrl+O and push Enter to save

    Code:
    Select All
    nano /root/.bash_profile
    and type:

    Code:
    Select All
    startx
    Press Ctrl+O and push Enter to save

    Then reboot and see how you fair
     
  2. Terran

    Terran Guest

    Hi,

    Tried the first option in in a production enviro... no go.
    tried the 2nd suggestion in a VM... no go.

    Any help to get this going ia greatly appreciated.
     
  3. devilan05

    devilan05 Member

    Joined:
    1 Dec 2014
    Messages:
    5
    Likes Received:
    0
    Can't work. Hmm. Try another way.
     

Share This Page

Loading...