Linux Initial Preparation

By admin, 27 April, 2025

Debian testing fresh install including non-free firmwares on USB drive with the following parameters:

Hostname - wsx64 / Fullname - Pars Enterprise / Username - parsenterprise

Checking KDE plasma desktop & standard system utilities only during setup

Adding user to wheel or sudo group as a superuser via the following commands:

  • Login as root
  • Editing /etc/sudoers with Administration Privilege to:
# Allow members of group sudo to execute any command: %sudo ALL=(ALL:ALL) ALL
Or executing: sudo usermod -a -G sudo

Linux Repository Preferences

Stable – Testing – Sid - Experimental

Editing /etc/apt/sources.list with Administration Privilege to:

deb https://deb.debian.org/debian/ testing main contrib non-free

deb-src https://deb.debian.org/debian/ testing main contrib non-free

deb https://deb.debian.org/debian/ testing-updates main contrib non-free

deb-src https://deb.debian.org/debian/ testing-updates main contrib non-free

deb https://deb.debian.org/debian-security testing-security main non-free

deb-src https://deb.debian.org/debian-security testing-security main non-free

Pinning Priority Preferences

Cutting edge userland from testing and kernel from sid releases of Debian Gnu/Linux.

Latest kernel installation and upgrading from sid repository:

Creating /etc/apt/apt.conf or /etc/apt/apt.conf.d/99defaultrelease with Administration Privilege and the following parameters:

APT::Default-Release "testing";
APT::Cache-Limit "100000000";

Editing /etc/apt/sources.list with Administration Privilege to:

deb https://deb.debian.org/debian/ sid main contrib non-free

deb-src https://deb.debian.org/debian/ sid main contrib non-free

Creating /etc/apt/preferences.d/kernel-sid with Administration Privilege and the following parameters:

Package: linux-image-amd64

Pin: release a=testing

Pin-Priority: 500

Package: linux-image-amd64

Pin: release a=sid

Pin-Priority: 990

-1 ignore the package and 900 and higher gives priority

Then executing sudo apt update

Finally check by command: sudo apt-cache policy linux-image-amd64

Installation via sudo apt install -t sid linux-image-amd64

Upgrading via sudo apt upgrade -t sid linux-image-amd64

stable.pref:

# 500

# version available belonging to the target release or the installed

# version is more recent

Package: *

Pin: release a=stable

Pin-Priority: 900

testing.pref:

# 100

# version available belonging to some other distribution or the installed

# version is more recent

Package: *

Pin: release a=testing

Pin-Priority: 400

unstable.pref:

# 0

# installed version of the package

Package: *

Pin: release a=unstable

Pin-Priority: 50

experimental.pref:

# 0

# installed version of the package

Package: *

Pin: release a=experimental

Pin-Priority: 1