libera/#devuan/ Wednesday, 2021-06-02

djphOh this afternoon is gonna be interesting ... assuming the backups test out as okay, gonna be rebuilding a storage box, and throwing Chimaera on it (what could possibly go wrong, amirite :) )16:23
gnarfaceyou probably won't have issues with a headless install16:25
djphYeah, I'm hoping that's the case16:26
djphHave done in-place updates since Jessie (on Beowulf right now), wanted to kick the tires on Chimaera16:27
brocashelmceres ftw16:40
* yeti waits for vesta and stories about the battle of vesta then...16:50
Katjein devuan, how to I get nftables to load on boot ?17:33
* gnarface usually just calls a script from /etc/rc.local17:36
Katjehttp://dev1galaxy.org/viewtopic.php?id=288917:38
Katjethis was what I went with17:38
Katjespecifically17:38
Katje# cp /usr/share/doc/nftables/examples/sysvinit/nftables.init /etc/init.d17:38
Katje# update-rc.d nftables defaults17:38
Katjewith a chmod in there17:38
gnarfaceoh they bundle an example? good to know17:38
Katjethat was my reaction17:39
gnarfacei would have suggested using an init.d script if i knew they gave you an example as a starting point17:39
gnarfacethe /etc/rc.local file is just a placeholder that gets called last in the chain17:40
gnarfacethe init.d script is better if you set it to start at the exact right time17:40
Katjewell it didn't start17:40
gnarfacehmm17:41
gnarfaceneeds symlinks17:41
gnarfaceand maybe a proper LSB header (i didn't look in it)17:41
gnarfaceit needs to be executable too, it's not clear to me from here if the example file already is by default (i would expect not though)17:42
Katje /etc/init.d/nftables start works17:42
Katjeso it's something about boot that means it doesn'17:42
Katjet17:42
gnarfaceprobably the symlinks then17:42
gnarfacels -l /etc/rc?.d/*nft*17:43
Katjelrwxrwxrwx 1 root root 18 Jun  2 17:38 /etc/rc6.d/K01nftables -> ../init.d/nftables17:43
gnarfacejust that one?17:43
Katjeno, it's there for 0- 617:43
gnarfaceK means "kill"17:43
Katjelrwxrwxrwx 1 root root 18 Jun  2 17:38 /etc/rc2.d/K01nftables -> ../init.d/nftables17:44
gnarfacechange them to start with S instead17:44
gnarfaceK for kill, S for start17:44
Katjefor all of them ?17:44
gnarfaceyes17:44
gnarfacewell17:44
gnarfacejust in the runlevels you care about17:44
gnarfaceyou should set them all so you don't get unexpected behavior but it probably is only ever gonna look at #217:44
Katjereboot time17:45
Katjenope, didn't do it17:47
gnarfacehmmm17:47
gnarfacewhat's the permissions on /etc/init.d/nftables17:47
gnarface?17:47
Katjelrwxrwxrwx 1 root root 18 Jun  2 17:38 /etc/rc2.d/S01nftables -> ../init.d/nftables17:48
gnarfaceno that's the symlink17:48
Katje-rwxr-xr-x 1 root root 2582 Jun  2 17:37 ../init.d/nftables17:48
gnarfacehmm, that should be fine though17:48
gnarfacechange all the symlinks to S01nftables instead of K01nftables, just in case17:49
gnarfacebut maybe the example file has to be edited too17:49
KatjeI did17:49
gnarfacei can't imagine what it would be other than the LSB headers though if running "/etc/init.d/nftables start" works though17:49
Katjewhat do the LSB headers look like17:50
Katje# Default-Start:17:50
Katje# Default-Stop:      0 1 2 3 4 5 617:50
gnarfacethey look like double-commented comments, but they're actually parsed17:50
gnarfaceyea17:50
gnarfacethose17:50
Katjewait, should I change this ?17:50
gnarfaceyea you might need to change it17:50
gnarfacepaste it to paste.debian.net so i can see it, i might be able to answer questions about it better then17:51
Katjehave set it to 0-6 again17:51
gnarfacethey're not all the same17:51
Katjejust rebooted, once it's back17:51
gnarfaceoh, if you got it working then nevermind17:51
Katjewe'll find out if it comes up17:51
gnarfacebut note that there is actually dependency settings below that line, and it is possible to tell it an impossible situation that will result in it never booting17:51
Katjeyeah, I realised that...17:52
gnarfacelike to depend on $time if you're not running ntpd or something like that17:52
Katjefingers crossed17:52
gnarfaceadding a line to call a script from /etc/rc.local shares none of these concerns, which is why i recommended that first17:53
Katjedidn't work17:53
gnarfacebut this is the "right way" to do it17:53
gnarfacepaste the LSB whole header block at paste.debian.net and i'll see if anything looks obviously whack to me17:53
Katjehttps://pastebin.com/ibFnXMDz17:54
gnarfacepaste.debian.net please17:54
gnarface(no ads)17:54
gnarfaceor you know what?17:54
gnarfaceyou can just /msg it to me17:54
Katjehttp://paste.debian.net/1199770/17:54
gnarfaceok17:55
gnarfaceyou're running a syslog, right?17:55
Katjeyes17:55
gnarfacelike syslog-ng or rsyslogd?17:55
gnarfaceok17:55
gnarfacedefault-start and default-stop shouldn't be mirrored17:55
gnarfacethey're mutually exclusive17:56
gnarfacetry that, and if it still doesn't work, remove $remote_Fs17:56
gnarface$remote_fs17:56
gnarfacebut i think $remote_fs isn't hurting anything, just not 100% sure.17:56
Katjemdadm uses:17:57
Katje# Default-Start:     2 3 4 517:57
Katje# Default-Stop:      0 1 617:57
Katje# Short-Description: MD monitoring daemon17:57
gnarfaceit shouldn't be possible to even see this file without $local_fs and it's for $network so running it without that would be nonsensical...17:57
Katjeshall I copy those numbrs ?17:57
gnarfaceyea that looks good17:57
gnarfaceotherwise it would have started then immediately stopped in every single runlevel...17:58
Katjerbooting...17:58
gnarfaceif it still doesn't work, check the paths to binaries in the actual script17:58
Katjenope...17:59
gnarfacei'm running out of ideas18:00
Katje[ -x "$BIN" ] || exit 018:01
gnarfacebut the one last thing would be that maybe the script is inheriting something from your user's environment that makes it work, that isn't present at boot18:01
KatjeBIN=/usr/sbin/nft18:01
Katje/usr/sbin/nft18:01
Katje/usr/sbin/nft: no command specified18:01
Katjeecho $?18:01
Katje118:02
KatjeI wonder if it is that line18:02
Katjebut no, that can't be, as /etc/init.d/nftables start works18:02
gnarfacethe script doesn't refer to any lock files or anything in /etc/default/ or anything like that does it?18:03
gnarfaceit is just an example script and if it was expected to work out of the box they would have packaged it in /etc/init.d/18:03
KatjeE486: Pattern not found: default18:03
gnarfacei can't imagine what it's doing wrong at this point18:04
gnarfacebut it's probably something simple18:04
gnarfacedo you have sysv-rc-conf installed?18:04
KatjeCONF=/etc/nftables.conf18:04
gnarfacei'm curious whether it thinks this is on or off18:04
Katjels -al /etc/nftables.conf18:05
Katje-rwxr-xr-x 1 root root 1144 Jun  2 17:26 /etc/nftables.conf18:05
Katjedpkg -l | grep sysv-rc-conf18:05
Katjeno18:05
Katjeshould I18:05
Katje?18:05
gnarfaceyea try it18:05
Katjeinstalled18:06
gnarfacei think it's just for manipulating symlinks but maybe we can use it to get a sanity check18:06
Katjeso I have X's in columns 1,2,3,4,5,6 but not S18:07
gnarfacejust make them match something already installed that works right18:07
gnarfacei keep forgetting where the devaun documentation about this is, but i had always referred to https://wiki.debian.org/LSBInitScripts before18:08
Katjeand reboot...18:08
onefangsysv-rc-conf is for manipulating the symlinks that determine which services run when, but can also start and stop them manually with the + and - keys.18:08
Katjeand no...18:10
KatjeI can start it manually.18:11
Katjebut nothing else18:11
Katjeand no mention in the logs18:11
gnarfacedoes your network not start automatically at boot?18:11
Katjeit does18:12
gnarfacehmmm18:12
gnarfaceis the boot shell dash?18:13
Katjewhere do I check that?18:13
Katjeit's a basic install of beowulf18:13
gnarfaceuh18:13
gnarfacedpkg-reconfigure something...18:13
gnarfacei think18:13
gnarfacei'm ddrawing a blank18:13
Katjedash is installed18:14
gnarfacels -l /bin/sh18:14
gnarfaceoh18:14
gnarfacei think it's just "dpkg-reconfigure dash" maybe18:15
gnarfacebut it would be symlinked from /bin/sh18:15
Katjedone18:15
gnarfaceoh damn18:16
gnarfacedoes this change have to be flushed into the initrd?18:16
Katjeoh18:16
Katjefuck18:16
Katjegood question18:16
gnarfacewell, try the dash thing first18:17
Katjedone18:17
KatjeBINGO!18:18
gnarfaceok, so there must be some bashism in that example script18:18
gnarfaceand that's probably why it's in the doc examples instead of in the /etc/init.d file18:18
gnarface*directory18:18
Katjeaah18:18
schillingklausto hell with those creepin bashisms18:19
Katjequite18:19
* gnarface is opposed to dash18:20
Katjenow, why is it not setting the gateway right...18:21
gnarfaceto be clear, there may be a number of reasons why that example script isn't considered done... i'd recommend combing over it carefully, but i haven't even seen it myself18:23
Katjeright, let's go stick this in the other room and connect it to the internet!18:26
gnarfacegood luck18:26
schillingklausbash has become insanely bloated since the last decade, so I switched to mksh18:27
Katjeit works!!!18:42
KatjeThank you for your help gnarface19:09
gnarfaceno problem19:09
DashiePieI have a question20:42
gnarfacejust ask it20:43
DashiePieokay, so I have the Beowulf 3.1.1 iso, full 3.6 GB boot usb, and there's no EFI executable20:43
gnarfacemissing package20:44
DashiePiethis is the install iso20:44
DashiePiethat I grabbed directly from files.devuan.org20:44
gnarfaceuh, maybe you need to enable it in the "load additional installer components" section?20:44
DashiePiethat would be great, if the computer I was trying to install it on even loaded the installer20:44
gnarfaceoh it can't even boot the image?20:45
gnarfacehmmm20:45
DashiePieno, it can't boot the installer, it always defaults to win1020:45
gnarfaceyou sure it's not a bios setting?20:45
DashiePiethis computer is new, it's an office pc that was bought not a month ago or so20:46
DashiePietemporarily until I get my new hardware20:46
DashiePieand I can't find shit in the BIOS20:46
DashiePieit's UEFI all the way, and this iso just won't boot20:47
gnarfacewhich iso exactly?  the netinstall one?20:47
DashiePie3.1.1, it's the 4GB one, which is rounded up in size20:47
DashiePiewhen I said full install, I meant FULL install20:47
DashiePieI'm not letting win10 touch the net in any capacity, so this computer's gonna need an offline install20:48
gnarfacethere should be a hotkey you can hit at system POST time to intercept the boot drive choice20:48
gnarfaceit's probably F2 or ESC but check the hardware manual20:49
DashiePieI believe I've tried that, and if it's a menu that pops up, controlled by the keyboard to select a file to boot, there's nothing to let me boot, other than windows 1020:50
gnarfaceno usb image present?20:50
gnarfacehmmm20:50
gnarfacethe burn is suspect20:50
gnarfacei'd expect some error if it was trying to boot it at all20:50
gnarfacealthough i'm not sure it's actually trying to boot it20:51
gnarfaceif it is, my assumption is it doesn't appear bootable20:51
gnarfaceleading cause of that is forgetting to run "sync" after running dd, or specifying a block size other than the default20:51
gnarfacebut if you have a 3.6GB USB drive and a 3.6GiB disk image to put on it, you might be running into an even more basic problem20:52
gnarfacethis system BIOS... is there anything in there about "secure boot?"20:53
gnarfacei'm wondering if you have to disable secure boot20:53
gnarfacei thought you didn't have to anymore but maybe that's not with every image20:53
gnarfaceor mabye it's just hardware specific20:53
gnarfacesome bioses do seem to have been created to keep you from displacing windows20:54
DashiePieI used unetbootin, I dunno if that makes any difference21:14
DashiePie32 GB flash drive, no space problem21:14
DashiePieI cleared secure boot keys, no issue21:14
DashiePieI hate to say that's one of these bioses, but it may be21:15
gnarfaceit could be unetbootin... that image should have been copied to the usb directly with no need for modification21:15
DashiePiehuh21:15
DashiePieokay, well maybe I'll just try that, then21:16
gnarfacedd or cp should work21:16
gnarfacejust make sure you don't overwrite the wrong drive21:16
DashiePiegraphical drag and drop isn't a problem, is it?21:16
gnarfacei actually don't know21:16
gnarfaceit is important it gets written raw instead of copied to the filesystem on it, which i assume would be the default action for graphical drag&drop, but that's based on a number of assumptions i can't test here21:17
gnarfacemy assumption is that graphical drag and drop is a problem21:17
DashiePieokay, yeah, that seems to be what my friend is sayign as well21:17
gnarfacebut regular "cp" is smart enough to raw write to /dev/ nodes by default21:18
rwpI'll just say that normally one images the ISO image directly to the USB.  It contains it's own partition table so it goes to the raw device and not to a partition of the USB.21:30
DashiePieyeah, dd writes both bios and efi partitions, which was my problem21:31
rwpAlthough we often use dd for this there is no reason that cp or cat cannot be used.  Anything that does a verbatim image copy is okay.21:31
DashiePieand probably why the installer previously booted, because I did that one from windows with rufus, I think21:31
rwpI have always been a little suspicious of unetbootin (note I have not used it however) because the description says "creates bootable usb flash drives; it is a live usb creator" making me think that it modifies the raw image in some way.  And that is not desired for the installer images.21:33
rwpMy favorite way to raw copy with a progress bar to a slow flash device uses pv for the progress bar and dd for O_DIRECT.21:34
DashiePienot sure, but I know it didn't write an efi partition21:34
rwptime pv image.iso | dd of=/dev/sdX obs=16M oflag=direct21:35
gnarfaceno no no21:36
rwpI know that dd now has status=progress but the progress information is not anywhere near as nice as what comes from pv.21:36
gnarfaceobs=16M???? hell no21:36
rwpyes yes yes21:36
gnarfacenot to usb flash21:36
gnarfaceyou're just asking for corrupt writes21:36
rwpYou think it should be larger?  Like 64M?  That would be fine.21:36
gnarfaceno it should be left at default21:36
gnarfacefor maximum compatibility21:36
gnarfacethere's no way it's gonna speed up a write to USB flash anyway21:37
rwpNothing smaller than 16M please.  Because otherwise the NAND flash controller has to write and re-write repeatedly.  That would be bad.  Not to mention slow.21:37
rwpSpinning disk drives traditionally had a 512 byte block size.  Then came along AF advanced format drives with 4k sectors.  Okay fine.21:37
gnarfacei'm telling you there's a percentage of media out there that is incompatible with this treatment, and will fail 100% of the time for an image that large21:37
gnarfaceif you haven't run into it yet you've just been lucky21:38
rwpBut then NAND flash came along and they can't write small blocks like that.  They can only write in big chunks.  The smallest I know is 16M.21:38
gnarfaceand there are no USB flash drives that will speed up from this treatment anyway21:38
gnarfaceat best it will cause no speed difference21:38
gnarfaceyou might make it a tiny bit slower though21:38
rwpThis has nothing to do with speed.  It has to do with writable block size of NAND flash.21:39
gnarfacewe're not talking about NAND here21:39
gnarfaceit's a USB key21:39
rwpWAT?!  USB storage uses NAND flash.21:39
gnarfaceit's certainly not like the NAND in my arm handheld21:39
gnarfaceit's something entirely different21:40
gnarfacemuch slower21:40
rwpNAND flash is the most common type of flash used.  Cheapest.  Highest density.  So it is mostly used everywhere.21:40
gnarfaceslow enough that specifying arbitrarily large block sizes won't help21:40
omenI'm missing one key from my keyboard and would like to make CAPSLOCK to act as this key. Any keywords to search?21:40
rwpThe alternative is NOR flash but it is more expensive and so less commonly seen.21:40
gnarfaceomen: xmodmap?21:41
rwpomen, You could use xmodmap to do this mapping.21:41
omenty21:42
rwpomen, Probably create a file with "keycode  66 = " and put the keysym of the key you are missing there.  Probably.21:42
rwpUse "xev" to see what keysyms and keycodes are produced by the various keys.21:42
rwpThere is a very old program called xkeycaps that is interactive and used to graphically show and modify this information.  Old.  But still very useful.21:43
omenif you happen to have key between left-shift and Z, I would be interested about it's keycode21:53
rwpomen, That would likely be an ISO standard keyboard layout then?  Unfortunately I have only ANSI layout keyboards.21:57
rwpomen, Maybe keycode 94 maybe.21:59
rwp0x5E would be the hexmap for it.  Maybe.  Just looking at documentation...22:00
omenI think just using "less greater less greater bar brokenbar" will work for me22:02
omensince that is what the key does22:02
rwpGood!  I don't have an ISO keyboard to check myself.  Sorry.22:03
omenyou have been great help :)22:04
rwpSo xmodmap -pke | grep brokenbar for me says "keycode  94 = less greater less greater bar brokenbar bar" so it would seem that assigning it to the keycode for the Capslock should work for you.22:04
rwpWere you able to verify the keycode of your Caplock?22:04
omenyeah it's 6622:05
rwpTherefore perhaps "xmodmap -e 'keycode 66 = less greater less greater bar brokenbar bar'" just on the command line might do it?  Maybe?22:05
omenworks like a charm. thanks a ton22:07
rwp\o/22:07
omennow how would I disable the original bind since it still also acts like capslock? :D22:08
rwpProbably "clear Capslock"22:08
rwpSorry.  Looks like it is "clear Lock".22:09
omenperfect. thanks again22:10
rwpomen, Do you ever work on the Linux console outside of X?  If so then the commands there are dumpkeys and loadkeys.22:10
omennot with this keyboard22:10
rwpI do this on my machine to make Capslock into a Control key: dumpkeys --full-table | sed -n '/^keycode  *29/p;/^keycode  *58/p' | sed '/^keycode  *29/s/Control/Escape/g;/^keycode  *58/s/CtrlL_Lock/Control/g' | loadkeys -q22:10
rwpAnd then with that I get my normal Control key left of the A on the Linux console too.22:10
rwpI do it as a dump and sed because at one point I found I had different systems producing different things.  So that allowed me to read-modify-write just the single key I wanted.22:11
omenharry you are a wizard22:11
rwpOh, the above also changes the left Control into an Escape key.  (Just like an old HP HIL keyboard that had that layout that I used to use.)22:12
rwpAnd just for completeness on my system I have that dumpkeys|loadkeys in my /etc/rc.local file to happen at boot on the Linux console.22:13
omenmaybe I can one day do that also now that I have the pipe symbol at all22:13
rwpMissing the pipe key makes working with the computer a lot harder!  There is all of that cutting and pasting needed all of the time.  No fun.  No fun at all!22:14
rwpIf there were devuan-offtopic this would trigger a rant about C-language trigraphs which can be used for many of those special characters.22:14
rwpGlad to hear it worked out for you.  Perhaps a new keyboard is in your future?  In any case I need to be afk for a bit.  Back much later...22:15
omenyeah, new keyboard is definitely on my list :)22:15
redrickomen:  This is for you!  http://linuxmafia.com/pub/humour/keyboard-failure23:18
brocashelmwhich packages are needed for apt-listchanges to temporarily clear the previous terminal entries and prompt you to scroll until you hit q? i was cleaning up a bunch of packages i didn't need and wasn't sure if a package that made it work normally was removed by accident23:21
brocashelmi'm guessing it's a python package?23:21
fifihyperbolahow to register on libera??23:31
golinuxfifihyperbola: https://libera.chat/guides23:33
fifihyperbolatnx :)23:33

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