Du befindest dich hier: Willkommen » Linux » Debian

Debian

mein Bash Prompt

wget -O ~/.bash_aliases "https://andev.de/downloads/linux/bash_aliases.sh"
sudo wget -O /root/.bashrc "https://andev.de/downloads/linux/bashrc-root.sh"
sudo sed -i "s/martin/$USER/g" /root/.bashrc
sudo cat /root/.bashrc

sources.list bookworm

sudo -s
 
echo "deb http://deb.debian.org/debian bookworm contrib main non-free-firmware">/etc/apt/sources.list
echo "deb http://deb.debian.org/debian bookworm-updates contrib main non-free-firmware">>/etc/apt/sources.list
echo "deb http://deb.debian.org/debian bookworm-backports contrib main non-free-firmware">>/etc/apt/sources.list
echo "deb http://deb.debian.org/debian-security bookworm-security contrib main non-free-firmware">>/etc/apt/sources.list
cat /etc/apt/sources.list
apt update && apt dist-upgrade -y && apt autoremove -y && apt clean -y && reboot

oder direkt netzwerge als Mirror

sudo -s
 
echo "deb http://mirror.netzwerge.de/debian bookworm contrib main non-free-firmware">/etc/apt/sources.list
echo "deb http://mirror.netzwerge.de/debian bookworm-updates contrib main non-free-firmware">>/etc/apt/sources.list
echo "deb http://mirror.netzwerge.de/debian bookworm-backports contrib main non-free-firmware">>/etc/apt/sources.list
echo "deb http://deb.debian.org/debian-security bookworm-security contrib main non-free-firmware">>/etc/apt/sources.list
cat /etc/apt/sources.list
apt update

Hostnamen anpassen

newHostname=neuerName

current="$(hostname)"
currip="$(hostname -I | cut -d" " -f1 | xargs)"
sudo hostnamectl set-hostname $newHostname
sudo echo "$currip  $newHostname" >> /etc/hosts
check=$(hostname)
echo "Hostname changed from $current to $check"

Bullseye zu Bookworm

sudo -s
 
apt update
apt install screen -y
apt full-upgrade -y
 
echo "deb http://mirror.netzwerge.de/debian bookworm contrib main non-free-firmware">/etc/apt/sources.list
echo "deb http://mirror.netzwerge.de/debian bookworm-updates contrib main non-free-firmware">>/etc/apt/sources.list
echo "deb http://mirror.netzwerge.de/debian bookworm-backports contrib main non-free-firmware">>/etc/apt/sources.list
echo "deb http://deb.debian.org/debian-security bookworm-security contrib main non-free-firmware">>/etc/apt/sources.list
apt update
systemctl is-enabled systemd-resolved && apt install systemd-resolved
 
screen
apt upgrade --without-new-pkgs -y
apt full-upgrade -y
reboot

Tools

Hier sind ein paar Tools für Linux, die ich eigentlich immer bzw. oft installiere.

apt install sudo nano wget mc htop ncdu exa
apt install duf bat fd-find
wget https://github.com/fastfetch-cli/fastfetch/releases/download/2.11.0/fastfetch-linux-amd64.deb && sudo dpkg -i fastfetch-linux-amd64.deb && rm fastfetch-linux-amd64.deb

Dazu hier noch ein paar Links zu Tools, die nicht ganz so wichtig sind…

schnellsten Apt Mirror

sudo apt install netselect-apt
sudo netselect-apt -n -c DE

von Stable zu Sid

sudo -s
mv /etc/apt/sources.list /etc/apt/sources.list.old
echo "deb http://deb.debian.org/debian sid main contrib non-free">/etc/apt/sources.list
echo "deb-src http://deb.debian.org/debian sid main contrib non-free">>/etc/apt/sources.list
cat /etc/apt/sources.list
apt update && apt dist-upgrade -y && apt autoremove -y && apt clean -y && reboot

statische IP

sudo nano /etc/network/interfaces

Die Zeile iface ens18 inet dhcp mit # auskommentieren und folgendes danach einfügen:

iface ens18 inet static
 address 192.168.178.222
 netmask 255.255.255.0
 gateway 192.168.178.254
 dns-domain fritz.box
 dns-nameservers 192.168.178.254

Strg+O & Strg+X

sudo reboot
linux/debian.txt · Zuletzt geändert: 07.12.2024 18:19 von Martin