Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: [HOW-TO] BT5 Automatically: Login / Startx

  1. #1
    Junior Member Deadboy's Avatar
    Join Date
    May 2009
    Location
    Louisiana
    Posts
    39

    Default [HOW-TO] BT5 Automatically: Login / Startx

    Firstly, I know this is a "How-To" and not a fix but when I tried to start a thread in the "How-To's" section it said I have insufficient privileges, so mods feel free to move this thread if you like.

    So, I'll just start with a disclaimer to avoid numerous reply's by saying, Auto logging in as root is not advisable. Do this at your own risk.


    UPDATE: YoMoZ's post describes the simplest way to auto log-in & startx...
    Code:
    just add this line : su -c root startx 
    in /etc/rc.local
    save and reboot your system
    OR

    Install rungetty...
    Code:
    apt-get install rungetty
    Then, in a terminal type:
    Code:
    nano /etc/init/tty1.conf
    use the arrow keys to move down to the last line and add a " # " before the line "exec /sbin/getty -8 38400 tty1" ...then copy and paste the following line below it:
    Code:
    exec /sbin/rungetty tty1 --autologin root
    Once that's done, press Ctrl+O and Enter to save

    Next run the following command:
    Code:
    nano /root/.bash_profile
    and type "startx" then press Ctrl+O and Enter to save.

    That's it. Reboot!
    Last edited by Deadboy; 05-25-2011 at 10:55 AM.
    "Why is it drug addicts and computer afficionados are both called users? "

  2. #2
    Just burned his ISO
    Join Date
    May 2011
    Posts
    2

    Default Re: [HOW-TO] BT5 Automatically: Login / Startx

    This worked for me.
    Thanks!

  3. #3
    Just burned his ISO
    Join Date
    Jan 2010
    Location
    Italy
    Posts
    1

    Default Riferimento: Re: [HOW-TO] BT5 Automatically: Login / Startx

    you don't need to install anything....
    just add this line : su -c root startx
    in /etc/rc.local
    save and reboot your system

  4. #4
    Junior Member Deadboy's Avatar
    Join Date
    May 2009
    Location
    Louisiana
    Posts
    39

    Default Re: Riferimento: Re: [HOW-TO] BT5 Automatically: Login / Startx

    Quote Originally Posted by YoMoZ View Post
    you don't need to install anything....
    just add this line : su -c root startx
    in /etc/rc.local
    save and reboot your system
    Good to know. I'll include this in my original post.
    Last edited by Deadboy; 05-19-2011 at 11:51 PM.
    "Why is it drug addicts and computer afficionados are both called users? "

  5. #5
    Junior Member leg3nd's Avatar
    Join Date
    Feb 2011
    Posts
    32

    Default Re: [HOW-TO] BT5 Automatically: Login / Startx

    Just wanted to give an example here, While YoMoZ's is easier to implement, it did not work on my system as I run as a seperate, non unique root user and disabled the normal root account. Mainly because the particular box has SSH exposed to the internet and obviously its much better to not login with 'root'.

    In this case the rungetty worked, while the other did not. Thanks for the tutorial.

    EDIT: Keep in mind, if you ssh into the box with these settings it will startx as well... If you Ctrl+C it should stop the process, but probably good to know.
    Last edited by leg3nd; 05-23-2011 at 06:37 PM.

  6. #6
    Member
    Join Date
    Sep 2010
    Location
    Eastern Island
    Posts
    96

    Default Re: [HOW-TO] BT5 Automatically: Login / Startx

    thanks!!! worked for me too...

  7. #7
    Just burned his ISO
    Join Date
    Jun 2011
    Posts
    1

    Default Re: [HOW-TO] BT5 Automatically: Login / Startx

    I tried both of these methods and couldn't get either to work. After trying the second one I am unable to boot all the way. It gets stuck just before where I would usually type in my user name and password (root and toor). I eventually just reinstalled Backtrack but now I'm back to square one. I'm trying very hard to make backtrack usable as a permanent OS for my netbook but It's the small problums like this that shoot my hopes and dreams down. thoughts appreciated.

  8. #8
    Senior Member
    Join Date
    Feb 2009
    Posts
    153

    Default Re: [HOW-TO] BT5 Automatically: Login / Startx

    Is there a way to just auto startx but not force the login, but imply KDM login gfx?? Been a while lol

  9. #9
    Member shadowzero's Avatar
    Join Date
    Jun 2011
    Location
    ${HOME}
    Posts
    94

    Default Re: [HOW-TO] BT5 Automatically: Login / Startx

    Quote Originally Posted by fossilk1 View Post
    Is there a way to just auto startx but not force the login, but imply KDM login gfx?? Been a while lol
    Try looking in the How-To forum.

  10. #10
    Senior Member
    Join Date
    Feb 2009
    Posts
    153

    Default Re: [HOW-TO] BT5 Automatically: Login / Startx

    yea i already looked in there and my kdm.conf already has exec kdm in it... maybe I am not explaining myself correctly. So I will make it simple, once BT5 boots ups I want it to go straight to the gui login. So it looks like if you were to lock the desktop to sign in.. does that make sense?

Page 1 of 2 12 LastLast

Similar Threads

  1. Modify: Startx automatically, add apt, etc
    By Imrhien in forum BackTrack 5 Beginners Section
    Replies: 7
    Last Post: 08-08-2011, 02:20 PM
  2. Startx: user login problem
    By zer0nymous in forum OLD Newbie Area
    Replies: 5
    Last Post: 04-05-2010, 06:41 PM
  3. How do I setup BackTrack to start the GUI automatically, and give me a GUI login?
    By balding_parrot in forum Frequently Asked Questions
    Replies: 0
    Last Post: 02-28-2010, 06:39 AM
  4. Adduser, login as user, startx = doesn't work
    By holdmypocket in forum OLD Newbie Area
    Replies: 4
    Last Post: 04-21-2008, 02:37 PM
  5. set static ip to hdd install & startx automatically
    By BitLocker in forum OLD BT3beta Software related issues
    Replies: 3
    Last Post: 04-02-2008, 09:17 PM

Posting Permissions

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