Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: How to autologin / auto startx / auto booting

Hybrid View

  1. #1
    Junior Member
    Join Date
    Sep 2007
    Posts
    81

    Default How to autologin / auto startx / auto booting

    make you not have to type startx every time you boot, it goes right to desktop.
    Using this on backtrack 4 Pre Final persistent changes.


    Code:
    nano /root/.bash_profile
    enter:
    Code:
    startx
    ctrl+o #WriteOut (o=letter, NOT a zero)
    enter #save
    ctrl+x #Exit

    all done!! reboot and try it out.

    you can put all kind of things you want to autostart in this file, like me, I have put "start-network" and "wicd-client" so that I have working network every time I boot.


    credit goes to: DjTaz / http://forums.remote-exploit.org/lat...g-options.html

  2. #2
    Good friend of the forums Eatme's Avatar
    Join Date
    Aug 2009
    Location
    Socks5
    Posts
    308

    Default

    cool thanks, i was trying to figure how to do this..

    But i want mine to auto start with root already being the user name..and it just asks for the password.

    and after password is entered it auto starts startx.

  3. #3

  4. #4
    Just burned his ISO
    Join Date
    Jan 2009
    Posts
    18

    Default

    Little correction for you,
    in nano use Ctrl not shift. to save ctrl+o
    Grammar takes to long.

  5. #5
    Junior Member
    Join Date
    Sep 2007
    Posts
    81

    Default

    Quote Originally Posted by Nlantz View Post
    Little correction for you,
    in nano use Ctrl not shift. to save ctrl+o
    tnx. edited first post

  6. #6
    Just burned his ISO
    Join Date
    Mar 2009
    Posts
    4

    Default

    Whoops, double post :x

    People people,

    Why should you install all kinds of new unneccary software???

    First you need to setup a root password, you can do this by entering the root enviroment. You can do this by typing 'sudo su' in a prompt. After you have succesful enterred the root enviroment you can change your password with the following command: 'passwd'

    Now we need to edit /etc/rc.local with a texteditor, like VI or nano.

    Add the following line before the 'exit 0' line.
    -------------------
    su root -c startx
    -------------------

    Save & reboot, and voila no more login prompt.

  7. #7
    Junior Member
    Join Date
    Jan 2010
    Posts
    76

    Default

    Gracias >agrix< tu informacion me funciono

  8. #8
    Junior Member najib's Avatar
    Join Date
    Jul 2008
    Posts
    52

    Talking @Micked

    How do I come back
    to the situation before configuring the auto boot ?
    If sometime I change my mind

    NjB

  9. #9
    Just burned his ISO
    Join Date
    Mar 2009
    Posts
    4

    Default

    .. remove this post please

  10. #10
    Just burned his ISO
    Join Date
    Oct 2006
    Posts
    9

    Default

    Quote Originally Posted by agrix View Post

    Add the following line before the 'exit 0' line.
    -------------------
    su root -c startx
    -------------------

    Save & reboot, and voila no more login prompt.

    thank you, this works.
    but I want to run startx as a user, not as root...

    How do i do that? I mean automatically...

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •