libera/#devuan-arm/ Thursday, 2021-07-29

sadsnorkI have an rpi1 I would like to install wireguard on.00:52
sadsnorkI tried https://arm-files.devuan.org/devuan_beowulf_3.0.0_armel_rpi1_0.4.img.xz but found some odd problems such as apt being unable to install [almost] anything.  Fresh install, login as root/toor, apt-get update, apt-get upgrade [upgrades: eudev, libeudev1, and rsyslog], apt-get install nano [gives "unable to locate package nano"], nano is just an example, it happens with all the packages I tried.  "apt-get update" is not failing, and I can see it00:52
sadsnorkdownloading the release files from my mirror log files.00:52
sadsnorkSo rather than trying to fix that, I tried https://arm-files.devuan.org/devuan_beowulf_3.1.0_armel_rpi0.img.zip - but none of the passwords in https://arm-files.devuan.org/README.txt work to log in to it.  I tried a few other common passwords but wasn't lucky enough to guess it.00:53
sadsnorkSo for the sake of time [insert roll eyes emoji here] I installed an rpi1 image I made a while back by installing ASCII from https://files.devuan.org/devuan_ascii/embedded/ and then doing the upgrade to Beowulf.  It functions normally as far as I can tell, and adding backports allows me to install wireguard.  The problem here is that the kernel is 4.14.44 and "apt-get install linux-headers-$(uname -r)" produces "unable to locate package00:53
sadsnorklinux-headers-4.14.44".00:53
sadsnorkDoes anyone have suggestions that might just get wireguard working without having to introduce my rpi1 to my hammer?  Is there a pain-free way to install the headers for 4.14.44?  Or is it better/easier [and also pain-free] to upgrade to a 5.6+ kernel which I understand includes wireguard?00:53
c0rneliussadsnork: I don't have that model so can't test for it, but try this img - https://github.com/pyavitz/rpi-img-builder/releases/download/images/rpi-devuan-beowulf-5.10.46-ext4-2021-07-03.img.xz01:00
c0rneliusinfo on the img is here - https://github.com/pyavitz/rpi-img-builder/releases/tag/images01:00
tuxd3vsadsnork03:19
tuxd3vtry to update your date :)03:19
tuxd3v'ntpq -p'03:19
tuxd3vthen apt-het update :)03:19
tuxd3v'apt-get update'03:19
sadsnorkHey tuxd3v, I just got back in and am writing the image c0rnelius suggested to the card... let's see where that gets me first. :-)03:20
tuxd3vok :)03:20
tuxd3vbut the Image you spoke above its working ok, I have a rpi1, and that Image was tested on it ;)03:20
tuxd3vhttp://arm-files.devuan.org/devuan_beowulf_3.0.0_armel_rpi1_0.4.img.xz03:21
sadsnorkc0rnelius, wireguard works on that image without too much trouble at all.04:10
sadsnorkThough I wasn't thrilled about some of the custom config stuff that is in it.  I am going to try tuxd3v's suggestion now.04:10
c0rneliussadsnork: mind gicing me a - dmesg | grep model04:11
c0rneliusgiving*04:12
c0rnelius5.10.y supports wireguard out of the box. as for custom config stuff, not sure what you mean? but alright.04:13
sadsnork[    0.000000] OF: fdt: Machine model: Raspberry Pi Model B Rev 204:14
sadsnorkis what I got04:14
c0rneliusThank you04:14
sadsnorkThe custom config stuff is the coloured banner and coloured nano etc.04:15
c0rneliusoh04:15
c0rneliusyou can just remove that stuff04:15
c0rneliusThats just me adding flare to the builds. mc and nano use green for user and red for root.04:15
sadsnorkIt definitely worked for wireguard, I'm just like Jennifer Anniston when it comes to flair. :-)04:17
c0rneliusas for the banner you can delete it in /etc/update-motd.d:04:17
c0rneliusdelete the added bits in the home directory ~/.nanorc and ~/.config/mc/ini04:18
c0rneliuscustom colors gone04:18
sadsnorkI know... I just prefer to have it the other way around where instead of searching out files that set custom colours I have as little flair as possible and can set colours if I choose.04:20
c0rneliusYou can set colors I just predefined them.04:21
c0rneliusBut do as you wish. Thanx for the dmesg04:21
sadsnorkI also know that pretty well everyone likes everything much fancier than I do.  Like on a desktop I don't want animations, compositor, shadows, wallpaper, desktop charts and graphs showing various counters, etc.  Just grey... no icons.04:22
c0rneliussadsnork: Trust me I understand. My desktop is very plan. Mostly just transparent terminals, panels and zero icons. All right clicks and key strokes.04:29
c0rneliusI do like the green and red theme in some of my terminal apps. Reminds me where I am :)04:30
c0rneliusplain*04:30
sadsnorkWhen it comes to multiple terminals I have probably also been spoiled by asbru-cm (a fork of PAC Manager).04:31
sadsnorkUsually the only thing I'll add colours to is my PS1 - for the same reason as you, just to make sure I know I'm logged in as root. :-)04:32
sadsnorkI just tried the other image uhhmmm devuan_beowulf_3.0.0_armel_rpi1_0.4.img.xz - and the date is correct, and I set the appropriate timezone, but apt is still not even finding nano.  Hmmm...04:33
tuxd3v_sadsnork, what do you mean by not finding?04:34
tuxd3v_apt-cache search?04:34
tuxd3v_but apt-update is working reight?04:34
tuxd3v_right*04:34
sadsnorkLike apt-cache show nano says "no packages found"04:35
sadsnorkapt-get update does work, I even see it in the log files on my mirror04:35
tuxd3v_let me login in my rpi1 :)04:37
c0rneliusthis works for you? - dmesg | grep -w "Raspberry\ Pi\ Model\ B\ Rev\ 2"04:37
sadsnorkit does eh04:40
c0rneliusthanx04:41
tuxd3v_in mine: [    0.000000] OF: fdt: Machine model: Raspberry Pi Model B Rev 104:42
tuxd3v_:)04:42
tuxd3v_sadsnork, after a apt-get update04:42
tuxd3v_I can do 'apt-cache show nano'04:42
tuxd3v_it is working :/04:43
c0rneliustuxd3v_: oh thanx04:43
sadsnorktuxd3v_, do you know if your sources.list is "original"?04:43
sadsnorkuhhmm I mean "not modified from what is in the image" I guess.04:44
tuxd3v_it should be the same04:44
tuxd3v_https://paste.debian.net/hidden/f426198b/04:45
sadsnorkThanks tuxd3v_ ... it just workd after I changed my sources.list to mishka.snork.ca (and without contrib non-free)04:47
sadsnorkAnd by "worked" I mean apt-cache show is now showing various packages and installed nano.04:47
tuxd3v_nice04:48
tuxd3v_so you went only with the main repo :)04:48
sadsnorkI'm going to reimage and intentionally poison my DNS to avoid hitting my own mirror and see what happens.04:48
sadsnorkPS: I should mention that your paste is the same as the "original" I was referring ot :-)04:49
sadsnorks/ot/to04:49
tuxd3v_:)04:51
tuxd3v__I am going to strech a bit my legs :)05:05
tuxd3v__cya later guys :)05:05
sadsnorkHang on a sec tuxd3v__05:06
tuxd3v__ok05:06
tuxd3v__:)05:06
sadsnorkOh I think I found it... the sources.list that comes with the image is "deb.devuan.org/devuan" rather than "deb.devuan.org/merged"05:06
tuxd3v__ho..05:06
tuxd3v__do you sure?05:06
sadsnorkyour paste is "merged" and when I looked at the fresh one here it is "devuan" - I'm still waiting for apt-get update to finish05:07
sadsnorkThe "merged" part is an amprolla thing right?05:07
tuxd3v__yes it is05:08
tuxd3v__you need to have the "merged"05:08
sadsnorkAnd when I switched to my mishka mirror I just pasted the content from my desktop, not noticing the switch from devuan to merged.05:09
sadsnorkYeah, apt-cache show works fine now05:09
tuxd3v__nice :)05:10
tuxd3v__I also already tested the camera and it works nicely :)05:10
sadsnorkOkay I'll stop hassling you... and if the image needs to be updated we'll have to figure that out later. :-)05:10
tuxd3v__no problem :)05:10
sadsnorkThanks c0rnelius and tuxd3v__ !05:11
tuxd3v__just post what you find that should change :)05:11
tuxd3v__you welcome! :)05:11
tuxd3v__does you guys can get the value of /sys/class/hwmon/hwmon1/18:05
tuxd3v__on rpi?18:05
tuxd3v__the name of it is 'rpi_volt'18:06
tuxd3v__but on 5.10.23, this monitor is not working :(18:06
tuxd3v__I mean it has no value18:06
tuxd3v__for what I inderstand it should report voltage..18:07
Tenkawajust a sec18:09
tuxd3v__Tenkawa, thanks :)18:09
sadsnorktuxd3v__, I'm still fiddling with mine from last night... what do you want me to do to check it?18:12
TenkawaI cant monitor it there.. I have to use:18:12
Tenkawavcgencmd measure_volts18:12
Tenkawavcgencmd measure_volts18:13
Tenkawavolt=1.0375V18:13
Tenkawaroot@rpi4-2:/sys/class/hwmon/hwmon1#18:13
Tenkawasys tells me unsupported18:13
tuxd3v__thanks, what you have inside of that folder?18:13
tuxd3v__mine has a 'in0_lcrit_alarm'18:14
TenkawaI tried them all.. I ran a find . -type f | xargs cat18:14
tuxd3v__but to voltage18:14
Tenkawajust to get all values18:14
Tenkawaand nothing returned a voltage18:14
tuxd3v__yeah, I also get that :(18:15
tuxd3v__are you on 5.10.2318:15
Tenkawano I'm on 5.1318:15
tuxd3v__or in the next kernel version?18:15
tuxd3v__ho..18:15
TenkawaI have even more sensors18:15
tuxd3v__how many hwmon? do you have?18:16
tuxd3v__:)18:16
TenkawaI'd have to look…my config is heavily modified18:16
tuxd3v__ho, ok18:16
tuxd3v__you have cm4 right? :)18:17
Tenkawathis is on a rpi418:17
Tenkawabut yes I do have one18:17
tuxd3v__ok, so they are working on sensors18:18
tuxd3v__probably rpi1 will not get voltage ones18:18
Tenkawanormal sensors (temp, etc) work fine18:18
tuxd3v__yeah , temperature I get it right18:18
Tenkawatuxd3v__: you have to use the vcgen monitors18:18
Tenkawavideocore controls all of that18:19
tuxd3v__yeah, I was trying to put that in /etc/update-motd.d/10-uname18:21
tuxd3v__but the output of the vcgencmd doesn't apear when I log in18:22
Tenkawathats easy18:22
tuxd3v__but if I run the file as root that apears18:22
Tenkawajust a sec18:22
Tenkawaoh yeah… gotta build it into a predone or make vcgencmd sudo allowed18:23
Tenkawalike the banner script does18:23
Tenkawatemp=$(/opt/vc/bin/vcgencmd measure_temp | egrep -o '[0-9]*\.[0-9]*')18:23
Tenkawathats what the login banner script runs for cpu temp18:23
Tenkawathen it pastes18:24
Tenkawaecho -e "${COL}CPU Temp:${FIN} " $temp°C18:24
Tenkawaunfortunately it doesn't output the soc voltage (5.1v) input18:27
tuxd3v__yeah, that what I was looking for, but no luck :)18:27
Tenkawawhich could be a lot more useful monitor to keep an eye on the potential undervoltage warnings18:28
tuxd3v__indeed18:28
Tenkawayep18:28
tuxd3v__in the motd I have:18:29
tuxd3v__https://paste.debian.net/hidden/6a1f7ffa/18:31
Tenkawaah you changed it from the original one that we built18:32
tuxd3v__I changed only for rpi118:32
tuxd3v__:)18:32
Tenkawano. its completely different18:33
tuxd3v__but I can get rpi1 temp also with vcgencmd18:33
Tenkawathe key is you could wrap it all in sudo and get rid of that id 0 part completely18:34
Tenkawathen you actually wouldnt need the top part… it can be done with vcgencmd commands too18:35
tuxd3v__yeah I can :)18:35
tuxd3v__indeed it can18:35
tuxd3v__its the same18:35
tuxd3v__maybe better with vcgencmd18:35
Tenkawasudo /opt/vc/bin/vcgencmd measure_temp18:36
Tenkawatemp=43.3'C18:36
tuxd3v__yep :)18:37
Tenkawavery nice  (if you use the rpi)18:37
Tenkawaafk a bit… bbialw18:40
tuxd3v__go ahead :)18:44
tuxd3v__/opt/vc/bin/vcgencmd measure_temp|cut -d'=' -f2-|sed "s/'/°/"19:11
Tenkawaback.. hey if you want a method that uses a few less cpu cycles:19:19
Tenkawa /opt/vc/bin/vcgencmd measure_temp|awk -F'=' '{print $2}'19:19
Tenkawanot much less overhead but I'm more of an awk fan anyway heehee19:21
tuxd3v__I like awk too :)19:22
Tenkawabetter than trying to perlize it right?? lol19:22
Tenkawaor back what I use to work on in the 90's… corba19:23
Tenkawathat was just overwritten19:23
Tenkawatuxd3v__: I didn't add all of the machines yet however this is what I have been building so far19:49
Tenkawahttps://paste.debian.net/1205963/19:49
Tenkawagot about 4 more machines to finish building I think19:49
tuxd3v__its very nice :)19:50
Tenkawathanks.  I didnt break the omen listing out because it has 12 cores19:52
Tenkawa(6 cpu's 2 threads each)19:52

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!