Autologin on ubuntu-20.04-3.10-minimal

Post Reply
L67GS
Posts: 458
Joined: Wed Apr 22, 2020 3:02 pm
languages_spoken: English, Jibberish, Pig Latin
ODROIDs: XU4, C1+,(3) C0's, and a whole big pile of accessories, VU7A Plus,, ect....
Has thanked: 136 times
Been thanked: 66 times
Contact:

Autologin on ubuntu-20.04-3.10-minimal

Post by L67GS »

I've read through a bunch of stuff but the other posts all seem to reference lightdm, is there an easy autologin method for a headless, console application? (C0/C1+)

User avatar
odroid
Site Admin
Posts: 37286
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1749 times
Been thanked: 1127 times
Contact:

Re: Autologin on ubuntu-20.04-3.10-minimal

Post by odroid »

These users thanked the author odroid for the post:
L67GS (Mon Sep 07, 2020 11:26 am)

L67GS
Posts: 458
Joined: Wed Apr 22, 2020 3:02 pm
languages_spoken: English, Jibberish, Pig Latin
ODROIDs: XU4, C1+,(3) C0's, and a whole big pile of accessories, VU7A Plus,, ect....
Has thanked: 136 times
Been thanked: 66 times
Contact:

Re: Autologin on ubuntu-20.04-3.10-minimal

Post by L67GS »

odroid wrote:
Mon Sep 07, 2020 11:20 am
Consider using "agetty".
https://wiki.odroid.com/odroid-n2/ubunt ... mi_console
Just did it, thank you. Any tips on autustarting programs in a headless console?

User avatar
odroid
Site Admin
Posts: 37286
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1749 times
Been thanked: 1127 times
Contact:

Re: Autologin on ubuntu-20.04-3.10-minimal

Post by odroid »

Add a full path of your program to rc.local file.
https://wiki.odroid.com/odroid-n2/ubunt ... omatically
These users thanked the author odroid for the post:
L67GS (Mon Sep 07, 2020 11:39 am)

L67GS
Posts: 458
Joined: Wed Apr 22, 2020 3:02 pm
languages_spoken: English, Jibberish, Pig Latin
ODROIDs: XU4, C1+,(3) C0's, and a whole big pile of accessories, VU7A Plus,, ect....
Has thanked: 136 times
Been thanked: 66 times
Contact:

Re: Autologin on ubuntu-20.04-3.10-minimal

Post by L67GS »

odroid wrote:
Mon Sep 07, 2020 11:20 am
Consider using "agetty".
https://wiki.odroid.com/odroid-n2/ubunt ... mi_console
It hangs on boot and the blue heartbeat LED quits. No TTY communication either of course..

User avatar
odroid
Site Admin
Posts: 37286
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1749 times
Been thanked: 1127 times
Contact:

Re: Autologin on ubuntu-20.04-3.10-minimal

Post by odroid »

Do you have a serial console via USB-UART bridge for debugging?

L67GS
Posts: 458
Joined: Wed Apr 22, 2020 3:02 pm
languages_spoken: English, Jibberish, Pig Latin
ODROIDs: XU4, C1+,(3) C0's, and a whole big pile of accessories, VU7A Plus,, ect....
Has thanked: 136 times
Been thanked: 66 times
Contact:

Re: Autologin on ubuntu-20.04-3.10-minimal

Post by L67GS »

Yes, and my big computer is Linux as well. It doesn't get a connection after that file is created.
The SBC is a C1+

L67GS
Posts: 458
Joined: Wed Apr 22, 2020 3:02 pm
languages_spoken: English, Jibberish, Pig Latin
ODROIDs: XU4, C1+,(3) C0's, and a whole big pile of accessories, VU7A Plus,, ect....
Has thanked: 136 times
Been thanked: 66 times
Contact:

Re: Autologin on ubuntu-20.04-3.10-minimal

Post by L67GS »

Sorry, I was mistaken, it seems to be fine. I made a couple changes to boot.ini at the same time, that was the real culprit.

User avatar
odroid
Site Admin
Posts: 37286
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1749 times
Been thanked: 1127 times
Contact:

Re: Autologin on ubuntu-20.04-3.10-minimal

Post by odroid »

Is the autologin working now?

L67GS
Posts: 458
Joined: Wed Apr 22, 2020 3:02 pm
languages_spoken: English, Jibberish, Pig Latin
ODROIDs: XU4, C1+,(3) C0's, and a whole big pile of accessories, VU7A Plus,, ect....
Has thanked: 136 times
Been thanked: 66 times
Contact:

Re: Autologin on ubuntu-20.04-3.10-minimal

Post by L67GS »

odroid wrote:
Mon Sep 07, 2020 2:01 pm
Is the autologin working now?
Yes Sir, I tried to disable HDMI in boot.ini because everything from this point is serial on this project, it wasn't amused. All is well now.
These users thanked the author L67GS for the post:
odroid (Mon Sep 07, 2020 3:00 pm)

L67GS
Posts: 458
Joined: Wed Apr 22, 2020 3:02 pm
languages_spoken: English, Jibberish, Pig Latin
ODROIDs: XU4, C1+,(3) C0's, and a whole big pile of accessories, VU7A Plus,, ect....
Has thanked: 136 times
Been thanked: 66 times
Contact:

Re: Autologin on ubuntu-20.04-3.10-minimal

Post by L67GS »

I'm trying to autostart pulseaudio and systemD has run me in circles and no longer amuses me so I went to rc.local and it works but it executes the commands without privileges and the daemon fails to start.

I also tried making a bash script to start with rc.local and the script runs just fine from command line but pulseaudio still fails to start when the script is called from rc.local so I tried adding a sleep ## && to get it to start pulseaudio after the bootup was complete but it still fails (I assume because rc.local didn't have privvies when it was called earlier).

Any suggestions to get rc.local to start pulseaudio daemonized?

L67GS
Posts: 458
Joined: Wed Apr 22, 2020 3:02 pm
languages_spoken: English, Jibberish, Pig Latin
ODROIDs: XU4, C1+,(3) C0's, and a whole big pile of accessories, VU7A Plus,, ect....
Has thanked: 136 times
Been thanked: 66 times
Contact:

Re: Autologin on ubuntu-20.04-3.10-minimal

Post by L67GS »

My journey to auto start led me many directions until I found bashrc and now it's starting right after login!
Any finding this later that are interested:

Code: Select all

root@odroid:~# nano ~/.bashrc
add your command as you'd type it into a terminal at the end of the file.
These users thanked the author L67GS for the post:
odroid (Mon Jan 18, 2021 9:37 am)

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 3 guests