Du befindest dich hier: Willkommen » Linux » Debian

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen der Seite angezeigt.

Link zu der Vergleichsansicht

Beide Seiten, vorherige ÜberarbeitungVorherige Überarbeitung
Nächste Überarbeitung
Vorherige Überarbeitung
linux:debian [18.08.2023 09:57] Martinlinux:debian [07.12.2024 18:19] (aktuell) Martin
Zeile 1: Zeile 1:
 # Debian # Debian
 +
 +## mein Bash Prompt
 +
 +<code bash>
 +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
 +</code>
 +
 +## sources.list bookworm
 +
 +<code bash>
 +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
 +</code>
 +
 +oder direkt netzwerge als Mirror
 +<code bash>
 +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
 +</code>
 +
 +## 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
 +
 +<code bash>
 +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
 +</code>
 +## Tools
 +
 +Hier sind ein paar Tools für Linux, die ich eigentlich immer bzw. oft installiere.
 +
 +<code bash>
 +apt install sudo nano wget mc htop ncdu exa
 +apt install duf bat fd-find
 +</code>
 +
 +<code bash>
 +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
 +</code>
 +
 +Dazu hier noch ein paar Links zu Tools, die nicht ganz so wichtig sind...
 +
 +  * [[https://github.com/dustinkirkland/hollywood|hollywood]]
  
 ## schnellsten Apt Mirror ## schnellsten Apt Mirror
Zeile 5: Zeile 90:
 <code bash> <code bash>
 sudo apt install netselect-apt sudo apt install netselect-apt
-sudo netselect-apt+sudo netselect-apt -n -c DE
 </code> </code>
  
linux/debian.1692352635.txt.gz · Zuletzt geändert: 18.08.2023 09:57 von Martin