Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-01-25 23:30:38 +01:00
How to enable full disk encryption after install?
/mnt/etc/fstab:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this…
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-01-25 23:28:10 +01:00
How to enable full disk encryption after install?

On my Debian 12 GNOME laptop:

/etc/fstab:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique…
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-01-25 23:26:17 +01:00
How to enable full disk encryption after install?
df -h /mnt/
Output:
Filesystem           Size  Used Avail Use% Mounted on
/dev/mapper/recrypt   30G   11G   18G  37% /mnt
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-01-25 23:23:33 +01:00
How to enable full disk encryption after install?
sudo fdisk -l
Output:
Disk /dev/vda: 30 GiB, 32212254720 bytes, 62914560 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/ph…
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-01-25 23:19:53 +01:00
How to enable full disk encryption after install?
sudo cryptsetup open /dev/vda1 recrypt
Enter passphrase for /dev/vda1:
sudo resize2fs /dev/mapper/recrypt
Output:
re…
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-01-25 23:18:52 +01:00
How to enable full disk encryption after install?
sudo cryptsetup reencrypt --encrypt --reduce-device-size 32M /dev/vda1
Output:
WARNING!
========
This will overwrite data on LUKS2-temp-4ce57c…
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-01-25 23:16:26 +01:00
How to enable full disk encryption after install?
sudo resize2fs -p -M /dev/vda1
Output:
resize2fs 1.47.0 (5-Feb-2023)
Resizing the filesystem on /dev/vda1 to 3039933 (4k) blocks.
Begin pass…
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-01-25 23:15:09 +01:00
How to enable full disk encryption after install?
sudo e2fsck -f /dev/vda1
Output:
e2fsck 1.47.0 (5-Feb-2023)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
P…
Benjamin_Loison commented on issue Benjamin_Loison/linux#58 2025-01-25 22:51:17 +01:00
How to enable full disk encryption after install?

What about Debian 12 GNOME to just encrypt ext4 with LUKS without LVM?

Benjamin_Loison commented on issue Benjamin_Loison/linux#62 2025-01-25 01:09:03 +01:00
Run instantaneously a command when fill a given percentage of the disk

Maybe inotify may help.

Benjamin_Loison opened issue Benjamin_Loison/linux#62 2025-01-25 01:08:42 +01:00
Run a command when fill a given percentage of the disk
Benjamin_Loison commented on issue Benjamin_Loison/linux#32 2025-01-25 00:30:33 +01:00
Make my SSH aliases prefer LAN over Internet but with a single command
Related to the Tchap message:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdAycDV10QlwYFArtWO/ke29QUpyvK0fmK1K3R9MMi/nDAw
/bJw+oaDXIAkw48U44lYzMVZLlt/ETtW…
Benjamin_Loison opened issue Benjamin_Loison/linux#61 2025-01-25 00:11:16 +01:00
Get user running commands
Benjamin_Loison commented on issue Benjamin_Loison/linux#27 2025-01-24 14:37:17 +01:00
Dual boot Windows time inconsistency

It's now a 2 hours time shift...

Benjamin_Loison commented on issue Benjamin_Loison/linux#27 2025-01-24 09:18:31 +01:00
Dual boot Windows time inconsistency

I still have the issue after some time...

Benjamin_Loison commented on issue Benjamin_Loison/linux#59 2025-01-23 17:12:33 +01:00
How to block access to other user home folder?
So chmod 700 /home/user/ is enough, according to the Tchap message:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdAkhoqOO949rTBpmqFjqZNH/cXBU2…
Benjamin_Loison commented on issue Benjamin_Loison/linux#59 2025-01-23 17:11:13 +01:00
How to block access to other user home folder?
ls -lah ~
Output:
total 360K
drwx--x---+ 32 benjamin_loison benjamin_loison 4.0K Jan 23 15:22 .
drwxr-xr-x   3 root            root          …
Benjamin_Loison commented on issue Benjamin_Loison/linux#41 2025-01-23 17:05:05 +01:00
Avoid users to see commands executed by others

Can see how much the computer is being used (possibly by the system or other users)? To figure out if running something will be efficient or wait someone else finishing something.

Benjamin_Loison commented on issue Benjamin_Loison/linux#41 2025-01-23 17:03:06 +01:00
Avoid users to see commands executed by others

For reference htop and ps aux.

Benjamin_Loison opened issue Benjamin_Loison/certbot#12 2025-01-23 16:58:15 +01:00
Can have https://domain.name/a and https://domain.name/b use different certificates?