====== Debian 9, 10, 11 ====== https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-9.4.0-amd64-netinst.iso ==== Programy ==== 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:\\ 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 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: "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 ==== http://xenbits.xen.org/pvdrivers/win/ ===== 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 ===== https://kifarunix.com/install-freeradius-with-daloradius-on-debian-9/ ''systemctl enable 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 ===== Raid 5 https://www.tecmint.com/create-raid-5-in-linux/ ===== Paririon větší než 2 TB ===== http://magicmonster.com/kb/os/linux/large_hdd.html https://askubuntu.com/questions/350266/how-can-i-create-a-raid-array-with-2tb-disks ====== Ping not found ====== apt-get install inetutils-ping ====== Příkaz ls - úprava parametrů ====== /root/.bashrc ===== Upgrade z 9 na 10 ===== https://www.cyberciti.biz/faq/update-upgrade-debian-9-to-debian-10-buster/ ===== Nastavení timezone ===== Aktuální stav timedatectl Výpis dostupný zón timedatectl list-timezones