Skip to content

Instantly share code, notes, and snippets.

@usrbinkat
Last active October 20, 2025 19:41
Show Gist options
  • Select an option

  • Save usrbinkat/a8989bf526584abd2e2292d947611430 to your computer and use it in GitHub Desktop.

Select an option

Save usrbinkat/a8989bf526584abd2e2292d947611430 to your computer and use it in GitHub Desktop.
Debian 13 Trixie - OpenJDK/Node/NPM && Linux 6.16 Kernel Install

OpenJDK, Node.js, NPM Installation - Debian Trixie 13

Requirements

  • Debian GNU/Linux 13 (trixie)
  • sudo access

Installation Steps

1. Install OpenJDK 25, Node.js, and npm

sudo apt update
sudo apt install openjdk-25-jdk nodejs npm

2. Fix npm Global Directory

# Create npm global directory in home
mkdir -p ~/.npm-global

# Set npm to use this directory
npm config set prefix ~/.npm-global

# Add to PATH in .bashrc
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc

# Reload bashrc
source ~/.bashrc

Verify Installation

java --version
node --version
npm --version
npm config get prefix   # Should show /home/usrbinkat/.npm-global

Kernel 6.16 Backports Installation - Debian Trixie 13

Requirements

  • Debian GNU/Linux 13 (trixie)
  • sudo access

Installation Steps

1. Add Backports Repository

sudo tee /etc/apt/sources.list.d/backports.list >/dev/null <<'EOF'
deb http://deb.debian.org/debian trixie-backports main contrib non-free-firmware
EOF

sudo apt update

2. Configure APT Pinning for Kernel Packages

sudo install -d /etc/apt/preferences.d

sudo tee /etc/apt/preferences.d/90-backports-kernel.pref >/dev/null <<'EOF'
# Keep backports low priority by default
Package: *
Pin: release n=trixie-backports
Pin-Priority: 100

# Prefer backports for kernel packages to track 6.16.x
Package: linux-image-amd64 linux-headers-amd64
Pin: release n=trixie-backports
Pin-Priority: 990
EOF

sudo apt update

3. Install Kernel 6.16 and Headers

sudo apt install -y -t trixie-backports \
  linux-image-amd64 linux-headers-amd64 build-essential dkms

4. Reboot

sudo reboot

Verify Installation

uname -r   # Should show 6.16.x

Maintenance

The system will automatically track 6.16.x point releases from backports during regular apt upgrade.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment