Howto debian12
enable sudo
login as root:
su -
add your user to sudo group:
gpasswd -a user sudo
reboot system:
reboot
remove cdrom repo
login as root:
sudo su -
remove cdrom from /etc/apt/sources.list:
sed -i '/cdrom/d' /etc/apt/sources.list
logout root user:
exit
update system
update your system to latest:
sudo apt update && sudo apt -y upgrade
non-free repos
login as root:
sudo su -
configure non-free repos:
cat >> /etc/apt/sources.list << EOF deb http://deb.debian.org/debian bookworm non-free non-free-firmware deb-src http://deb.debian.org/debian bookworm non-free non-free-firmware deb http://deb.debian.org/debian-security bookworm-security non-free non-free-firmware deb-src http://deb.debian.org/debian-security bookworm-security non-free non-free-firmware deb http://deb.debian.org/debian bookworm-updates non-free non-free-firmware deb-src http://deb.debian.org/debian bookworm-updates non-free non-free-firmware EOF
update repos:
apt update
enable 32bit
enable 32-bit support and update your repos as appropriate:
sudo dpkg --add-architecture i386 && sudo apt update
to install the relevant libraries:
sudo apt -y install libglx-mesa0:i386 mesa-vulkan-drivers:i386 libgl1-mesa-dri:i386
addional gui tools
install useful gui tools:
sudo apt -y install gparted transmission-gtk vlc pavucontrol geany gimp inkscape audacity filezilla leafpad
addional cli tools
install adddional cli tools:
sudo apt -y install apt-transport-https lsb-release ca-certificates ffmpeg default-jdk git wget nano vim htop locate p7zip p7zip-full rar zip unzip
video codecs
install extra video codecs:
sudo apt -y install libavcodec-extra
system clock
install chrony:
sudo apt -y install chrony
start and enable chrony:
sudo systemctl start chrony && systemctl enable chrony
list available timezone:
sudo timedatectl list-timezones
configure timezone and enable ntp synchronization:
sudo timedatectl set-timezone America/Puerto_Rico --adjust-system-clock sudo timedatectl set-ntp yes
flatpak
enable flatpak:
sudo apt update && sudo apt -y install flatpak
configure gnome software flatpak plugin:
sudo -y apt install gnome-software-plugin-flatpak
enable flatpak repo:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
more on flatpak commands:
https://wiki.vidalinux.org/index.php/Howto_flatpak
dev tools
install developer essentials tools:
sudo apt -y install build-essential
gnome extensions
install gnome extensions manager:
sudo apt -y install gnome-shell-extension-manager
remove pre-installed gnome games
remove pre-installed gnome games:
sudo apt -y purge iagno lightsoff four-in-a-row gnome-robots pegsolitaire gnome-2048 hitori gnome-klotski gnome-mines gnome-mahjongg gnome-sudoku quadrapassel swell-foop gnome-tetravex gnome-taquin aisleriot gnome-chess five-or-more gnome-nibbles tali ; sudo apt -y autoremove
nvidia drivers
install the nvidia drivers after enabling non-free software:
sudo apt -y install nvidia-driver
amdgpu drivers
install amdgpu drivers:
sudo apt -y install firmware-amd-graphics libgl1-mesa-dri libglx-mesa0 mesa-vulkan-drivers xserver-xorg-video-all
kvm virtualization
install required packages:
sudo apt -y install qemu-system libvirt-daemon-system virt-manager
edit the libvirtd configuration
sudo nano /etc/libvirt/libvirtd.conf
set the domain socket group ownership to libvirt
unix_sock_group = "libvirt"
adjust the UNIX socket permissions for the R/W socket
unix_sock_rw_perms = "0770"
start and enable the libvirtd service:
sudo systemctl start libvirtd && sudo systemctl enable libvirtd
add user to libvirt group
sudo usermod -a -G libvirt $(whoami)
start "default" network and enable autostart
sudo virsh net-start default sudo virsh net-autostart --network default
qt applications
fix broken qt application theming in gnome:
sudo apt -y install qt5-style-plugins
add the following to your profile:
echo "export QT_QPA_PLATFORMTHEME=gtk2" >> ~/.profile
changes will take effect after logging out or rebooting the system.
fix slow shutdown
edit /etc/systemd/system.conf:
sudo nano /etc/systemd/system.conf
uncomment the following argument and change from 90s to 15s
DefaultTimeoutStopSec=15s