[SOLVED] Raspberry Pi, "Automatic login to virtual console"

Ask questions about Arch Linux ARM. Please search before making a new topic.

[SOLVED] Raspberry Pi, "Automatic login to virtual console"

Postby agkbill » Tue Feb 24, 2015 7:29 am

Hi,

I have been following the Wiki page "Automatic login to virtual console"

In /etc/systemd/system I created the folder getty@tty1.service.d.

In getty@tty1.service.d folder I created the file override.conf.

override.conf

$this->bbcode_second_pass_quote('', '[')Service]
ExecStart=
ExexStart=-/sbin/agetty --autologin christer --noclear %I 38400 linux


This have worked great on my laptop but not on the Raspberry Pi.
It looks like it never compleat the login and the boot autologin just stops.

If I look at dmesg I se (only including the last lines).

    [ 8.178055] systemd[1]: Started Load Kernel Modules.
    [ 8.369103] systemd[1]: Started udev Coldplug all Devices.
    [ 8.887813] .
    [ 9.553212] systemd[1]: Starting Apply Kernel Variables...
    [ 9.606264] systemd[1]: Mounting Configuration File System...
    [ 9.651254] systemd[1]: Mounted FUSE Control File System.
    [ 9.698302] systemd[1]: Starting Load/Save Random Seed...
    [ 9.765407] systemd[1]: Started Rebuild Dynamic Linker Cache.
    [ 9.789136] systemd[1]: Started First Boot Wizard.
    [ 9.801069] systemd[1]: Started Create System Users.
    [ 9.820171] systemd[1]: Starting Create Static Device Nodes in /dev...
    [ 9.884127] systemd[1]: Started Rebuild Hardware Database.
    [ 9.900468] .
    [ 9.978228] systemd[1]: Mounted Configuration File System.
    [ 10.020780] systemd[1]: Started Journal Service.
    [ 10.659127] systemd-journald[96]: Received request to flush runtime journal from PID 1
    [ 10.917786] ..ready
    [ 12.055768] sd 0:0:0:0: [sda] 1953458176 512-byte logical blocks: (1.00 TB/931 GiB)
    [ 12.108589] sd 0:0:0:0: [sda] Write Protect is off
    [ 12.145377] sd 0:0:0:0: [sda] Mode Sense: 53 00 10 08
    [ 12.146197] sd 0:0:0:0: [sda] No Caching mode page found
    [ 12.188020] sd 0:0:0:0: [sda] Assuming drive cache: write through
    [ 12.227313] random: nonblocking pool is initialized
    [ 12.238007] sda: sda1 sda2
    [ 12.274127] sd 0:0:0:0: [sda] Attached SCSI disk
    [ 12.311651] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [ 15.022256] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup
    [ 15.035370] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 16.589484] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0x41E1
    [ 16.631276] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

I can ssh and login, and if I as root use command "users" to see if user christer have been automatically logged in I see that that is not the case, only root.

How to do "Automatic login to virtual console" raspberry pi, is this the wrong way to do on the pi?

Any input would be most appreciated.
All the best!
Christer
Last edited by agkbill on Thu Mar 12, 2015 6:50 am, edited 1 time in total.
agkbill
 
Posts: 4
Joined: Tue Feb 24, 2015 7:22 am

Re: Raspberry Pi, "Automatic login to virtual console"

Postby agkbill » Thu Mar 12, 2015 6:49 am

I got this working following this thread.

$this->bbcode_second_pass_quote('', '
')viewtopic.php?f=31&t=4884&hilit=Automatic+login


Basicly what I did was to edit exectstart line in /usr/lib/systemd/system/getty@.service
ExecStart=-/sbin/agetty -a USER --noclear %I 38400

All the best.
agkbill
 
Posts: 4
Joined: Tue Feb 24, 2015 7:22 am


Return to User Questions

Who is online

Users browsing this forum: No registered users and 9 guests

cron