Howto debian12

From Vidalinux Wiki
Revision as of 01:19, 6 September 2023 by 10.233.102.144 (talk)
Jump to navigation Jump to search

enable sudo

login as root:

su -

add your user to sudo group:

gpasswd -a user sudo

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

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 Africa/Nairobi --adjust-system-clock
sudo timedatectl set-ntp yes

flatpak

enable flatpak:

sudo apt update && apt sudo -y instal 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

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 

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 

qt applications

fix broken qt application theming in gnome:

sudo apt -y install qt5-style-plugins 

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 

references