peterm6881 has joined #Speedsaver
<peterm6881> hey Xogium
<peterm6881> :/
<peterm6881> hey
<peterm6881> this is what I currently do
<peterm6881> sudo cp /lib/systemd/system/serial-getty@.service /etc/systemd/system/serial-getty@ttyS0.service
<peterm6881> ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,38400,9600 %I $TERM
<peterm6881> change the line
<peterm6881> sudo nano /etc/systemd/system/serial-getty@ttyS0.service
<peterm6881> to
<peterm6881> ExecStart=-/sbin/agetty --autologin admin --noclear --keep-baud 115200,38400,9600 %I $TERM
<peterm6881> sudo ln -s /etc/systemd/system/serial-getty@ttyS0.service /etc/systemd/system/getty.target.wants/ (may exist!)
<peterm6881> sudo systemctl daemon-reload
<peterm6881> sudo systemctl start serial-getty@ttyS0.service
<peterm6881> sudo systemctl enable serial-getty@ttyS0.service
<peterm6881> sudo systemctl start serial-getty@ttyS0.service
<peterm6881> so you reckon it should be:
<peterm6881> sudo cp /lib/systemd/system/getty@tty1.service /etc/systemd/system/getty@tty1.service
<peterm6881> change the line
<peterm6881> to
<peterm6881> sudo nano /etc/systemd/system/getty@tty1.service
<peterm6881> ExecStart=-/sbin/agetty -o '-p -- \\u' --keep-baud 115200,38400,9600 %I $TERM
<peterm6881> ExecStart=-/sbin/agetty --autologin admin --noclear --keep-baud 115200,38400,9600 %I $TERM
<peterm6881> sudo ln -s /etc/systemd/system/getty@tty1.service /etc/systemd/system/getty.target.wants/ (may exist!)
<peterm6881> sudo systemctl daemon-reload
<peterm6881> sudo systemctl start getty@tty1.service
<peterm6881> sudo systemctl enable getty@tty1.service
<peterm6881> sudo systemctl start getty@tty1.service
<peterm6881> does that look right?
<Xogium> the ls -s is redundant if you use systemctl enable
<Xogium> systemctl enable just creates a symbolic link
<Xogium> er ln -s sorry
<peterm6881> yeah thats why i put "may exist"
<Xogium> I'd try that
<peterm6881> I didnat wanna leave it out in case i ever came across a situation where it was needed, but very well spotted
<Xogium> its definitely not needed
<peterm6881> i can just ditch that step altogether, to be clear?
<Xogium> yes
<peterm6881> nice
<peterm6881> thank you
<Xogium> if you use ln -s you don't use systemctl enable, if you use systemctl enable you don't use ln -s
<Xogium> tty1 might already be started, so you might need to reboot to see any change
<Xogium> those ttys are always running
<Xogium> at least I think
<peterm6881> this will be so cool if it works
<Xogium> btw you can download the new rootfs with thet otg mode at the same link I sent you yesterday
<Xogium> er the otg mode
<peterm6881> outstanding. Ok let me test that first
<peterm6881> downloading
<peterm6881> 50%
<peterm6881> booting
<peterm6881> Jookia was right
<peterm6881> its not connected
<peterm6881> no change
<peterm6881> wow
<peterm6881> thats literally amazing
<Xogium> sorry internet exploded
<peterm6881> this is the shittest board ever to briefly see the light of day. The really sad part is a buncjh of people will buy it before they discover the truth
<Xogium> I didn't think it would change anything, given that host mode didn't work
<peterm6881> why do you think Mangobuge said he tested it an it works, just a lie?
<Xogium> dunno at this point, I really don't know a damn thing anymore
<peterm6881> &usb_otg {
<peterm6881> };
<peterm6881> status = "okay";
<peterm6881> &usbphy {
<peterm6881> dr_mode = "otg"; /* host peripheral otg*/
<peterm6881> status = "okay";
<peterm6881> usb0_id_det-gpios = <&pio 0 1 (GPIO_ACTIVE_HIGH | GPIO_PULL_UP)>; /* PA1 0a1b2c3d4e5f6g7h */
<peterm6881> };
<peterm6881> can you check if the rest of it is the same, maybe we missed something
<peterm6881> yeah its sickening how big a pile of shite this board is in every single possible way, right from obsolete architecture down
<Xogium> its definitely exacly how it shows now in the dts
<peterm6881> thanks Xogium
<Xogium> maybe its also our otg adapters that are broken
<Xogium> for all we know
<peterm6881> or dont have the pin
<Xogium> one way you could test would be to use one of these on a tablet or such with micro usb port, and connect a keyboard for input or something
<peterm6881> let me try the hub
<peterm6881> nope, no lsusb in any of the 3 switch positions
<peterm6881> with the wifi dongle connected, I'll update the Issue
<peterm6881> can you close that other one
<peterm6881> now-ish
<Xogium> mmh yeah, sorry for yesterday, I felt very dizzy out of nowhere and had to rest down on my back
<Xogium> buddy even had to carry me because I couldn't alk
<Xogium> walk
<peterm6881> crumbs sorry to hear that Xogium
<peterm6881> this thing is a fucking lost cause
<Xogium> can you give me the url to the dfrobot buildroot repo again ?
<peterm6881> sure hang on
<Xogium> thanks
<Xogium> 添加esp8089驱动
<Xogium> lol
<Xogium> ok so I know exactly what kind of wifi sdio they offer
<Xogium> the exact same one that was with my lichee nano and didn't work in linux
<peterm6881> SDIO wifi modules are practically non existent, looks like that type of device never took off
<Xogium> actually they are
<peterm6881> these boards are a comedy of fucking errors
<Xogium> except that generally… they are soldered in
<peterm6881> i meant the micro SD versions
<peterm6881> but point taken
<Xogium> the wifi on opi 0 is using sdio, the wifi on raspberry pi uses sdio, so does the one on odyssey and the one on st32mp1 dev kit from st
<Xogium> ah yes
<peterm6881> ok ok lol
<Xogium> but… yeah the micro sd version kind of sucks
<Xogium> closed the issue with a comment to show what solved it btw
<peterm6881> I think hobbyists made it for fun, to prove they could
<peterm6881> thanks Xogium
<peterm6881> => usb start
<peterm6881> No working controllers found
<peterm6881> =>
<peterm6881> starting USB...
<peterm6881> was just curious
<peterm6881> alright, switching to Orange Pi Zero, fucking way better board, AGAIN
<Xogium> yes that usb start like I mentioned in the issue
<Xogium> John's theory at this point is that the cable used to power the board might be dropping the voltage too much accross so otg doesn't get enough to power devices
<peterm6881> its dropping from 4.96 on the NEC to 4.85, plus these Signalex cables are offically rated at 1.5 Amps. But he's right that historically, lack of power has been, frankly, a fucking nightmare because its unpredictable
<Xogium> right…
<Xogium> still can be if you do weird things
<Xogium> like power a rpi and try to attach 2 external drives to it lol
<Xogium> drives are going to constantly disconnect from the rpi
<peterm6881> im creating a new OPi0 internet radio image
<peterm6881> do you think we could integrate the knowledge you got on WPS?
<peterm6881> gotta say, Armbian's initial setup gets better all the time, it promps you now to connect to wifi if theres no ethernet
<peterm6881> by the way, you still have a working OPi0 right?
<Xogium> mmh possibly ?
<peterm6881> you chukced the fired on I presume
<peterm6881> chucked
<peterm6881> i have a question, if i wanna create a playlist.txt file, do i just sudo nano playlist, or should i specify sudo nano playlist.txt
<Xogium> what do you mean ?
<peterm6881> fried * grrr
<Xogium> oh no, I kept it, just for the hell of it
<peterm6881> if i wanna create a plain text file, do I have to append the filename with .txt
<Xogium> in linux extensions are never needed
<peterm6881> or is that superfluous
<Xogium> it just makes it clearer what file it is
<peterm6881> understood
<sc6502> Hey all
<Xogium> hey Steve !
<Xogium> enjoying your sunday ?
<sc6502> Finally got python2 off my system again, and it still builds with the patch (checking one more time)
<Xogium> niceness
<sc6502> Do you all want to be on the bcc list for this commit ?
<Xogium> oh nah, not me. Peter might want to, though
<peterm6881> sc6502, yes please
<peterm6881> admin@orangepizero:~$ sudo cp /lib/systemd/system/getty@tty1.service /etc/systemd/system/getty@tty1.service
<peterm6881> cp: cannot stat '/lib/systemd/system/getty@tty1.service': No such file or directory
<peterm6881> Tried the same thing as root, same error
<sc6502> Your usual address, or the one you used to subscribe to the list?
<peterm6881> Xogium, any thoughts?
<peterm6881> good question sc6502, make it the buildrootmailinglist account
<peterm6881> it'll be easier to pick it out
<sc6502> ok
<peterm6881> cheers
<Xogium> hmm
<Xogium> maybe armbian stores them in /usr/lib instead ?
<peterm6881> no it worked before
<peterm6881> when i was setting up autologin on ttyS0
<Xogium> hmm
<Xogium> maybe I have wrong file name…
<peterm6881> it would be super cool if something was simple, once
<Xogium> let me check
<Xogium> hrmmm I don't even get that file on my system… The serial-getty@ttyS0
<peterm6881> sigh...
<Speedsaver> Title: getty - ArchWiki (at wiki.archlinux.org)
<Xogium> maybe ?
<peterm6881> I'll give it a go
<peterm6881> i better create a user account
<peterm6881> otherwise itll play every time i ssh in as admin
<Xogium> mmh ssh user don't log in on ttyN
<Xogium> they use pts
<Xogium> xogium pts/2 08Feb22 4.00s 33.06s 32.85s screen -x
<peterm6881> wow mplayer wont play a playlist in armbian, super wow
<Xogium> how ?
<Xogium> what does it complain about ?
<peterm6881> Playing mplayer http://stream.radioparadise.com/mellow-flac.
<peterm6881> No stream found to handle url mplayer http://stream.radioparadise.com/mellow-flac
<Xogium> I thought you had it working before ?
<peterm6881> it plays the individual stream no problem, just wont play the playlist. It's official, I literally do not have any luck
<peterm6881> yes it plays in Lubuntu, I never tried a playlist in Armbian
<sc6502> Blue touch paper has been lit :)
<peterm6881> ;)
<peterm6881> I get this at the start, but I doubt its helpful or related
<peterm6881> admin@orangepizero:~$ mplayer -playlist playlist.txt
<peterm6881> MPlayer 1.4 (Debian), built with gcc-10 (C) 2000-2019 MPlayer Team
<peterm6881> do_connect: could not connect to socket
<peterm6881> connect: No such file or directory
<peterm6881> Failed to open LIRC support. You will not be able to use your remote control.
<peterm6881> then again, perhaps it is
<peterm6881> I know i cant use mpv
<peterm6881> sadly
<Xogium> I was about to ask if your network was working but…
<Xogium> of course it is or mplayer wouldn't be installed
<peterm6881> yeah as i said the individual stream plays no problem
<peterm6881> its just playlist that fails, fucking unreal
<Xogium> maybe try --playlist= ?
<peterm6881> whatever bs version Armbian has doesnt allow that
<Xogium> oh well
<peterm6881> Error parsing option on the command line: --playlist=playlist.txt
<peterm6881> Unknown option on the command line: --playlist=playlist.txt
<peterm6881> MPlayer 1.4 (Debian), built with gcc-10 (C) 2000-2019 MPlayer Team
<peterm6881> admin@orangepizero:~$ mplayer --playlist=playlist.txt
<peterm6881> admin@orangepizero:~$
<Xogium> heh 2019, indeed
<peterm6881> get this, in Lubuntu its MPlayer 1.3.0 (Debian), built with gcc-9 (C) 2000-2016 MPlayer Team
<peterm6881> such bullshit
<peterm6881> well thats that then
<peterm6881> thats not really fair, that even if I got autologon working on tty1, mplayer refuses to play a playlist, and mpv only plays for 10 minutes
<peterm6881> yeah, thats fucking harsh
<peterm6881> wait, im an idiot
<peterm6881> spot the deliberate stupidity
<sc6502> PICNIC
<peterm6881> are we invited?
<peterm6881> or is that an acronym for me being a plank
<sc6502> No, a PICNIC problem is Problem In Chair Not In Computer
<peterm6881> haha
<peterm6881> love it
<peterm6881> No stream found to handle url mplayer http://stream.radioparadise.com/mellow-flac
<peterm6881> umm... forgot to take out the app when i copied and pasted into playlist
<peterm6881> PICNIC indeed
<peterm6881> tbh, i shouldn't be allowed out, too dumb to live. You should need a license to breed from specimens like me
<peterm6881> somebody check on Xogium, prolly having convulsions
<peterm6881> sc6502, got the email, nice work, thanks for that
<sc6502> Let's hope it goes through.
<peterm6881> indeed, let me know if you get a response. I think they will see the value in this
<peterm6881> Xogium, did you ever get any kind of reply from Michel Stempin?
<Xogium> none
<peterm6881> let the carnival begin
<Xogium> there's also another acronym to define that the problem is between the chair and keyboard
<peterm6881> Xogium, have you any knowledge how long Buildroot normally take to turn around a straightforward patch?
<Xogium> pebcak
<peterm6881> go on....
<Xogium> problem exists between the computer and the chair
<Xogium> or keyboard in that case
<peterm6881> :)
<peterm6881> This'll be great if they accept it, a mechanism for us to maintain support
<Xogium> I'm not sure how long it can take for patches to be accepted, given I didn't submit any
<sc6502> Well if the current maintainer doesn't respond, it might be a case of "tag, you're it" :)
<Xogium> indeed
<sc6502> Later all.
<Xogium> seeya
<peterm6881> bye sc6502 thanks again
<peterm6881> well, another milestone, we submitted our first patch
<peterm6881> and its a good one
<peterm6881> configs/licheepi_zero_defconfig | 2 +-
<peterm6881> 1 file changed, 1 insertion(+), 1 deletion(-)
<peterm6881> --- a/configs/licheepi_zero_defconfig
<peterm6881> index 2e1a413988..d7a281a0a0 100644
<peterm6881> diff --git a/configs/licheepi_zero_defconfig b/configs/licheepi_zero_defconfig
<peterm6881> +++ b/configs/licheepi_zero_defconfig
<peterm6881> @@ -36,7 +36,7 @@ BR2_TARGET_ROOTFS_EXT2_4=y
<peterm6881> BR2_TARGET_UBOOT=y
<peterm6881> BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
<peterm6881> BR2_TARGET_UBOOT_CUSTOM_VERSION=y
<peterm6881> -BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.10"
<peterm6881> +BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.01"
<peterm6881> BR2_TARGET_UBOOT_BOARD_DEFCONFIG="LicheePi_Zero"
<peterm6881> BR2_TARGET_UBOOT_NEEDS_DTC=y
<peterm6881> BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
<peterm6881> --
<peterm6881> 2.25.1
<peterm6881> You still ok not being mentioned?
<Xogium> absolutely
<peterm6881> as you wish
<peterm6881> is the above what you expected?
<Xogium> I get a feeling that if I were to be mentioned anywhere then they would immediately pounce on me and bother me with submitting under my real name
<Xogium> yeah, pretty much
<peterm6881> we can drop the subject
<Xogium> I just hope Steve won't have any issue with how toxic the community is
<peterm6881> I know exactly what you're saying. Its sad, but as present thats how it is. A curated database is the solution, but like somebody said, the community would oppose any kind of centralisation
<peterm6881> A register of real names and nicks. It would double the community overnight
<peterm6881> but whos gonna run it, nobody because its against the ethos of open source
<peterm6881> way too much power in one hands
<peterm6881> Maybe Andrew Lee would run it....
<peterm6881> yeah he'd fucking love that
<peterm6881> ;)
<peterm6881> Xogium, can I ask you something
<Xogium> sure
<peterm6881> if i wanted to create a user with useradd, should i include any options?
<peterm6881> its for the autologon account, purely to play the playlist
<Xogium> hmm
<Xogium> I don't believe so
<peterm6881> i guess they dont even need a password, certainly it doesnt force you to set one
<Xogium> well, no password with an autologin user could be exploited easily
<peterm6881> ha, although having said that, guess what? I cant login lol
<Xogium> aye, ssh doesn't let you log in without a password
<peterm6881> you would think it would be smart enough to force me to set one
<Xogium> no, you don't always need a password
<peterm6881> well, im connected via gadget serial, so thats a serial connection, not ssh
<Xogium> when you create an user that you shouldn't log in as, for instance
<Xogium> then if there's no password, you shouldn't be prompted for one
<peterm6881> Password:
<peterm6881> orangepizero login:
<peterm6881> Login incorrect
<peterm6881> orangepizero login: user
<peterm6881> guess i need to set one
<Xogium> weird
<peterm6881> yeah, a little
<peterm6881> i just pressed enter at Password, but why even prompt me for it
<Xogium> I'm not sure
<peterm6881> meh, every day is a school day
<peterm6881> maybe its some Armbian weirdness
<peterm6881> Welcome to Armbian 22.02.1 with Linux 5.15.25-sunxi
<peterm6881> set a passwd, all good
<peterm6881> looks like a suer account is gonna be way too much trouble, I cant even create a playlist without fucking weirdness
<peterm6881> user
<peterm6881> [ Problems with history file ]
<peterm6881> Unable to create directory //.local/share/nano/: No such file or directory
<peterm6881> It is required for saving/loading search history or cursor positions.
<Xogium> well there's litterally no difference between a simple user account and an admin account, other than the admin has sudo
<peterm6881> so, fuck that
<peterm6881> yeah
<peterm6881> Perhaps, Armbian, not great on this
<peterm6881> how do i give user sudo?
<peterm6881> i just wanna keep admin separate from the autologon account ffs
<Xogium> well…
<peterm6881> let me try rebooting, hang on
<Xogium> if you give that user sudo then its a huge risk given that it autolgin
<peterm6881> na its fucked
<peterm6881> what do you make of this
<peterm6881> when i log in as user i get No directory, logging in with HOME=/
<Xogium> what did you pass to adduser ?
<Xogium> or useradd
<peterm6881> nothing, no options
<Xogium> hmm
<Xogium> maybe delete the user and try -m to make it create its home dir
<peterm6881> how do i delete a user?
<Xogium> userdel
<Xogium> I think it is
<Xogium> userdel username
<peterm6881> yeah
<peterm6881> so far so good, no error
<peterm6881> yup that fixed it, nice one, well done
<Xogium> I thought that -m would be a default
<Xogium> maybe its not
<peterm6881> unsurprisingly, cant play streams under this user account
<peterm6881> it was just too much to ask
<Xogium> huh ?
<peterm6881> user@orangepizero:~$ mplayer http://stream.radioparadise.com/mellow-flac
<peterm6881> MPlayer 1.4 (Debian), built with gcc-10 (C) 2000-2019 MPlayer Team
<peterm6881> Resolving stream.radioparadise.com for AF_INET6...
<peterm6881> Couldn't resolve name for AF_INET6: stream.radioparadise.com
<peterm6881> Resolving stream.radioparadise.com for AF_INET...
<peterm6881> Connecting to server stream.radioparadise.com[93.190.141.46]: 80...
<peterm6881> Name : Radio Paradise Mellow Mix (flac) - playlist: radioparadise.com
<peterm6881> Genre : Eclectic
<peterm6881> Website: https://radioparadise.com
<Speedsaver> Title: Radio Paradise (at radioparadise.com)
<peterm6881> Public : yes
<peterm6881> Bitrate: 1441kbit/s
<peterm6881> Cache size set to 320 KBytes
<peterm6881> Cache fill: 0.00% (0 bytes)
<peterm6881> [Ogg] stream 0: audio (FLAC, try 2), -aid 0
<peterm6881> Ogg file format detected.
<peterm6881> Ogg : bad packet in stream 0
<peterm6881> ==========================================================================
<peterm6881> Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
<peterm6881> libavcodec version 58.91.100 (external)
<peterm6881> AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
<peterm6881> Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
<peterm6881> ==========================================================================
<peterm6881> AO: [pulse] Init failed: Connection refused
<peterm6881> Failed to initialize audio driver 'pulse'
<peterm6881> [AO_ALSA] alsa-lib: confmisc.c:767:(parse_card) cannot find card '0'
<peterm6881> [AO_ALSA] alsa-lib: conf.c:4745:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
<peterm6881> [AO_ALSA] alsa-lib: confmisc.c:392:(snd_func_concat) error evaluating strings
<peterm6881> [AO_ALSA] alsa-lib: conf.c:4745:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
<peterm6881> [AO_ALSA] alsa-lib: confmisc.c:1246:(snd_func_refer) error evaluating name
<peterm6881> [AO_ALSA] alsa-lib: conf.c:4745:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
<peterm6881> [AO_ALSA] alsa-lib: conf.c:5233:(snd_config_expand) Evaluate error: No such file or directory
<peterm6881> [AO_ALSA] alsa-lib: pcm.c:2660:(snd_pcm_open_noupdate) Unknown PCM default
<peterm6881> [AO_ALSA] Playback open error: No such file or directory
<peterm6881> Failed to initialize audio driver 'alsa'
<peterm6881> [AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
<peterm6881> [AO SDL] using aalib audio driver.
<peterm6881> [AO SDL] Unable to open audio: No available audio device
<peterm6881> Failed to initialize audio driver 'sdl:aalib'
<peterm6881> Could not open/initialize audio device -> no sound.
<peterm6881> Audio: no sound
<peterm6881> Video: no video
<peterm6881> Exiting... (End of file)
<peterm6881> user@orangepizero:~$
<peterm6881> bot is back
<peterm6881> Could not open/initialize audio device -> no sound.
<Xogium> hmm
<Xogium> lets try something
<Xogium> recreate that user
<Xogium> again
<Xogium> pass both -m and this setting
<Xogium> -G audio
<Xogium> so useradd -G audio -m user
<Xogium> I think you run puree alsa on armbian and so it requires you to have the permission to access the audio device
<Xogium> *pure alsa
<peterm6881> sounds sane ;)
<peterm6881> had to delete /home/user
<Xogium> ah, userdel doesn't do ? I could see why, if you want tokeep the existing dir
<peterm6881> interesting it allows you to delete a user but keep their home directory, probably for the police
<peterm6881> ;)
<peterm6881> gendarmerie
<Xogium> nah its useful if you want to recreate the user but ont delete the data
<Xogium> *not
<peterm6881> or the police ;) I guess you could change their password
<Xogium> or disallow login
<peterm6881> yeah that worked, outstanding, I've updated my notes
<peterm6881> and thats gives me access to alsamixer
<Xogium> good
<peterm6881> you're pretty good at this ;)
<Xogium> well I kind of go by logical things
<Xogium> and given the error message I was pretty sure that it was it
<peterm6881> so far so good, its playing the playlist, and ive added it to the profile
<peterm6881> now for autologon
<peterm6881> should be autologin really
<peterm6881> since the prompt is login and the command is logout
<peterm6881> [ Directory '/etc/systemd/system/getty@tty1.service.d' does not exist ]
<peterm6881> i guess we need to create the directory first, right?
<Xogium> what command did you run ?
<peterm6881> nano /etc/systemd/system/getty@tty1.service.d/autologin.conf
<peterm6881> from root
<Xogium> right that doesn't exist indeed
<peterm6881> i guess i need to go back to my guide, and do a cp command
<Xogium> so yeah might need to create it
<Xogium> no don't do that
<peterm6881> ok
<peterm6881> how do i create a directory again?
<peterm6881> save me googling it lol
<Xogium> the drop-in is cleaner, and it won't get erased if you upgrade
<Xogium> I'd use mkdir -p with that whole tying, minut the /autologin.conf part
<Xogium> er
<Xogium> typo but
<peterm6881> can you give me the whole command
<Xogium> you get it
<peterm6881> no!
<peterm6881> lol
<Xogium> seriously ?
<peterm6881> ok wait
<peterm6881> you forgot how dumb i am, despite me proving it earlier
<Xogium> basically you just mkdir -p wht that whole thing, minus what's after the last slash
<peterm6881> no im just confused, can you paste it into here, sorry
<Xogium> but… how's that confusing ? Lol
<peterm6881> I'll be taking notes dont worry
<Xogium> wait
<Xogium> mkdir -p /etc/systemd/system/getty@tty1.service.d
<peterm6881> ok next
<Xogium> then you can do that nano command you were trying to
<peterm6881> :)
<peterm6881> I had to ask
<peterm6881> ooo so thats a service
<peterm6881> my first Linux service
<peterm6881> never seen that before, I didnt know it was a thing
<Xogium> technically its a part of a service
<peterm6881> ive encountered services in Windows
<Xogium> what's called a drop-in or an override. It lets you override some part of the service your distro provides, without overriding the entire thing
<Xogium> the advantage is that if you update your system, it won't be reset to default
<Xogium> that drop-in will always apply
<Xogium> and, you guessed it: it's a systemd thing only
<peterm6881> brilliant
<peterm6881> do i still need all this stuff?
<peterm6881> systemctl daemon-reload
<peterm6881> systemctl enable getty@tty1.service
<peterm6881> systemctl start getty@tty1.service
<peterm6881> systemctl start getty@tty1.service
<peterm6881> or is reboot as good as
<Xogium> given its different I'd say enable+reboot would work better
<peterm6881> rebooting now
<peterm6881> silence
<peterm6881> sigh...
<peterm6881> plays when i log in, so something not right about that autologin thing
<Xogium> I'm thinking it might launch too soon
<peterm6881> yeah do we need a delay
<peterm6881> and if so, how long
<Xogium> possibly ? I'm not sure. I've never attempted this…
<peterm6881> hehe what fun
<peterm6881> i could try just putting a delay on the command
<peterm6881> lets see what the wiki recommends
<Xogium> you might want that delay on the mpv command itself, not in the getty service
<peterm6881> i'll give it a shot
<peterm6881> i'll try 5 seconds first and increment from there
<peterm6881> no wait, ill try a long delay to prove if it works
<peterm6881> how long d'ya fancy
<Xogium> hmm dunno, maybe try a full minute, to prove its really because there's no networking at the time
<peterm6881> good thinking
<peterm6881> ok here goes
<peterm6881> nope, no audio
<Xogium> wellp
<Xogium> then I truly don't know
<peterm6881> lol annoying
<Xogium> is getty@tty1.service even running ?
<Xogium> systemctl status getty@tty1
<peterm6881> now, how should I log in to check that?
<peterm6881> which account
<Xogium> admin
<peterm6881> ● getty@tty1.service - Getty on tty1
<peterm6881> └─10-noclear.conf
<peterm6881> Loaded: loaded (/lib/systemd/system/getty@.service; enabled; vendor preset>
<peterm6881> Drop-In: /usr/lib/systemd/system/getty@tty1.service.d
<peterm6881> /etc/systemd/system/getty@tty1.service.d
<peterm6881> └─autologin.conf
<peterm6881> Active: active (running) since Sun 2022-04-03 17:18:38 BST; 5s ago
<peterm6881> Docs: man:agetty(8)
<peterm6881> man:systemd-getty-generator(8)
<Speedsaver> Title: systemd for Administrators, Part XVI (at 0pointer.de)
<peterm6881> Main PID: 1605 (agetty)
<peterm6881> Tasks: 1 (limit: 422)
<peterm6881> Memory: 104.0K
<peterm6881> CPU: 18ms
<peterm6881> CGroup: /system.slice/system-getty.slice/getty@tty1.service
<peterm6881> └─1605 /sbin/agetty -o -p -f -- \u --noclear --autologin user - li>
<peterm6881> Apr 03 17:18:38 orangepizero systemd[1]: Started Getty on tty1.
<peterm6881> Apr 03 17:18:38 orangepizero agetty[1605]: -: not open for read/write
<peterm6881> lines 1-19/19 (END)
<peterm6881> looks like its only running since 5 seconds ago , wtf
<peterm6881> ignore that remark
<Xogium> I'm really not sure why it would behave this way
<peterm6881> what way is it behaving lol
<Xogium> why it would only launch when you actually log in with any user and not before
<peterm6881> sigh..
<peterm6881> i cant even tell whats going on because how on earth do you debug that
<Xogium> frankly… no idea :/
<peterm6881> thanks for trying Xogium it was a truly valiant effort
<peterm6881> im gonna start again from scratch because its stopped working even when I log in as user
<peterm6881> oh no i lied, I forgot about the 1 minute
<peterm6881> :)
<peterm6881> thats weird
<Xogium> how so ?
<peterm6881>
<peterm6881> when i log in as user and try to open profile in nano i get
<peterm6881> File ...profile is being edited by user (with nano 5.4, PID 1602); open anyway?
<Xogium> what the
<peterm6881> so, that must mean user auto logged in ok
<peterm6881> so why the fuck didnt it play....
<Xogium> why is there a nano command ran by your user automatically, anyway ?
<peterm6881> there isnt, the only additional command in profile is running mplayer
<Xogium> well why does it ask you that someone is running nano and want to edit it ?
<peterm6881> whatever its doing, it cant be playing, because otherwise mplayer would fail when i log in over gadget
<peterm6881> I think when it says edited, it just means its being used by user in tty1
<Xogium> File ...profile is being edited by user (with nano 5.4, PID 1602); open anyway ?
<Xogium> so its definitely editted twice
<peterm6881> the only change I make to profile is adding the line mplayer -playlist playlist -quiet
<peterm6881> like i said i think when it says edited, it just means its currently in use
<peterm6881> doesnt explain why the fucker wont play
<Xogium> well when you run nano, it tells you that the file you want to edit is being editted already
<Xogium> sooo
<Xogium> at least its how I understand
<peterm6881> how do I switch to tty?
<peterm6881> tty1
<peterm6881> i mean
<peterm6881> or can i
<Xogium> if you plug in a keyboard you should be on tty1 by default afaik
<peterm6881> no i mean from gadget serial
<peterm6881> maybe i cant
<Xogium> gadget serial is ttyGS* not tty*
<peterm6881> i wondered if there was a way root could see what the fuck was going on on that account
<peterm6881> i have to say, autologin has been an incredibly difficult mind fuck
<peterm6881> alright, time to nuke that account and see if it works on admin
<peterm6881> formally, fuck it
<peterm6881> ok well its definitely not a permissions issue, it doesnt work on the admin account either
<peterm6881> let me rule out it being some playlist bullshit
<peterm6881> I'll do it the old fashioned way
<Xogium> oh well
<Xogium> no keyboard control but at least it will run
<peterm6881> no i meant using tty1, just without the playlist
<Xogium> ah
<peterm6881> no https://wiki.archlinux.org/title/Getty#Automatic_login_to_virtual_console definitely doesnt work on Armbian
<Speedsaver> Title: getty - ArchWiki (at wiki.archlinux.org)
<Xogium> so how are you going to do it ?
<peterm6881> it just umm...doesnt work. And I cant think of a way to troubleshoot it
<peterm6881> are you able to set up a dummy account and test it on arch?
<peterm6881> get it to stream something
<Xogium> yeah sure
<peterm6881> that would be helpful, keyboard control is everything with this use case, so id love to get it to work
<Xogium> but my point was, if it doesn't work how are you gonna do it on tty1 ?
<peterm6881> i guess you arent gonna be keen to reboot your machine, can you create a virtual machine?
<peterm6881> this is pretty appalling
<peterm6881> The option Type=idle found in the default getty@.service will delay the service startup until all jobs are completed
<peterm6881> can we try that?
<Xogium> you could try…
<peterm6881> what exactly do i edit
<Xogium> the autologin.conf drop-in you created earlier
<Xogium> in the [Service] section you add
<Xogium> Type=simple
<peterm6881> you're sure? I thought it was suggesting it's somewhere else
<Xogium> should work
<peterm6881> is that not a different tip
<peterm6881> When starting X automatically, it may be useful to start getty@tty1.service immediately by adding Type=simple into the drop-in file
<peterm6881> what is x
<Xogium> xorg
<peterm6881> X
<peterm6881> what is that?
<Xogium> gui
<peterm6881> Thats what I thought, is that not irrelevant?
<Xogium> could be
<peterm6881> or is console a form of X gui
<Xogium> but who knows
<peterm6881> yeah i agree, this is horseshit
<Xogium> console isn't a gui
<Xogium> but maybe you hit this with mplayer like this
<peterm6881> thats what I thought, so the X tip is irrelevant
<peterm6881> hmm..
<peterm6881> cant hurt
<peterm6881> shall we try both
<Xogium> at worst it doesn't help
<Xogium> both ?
<peterm6881> The option Type=idle found in the default getty@.service
<peterm6881> thats definitely something different
<Xogium> and they tell you to replace it with Type=simple ;)
<Xogium> since Type=idle is the default as they just said
<peterm6881> got it, its a question of interpretation, my basd
<peterm6881> bad
<peterm6881> adding Type=simple into the drop-in file made precisely nil different
<peterm6881> difference
<peterm6881> thats it, we're done
<Xogium> oh well
<peterm6881> I'll come back to it. I'll maybe test in in arch myself, I can use the alarm box
<peterm6881> actually...
<peterm6881> you can remote into that
<Xogium> yeah
<peterm6881> do you fancy trying it some time
<Xogium> sure, could do that
<peterm6881> will you be able to tell if its working though, I guess not
<peterm6881> deeply unpleasant to troubleshoot, since its fucking automated
<peterm6881> autologin accounts totally suck
<Xogium> I could see if the getty at least runs but logically couldn't see if there's any audio coming out
<peterm6881> only if you're sufficiently interested, I wouldnt blame you if you weren't
<peterm6881> its fucking horrendous
<Xogium> I suppose that's why you have programs to do that sort of login for you
<Xogium> because editting a tty is just… yecch
<peterm6881> true, we should try this:
<Xogium> I might try doing what I did for buildroot
<Speedsaver> Title: greetd - ArchWiki (at wiki.archlinux.org)
<Xogium> yeah actually let me do that. I'm gonna do it on the arch box for testing
<peterm6881> alarm?
<Xogium> yea
<peterm6881> what DID you do?
<Xogium> I used autologin
<Speedsaver> Title: ~kennylevinsen/autologin - sourcehut git (at git.sr.ht)
<peterm6881> whats the difference between what you did and the wiki we just tried?
<peterm6881> ah ok
<Xogium> the wiki makes you edit a tty service
<Xogium> lets try this
<peterm6881> okie dokie
<peterm6881> I vaporised the /etc/systemd/system/getty@tty1.service.d directory
<Xogium> good
<Xogium> well I'm going to make it run another command than mplayer, given there is no audio support in archlinux-arm, since they use a non-patched linux
<Xogium> but something that will run in the background
<Xogium> just so we know if it did autologin
<peterm6881> lol its releantless
<peterm6881> relentless
<peterm6881> recreated account "user", its all set
<peterm6881> ready to rock and roll
<Xogium> ok rebooting alarm to test
<Xogium> hmmm
<Xogium> doesn't seem to want to run… not sure what's going on
<Xogium> I love it when programs exit with no error message to tell you what went wrong
<Xogium> this ran just fine on buildroot, but it doesn't want to run on arch
<Xogium> lets try something different then
<Xogium> hmph well I give up, sorry Peter
<Xogium> I really don't get why this fails
<Xogium> and having no error message sur doesn't help
<peterm6881> oh dear
<peterm6881> maybe I'll try greetd
<peterm6881> E: Unable to locate package greetd
<peterm6881> then again, perhaps not
<Xogium> probably only available on arch that one
<peterm6881> its unexpectedly hard to autologin I have to say, so far only S0 works
<peterm6881> i wonder if I could do exactly the saem, just change it to tty1
<peterm6881> same
<Xogium> that's what the drop-in file has been doing
<peterm6881> listen Xogium thank you so much for trying, you have the patience of a saint
<peterm6881> I reverted to ttyS0, but on the user account
<peterm6881> progress of sorts lol
<peterm6881> thats working, and not on the sudoer list
<Xogium> good
<peterm6881> indeed
<Xogium> no keyboard but at least it works
<peterm6881> go do something fun
<peterm6881> yes quite
<peterm6881> I'll come back to this
<peterm6881> dunno how, but im certain it can be done
<peterm6881> the arch thing looked super elegant
<peterm6881> tricky when I cant see a way to debug it
<peterm6881> is there a way to list what users are logged in, that would be a start
<peterm6881> w command – Shows information about the users currently on the machine, and their processes.
<peterm6881> who command – Display information about users who are currently logged in.
<peterm6881> wow
<peterm6881> w is handy
<peterm6881> 20:27:01 up 9:05, 1 user, load average: 0.51, 0.23, 0.08
<peterm6881> USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
<peterm6881> peter tty1 :0 11:23 9:04m 7:30 2.26s lxqt-session
<Xogium> yeah its useful. What I always use
<peterm6881> are you still there?
<Xogium> yeah sorry
<Xogium> finished GoT
<peterm6881> dont say sorry
<peterm6881> i noticed something odd about user, even though its in the audio group
<Xogium> season 5 episode 6 already hah
<peterm6881> it cant adjust the volume or mute
<peterm6881> it can scroll through the playlist, but thats about it
<Xogium> hmm sounds like pure alsa being messy again ? Not sure about that one
<peterm6881> thats fine i'll come back to that, just thought it might ring a bell
<Xogium> I think the only way to mute or adjust volume is via alsamixer's management ui
<peterm6881> normally mplayer and mpv commands work, 9 and 0 adjust volume
<peterm6881> m mutes
<Xogium> ah
<peterm6881> but with user, it only brings up the current volume, it doesnt change it
<Xogium> but it can't work now, remember if you use ttyS0 you have no keyboard control
<peterm6881> im controlling it through putty
<Xogium> ah
<peterm6881> its a permissions issue with the user account
<Xogium> erm… that definitely should work
<peterm6881> yeah its totally bizarre
<peterm6881> ive never had it with an admin or root account
<Xogium> well only workaround I see is to use alsamixer for now
<peterm6881> I'm gonna have another bash at your arch wiki solution from scratch, on the admin account
<peterm6881> at least with w ill know if its logged in and what processes its running
<Xogium> hmm I wouldn't do that with an account that has sudo
<Xogium> especially if it auto logs in
<Xogium> and is passwordless
<Xogium> that'd give anyone who can find a security hole a way in into your system so they can do whatever they want
<peterm6881> i get that
<peterm6881> just wanna try it, from scratch, to see if it works
<Xogium> I doubt it will really change anything much
<peterm6881> correct ;)
<Xogium> I swear sometimes computers baffle my mind still
<Xogium> I don't really get them. Not really. I know what I can do with them and things, but… I don't understand how it is that all they do all day long is crunch numbers after numbers after numbers, that the only thing they are good at is calculating, yet we never see them numbers
<Xogium> even booting linux is just crunching numbers
<peterm6881> what put that in your head?
<Xogium> I don't know… it just came out of nowhere
<peterm6881> maybe you should learn programming in binary ;)
<peterm6881> imagine....
<Xogium> I was thinking how shitty I am at maths, yet I can use a computer… which only does maths all day long
<peterm6881> mind blown
<peterm6881> or machine code, to give it its proper name
<Speedsaver> Title: Machine code - Wikipedia (at en.wikipedia.org)
<Xogium> yeah
<peterm6881> i reckon you could master that
<peterm6881> since everything else is layers of bullshit on top
<Xogium> hehe
<peterm6881> you'd love that
<peterm6881> as a purist
<Xogium> I don't know if I could
<peterm6881> dont go away
<peterm6881> i got user to autologin to tty1
<Speedsaver> Title: Automatic login to virtual console - Gentoo Wiki (at wiki.gentoo.org)
<peterm6881> its not playing yet, but at least I know user is definitely logged in
<peterm6881> power cycled, its fully operational, whoop
<peterm6881> ive seen that before, it doesnt like reboot
<peterm6881> gotta power cycle
<peterm6881> now, in theory, the keyboard should work
<Xogium> huh… that's litterally what the archwiki tells you to do
<Xogium> unless I'm dumb
<peterm6881> i noticed there was something different about creating the directory
<Xogium> is there ?
<peterm6881> hmm, im not certain, but when i went to create the conf file in arch it didnt complain, when i did the saem thing in gentoo it complained it was a directory. But I could be wrong. The text in the file is slightly different
<peterm6881> ExecStart=-/sbin/agetty -o '-p -f -- \\u' --noclear --autologin username - $TERM
<peterm6881> ExecStart=-/sbin/agetty --autologin <username> --noclear %I 38400 linux
<peterm6881> umm...make that very different
<Xogium> hmm maybe… I guess the most important thing is it works
<peterm6881> indeed
<peterm6881> i can change stations, but no volume control
<peterm6881> yeah im glad we got a win in the end
<peterm6881> account just needs tweaking
<peterm6881> i LOVE LOVE LOVE the fact we cracked keyboard control
<peterm6881> thanks Xogium, I hadnt a clue about tty1, ttyS0, ttyGS0
<peterm6881> makes sense
<peterm6881> night Xogium
peterm6881 has quit [Remote host closed the connection]