Author Topic: [Solved] How to auto-login sparky linux?  (Read 2035 times)

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
[Solved] How to auto-login sparky linux?
« on: August 26, 2014, 02:23:09 pm »
How to auto-login sparky linux?

I followed this webpage but it didn't work...

Quote
http://elinux.org/RPi_Debian_Auto_Login

Quote
RPi Debian Auto Login

This guide will show you how to login to a Debian image and start LXDE by simply powering the Pi on.
Auto Login:

In Terminal:
Quote
sudo nano /etc/inittab

Scroll down to:

Quote
1:2345:respawn:/sbin/getty 115200 tty1

and change to

Quote
#1:2345:respawn:/sbin/getty 115200 tty1

Under that line add:

Quote
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1

Ctrl+X to exit, Y to save followed by enter twice
Auto StartX (Run LXDE)

In Terminal:

Quote
sudo nano /etc/rc.local

Scroll to the bottom and add the following above exit 0:

Quote
su -l pi -c startx

(where
Quote
pi is the username
you want to run X as). Press Ctrl+X to exit, Y to save followed by Enter twice.

(Note: The previous method indicated that you should add startx to /etc/profile. The updated method is better, since it will cause startx to run only when necessary, and it will not launch the X server as root.)
« Last Edit: August 26, 2014, 06:59:06 pm by way12go »
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: How to auto-login sparky linux?
« Reply #1 on: August 26, 2014, 05:14:16 pm »
It was solved before already.
Type 'auto login' in the forum search box.
Nothing is easy as it looks.

Offline way12go

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 476
  • Existence is all about what matters & what doesn't
Re: How to auto-login sparky linux?
« Reply #2 on: August 26, 2014, 06:58:37 pm »
What I did is
Quote
Step 1:

Quote
sudo gedit /etc/lightdm/lightdm.conf

Quote
edit the file manually, you should change the lines from:

Code:

#autologin-user=
#autologin-user-timeout=0


to:

Code:

autologin-user=your-nickname
autologin-user-timeout=0

Auto login didn't work.

Quote
I changed the above lines or uncommented twice.

First two lines give a descrition like

#autologin-user= use your user name.... etc

Second two lines are

#autologin-user=

etc;

Quote
and then rebooted but it didn't work.

So I uninstalled "slim" login manager

and rebooted and it works.

Now I don't need password-login anymore.
« Last Edit: September 23, 2014, 06:42:32 am by way12go »
Existence is all about what matters and what doesn't. - Sagar Gorijala.

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: [Solved] How to auto-login sparky linux?
« Reply #3 on: August 26, 2014, 08:08:42 pm »
I heard that it doesn't work well in some cases.
But if slim works that's fine.
Nothing is easy as it looks.

Offline GeneC

  • Full Member
  • ***
  • Posts: 126
Re: [Solved] How to auto-login sparky linux?
« Reply #4 on: August 26, 2014, 08:13:37 pm »
Pavroo

You might be interested in this...

http://sparkylinux.org/forum/index.php?topic=2582.new#new

Online pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1462
    • SparkyLinux
Re: [Solved] How to auto-login sparky linux?
« Reply #5 on: August 26, 2014, 10:53:18 pm »
The tool looks interesting...
Nothing is easy as it looks.