Autologin on ubuntu-20.04-3.10-minimal
-
- 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
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+)
- 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
Consider using "agetty".
https://wiki.odroid.com/odroid-n2/ubunt ... mi_console
https://wiki.odroid.com/odroid-n2/ubunt ... mi_console
-
- 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
Just did it, thank you. Any tips on autustarting programs in a headless console?odroid wrote: ↑Mon Sep 07, 2020 11:20 amConsider using "agetty".
https://wiki.odroid.com/odroid-n2/ubunt ... mi_console
- 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
Add a full path of your program to rc.local file.
https://wiki.odroid.com/odroid-n2/ubunt ... omatically
https://wiki.odroid.com/odroid-n2/ubunt ... omatically
-
- 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
It hangs on boot and the blue heartbeat LED quits. No TTY communication either of course..odroid wrote: ↑Mon Sep 07, 2020 11:20 amConsider using "agetty".
https://wiki.odroid.com/odroid-n2/ubunt ... mi_console
- 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
Do you have a serial console via USB-UART bridge for debugging?
-
- 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
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+
The SBC is a C1+
-
- 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
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.
- 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:
-
- 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
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.
-
- 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
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?
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?
-
- 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
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:
add your command as you'd type it into a terminal at the end of the file.
Any finding this later that are interested:
Code: Select all
root@odroid:~# nano ~/.bashrc
Who is online
Users browsing this forum: No registered users and 3 guests