ChanServ changed the topic of #kisslinux to: KISS Linux | https://k1sslinux.org | /msg zr for kisslinux/* cloaks | logs: https://k1sslinux.org/irc#2.0 | thing of the day: https://vid.puffyan.us/watch?v=HVzC6WZImGY
mahmutov has quit [Ping timeout: 272 seconds]
midfavila has quit [Remote host closed the connection]
midfavila has joined #kisslinux
midfavila has quit [Client Quit]
technoznc has quit [Ping timeout: 272 seconds]
m3g has quit [Ping timeout: 250 seconds]
technoznc has joined #kisslinux
micro_O has joined #kisslinux
micro_O has quit [Ping timeout: 252 seconds]
zenomat has quit [Ping timeout: 250 seconds]
zenomat has joined #kisslinux
zenomat has quit [Changing host]
zenomat has joined #kisslinux
Uks2 has quit [Quit: Byee]
Uks2 has joined #kisslinux
<dilyn> gcc's build system uses host/target specification on certain checks so I'd have to see if there was a good reason for it to be specified
<dilyn> I doubt there was, so maybe perhaps
midfavila has joined #kisslinux
Uks3 has joined #kisslinux
Uks2 has quit [Ping timeout: 272 seconds]
dylan02 has joined #kisslinux
<dylan02> o/
<illiliti> hi!!!!!!!!!! nice to see you!
<dylan02> Nice to see you too. How have you been?
<konimex> welcome back
<dylan02> Thanks konimex, how are you?
<illiliti> dylan02: i've been great, thanks
<konimex> pretty good, all things considered
dylan02 has quit [Ping timeout: 246 seconds]
micro_O has joined #kisslinux
<testuser[m]1> Hi
<testuser[m]1> Hi dylan02
micro_O has quit [Ping timeout: 250 seconds]
schillingklaus has joined #kisslinux
dylan02 has joined #kisslinux
<dylan02> Apologies, power outage
<schillingklaus> but now the dylanpower is back
<dylan02> lol
<testuser[m]1> dilyn: You'd need to specify the triplet for the LTO symlink too so it can be changed to $(cc -dumpmachine) in both occurrences
<illiliti> dylan02: how are you? how are your cats?
<schillingklaus> the cats ate his mouse
<dylan02> I'm good. Many cats have come and gone (right now there's some kind of virus going around so I've lost some).
<dylan02> I've been experimenting with some (partially breaking) changes to the package manager. The first one is to sway to blake3 for checksums rathat than sha256. The rationale is performance of which there is a substantial improvement: https://pastebin.com/raw/G1T9K9Tv
<dylan02> s/sway/switch/
<dylan02> s/rathat/rather/
<konimex> what's the implementation of the b3sum?
<schillingklaus> rathat sounds almost like redhat alias Poettering
dylan0225 has joined #kisslinux
dylan02 has quit [Quit: Client closed]
<konimex> looks like there's a c and rust implementation
<schillingklaus> rust is totally non-kissish
<dylan0225> This is upstream: https://github.com/BLAKE3-team/BLAKE3
<dylan0225> I need to setup an IRC client, using the web interface for the moment.
dylan0225 has quit [Client Quit]
dylan02 has joined #kisslinux
<dylan02> konimex: There's Michael's implementation which I'm using and upstream. https://git.sr.ht/~mcf/b3sum https://github.com/BLAKE3-team/BLAKE3
<dylan02> I'm lagging lol
<dylan02> It's possible to transition to b3sum in a *non-breaking* way by making the repositories transition over transparently (as new checksums are generated). ie, both are supported until the sha256 checksums disappear. Just depends on whether or not this change is desirable.
<testuser[m]1> https://termbin.com/a2om nice
<konimex> well I wouldn't be opposed
<testuser[m]1> but are there enough fat packages to warrant this change ?
<konimex> if rust and firefox's sources are considered as it's on the main repo, it does
<noocsharp> i think faster checksum is better purely because it's faster, and because it's possible to switch
<noocsharp> regardless of fat packages
<noocsharp> also, welcome back dylan! (although i wasn't in irc when you were here last)
<schillingklaus> dilyn was a worthy substitute
<dylan02> noocsharp: Thanks :)
<dylan02> Agreed
<dilyn> o/ :)
<dilyn> b3 is pretty cool
<dylan02> Hello
<dylan02> How's things?
<dilyn> Busy!
<dilyn> How are your things?
<dilyn> Having fun, I hope
<dylan02> My things are good
<schillingklaus> I guess good old md5 is too insecure for checksums
dylanaraps has joined #kisslinux
<dylanaraps> collision attacks
dylan02 has quit [Quit: Client closed]
<dylanaraps> not good for file integrity
schillingklaus has quit [Quit: schillingklaus]
<midfavila> oh, shit
<midfavila> hey dylanaraps, glad to see the red hat assassins didn't take you out
<dylanaraps> ;)
dylanaraps has quit [Ping timeout: 250 seconds]
icy has joined #kisslinux
taaparthur has quit [Quit: Client closed]
mahmutov has joined #kisslinux
<sh4> dylanaraps: for a fair test you should run sha256sum several time as the first read most likely puts the file contents in cache
<sh4> i.e. in your paste the first invocation reads from fs + runs hashing, whereas second call only runs hashing
dylanaraps has joined #kisslinux
<dylanaraps> sh4: You're free to try it yourself. My snippet is runs copy/pasted from a series they didn't necessarily run in that order (and not only twice per file).
<dylanaraps> blake3 really is that much faster consistently
<sh4> i see. actually this has come up once in sabotage too though i decided to stick with sha512sum as its readily avalaible anywhere, and i dont think 1 sec for hashing a 170MB file is unreasonable
<sh4> given that you probably need like 5 mins to download it
<sh4> (at least on my conn)
micro_O has joined #kisslinux
micro_O has quit [Ping timeout: 258 seconds]
mcpcpc_ has joined #kisslinux
mcpcpc has quit [*.net *.split]
necromansy has quit [Quit: nyaa~]
dylanaraps has quit [Ping timeout: 250 seconds]
dylanaraps has joined #kisslinux
gtms has joined #kisslinux
Uks3 has quit [Read error: Connection reset by peer]
Uks2 has joined #kisslinux
Uks2 has quit [Client Quit]
Uks2 has joined #kisslinux
illiliti has quit [Quit: leaving]
mahmutov has quit [Ping timeout: 244 seconds]
mahmutov has joined #kisslinux
Guest14 has joined #kisslinux
mahmutov has quit [Ping timeout: 272 seconds]
dylanaraps has quit [Ping timeout: 268 seconds]
Guest14 has quit [Quit: Client closed]
mahmutov has joined #kisslinux
micro_O has joined #kisslinux
micro_O has quit [Ping timeout: 272 seconds]
claudia has joined #kisslinux
<claudia> dylanaraps: I am very glad you made it back. I wish you all the best!
<claudia> Good to see that you didtn ran out of ideas (:
Uks2 has quit [Ping timeout: 268 seconds]
Uks2 has joined #kisslinux
midfavila has quit [Quit: Leaving.]
midfavila has joined #kisslinux
mahmutov has quit [Read error: No route to host]
<rio6> \o/
riteo has joined #kisslinux
<riteo> hiiii!
<testuser[m]1> Hi riteo
<midfavila> ohaiyodesu, riteo-kun uwu~
<riteo> uwu
* testuser[m]1 cancels midfavila and riteo
micro_O has joined #kisslinux
<midfavila> roll for social
strajder has joined #kisslinux
claudia has quit [Quit: zzz]
micro_O has quit [Ping timeout: 268 seconds]
herzog has joined #kisslinux
<herzog> Hi, are there any resources for packaging software? FAQ says "Package it yourself" but I've no idea what that means exactly. I think it involves compiling but can't find anything about it...
<riteo> you can look there: https://k1sslinux.org/package-system
<riteo> s/there/here/
<herzog> Oh okay thank you
<riteo> you're welcome :)
<herzog> So any package that works on Linux will work for KISS?
<riteo> it depends on what you mean for Linux
<testuser[m]1> KISS is Linux
<testuser[m]1> As long as it has deps satisfied and doesn't have glibc-isms
<testuser[m]1> But it's easy to patch out glibc-isms
<testuser[m]1> (Mostly)
<herzog> Something like this https://librewolf-community.gitlab.io/
<riteo> oh yeah
<riteo> I'm pretty sure someone already packaged it
<testuser[m]1> Not sure why you'd use that instead of hardened ff but noocsharp has it
<testuser[m]1> Wait
<testuser[m]1> Looks like it's an ayyland build so you'll have to remove that line
<riteo> ayyland
<testuser[m]1> cairo-gtk3-wayland
<herzog> I dunno, I saw that Mozilla was doing some anti free speech stuff
<testuser[m]1> Librewolf is just pozilla firefox with a couple of patches
<testuser[m]1> That doesn't un-pozilla it
<testuser[m]1> Other than telemetry
<noocsharp> it both wayland and xorg
<noocsharp> i guess you need to remove the line if you don't have wayland stuff installed
<herzog> Ok I will do that thank you
<noocsharp> also it's not the latest firefox
micro_O has joined #kisslinux
midfavila has quit [Remote host closed the connection]
midfavila has joined #kisslinux
micro_O has quit [Ping timeout: 258 seconds]
herzog has quit [Quit: Client closed]
<dilyn> consolers: idk if you check the logs (so someone let them know if you see them), that specific firefox problem was resolved. I don't quite remember what I did, but repo/extra/firefox allegedly works just fine
mahmutov has joined #kisslinux
Guest68 has joined #kisslinux
<Guest68> Was anybody able to get an encrypted KISS ?
<Guest68> So dm-mod.create is a kernel parameter... but what settings would I give it?
mahmutov has quit [Ping timeout: 272 seconds]
Guest68 has quit [Ping timeout: 246 seconds]
<riteo> gtg for now, bye!
riteo has quit [Quit: epic quiet moment]
mahmutov has joined #kisslinux
strajder has quit [Quit: leaving]
Guest68 has joined #kisslinux
jaafarrc has joined #kisslinux
<jaafarrc> My stuff is being installed to /var/db/kiss/var/db/kiss/installed instead of /var/db/kiss/installed...
<jaafarrc> And there seems to be other stuff like /var/db/kiss/{etc,usr,var}... WTF is going on?
dilyn has quit [Quit: Connection closed]
dilyn has joined #kisslinux
illiliti has joined #kisslinux
<dilyn> jaafarrc: can we get the output of `env`?
<jedavies> Your KISS_ROOT is set to /var/db/kiss ?
<dilyn> ^yes, something like that. relevant definitions would be sys_db=$KISS_ROOT/${pkg_db:=var/db/kiss/installed}
<dilyn> line ~1680
<jaafarrc> Wait... KISS_ROOT is an actual thing? I made it for my script for efficiency's sake.
<dilyn> It is indeed ;v
<dilyn> it allows you to install packages to a different place than /
<jaafarrc> Yes, my KISS_ROOT is /var/db/kiss.
<jaafarrc> Hold on a second, no, it isn't.
<jaafarrc> Should I add an "export?"
<jaafarrc> Nevermind, it is.
<jaafarrc> Ugh, I'm so blind.
<jaafarrc> If I run env, KISS_ROOT is right there and I already have "export."
<Guest68> Dilyn do you have experience with encrypting KISS
<dilyn> illiliti knows more than me
<dilyn> a couple of people have done it
<jaafarrc> Alright, I've replace KISS_ROOT with KROOT in my script, and removed KISS_ROOT.
<jaafarrc> With "my script" being ~/.profile.
<Guest68> Ok. Am I right in assuming that I need to create the lvm on luks container, make sure kernel has lvm2 and dm-crypt, and use an initramfs (tiny-initramfs on GitHub)
<Guest68> The basic steps
<illiliti> yep, the first step is to make partitions on disk though
<Guest68> Ok also what is your kiss-encryption and how is it different from taking tiny initramfs approach?
<Guest68> Srry I have no idea how init systems work
<illiliti> kiss-encryption is usually intended to mount encrypted /home and other non-root partitions
<illiliti> tinyramfs mounts your encrypted / and boots into it by executing /sbin/init
<Guest68> Ok so if I want to have both encrypted /home and / I would need both
<illiliti> yes
<Guest68> Thank you just wanted to make sure before installing all this ^^
<illiliti> kiss-encryption is also gracefully unloads your encrypted partitions on shutdown
<illiliti> so you need to install it either way
<illiliti> home on separate partition is usually redundant if you want simple setup
<illiliti> i personally have everything on /
<illiliti> and i don't use lvm
<illiliti> this is my setup
<illiliti> sda1 is encrypted root
<illiliti> crypt-.... is unlocked root
<Guest68> Ok I will give that a try
<illiliti> yep
<illiliti> i have /boot on usb flash drive
<illiliti> i also use detached header to prevent detection of luks
<illiliti> without header it's just garbage data
<illiliti> just like plain dm-crypt
<illiliti> but with luks features
<Guest68> I know lvm needed a special linux lvm file type, but since I won't be using that I can just do ext4 for the partition right
<Guest68> file system*
<Guest68> err partition type
<illiliti> yeah, i can directly format unlocked luks container using ext4
<illiliti> lvm is optional thing
<jaafarrc> So, dilyn, if I set KISS_ROOT=/var/db/kiss/, does that mean I can just say KISS_PATH=main/core:main/xorg:etc?
<Guest68> 8e00 hex code is for Linux LVM
<Guest68> What would I use instead?
<Guest68> Just 8300 Linux filesystem ?
<dilyn> no, KISS_PATH is its own thing
<illiliti> yes
<jaafarrc> Well, what does KISS_ROOT do?
<dilyn> KISS_ROOT sets ROOTFS to something other than /
<dilyn> this is useful for something like installing a package to $HOME/.local, or for setting up a new ROOTFS for i.e. a chroot, an arch port, etc etc
<jaafarrc> Okay, then.
<jaafarrc> Btw, is it okay for KISS_PATH to start with :?
<dilyn> yes
<jaafarrc> Okay.
<dilyn> KISS_PATH is split by the : so it'll just 'disappear'
<jaafarrc> Well, I've coded the script to not add a first :, just to be extra safe. I was just curious.
<dilyn> for sure
jaafarrc has quit [Quit: Quit]
micro_O has joined #kisslinux
micro_O has quit [Ping timeout: 268 seconds]
<Guest68> Anybody know an alternative keyserver? keys.gnupg.net is not working for me
mahmutov has quit [Read error: No route to host]
mahmutov has joined #kisslinux
<Guest68> Did not work. Says key not found on keyserver
<Guest68> bad public key
<Guest68> And yes I triple checked to see the key was typed in correctly
<dilyn> keyservers are always fuzzy
<dilyn> are you trying to import my key?
<Guest68> Yes
<Guest68> Maybe I will just add it manually
<dilyn> it's included in the README of the main repository so you can just save that code block to a file and import it from there
<dilyn> assuming you trust the README lmao
<Guest68> It worked thanks
<dilyn> ofc!
<dilyn> keyservers are... always unreliable. in my experience :(
gtms has quit [Remote host closed the connection]
GalaxyNova has joined #kisslinux
<Guest68> Do I need dosfstools if I have FAT32 boot partition on UEFI
<Guest68> Or is that more for like other drives and stuff like that
<dilyn> depends on what you want to do
<dilyn> I have an EFI partition but don't have dosfstools installed, for instance. because I don't need to say create a FAT partition
<Guest68> Ok ty
<noocsharp> the boot script will use dosfstools to do an fsck i blieve
<dilyn> if you want to mount that partition, you'd need support for that filesystem in the kernel. if you want to create that filesystem, you'd need the utilities. basically, roughly, mostly
<dilyn> yeah but it won't error if you don't have fsck
<dilyn> well, it wont' exit at least
<Guest68> Yeh I was wondering if it was needed for boot process, probably wont be creating partitions
claudia has joined #kisslinux
mahmutov has quit [Ping timeout: 265 seconds]
<claudia> haha shasum for a 2gb source takes 17s . b3sum takes roughly 2s. Thats a nifty difference.
<Guest68> I need iwlwifi and amdgpu firmware for my graphics card and wifi adapter. I cloned the linux-firmware, but which files do copy? Do I need to move the iwlwifi/amdgpus ending with .ucode?
<Guest68> I see an amdgpu directory containing bin folders but no iwlwifi directory, just a bunch of iwlwifi files with extension ucode
<Guest68> bin files*
<claudia> Guest68, Have a look for iwlwifi https://k1sslinux.org/wiki/kernel/thinkpad
<dilyn> Qt is the absolute worst. http://ix.io/3rjN
<Guest68> Ok so I am copying a ucode, but there are so many haha not sure which one to choose. I am not on a thinkpad
<claudia> dmesg is your friend ;)
<claudia> on a livecd
<Guest68> You're right
<jedavies> dilyn / konimex: did you every try building gcc from wyverkiss?
<Guest68> Yes I got it already
<Guest68> Do I need to worry about Intel microcode firmware? My CPU is an i7-3770k
<jedavies> s/every/ever
<noocsharp> Guest68
<GalaxyNova> After being fustrated with inconsistencies in the community repository I made a script to check for things that don't fit the style guidelineshttps://github.com/AndreiSva/kiss-style
<GalaxyNova> it detects things like invisible characters, tabs, and inconsistent indentation
<GalaxyNova> also warns you if you use cp instead of install
<GalaxyNova> running this on all of the community repository returns so many errors lmao
<dilyn> community is less well-vetted than the main repository haha
<noocsharp> GalaxyNova: instead of piping cat into head in that if statement, you can do "head -n1 $file"
<dilyn> Guest68: microcode for CPUs is not technically required
<Guest68> "Technically", but would you recommend it? I don't even know what it does
<claudia> It wont hurt.
<claudia> You can always do it later on.
<dilyn> think of the microcode as patches and fixes to your CPU's firmware
<dilyn> fixes up microcontroller bugs etc
<dilyn> so it's good to have if you, say, don't want some sort of WhateverCVE to sneak up on you
<dilyn> but it isn't needed like how amdgpu firmwares are needed
<Guest68> Do the amdgpu bin files need to go in a separate directory or can I just put them in /usr/lib/firmware/ with the iwlwifi
<Guest68> polaris10_{ce,ce_2,k_smc,k2_smc,k_mc,mc,me,me_2,mec2,mec2_2,mec,mec_2,pfp,pfp_2,rlc,sdma1,sdma,smc,smc_sk,uvd,vce}.bin
<dilyn> I put all mine in /usr/lib/firmware/amdgpu and iirc it *has* be be in a subdir named amdgpu?
<dilyn> someone was having problems before with it and I think that was, somehow, the solution...
<illiliti> GalaxyNova: https://github.com/AndreiSva/kiss-style/blob/main/kiss-style#L51 << -T is not portable
an3223 has quit [Read error: Connection reset by peer]
<illiliti> GalaxyNova: https://github.com/AndreiSva/kiss-style/blob/main/kiss-style#L70 << -P is not portable
<illiliti> https://github.com/AndreiSva/kiss-style/blob/main/kiss-style#L72 << [ ... -a ... ] is XSI, not POSIX
<illiliti> https://github.com/AndreiSva/kiss-style/blob/main/kiss-style#L80 << case $... in ($...) is not portable
<illiliti> use `case $... in 123)`
<illiliti> https://github.com/AndreiSva/kiss-style/blob/main/kiss-style#L88 << if [ "${#line}" -gt 80 ]; then ...
claudia has quit [Read error: Connection reset by peer]
<noocsharp> GalaxyNova: just run shellcheck on it
<GalaxyNova> illiliti: That's odd
<GalaxyNova> shellcheck didn't say anything about -P not being portable
<GalaxyNova> does it not work on busybox?
claudia has joined #kisslinux
<illiliti> there's no -P
<GalaxyNova> alright then how am i supposed to grep a tab character
<noocsharp> you could insert a literal tab character
an3223 has joined #kisslinux
<dilyn> ^
<illiliti> i also suggest to use `printf '%s\n' "$var"` instead of echo or printf "$var"
<GalaxyNova> why's that
<illiliti> $var may break echo if contains options -Een
<illiliti> and echo is deprecated by POSIX due to this
<illiliti> printf "$var" is generally bad
<noocsharp> also instead of going line by line to check for "cp ", you can just use 'grep "cp " $file' to do the whole file at once
<GalaxyNova> but it will loop line by line anyway
<GalaxyNova> oh nvm
<GalaxyNova> yeah that would be a worthwhile change as well
<illiliti> GalaxyNova: you can use: case $line in 'cp '*) ... instead of grep
<illiliti> https://github.com/AndreiSva/kiss-style/blob/main/kiss-style#L54 << cat is redundant. use while read -r var; do ...; done < "$file"
GalaxyNova has quit [Quit: WeeChat 3.2]
<illiliti> lol
<noocsharp> i think you scared them off
<dilyn> illiliti is very intimidating
<dilyn> he's memorized the entire POSIX standard and that's scary
<illiliti> sorry. i just want to help writing clean code...
<dilyn> <3
<dilyn> love your keen eye
<noocsharp> illiliti: quick! what are the standard flags for cat?
<illiliti> -u
<noocsharp> dilyn wasn't joking
<noocsharp> the entire posix standard
<Guest68> How would I put amdgpu bin files into the .config for file? For iwlwifi it's CONFIG_EXTRA_FIRMWARE="****.ucode", do I need to type this in for every bin file?
<noocsharp> CONFIG_EXTRA_FIRMWARE="a.ucode amdgpu1 amdgpu2"
<noocsharp> just separate them by a space
<Guest68> Ok, also the tutorial has the firmware files in /usr/lib/firmware but the .config has /lib/firmware. Is this just an inconsistency
<noocsharp> on kiss /lib is a symlink to /usr/lib
<noocsharp> so yeah, just an inconsistency
<Guest68> Ohh ok