Uživatelské nástroje

Nástroje pro tento web


private:poznamky:linux:debian9

Toto je starší verze dokumentu!


Debian 9, 10, 11

Programy

test

Po instalaci balíku ntp a ntpdate nenabootoval Proxmox 8.4 - založený na Debianu 12.

Při instalaci OS povolit jen instalaci SSH serveru.

Po instalaci OS doinstalovat následuzjící programy:

install.sh
apt-get install ssh vim tmux
apt-get install telnet lsof dnsutils
apt-get install shorewall fail2ban
apt-get install bzip2 tcpdump
apt-get install net-tools
apt-get install inetutils-ping
apt-get install smartmontools
apt-get install rsync
apt-get install msmtp
install.sh
apt-get install ssh vim tmux telnet lsof dnsutils shorewall fail2ban bzip2 tcpdump net-tools inetutils-ping rsync msmtp smartmontools

Vim cut&paste nefunguje

https://unix.stackexchange.com/questions/318824/vim-cutpaste-not-working-in-stretch-debian-9

Debian 9
V souboru vim /usr/share/vim/vim80/defaults.vim

Debian 10
V souboru vim /usr/share/vim/vim81/defaults.vim

VIM 8.1

sed -i 's/set mouse=a/"set mouse=a"/g' /usr/share/vim/vim81/defaults.vim

VIM 8.2

sed -i 's/set mouse=a/"set mouse=a"/g' /usr/share/vim/vim82/defaults.vim

VIM 9.0 - Debian 11

vim /usr/share/vim/vim90/defaults.vim

zakomentovat následující řádky:

/usr/share/vim/vim80/defaults.vim
"if has('mouse')
"  set mouse=a
"endif

Xen

http://dedetoknotes.blogspot.cz/2017/09/debian-stretch-xen-part-1.html

apt-get install xen-hypervisor-4.8-amd64 xen-system-amd64 xen-tools xen-utils-4.8 xen-utils-common
apt-get install net-tools

PVDrivers

IPTables

Defaultní umístění konfigurace IPTables pro Debian a Ubuntu: /etc/default/iptables

Pernament ip route

https://unix.stackexchange.com/questions/321687/what-is-the-best-way-to-add-a-permanent-route

Pozor, nefungovalo směrování pokud byla použitá pojmenovaná routovací tabulka

Vytvořeni pojmenované routovaci tabulky

echo '200 propoj' >> /etc/iproute2/rt_tables

Přidání route do souboru /etc/network/interfaces

auto enp5s0
iface enp5s0 inet static
 address 192.168.133.11
 netmask 255.255.255.0
 network 192.168.133.0
 broadcast 192.168.133.255
 #post-up ip route add 10.115.145.0/24 via 192.168.133.11 table propoj
 post-up ip route add 10.115.145.0/24 via 192.168.133.11

Shorewall

Automatické spuštění Shorewall po startu systému

https://wiki.debian.org/HowTo/shorewall

systemctl enable shorewall

Freeradius

Instalace vzdáleně přes SSH

https://blog.sleeplessbeastie.eu/2015/10/12/how-to-install-debian-remotely/

  • Advanced options
  • Expert install
  • …..
  • Load installer component from CD
  • network-console
  • ……
  • Continue installation remotely using SSH

RAID

Paririon větší než 2 TB

Ping not found

apt-get install inetutils-ping

Příkaz ls - úprava parametrů

/root/.bashrc

Upgrade z 9 na 10

Nastavení timezone

Aktuální stav

timedatectl

Výpis dostupný zón

timedatectl list-timezones
private/poznamky/linux/debian9.1761638722.txt.gz · Poslední úprava: autor: admin

DokuWiki Appliance - Powered by TurnKey Linux