|
ExcessBLarg! posted:Except running as the radarr user is the default setup, you have to go a good bit out of your way to change that with a systemd override. This was the default configuration for the service in question, yes, but I commented on it as no one else ITT did. I also didn't mean to imply that other local users on the same machine are what you need to be afraid of, just that I know a many home users run all kinds of services with their main user account - as seen on this thread page. edit: previous page that is Keito fucked around with this message at 20:24 on Aug 3, 2022 |
# ? Aug 3, 2022 20:18 |
|
|
# ? Jun 6, 2024 14:03 |
|
The main issue with Linux ACLs is forgetting they exist and getting confused as to how something is working when they don't have the right basic ugo permissions...
|
# ? Aug 3, 2022 22:25 |
|
Pablo Bluth posted:The main issue with Linux ACLs is forgetting they exist and getting confused as to how something is working when they don't have the right basic ugo permissions... If it has a + next to the ugo perms it means it has an ACL when you code:
|
# ? Aug 3, 2022 22:41 |
|
As I recall, strictly speaking it doesn't inherently mean an ACL, it's just very likely.
|
# ? Aug 4, 2022 00:41 |
The best thing about Linux ACLs is that it means you can't be fully NFSv4 compliant.
|
|
# ? Aug 4, 2022 12:09 |
|
Anyone know why Ubuntu doesn't install the libnss-resolve package (which provides the glibc NSS resolve module) as part of its default installation, even though Ubuntu has been using systemd-resolved's stub resolver since 18.04? According to the systemd-resolved documentation, use of the nss-resolve module is preferred for supported applications (which is nearly everything) over the stub resolver, yet the only thing that pulls it in is the openvpn-systemd-resolved package. My guess is that split DNS configurations are uncommon outside of VPN settings so the NSS and stub interfaces are functionally equivalent most of the time. For applications where it really matters support the D-Bus interface anyways.
|
# ? Aug 9, 2022 21:19 |
|
Anyone have a good way to load an epub on an Ipad from linux?
|
# ? Aug 11, 2022 06:09 |
|
The Files app can connect to Samba, Mobile Safari, Google Drive, etc.
|
# ? Aug 11, 2022 06:27 |
|
The Atomic Man-Boy posted:Anyone have a good way to load an epub on an Ipad from linux? Send To Kindle works in WINE.
|
# ? Aug 11, 2022 17:55 |
|
The Atomic Man-Boy posted:Anyone have a good way to load an epub on an Ipad from linux? can't you just email the PDF to yourself as an attachment and load it?
|
# ? Aug 11, 2022 20:56 |
|
The Atomic Man-Boy posted:Anyone have a good way to load an epub on an Ipad from linux? Email the file to your iPad and open it in iBooks.
|
# ? Aug 12, 2022 01:44 |
|
VM question: reading about storage devices and VMs, there are frequent warnings about not having both the host and guest use storage at the same time, because it is likely to corrupt data. Is this just for writes, or any type of access? Like if I have a volume passed to a windows guest that is safe to mount as read-only in the linux host? Or is this a more fundamental thing where just having 2 OSes trying to access the device at the same time is bad.
|
# ? Aug 16, 2022 00:39 |
|
Having one RW mount and multiple RO should be safe in the sense that the data on disk will eventually be what the writer intended, but you risk the readers seeing inconsistent information.
|
# ? Aug 16, 2022 01:02 |
|
Yeah I would expect that the guest OS would operate under the assumption that the device contents will never change and it may cache things that may be changed without it knowing.
|
# ? Aug 16, 2022 01:07 |
|
BattleMaster posted:Yeah I would expect that the guest OS would operate under the assumption that the device contents will never change and it may cache things that may be changed without it knowing. Not just that, but reading a file or a folder structure while something is actively writing there could give you logical problems like "this index file points to a data file that hasn't been written yet" or "I caught this file in the middle of a rewrite" - the exact problems possible depend on the file system and program, of course. If you just want to share a folder full of plain media files that don't change much, then I guess it should be ok?
|
# ? Aug 16, 2022 01:10 |
|
Klyith posted:Like if I have a volume passed to a windows guest that is safe to mount as read-only in the linux host? Or is this a more fundamental thing where just having 2 OSes trying to access the device at the same time is bad. The issue with sharing a volume as RW and RO is that the RO instance will (eventually) see that the volume is dirty and attempt a journal replay, which it can't do since it's RO and it will yell you. For a journalless filesystem eventually you would see inconsistencies in the underlying data on the RO side but probably not within a directory hierarchy that hasn't been modified by the RW one. Also there's good solutions for remote mounting (sharing) file systems across instances so it's probably best to do that.
|
# ? Aug 16, 2022 01:44 |
9pfs isn't just something invented for a lark.
|
|
# ? Aug 16, 2022 07:40 |
|
BlankSystemDaemon posted:9pfs isn't just something invented for a lark. What's interesting is that WSL uses 9P to share the Windows volumes with the Linux VM. UNIX whitebeards keep saying Plan 9 was ahead of its time, yet it's Microsoft to resurrect that protocol from the legends. I'd like to hear about this particular choice more tbh.
|
# ? Aug 16, 2022 09:51 |
|
Thanks everyone. I'm not trying to share real-time data using this hack, and the linux host that has RO access shouldn't care about anything on it. It's mostly just a convenience / don't gently caress myself by auto-mounting a drive thing. (This is all part of the "have a baremetal native-speed windows VM using hardware passthrough & looking glass for games etc" project, but I'm starting to question whether I even need that now. Gaming on linux has been pretty decent so far, and unless I need real MS Office again I don't know how often I'll run the windows VM at all. At this point I'm just following through on settingup the windows VM because it was on the project list.)
|
# ? Aug 16, 2022 14:08 |
|
Lifroc posted:What's interesting is that WSL uses 9P to share the Windows volumes with the Linux VM. UNIX whitebeards keep saying Plan 9 was ahead of its time, yet it's Microsoft to resurrect that protocol from the legends. I'd like to hear about this particular choice more tbh. Plan 9 was ahead of its time and did exactly what it was supposed to as a research project. I've used Plan 9 a handful of times and while I'm not sure it's a great OS to actually use the adoption of its concepts elsewhere has benefitted everyone.
|
# ? Aug 16, 2022 14:22 |
Lifroc posted:What's interesting is that WSL uses 9P to share the Windows volumes with the Linux VM. UNIX whitebeards keep saying Plan 9 was ahead of its time, yet it's Microsoft to resurrect that protocol from the legends. I'd like to hear about this particular choice more tbh. ExcessBLarg! posted:I don't think 9P ever really "went away". Linux has had support for it for as long as I've been using Linux. QEMU and Crostini both use 9P to support sharing file systems with guests too. I'm not sure which of those or WSL adopted it "first" but it was probably always lurking under the surface. The major thing it lacks to be ideal is a single process space (ie. the ability to migrate running processes across multiple systems), which is a thing basically limited to Tandem/HP NonStop and some defunct research projects like Kerrighed and Amoeba. BlankSystemDaemon fucked around with this message at 22:54 on Aug 16, 2022 |
|
# ? Aug 16, 2022 22:50 |
|
It is called virtfs because 9P is a network protocol and virtfs has adapted it for the virtio hypercall interface. The original qemu implementation just used 9pfs over the virtualized network interface, but making it run on top of virtio directly is faster.
|
# ? Aug 16, 2022 23:04 |
|
didnt we try distributed computing with mesos and that didnt work either
|
# ? Aug 16, 2022 23:18 |
|
I thought mesos worked fine if you had infiniband?
|
# ? Aug 16, 2022 23:29 |
|
RFC2324 posted:I thought mesos worked fine if you had infiniband? heh Mesos was fine, k8s is better.
|
# ? Aug 16, 2022 23:33 |
|
I've got an older laptop with Fedora installed (and up to date). Every time it boots, something called IBus Panel shows up with an invisible icon in the system tray area. I have gone into its preferences and unchecked the box for "show icon on system tray". I haven't been able to find any useful (to a relative newb) info on what this thing is, nor how to make it not run at startup. What can I do?
|
# ? Aug 17, 2022 15:55 |
|
hooah posted:I've got an older laptop with Fedora installed (and up to date). Every time it boots, something called IBus Panel shows up with an invisible icon in the system tray area. I have gone into its preferences and unchecked the box for "show icon on system tray". I haven't been able to find any useful (to a relative newb) info on what this thing is, nor how to make it not run at startup. What can I do? It's a keyboard layout switcher. You can't uninstall it if you're using Gnome desktop, it's a dependency. You may be able to remove it from the Startup Applications list? Look for an "ibus-daemon" to disable.
|
# ? Aug 17, 2022 16:21 |
|
Klyith posted:It's a keyboard layout switcher. You can't uninstall it if you're using Gnome desktop, it's a dependency. I couldn't find anything like Startup Applications in the settings. I'm using Plasma fwiw. I did uncheck the Keyboard Daemon under Background Services, but that didn't change the behavior at all.
|
# ? Aug 17, 2022 18:52 |
|
hooah posted:I couldn't find anything like Startup Applications in the settings. I'm using Plasma fwiw. I did uncheck the Keyboard Daemon under Background Services, but that didn't change the behavior at all. Using Plasma you can just sudo dnf remove ibus to uninstall it, KDE has a different input switcher. Or at least, that's what the internet says. If dnf reports it is a dependency for half your OS that will also be removed don't say yes.
|
# ? Aug 17, 2022 19:39 |
|
Klyith posted:Using Plasma you can just sudo dnf remove ibus to uninstall it, KDE has a different input switcher. Or at least, that's what the internet says. If dnf reports it is a dependency for half your OS that will also be removed don't say yes. Oh, of course. That worked just fine. Thank you!
|
# ? Aug 17, 2022 20:04 |
|
So I thought I might find a use for a USB keypad with a couple of knobs. Plugging it in, every key gives me a 'c', also when I twist the knobs. It's been a while since I dug into input stuff, but the default tools in Fedora seem to not have considered multiple keyboards, I only get the option to configure the normal one. What's the trick (please don't be xmodmap)? Edit: Fedora 36, KDE Tad Naff fucked around with this message at 04:56 on Aug 18, 2022 |
# ? Aug 18, 2022 03:00 |
|
Tad Naff posted:So I thought I might find a use for a USB keypad with a couple of knobs. Plugging it in, every key gives me a 'c', also when I twist the knobs. What keypad is this? It sounds like it's not acting as a generic HID keyboard, so you'd need software to make it work. Tad Naff posted:What's the trick (please don't be xmodmap)? I have bad news: if you use wayland xmodmap doesn't work, and the options for key mapping are even worse. (I have a TKL board and for a long time on windows I'd rebound scroll lock to KP_MULT, along with remapping caps. There were options just in the DE for capslock stuff, but to do scroll lock I was down in the xkb layout files editing by hand.)
|
# ? Aug 18, 2022 19:13 |
|
I'm trying to run a node.js app as a systemd service, but I'm getting "activating (auto-restart) (Result: exit-code)" and "(code=exited, status=203/EXEC)" instead of the service actually running. I'm thinking that, because I installed node.js as a snap: code:
code:
Edit: I figured it out... first, I figured out that snaps are installed to /snap/bin, which gave me a different CHDIR error, then I removed the WorkingDirectory argument and the service started correctly. Quixzlizx fucked around with this message at 23:21 on Aug 18, 2022 |
# ? Aug 18, 2022 22:49 |
|
Klyith posted:I have bad news: if you use wayland xmodmap doesn't work, and the options for key mapping are even worse. I have kmonad on my list of things to test on this machine and haven't tried it yet, but it should work on X/Wayland both. It offers QMK-level control of your keys, way beyond what xmodmap can do. I have a couple of keyboards on which I had my tweaked QMK firmware and really appreciated the power so kmonad seems almost too good to be true by doing all that in user space instead of firmware.
|
# ? Aug 18, 2022 22:56 |
|
v1ld posted:I have kmonad on my list of things to test on this machine and haven't tried it yet, but it should work on X/Wayland both. OK well I got kmonad running but I am not looking forward to customizing that 951-line config file written in quasi-LISP. I'm usually a CLI person but sometimes I just want a nice easy GUI, y'know, for when I'm not gettting paid.
|
# ? Aug 19, 2022 06:31 |
|
Quixzlizx posted:I'm trying to run a node.js app as a systemd service, but I'm getting "activating (auto-restart) (Result: exit-code)" and "(code=exited, status=203/EXEC)" instead of the service actually running. You've already solved it, but one useful tip for similar situations is the "which" command. In your case, "which node" would've printed "/snap/bin/node".
|
# ? Aug 19, 2022 06:43 |
|
Phosphine posted:You've already solved it, but one useful tip for similar situations is the "which" command. Thanks, that definitely would've helped.
|
# ? Aug 19, 2022 13:55 |
|
Tad Naff posted:OK well I got kmonad running but I am not looking forward to customizing that 951-line config file written in quasi-LISP. I'm usually a CLI person but sometimes I just want a nice easy GUI, y'know, for when I'm not gettting paid. Yeah, it's huge though a lot of it is tutorial comments. Saw that myself last night as the post got me to finally download kmonad and take a look at the configs. The power here is that kmonad should let us do things that were only achievable in QMK until now and QMK is firmware only available for certain boards. But with kmonad you can do this with any keyboard that shows up in /dev/input/by-id. You could for example have QMK's mod_tap functionality on any keyboard. Which is pretty huge since mod_tap lets you have a key act as usual when tapped but do something else when held down. Here's an example of mod_tap from my QMK configs, where the home row ASDF acts as super/control/alt/shift when held down. Saves your hand from stretching for the modifier keys and was super comfortable after some usage. It applies on both sides so you don't need to chord/press two keys with one hand if you train yourself to always press the modifier on the other hand from the key that needs to be modified. I'm planning on replicating this setup with kmonad this weekend. code:
There's also a very useful USB dongle that allows you to apply QMK to many keyboards that won't take the firmware. It's made by Hasu, the person who started all this with hardware hacks along with the first TMK firmware for the Happy Hacking keyboard. kmonad works seemingly everywhere so this is not as useful as it once was. v1ld fucked around with this message at 15:30 on Aug 19, 2022 |
# ? Aug 19, 2022 14:32 |
|
kmonad is very neat. It was straightforward to set up the config above: https://gist.github.com/v1ld/db4c246533791203adeb14cc9b140625 That puts shift/control/alt/super on ASDF and JKL;. It also makes the PAUSE key into a layer toggle that puts the normal keys back in as needed, useful for games. You can run kmonad as a systemd user service by copying the kmonad.service file to ~/.config/systemd/user and your config.kbd to ~/.config/kmonad/. No need to run it as root, which is nice. This is a neat way of maintaining dotfiles in git without any scripts, symlinks and, most importantly, no .git folder in your home directory: https://news.ycombinator.com/item?id=11071754 Works beautifully. Happy to throw away my old perl script that maintains symlinks from a git-controlled dotfiles directory and allows for os- and host-specific overrides and all that cruft. This is a pretty simple idea, and elegant too. It's also good to just start over with all my configs instead of re-importing all that ancient cruft back in. E: If you're using zsh this cool hack will let your clone all your git completions for your config command: https://unix.stackexchange.com/a/496759 I call mine 'dotfile' so this gives me all of git's completions for that alias: "compdefas git dotfile". v1ld fucked around with this message at 05:03 on Aug 21, 2022 |
# ? Aug 21, 2022 04:46 |
|
|
# ? Jun 6, 2024 14:03 |
There's basically no reason to run anything as root. If it needs privileged port access, you can use privilege dropping or mac_portacl(4) (or its functional equivalent on other systems). If it needs device access, use devfs(5) (or its functional equivalent on other systems) to set the ownership on the file. If it needs IPC via files, user/group and/or permissions/ACLs in the filesystem works great.
|
|
# ? Aug 21, 2022 09:29 |