[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! :cool:
Re: [HOW-TO] BT5 Automatically: Login / Startx
This worked for me.
Thanks!
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
Re: Riferimento: Re: [HOW-TO] BT5 Automatically: Login / Startx
Quote:
Originally Posted by
YoMoZ
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.
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.
Re: [HOW-TO] BT5 Automatically: Login / Startx
thanks!!! worked for me too... :)
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.
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
Re: [HOW-TO] BT5 Automatically: Login / Startx
Quote:
Originally Posted by
fossilk1
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.
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?