dpkg-reconfigure keyboard-configuration
locale-gen
dpkg-reconfigure locales
vi /etc/default/locale
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE=en_US.UTF-8
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES=en_US.UTF-8
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
dpkg-reconfigure tzdata
adduser MyNewUsername
usermod -aG sudo MyNewUsername
visudo
MyNewUsername ALL=NOPASSWD: ALL
passwd -l root
hostnamectl set-hostname newhostname
To go the full way: How to change a cloned GNU/Linux machine's identity
vi /etc/default/grub and add net.ifnames=0 to GRUB_CMDLINE_LINUX.
Then run update-grub.
vi /etc/network/interfaces append:
iface eth0 inet6 dhcp
vi /etc/network/interfaces:
iface eth0 inet6 dhcp
pre-up /sbin/sysctl -w net.ipv6.conf.eth0.autoconf=0
pre-up /sbin/sysctl -w net.ipv6.conf.eth0.accept_ra=0
vi /etc/default/grub, add selinux=0 security=off audit=0 mitigations=off to GRUB_CMDLINE_LINUX.
Then run update-grub.
Install the zabbly kernel.
Use Apt-Pinning. APT::Default-Release won't cut it due to packages coming from stable-updates.
gocryptfs is now (2025) preferred over ecryptfs. It achieves the same performance and has file integrity checks and better UX.
Follow bacardi55's guide. Caveats:
- The
fusepackage needs to be installed too. - When editing
/etc/security/pam_mount.conf.xmladdidle=30sto the options. This makes sure the directory is auto unmounted after log out. - On
pam_mount.conf.xmladd<pmvarrun>/usr/sbin/pmvarrun -u %(USER)</pmvarrun>to work around Debian bug #1034339. - Run
chmod og-rx /home/username*, to keep permissions the same as in any other home dir.
parted /dev/sda
(parted) mkpart primary ext2 0 4000
(parted) set 3 lvm on
(parted) quit
pvcreate /dev/sda3
vgextend vg0 /dev/sda3
lvextend /dev/vg0 -l +100%FREE
resize2fs /dev/vg0