autologin (in-car setup)

Talk about anything related to Gentoox or Gentoo.
Post Reply
xdanx
Linux User
Posts: 19
Joined: Wed Jun 15, 2005 7:57 am

autologin (in-car setup)

Post by xdanx »

Can someone show me how to use autologin??I want to be able automacially login KDE as root without having to type username and password.
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX »

pico /etc/conf.d/local.start

where it says "/usr/bin/gdm".. change it to just "startx".
The original Xbox adaptation of Gentoo
xdanx
Linux User
Posts: 19
Joined: Wed Jun 15, 2005 7:57 am

Post by xdanx »

ShALLaX wrote:pico /etc/conf.d/local.start

where it says "/usr/bin/gdm".. change it to just "startx".

There are 3 lines with "/usr/bin/gdm". I changed all of them to "startx" but it doesn't work.

if [ -f /usr/bin/gdm ]; then
echo -n "Starting X" && sleep 1 && echo -n "." && sleep 1 && echo -n "." && sleep 1 && echo -n "." && sleep 1 && echo -n "." && $
fi

/bin/led gggg
chmod 777 /dev/dsp
if [ -f /usr/bin/gdm ]; then
/usr/bin/gdm 1> /dev/null 2> /dev/null
orochi
Gentoox Guru!
Posts: 606
Joined: Sun Oct 24, 2004 8:11 am

Post by orochi »

xdanx wrote:
ShALLaX wrote:pico /etc/conf.d/local.start

where it says "/usr/bin/gdm".. change it to just "startx".

There are 3 lines with "/usr/bin/gdm". I changed all of them to "startx" but it doesn't work.

if [ -f /usr/bin/gdm ]; then
echo -n "Starting X" && sleep 1 && echo -n "." && sleep 1 && echo -n "." && sleep 1 && echo -n "." && sleep 1 && echo -n "." && $
fi

/bin/led gggg
chmod 777 /dev/dsp
if [ -f /usr/bin/gdm ]; then
/usr/bin/gdm 1> /dev/null 2> /dev/null

just change the last bit,

if [ -f /usr/bin/gdm ]; then
/usr/bin/gdm 1> /dev/null 2> /dev/null

to

startx
xdanx
Linux User
Posts: 19
Joined: Wed Jun 15, 2005 7:57 am

Post by xdanx »

orochi wrote:
xdanx wrote:
ShALLaX wrote:pico /etc/conf.d/local.start

where it says "/usr/bin/gdm".. change it to just "startx".

There are 3 lines with "/usr/bin/gdm". I changed all of them to "startx" but it doesn't work.

if [ -f /usr/bin/gdm ]; then
echo -n "Starting X" && sleep 1 && echo -n "." && sleep 1 && echo -n "." && sleep 1 && echo -n "." && sleep 1 && echo -n "." && $
fi

/bin/led gggg
chmod 777 /dev/dsp
if [ -f /usr/bin/gdm ]; then
/usr/bin/gdm 1> /dev/null 2> /dev/null

just change the last bit,

if [ -f /usr/bin/gdm ]; then
/usr/bin/gdm 1> /dev/null 2> /dev/null

to

startx
It doesn't work. It loads up with 3 bash terminals. I can't see the user interface.
ShALLaX
Site Admin
Posts: 1973
Joined: Sun Aug 10, 2003 9:25 pm
Location: England
Contact:

Post by ShALLaX »

It has worked - that has loaded X as root.

Next you need to edit /root/.xinitrc and put "startkde" or "startxfce4" in it.
The original Xbox adaptation of Gentoo
xdanx
Linux User
Posts: 19
Joined: Wed Jun 15, 2005 7:57 am

Post by xdanx »

ShALLaX wrote:It has worked - that has loaded X as root.

Next you need to edit /root/.xinitrc and put "startkde" or "startxfce4" in it.
startxfce4 was already there as default
================================
File: /root/.xinitrc

/usr/bin/X11/xvkbd -geometry 792x130+0-74 &


startxfce4
================================
xdanx
Linux User
Posts: 19
Joined: Wed Jun 15, 2005 7:57 am

Post by xdanx »

I replaced

if [ -f /usr/bin/gdm ]; then
/usr/bin/gdm 1> /dev/null 2> /dev/null


with startxfce4 instead of startx and it works.. thanks alot guys..
xdanx
Linux User
Posts: 19
Joined: Wed Jun 15, 2005 7:57 am

Post by xdanx »

One last questions =)....How do I autologin as normal user?
Post Reply