Spyke

Posts

Just "bricked" a VM while testing secure boot and I'm not sure how

I was testing out automatic disk decryption with the TPM and secure boot in a Qemu/KVM VM. I had Arch set up with a UKI, I followed this process to enable secure boot and enroll the keys which all worked fine. I then used systemd-cryptenroll to unlock the drive automatically which again worked great.

This is the part where I then messed up and I'm not quite sure how or why. I wanted to check that disabling secure boot prevented unlocking of the drive, so I enabled the boot menu in the VM settings, entered it and reset the secure boot settings. As expected I then needed to enter the password again. I then wanted to re-enable it so I re-ran sbctl enroll-keys -m to re-enroll the keys, and rebooted as my UKI was already signed. And that was that, VM completely dead. No matter whether I try to boot from the virtual disk, the virtual CD drive, or even the virtual network adapter all I get is a black screen with "Display output is not active". I can't even enter the firmware menu again because I no longer get that prompt.

It doesn't matter that this happened and I don't need to fix it because it was just a throwaway VM which I've now deleted, but I would like to know what caused it so I can avoid potentially bricking real hardware in the future

View original on lemmy.dbzer0.com

Screen auto-rotate broken on Gnome | Solved

I salvaged a Microsoft Surface Go gen 1 from the scrap pile and installed Linux on it. Most stuff seems to work ok but I can't get screen rotation working in Gnome. I know its not a sensor issue because it works under plasma-mobile, and if I run monitor-sensor I can see its detecting mottion even under Gnome.

I tried installing the older version of iio-sensor-proxy-git suggested here but that made no difference: https://github.com/linux-surface/linux-surface/issues/689

I also tried the screen rotate extension, however the AUR version made no difference and when I tried downloading it from the web it just said it was incompatible. I don't think it would solve the problem anyway because Gnome realises its in tablet mode and has the option for auto-rotate, it just doesn't do anything. I've also tried the Fedora live iso and its the same there.

Alternatively can anyone suggest a good on screen keyboard for KDE? I've tried maliit and plasma-keyboard but they're missing keys like ctrl and tab etc which makes using the terminal horrible. Thats the main reason I'm even using Gnome because the on screen keyboard is great.

Edit: Turns out I just had to go back to the extension web page and enable it.

View original on lemmy.dbzer0.com

Self hosted Onedrive alternative

I'm looking to finally ditch Onedrive with a self hosted alternative, but I'm not sure what to go with. I want something with all of the files on a central server, with an Android client with the option to sync individual files for offline access as needed. Preferably the files should also be stored in plain format on the server to make backups easier and as a fallback if the service completely fails and I don't have time to fix it. Linux and Windows clients are a bonus but I'm happy just using a web gui if that's all that's available. These are the options I've considered so far:

Seafile - This was the one that I thought fit my needs the best until earlier but apparently it has a weird disk layout which means the files are basically inaccessible by anything else?

Nextcloud - I had originally ruled this out because I don't care about any of the additional features which people claim also slow it down and make it a bit of a resource hog, and I also don't want to deal with forced https. However I think the community image may actually be what I want as it seems to be just the file server and works with just http? I am a bit confused about the different options for the database though. https://hub.docker.com/_/nextcloud/

Syncthing - Not quite what I'm looking for as you need to sync the entire thing, and I don't like whatever weirdness is going on with the Android app at the moment

SAMBA share - Also not really what I'm looking for as there's no offline syncing, but very easy to set up and basically nothing to go wrong

Are there any other options I should be looking into?

View original on lemmy.dbzer0.com
linuxquestions·Linux QuestionsbyInfernal_pizza

Confused by Wireguard and resolv.conf

I have both Wireguard and Tailscale set up on my server (Debian 12). I was trying to make sure it was using Wireguard for DNS so I tried adding deny_keys or allow_keys to /etc/resolvconf.conf but whenever I do that the Wireguard service fails to start. This happens whether I try to deny tailscale, the local network adapter, or just allow Wireguard. However it does still update resolv.conf with the Wireguard DNS server so if I try to start the service a second time it will start successfully. I also tried removing nss-lookup.target from the Wants and After section of the Wireguard systemd unit but that made no difference. I did eventually solve the issue another way as it turns out Tailscale has a built in option to prevent it from overwriting resolv.conf, but I'd still like to know why editing resolvconf.conf breaks Wireguard.

View original on lemmy.dbzer0.com

How to save iptables rules in Debian and Ubuntu?

I'm trying to set up some iptables rules in both Debian and Ubuntu, but I'm not sure how to make them persistent. As far as I understand the iptables package in the debian and Ubuntu repos is actually iptables-nft meaning I'm actually creating nftables rules, so I'm supposed to use iptables-nft-save to save them instead of using the normal method for iptables or nftables? But that command just seems to produce an output that doesn't match the syntax for iptables or nftables and the man page is not very helpful.

I'm also confused why Ubuntu does seem to have the /etc/iptables/rules.v4 and v6 files but Debian doesn't? Both seem to have /etc/nftables.conf as well but I'm not sure if that's even used (the Ubuntu machine has a bunch of iptables rules already defined which don't show up there but do show up in nft list ruleset)

View original on lemmy.dbzer0.com

Issues viewing comments

Apologies if this is the wrong community for this, I've just joined this instance but I seem to be having issues viewing some comments when logged in. Its most obvious with this post:

https://lemmy.dbzer0.com/post/45866244

At the time of posting there are 11 comments on there but through the web UI and the Voyager Android app I can only see 1 (with 1 reply that won't load). Using the Jerboa mobile app I can see 5 comments with a couple of errors saying "There is no record of this comment" for the others. If I view it without being logged in I can see all the comments as expected.

This does seem to be affecting other posts as well, I'm not sure if actual posts are also being hidden or not. Is this just because my account is new? I don't remember having this problem on lemm.ee or lemmy.world

View original on lemmy.dbzer0.com

You reached the end