Howto debian12: Difference between revisions
Line 45: | Line 45: | ||
= addional cli tools = | = addional cli tools = | ||
install adddional 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 | sudo apt -y install apt-transport-https lsb-release ca-certificates ffmpeg default-jdk git wget nano vim htop locate p7zip p7zip-full zip unzip | ||
= video codecs = | = video codecs = | ||
install extra video codecs: | install extra video codecs: |
Revision as of 04:29, 6 September 2023
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 main non-free-firmware deb-src http://debian.osuosl.org/debian/ bookworm main non-free-firmware deb http://debian.osuosl.org/debian/ bookworm-updates main non-free-firmware deb-src http://debian.osuosl.org/debian/ bookworm-updates main 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 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 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 nano vim htop locate p7zip p7zip-full zip unzip
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 NVDEC 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 NVENC 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
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 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 com.obsproject.Studio
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