💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › kisslinux-2021-12-13.txt captured on 2024-05-12 at 16:03:44.

View Raw

More Information

⬅️ Previous capture (2021-12-17)

-=-=-=-=-=-=-

[2021-12-13T00:00:18Z] <Jeff42> which were them?
[2021-12-13T00:00:37Z] <noocsharp> actually wait, nvm i didn't
[2021-12-13T00:00:53Z] <noocsharp> i was just looking at extra entries that i had for other stuff
[2021-12-13T00:04:08Z] <noocsharp> your kernel is called vmlinuz-5.16.0-rc4?
[2021-12-13T00:06:08Z] <Jeff42> yes, the vmlinuz file is called that
[2021-12-13T00:07:08Z] <noocsharp> what's the output if you run the `file` command on it?
[2021-12-13T00:07:32Z] <noocsharp> actually first i should ask, have you build a custom kernel before?
[2021-12-13T00:08:23Z] <Jeff42> yes, many times for Gentoo but I never tried a kernel with only modules built-in
[2021-12-13T00:08:34Z] <Jeff42> (I always used udev)
[2021-12-13T00:08:45Z] <noocsharp> ok, so you know where to get vmlinu* from
[2021-12-13T00:09:26Z] <noocsharp> i guess run `file` anyway to double check that it's the right one
[2021-12-13T00:10:14Z] <noocsharp> tbh it's been a while since i had to do anything with grub, so not sure if i'm the best person to help
[2021-12-13T00:11:47Z] <Jeff42> yep seems to be the right one
[2021-12-13T00:25:48Z] <Jeff42> noocsharp The problem is with my graphics driver as setting nomodeset allows me to run the system perfectly (amdgpu driver does not load because of nomodeset though)
[2021-12-13T00:28:09Z] <noocsharp> ok, well i've never had to deal with that so can't help you there
[2021-12-13T00:28:17Z] <noocsharp> apologies
[2021-12-13T00:28:43Z] <Jeff42> no need for apologize, you helped me a lot
[2021-12-13T00:28:52Z] <noocsharp> but other's here have i'm pretty sure so i'll leave it to them
[2021-12-13T00:46:57Z] <noocsharp> my compiler now has procedures that can be called with parameters
[2021-12-13T00:47:41Z] <noocsharp> i have spent the last 3 days thinking purely about types and stacks
[2021-12-13T01:45:19Z] <acheam> nice
[2021-12-13T01:47:07Z] <acheam> noocsharp: whats atd? Looks like some client server network thing
[2021-12-13T02:37:38Z] <tleydxdy[m]> if I want to write a script that gets triggered when say my laptop is plugged in, what's the best way to go about it?
[2021-12-13T02:38:20Z] <tleydxdy[m]> for file changes there's inotifywait, I guess I would need to write something like that for uevents?
[2021-12-13T02:53:03Z] <dilyn> acpid
[2021-12-13T02:54:26Z] <dilyn> i.e. https://github.com/dylanaraps/wiki/blob/12bd8cf4d4d2a71298b99aef9ac4187bf0a0f573/software/acpid.txt
[2021-12-13T02:55:03Z] <tleydxdy[m]> would that conflicts with udev?
[2021-12-13T02:56:26Z] <tleydxdy[m]> well, to clearify, I don't really want to put some config into the system, rather I want it to be something the user can run
[2021-12-13T02:57:43Z] <tleydxdy[m]> the naive solution would be to poll /sys on a loop, but that's clearly bad
[2021-12-13T02:59:21Z] <dilyn> if you want it to be a thing the user can run and NOT be triggered, then it doesn't need to be automated; the user will know when to run it...
[2021-12-13T02:59:31Z] <dilyn> acpid scripts are also user-executable tho
[2021-12-13T03:03:16Z] <tleydxdy[m]> say the user want to have a notification pop up in their desktop everytime the power is plugged in (or a drive etc), I want it to be something they can run and it would do that. rather than say I have to have the admin put some script in the udev rules.
[2021-12-13T03:04:05Z] <tleydxdy[m]> or to have the admin run a daemon really. but if that's the only way then I guess
[2021-12-13T03:04:09Z] <dilyn> so you want a notification daemon? most of those require dbus...
[2021-12-13T03:04:16Z] <dilyn> though someone around here made a thing a long while ago iirc
[2021-12-13T03:04:28Z] <tleydxdy[m]> it's just a example
[2021-12-13T03:04:42Z] <tleydxdy[m]> the point is run a script when uevents happen
[2021-12-13T03:05:01Z] <tleydxdy[m]> s/the point is run a script when uevents happen/the point is have the user hook a script to when uevents happen/
[2021-12-13T03:07:13Z] <dilyn> Right, but that's a question with a broad number of answers. Hence all my suggestions and questions XD
[2021-12-13T03:07:37Z] <dilyn> like, yes you can just read a file. Or if it's an event something like acpid could read it, OR you could use something like dbus
[2021-12-13T03:08:12Z] <tleydxdy[m]> hmm, I guess I'm not understanding something here
[2021-12-13T03:08:26Z] <dilyn> or i am
[2021-12-13T03:08:38Z] <tleydxdy[m]> say with the acpid solution
[2021-12-13T03:09:01Z] <tleydxdy[m]> I assume the admin has to set it to run on boot, which I guess is fine. then what?
[2021-12-13T03:09:53Z] <dilyn> the acpid solution just requires you to enable the acpid service and then from there you just have a control/hooks script that lives in /etc
[2021-12-13T03:10:11Z] <tleydxdy[m]> which means admin has to put stuff there right?
[2021-12-13T03:10:31Z] <dilyn> correct
[2021-12-13T03:10:46Z] <tleydxdy[m]> yeah, so a user can't hook into the event
[2021-12-13T03:10:54Z] <tleydxdy[m]> only admin can
[2021-12-13T03:12:07Z] <dilyn> i mean a user can do something like this http://ix.io/3HVG
[2021-12-13T03:12:23Z] <tleydxdy[m]> exactly
[2021-12-13T03:12:24Z] <dilyn> which is what you're suggesting sort of with watching files
[2021-12-13T03:12:40Z] <tleydxdy[m]> but that means it need to have it in a loop
[2021-12-13T03:12:49Z] <tleydxdy[m]> inotify doesn't work on sysfs nodes
[2021-12-13T03:12:51Z] <tleydxdy[m]> sadly
[2021-12-13T03:12:56Z] <dilyn> f
[2021-12-13T03:14:05Z] <tleydxdy[m]> so I'm thinking if I just need to write a small program that just listens to uevents and exits
[2021-12-13T03:14:25Z] <tleydxdy[m]> * and exits when events come
[2021-12-13T03:28:49Z] <testuser[m]> Hi
[2021-12-13T04:20:59Z] <testuser[m]> https://lwn.net/Articles/276782/
[2021-12-13T04:33:48Z] <illiliti> tleydxdy[m]: you can leverage your device manager to show notifications
[2021-12-13T04:34:20Z] <illiliti> but if you want to write portable solution, then you need to write program that listens to uevents(see `busybox uevent` for example)
[2021-12-13T04:35:24Z] <tleydxdy[m]> oh sweet
[2021-12-13T04:35:32Z] <tleydxdy[m]> didn't know busybox has something like that
[2021-12-13T04:35:53Z] <tleydxdy[m]> I was reading the libudev man pages and was kinda lost
[2021-12-13T04:37:44Z] <illiliti> you don't need libudev for such simple thing
[2021-12-13T04:37:49Z] <tleydxdy[m]> I guess it makes sense since busybox can handle udev stuff
[2021-12-13T04:38:01Z] <tleydxdy[m]> yeah, I don't know anything about these
[2021-12-13T04:38:46Z] <noocsharp> acheam: let's you interface with the modem on a pinephone
[2021-12-13T04:39:42Z] <noocsharp> atd does
[2021-12-13T04:41:02Z] <bujeddhazeus> I'm actually wondering whether I should be using mdev instead of manually creating device nodes for the hardware I need to access on early boot for my current project
[2021-12-13T04:41:23Z] <bujeddhazeus> Debating internally more like
[2021-12-13T04:42:23Z] <bujeddhazeus> I run udev once I've booted usually
[2021-12-13T04:44:35Z] <illiliti> udev? it doesn't exist on kisslinux
[2021-12-13T04:45:01Z] <bujeddhazeus> Ah apologies for interrupting on-topic conversation, you got me. I use gentoo
[2021-12-13T04:45:32Z] <bujeddhazeus> I just randomly decided to come in here when I was experiencing issues and decided to stay here, people seem nice enough
[2021-12-13T04:48:14Z] <illiliti> then i don't understand why you need mdev to create nodes if you already have udev
[2021-12-13T04:50:19Z] <bujeddhazeus> initramfs
[2021-12-13T04:50:57Z] <bujeddhazeus> I wouldn't include udev in an initramfs, especially when that's a common use for busybox
[2021-12-13T04:51:22Z] <tleydxdy[m]> for me I just copy over any node I need
[2021-12-13T04:51:39Z] <tleydxdy[m]> which is not that many
[2021-12-13T04:51:49Z] <bujeddhazeus> Yeah. Same here. However, when cross-compiling, it's a bit trickier
[2021-12-13T04:51:56Z] <tleydxdy[m]> ye
[2021-12-13T04:53:25Z] <bujeddhazeus> There's always running raspios to get the mknod values in my case, our searching through kernel sources or whatever
[2021-12-13T04:53:39Z] <bujeddhazeus> s/our/or/
[2021-12-13T04:53:47Z] <bujeddhazeus> Looks like I'm tired
[2021-12-13T04:55:16Z] <illiliti> bujeddhazeus: udev can be used in initramfs
[2021-12-13T04:55:19Z] <illiliti> there's nothing wrong with it
[2021-12-13T04:56:24Z] <illiliti> https://github.com/illiliti/tinyramfs/tree/master/hook/systemd-udev
[2021-12-13T05:07:10Z] <bujeddhazeus> Right. But I'd rather keep it as only part of the main OS along with openrc and friends for some reason unknown to me
[2021-12-13T08:52:13Z] <phinxy> What's the `top` for kiss?
[2021-12-13T08:53:02Z] <phinxy> I was expecting htop in the repo.
[2021-12-13T09:01:53Z] <testuser[m]> Use the community repository
[2021-12-13T09:01:56Z] <testuser[m]> It has htop
[2021-12-13T09:03:31Z] <phinxy> What's the URL?
[2021-12-13T09:13:06Z] <testuser[m]> https://github.com/kiss-community/community
[2021-12-13T09:14:36Z] <phinxy> Cheers.
[2021-12-13T13:25:49Z] <phoebos> dilyn: https://tmp.bvnf.space/0001-catgirl-bump-to-2.0.patch
[2021-12-13T14:19:57Z] <akira01> Yo guys
[2021-12-13T14:20:16Z] <akira01> anyone ever find a way to make firefox detect microphone with alsa only?
[2021-12-13T14:20:30Z] <akira01> Never have a solution for this
[2021-12-13T14:27:06Z] <phinxy> What should I do to organize out of tree programs, make a personal kiss repo, how hard is that to do?
[2021-12-13T14:27:17Z] <phinxy> Stick 'em in /local?
[2021-12-13T14:27:40Z] <testuser[m]> making kiss packages is super easy
[2021-12-13T14:28:27Z] <akira01> yep
[2021-12-13T14:28:49Z] <akira01> either i made some packages and iam too noob for this
[2021-12-13T15:36:05Z] <jedavies> Anyone know how I can change passwords for a chroot? Busybox passwd seems to have /etc/shadow hardcoded. If it's a different arch I can't chroot into it and run passwd.
[2021-12-13T15:37:11Z] <testuser[m]> just set pass with passwd on another chroot and copy over the hash into broken chroot
[2021-12-13T15:37:15Z] <testuser[m]> from /etc/passwd
[2021-12-13T15:37:29Z] <testuser[m]> shadow*
[2021-12-13T15:37:42Z] <Jeff42> Sway-tiny has a blank yellow screen without a mouse and keybinds not working, how do I fix that? (XDG_RUNTIME_DIR is a folder in my home directory)
[2021-12-13T15:43:03Z] <jedavies> testuser: Yeah may just have to use a predetermined passwd file. Working on a pmbootstrap-style script for the pinephone, wanted a way of creating a default user/password.
[2021-12-13T16:41:35Z] <phinxy> I adopted another package's `build` file which removed intltool from the build, for "isight-firmware-tools".  Could the package now be helpful for somebody else, i.e. can this be pushed to the community repo or is it too trivial? https://termbin.com/8eue
[2021-12-13T16:42:34Z] <testuser[m]> u can put anything in community repo as long as you're willing to maintain it
[2021-12-13T16:42:49Z] <testuser[m]> but usually people put such stuff that isnt very popular into their personal public repos
[2021-12-13T17:15:41Z] <phinxy> I did it!  https://gitlab.com/tropical/kisslinux_2007_macbook/
[2021-12-13T17:15:59Z] <testuser[m]> Rich
[2021-12-13T18:31:22Z] <acheam> noocsharp: nice
[2021-12-13T18:31:28Z] <acheam> how are your pinephone adventures doing?
[2021-12-13T18:31:33Z] <acheam> done much since the summer?
[2021-12-13T18:32:01Z] <acheam> phinxy: whats wrong with top?
[2021-12-13T18:32:16Z] <phinxy> just never learnt how to use it
[2021-12-13T18:32:32Z] <acheam> oh the way you worded your question it sounded like top wasnt installed or something
[2021-12-13T18:32:56Z] <phinxy> I gladly use programs like wpa_cli and top should perhaps be something to teach myself
[2021-12-13T18:33:36Z] <acheam> also your build files should never modify /
[2021-12-13T18:33:54Z] <acheam> so instead of /lib/modules, it should be $1/lib/modules
[2021-12-13T18:34:34Z] <acheam> also you can use uname to find kernel version
[2021-12-13T18:35:26Z] <phinxy> It's almquist shell, right?  How would uname in a environment variable declaration look like?
[2021-12-13T18:38:05Z] <phinxy> `X="hello $(uname -r) world"` seems alright
[2021-12-13T18:38:28Z] <acheam> yep
[2021-12-13T18:38:53Z] <acheam> although you may need to cut it at "-" if your kernel name has one in it
[2021-12-13T18:39:00Z] <acheam> uname -s | cut -d '-' -f 1
[2021-12-13T18:43:15Z] <phinxy> I the build file to append to the existing /lib/modules/*/modules.dep, with a $1 at the front of the path, could kiss interfere with the file edit?
[2021-12-13T18:43:53Z] <phinxy> I wanted the build file *
[2021-12-13T19:22:33Z] <acheam> hmm thats tough
[2021-12-13T19:22:38Z] <acheam> you could do it in a post-install files
[2021-12-13T19:27:01Z] <phinxy> That would be better
[2021-12-13T20:44:12Z] <noocsharp> acheam: i haven't done much on it since summer
[2021-12-13T20:45:20Z] <noocsharp> i think i bit of more than i could chew
[2021-12-13T20:45:26Z] <noocsharp> off*
[2021-12-13T20:45:55Z] <noocsharp> but atd is probably the most valuable part, so might try to get it working with some other ui
[2021-12-13T20:47:24Z] <acheam> nice
[2021-12-13T22:46:54Z] <phinxy> i copied mesa to mesa-2.  How can mesa-2 be made to satisfy dependencies for mesa?
[2021-12-13T22:48:06Z] <phinxy> would be nice with a "replaces" file
[2021-12-13T22:54:45Z] <acheam> dont rename packages
[2021-12-13T22:55:01Z] <phinxy> How would you suggest to edit them?
[2021-12-13T22:55:03Z] <acheam> just fork it to another package called mesa and put that higher in KISS_PATH
[2021-12-13T22:55:14Z] <acheam> or keep it as mesa-2 and symlink it
[2021-12-13T22:55:37Z] <acheam> to change the dependency in already-installed programs you can just change the text in /var/db/kiss
[2021-12-13T22:56:46Z] <phinxy> mv /var/db/kiss/mesa-2 /var/db/kiss/mesa ?
[2021-12-13T23:17:39Z] <acheam> change the name of the package in your repo
[2021-12-13T23:27:58Z] <sad_plan> o/
[2021-12-13T23:28:36Z] <acheam> hey sad_plan
[2021-12-13T23:28:55Z] <sad_plan> hey acheam