Skip to content

Automated Hyprland installer for Debian 13 Trixie and Debian SID (unstable)

Notifications You must be signed in to change notification settings

Twilight4/debian-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Fresh Debian Trixie (Testing) Install

If the Debian Trixie installation fails, resort to installing Debian Bookworm netinst CD image and later update to Debian Trixie.

Sudoers permissions

Login as root and install sudo:

su -
apt install sudo vim git zram-tools
/usr/sbin/usermod -aG sudo twilight

Add myself to sudoers file: vim /etc/sudoers:

# Allow members of group sudo to execute any command
%sudo      ALL=(ALL:ALL) NOPASSWD: ALL

Zram swap

Edit zramswap file: sudo vim /etc/default/zramswap:

ALGO=lz4
PERCENT=25

Running the installer script

Check if you're on debian trixie:

lsb_release -a
cat /etc/os-release

If you're on bookworm, update to debian trixie. You also need to uncomment the lines with deb-src if they're commented out.

sudo sed -i 's/bookworm/trixie/g' /etc/apt/sources.list

Update changes and reboot:

sudo apt update
sudo apt upgrade
sudo reboot

Execute the install.sh script:

git clone --depth=1 https://github.com/Twilight4/debian-setup.git
cd debian-setup
./install.sh

Post-Install (Optional)

git clone --depth 1 https://github.com/Twilight4/dotfiles.git
cd dotfiles
./install.sh

Performance tweaks

echo "vm.vfs_cache_pressure=50" | sudo tee -a /etc/sysctl.conf
echo "vm.swappiness=20" | sudo tee -a /etc/sysctl.conf
echo "vm.dirty_background_ratio=15" | sudo tee -a /etc/sysctl.conf
echo "vm.dirty_ratio=40" | sudo tee -a /etc/sysctl.conf
echo "vm.oom_dump_tasks=0" | sudo tee -a /etc/sysctl.conf
echo "vm.oom_kill_allocating_task=1" | sudo tee -a /etc/sysctl.conf
echo "vm.overcommit_memory=1" | sudo tee -a /etc/sysctl.conf
echo "kernel.split_lock_mitigate=0" | sudo tee /etc/sysctl.d/99-splitlock.conf

GRUB menu tweaks

Edit GRUB config: sudo vim /etc/default/grub:

# Add the following to the line, don't remove existing values
GRUB_CMDLINE_LINUX_DEFAULT="zswap.compressor=zstd zswap.max_pool_percent=10 mitigations=off amd-pstate=active"

# Disable GRUB menu
GRUB_TIMEOUT=0

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment to disable submenus in boot menu
GRUB_DISABLE_SUBMENU="true"

Update GRUB:

sudo update-grub

Enable kali repositories (needed for install-pen-pkgs.sh)

Edit apt repositories: sudo vim /etc/apt/sources.list

# See https://www.kali.org/docs/general-use/kali-linux-sources-list-repositories/
deb http:https://http.kali.org/kali kali-rolling main contrib non-free non-free-firmware

Add Kali GPG Key:

wget -q -O - https://archive.kali.org/archive-key.asc | sudo apt-key add -

Update changes:

sudo apt update
sudo apt upgrade

About

Automated Hyprland installer for Debian 13 Trixie and Debian SID (unstable)

Topics

Resources

Stars

Watchers

Forks

Languages