Howto debian12

From Vidalinux Wiki
Revision as of 05:57, 7 September 2023 by Mandulete1 (talk | contribs) (Protected "Howto debian12" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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://debian.osuosl.org/debian bookworm contrib main non-free non-free-firmware
deb-src http://debian.osuosl.org/debian bookworm contrib main non-free non-free-firmware

deb http://deb.debian.org/debian-security bookworm-security contrib main non-free non-free-firmware
deb-src http://deb.debian.org/debian-security bookworm-security contrib main non-free non-free-firmware

deb http://debian.osuosl.org/debian bookworm-updates contrib main non-free non-free-firmware
deb-src http://debian.osuosl.org/debian bookworm-updates contrib main non-free non-free-firmware

deb http://debian.osuosl.org/debian bookworm-backports contrib main non-free-firmware
deb-src http://debian.osuosl.org/debian bookworm-backports contrib main non-free-firmware
EOF

update repos:

apt update

system clock

install chrony:

sudo apt -y install chrony 

start and enable chrony:

sudo systemctl start chrony && sudo systemctl enable chrony

list available timezones:

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

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 mpv pavucontrol geany gimp inkscape audacity filezilla obs-studio

addional cli tools

install adddional cli tools:

sudo apt -y install apt-transport-https lsb-release ca-certificates ffmpeg default-jdk git wget curl nano vim htop locate p7zip p7zip-full zip unzip

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

video codecs

install extra video codecs:

sudo apt -y install libavcodec-extra

hardware accerelation

VA-API

for amd and nvidia:

sudo apt -y install mesa-va-drivers 

for gen8+ intel hardware, the free driver can be installed:

sudo apt -y install intel-media-va-driver

or the non-free driver for intel:

sudo apt -y install intel-media-va-driver-non-free

VDPAU

to enable VDPAU support for open-source drivers radeon, amdgpu and nouveau:

sudo apt -y install the vdpau-driver-all

To enable VDPAU support for the proprietary nvidia drivers:

sudo apt -y install nvidia-driver nvidia-vdpau-driver

if using legacy drivers choose the appropriate package:

sudo apt -y install nvidia-legacy-304xx-vdpau-driver
sudo apt -y install nvidia-legacy-340xx-vdpau-driver 
sudo apt -y install nvidia-legacy-390xx-vdpau-driver

NVENC

to enable NVENC support:

sudo apt -y install libnvcuvid1

for the legacy drivers, choose the appropriate package:

sudo apt -y install libnvidia-legacy-304xx-nvcuvid1
sudo apt -y install libnvidia-legacy-340xx-nvcuvid1
sudo apt -y install libnvidia-legacy-390xx-nvcuvid1 

NVDEC

to enable NVDEC support:

sudo apt -y install libnvidia-encode1

for the legacy drivers, choose the appropriate package:

sudo apt -y install libnvidia-legacy-340xx-encode1
sudo apt -y install libnvidia-legacy-390xx-encode1

flatpak

enable flatpak:

sudo apt update && sudo apt -y install flatpak flatpak-xdg-utils

configure gnome software flatpak plugin:

sudo apt -y install gnome-software-plugin-flatpak

enable flatpak repo:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

install obs studio:

flatpak install Librewolf

more on flatpak commands:

https://wiki.vidalinux.org/index.php/Howto_flatpak

dev tools

install developer essentials tools:

sudo apt -y install build-essential dkms linux-headers-$(uname -r)

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

printer drivers

install printer drivers:

sudo apt -y install gutenprint-locales openprinting-ppds printer-driver-all printer-driver-all-enforce printer-driver-brlaser printer-driver-c2050 printer-driver-c2esp printer-driver-cjet printer-driver-cups-pdf printer-driver-dymo printer-driver-escpr printer-driver-foo2zjs printer-driver-foo2zjs-common  printer-driver-fujixerox printer-driver-gutenprint printer-driver-hpcups printer-driver-hpijs printer-driver-indexbraille printer-driver-m2300w printer-driver-min12xxw printer-driver-oki printer-driver-pnm2ppa printer-driver-postscript-hp printer-driver-ptouch printer-driver-pxljr printer-driver-sag-gdi printer-driver-splix

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

install podman

install podman packages:

sudo apt -y install podman

install podman-compose:

sudo curl -o /usr/local/bin/podman-compose https://raw.githubusercontent.com/containers/podman-compose/devel/podman_compose.py
sudo chmod +x /usr/local/bin/podman-compose

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 

references