notes

View on GitHub

Debian 13 trixie

Installing using a bootable USB stick based on the Install DVD the easiest way is to erase the entire drive.

This is done by choosing: Guided - use entire disk and setup encrypted LVM.

There is no option to do encrypted drive without LVM, but it might be because of how Debian boots with Grub.

To make sure everything is decrypted, it is easiest to only have 1 physical volumes. And that is achieved by having everything in an encrypted LVM:

If installing from Live CD the installer complains that the /boot partition should also be encrypted, but the Install DVD doesn’t seem to care about that.

Installing Debian on disk that cannot be entirely erased

If for some reason the entire disk cannot be erased, we have to build the entire setup of partitions, LUKS, LVM pvs, LVM vgs and LVM lvs manually.

The most common reason is that the EFI partition needs to be preserved.

Fortunately that is actually possible in the installer on the Install DVD, it just requires a few steps in a very particular order.

1. EFI partition

2. /boot partition

4. encrypted partition

5. encrypted volume

Yes an encrypted partition is not enough.

6. Setup LVM

7. / (root) volume

Back in the partitioner the now logical volumes should show up.

8. swap volume

9. All done

There should now be volumes for / (root), /boot and swap.

So cross your fingers and choose:

A summary is displayed. Check it and choose Yes to write changes to disk and continue.

The installer will complain (loudly) and not let you continue if anything is missing.

Now the install should continue as normal. And Grub should be configure to boot and prompt for the encryption password for the disk.

Steam

The best option is to install Steam with deb packages. Don’t ask why, Wendel says so!

Debian Wiki on Steam.

First of, Steam is 32 bit, so we need som 32 bit libraries and things…

Enable i386 packages (32 bit):

sudo dpkg --add-architecture i386
sudo apt-get update

Install the Steam installer. Yes it sounds weird, but the deb package contains the installer…

sudo apt-get install steam-installer

If on Nvidia some more nvidia libs are needed. (Assuming you have already installed the driver, see below).

sudo apt-get install nvidia-driver-libs:i386

Recommended (not sure if needed):

sudo apt-get install vulkan-tools:i386

The documentation says to install:

sudo apt-get install mesa-vulkan-drivers libglx-mesa0:i386 mesa-vulkan-drivers:i386 libgl1-mesa-dri:i386

But when I installed steam-installer and included recommended packages, these were already installed.

A reboot (Just in case. Windows habits die hard.) and run the steam-installer.

Nvidia drivers

Are you 100% sure you want to do this? How about buying an AMD card instead?

Ok… you are warned. Misery and crying might come next!

So main article is here, but there are things I don’t agree with.

First of the article says to install linux-headers-$(uname -r) which I get. This gets around architectures, but it also ONLY installs headers for the current version of the kernel. Next kernel upgrade the Nvidia drivers will fail to compile, and be missing on the following reboot. (Ask me how I know!?).

So I recommend:

sudo apt-get install linux-headers-amd64

Huh, they changed the document. Now it says:

apt install linux-headers-$(dpkg --print-architecture)

Which translates to linux-headers-amd64 so all is good!

Which is a meta-package that ensures you get linux-headers for new kernels when upgrading. Obviously adjust ... -amd64 to whatever architecture you run.

Then install the drivers:

sudo apt-get install nvidia-kernel-dkms nvidia-driver firmware-misc-nonfree

The article talks about an open flavour, but if your aim is to game a bit you want the proprietary one.

This was all I had to do.