Skip to content

u/Gecko253

In this archive from Nov 2012 to Jan 2024

0
posts
15
comments
0
media
58
score

This can happen with multiple notification implementations. I've seen it in the past with XFCE and Plasma. The solution ist the creation of a symlink to the preferred notification:

mkdir -p ~/.local/share/dbus-1/services/
ln -s /usr/share/dbus-1/services/org.kde.plasma.Notifications.service ~/.local/share/dbus-1/services/org.kde.plasma.Notifications.service
ln -s /usr/share/dbus-1/services/org.kde.plasma.Notifications.service ~/.local/share/dbus-1/services/org.freedesktop.Notifications.service
9 points

There is good documentation here: https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#Btrfs_subvolumes_with_swap

I have a similar setup running reliably for 5 years, including Secure Boot with my own keys etc. With Snapper and Pacman hooks everything works very well. Of course you should always think about backups, you also might want to keep a backup of your LUKS header (somewhere secure!).

6 points

Yes, I'm using a custom hook to unlock the swap partition before resume. A password unlocks boot (residing on root, btrfs) and a keyfile everything else including swap then. I'm using GRUB. But as you say, you could of course use a second password (and even https://wiki.archlinux.org/index.php/Dm-crypt/Specialties#mkinitcpio-chkcryptoboot if you're especially paranoid) and should be more free in your choice of bootloader then.

The second example in the wiki for /lib/initcpio/hooks/openswap is pretty much what I use. Setup an EFI partition (FAT32, I mounted it on /boot/efi), a swap partition (LUKS encrypted) and a btrfs partition (also LUKS encrypted, with subvolumes). I did it pretty similar to https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#Btrfs_subvolumes_with_swap but with LUKS instead of plain for swap. Then you can use the keyfile example for the swap hook, you just have to be careful about device naming and keyfile location. My devices are named cryptroot and cryptswap, so the resume device is /dev/mapper/cryptswap - or even better use UUID (also careful to use the right one - you want the devicemapper device, not the partition). If you follow the full disk btrfs example with root on a @ subvolume, the location for the keyfile is crypto_key_device/@/crypto_keyfile.bin Everything else is close to the wiki.

Some useful links I found: http://www.pavelkogan.com/2014/05/23/luks-full-disk-encryption/ , http://kneit.in/2015/09/17/brtfs-raid-on-dmcrypt.html , http://www.kossboss.com/linux---arch-installation-with-btrfs-root-and-efi-grub-boot If you distill those hints into one, you're set :-)

3 points

Sorry, didn't notice the link target. But that doesn't mean any of what you mentioned! So, first LVM ist not needed if you don't want to use it for anything else.

But to the second option: it needn't be plain, LUKS is absolutely fine - I'd even say preferred for the comfort and to hibernate you have to keep the content of swap intact anyway. You can use the resume hook (why not? Swap just has to be decrypted before). You needn't use a keyfile, although that is much more comfortable. You can use an encrypted boot partition with GRUB, but you don't have to.

I personally have my new laptop set up with UEFI (secure boot with my own keys), GRUB as bootloader, fully encrypted system (including boot), btrfs root with subvolumes and snapshots and an encrypted swap partition. I use LUKS for root and swap and unlock swap with a hook very similar to the one in the link. Everything works fine...

Based on that, I wonder how I could help you? If you're an absolute noob, you're probably better off with a less complicated setup. If it's just a minor detail you're missing, just ask - for example I could post you my hook for swap if you have problems adapting the example...

2 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.