123michael456
Posts: 7
Joined: Wed Jul 18, 2012 8:13 pm

Removing Login from startup

Tue Jul 31, 2012 9:50 pm

I don't think this has been asked, but is it possible to have the device boot up automatically without having to type in the username, password and then startx. This would be useful as im currently setting up device to stream music over airplay and the pi booting without typing required would be great.


123michael456
Posts: 7
Joined: Wed Jul 18, 2012 8:13 pm

Re: Removing Login from startup

Wed Aug 01, 2012 12:04 pm

Thanks, worked perfectly!

raspberrypunk
Posts: 1
Joined: Sun Sep 02, 2012 8:12 pm

Re: Removing Login from startup

Sun Sep 02, 2012 8:26 pm

I think this tutorial is outdated now. Because if you follow it, the line of code is different now and if you add what it say, the system will hang. Because mine did :p
Waiting for an update.

Rivelyn
Posts: 11
Joined: Mon May 06, 2013 4:28 pm

Re: Removing Login from startup

Thu May 23, 2013 8:24 pm

Any chance of a current update, I've tried most of the current fixes posted on forum and none of them have worked.

Just got my Pi in 2 weeks ago and I am running the default image of Debian 6 with updates done as of a week ago.

cabulut
Posts: 6
Joined: Sun May 17, 2015 5:26 am

Re: Removing Login from startup

Sat May 30, 2015 6:14 am

When a i apply that solution CLI ask me to enter the password, but i dont want to enter it, i just want my app start automatically.

Thanks

User avatar
AndyD
Posts: 2334
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia

Re: Removing Login from startup

Sat May 30, 2015 9:26 am

cabulut wrote:When a i apply that solution CLI ask me to enter the password, but i dont want to enter it, i just want my app start automatically.

Thanks
As you can see this is ancient. You don't need to go through this to boot into the gui. Use raspi-config to set up Boot to Desktop. Then follow How To Autostart Apps In Rasbian LXDE Desktop.

You should probably undo the steps that you followed from http://elinux.org/RPi_Debian_Auto_Login.

aldobaldo
Posts: 11
Joined: Wed Sep 27, 2017 6:30 pm

Re: Removing Login from startup

Wed Sep 27, 2017 6:41 pm

I am running everything in base console mode as it is really a basic project; I want to start the Pi without a login, and it must start a shell script.
Past instructions was:

a) sudo nano /etc/inittab

disable this line = # at the beginning of the line to comment it out
#1:2345:respawn:/sbin/getty 115200 tty1
Add the following line just below the commented line:
1:2345:respawn:/bin/login -f pi tty1 </dev/tty1 >/dev/tty1 2>&1

b) sudo nano /etc/profile

Add the following line to the end of the file
. /home/pi/initial_script.sh

But now (trying with Jessie Lite) the file inittab does not exist, so I am puzzled.

aldobaldo
Posts: 11
Joined: Wed Sep 27, 2017 6:30 pm

Re: Removing Login from startup

Thu Sep 28, 2017 10:23 pm

I have found this working for me

sudo ln -fs /etc/systemd/system/autologin@.service /etc/systemd/system/getty.target.wants/getty@tty1.service

asno
Posts: 1
Joined: Wed Mar 28, 2018 6:59 pm
Location: México

Re: Removing Login from startup

Wed Mar 28, 2018 7:07 pm

Hi my name is Oscar, I had the same problem and I solved by copying the sd to another sd and the login was removed automatically. I hope it helps.

Return to “Raspberry Pi OS”