ubuntu

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Beide Seiten der vorigen Revision Vorhergehende Überarbeitung
Nächste Überarbeitung
Vorhergehende Überarbeitung
ubuntu [19/08/2019 - 17:22] thommie3ubuntu [05/03/2024 - 10:52] (aktuell) – Externe Bearbeitung 127.0.0.1
Zeile 1: Zeile 1:
-====== 18.04 ======+====== Global ====== 
 + 
 +Versionsinformation 
 + 
 +<code> 
 +root@devel:~# lsb_release -a 
 +No LSB modules are available. 
 +Distributor ID: Ubuntu 
 +Description:    Ubuntu 18.04.4 LTS 
 +Release:        18.04 
 +Codename:       bionic 
 + 
 +</code> 
 + 
 +===== Packet Export Import ===== 
 + 
 +Export 
 + 
 +<terminal> 
 +''dpkg-query -f '${binary:Package}\n' -W> packages_list.txt'' 
 +</terminal> 
 + 
 +Import 
 + 
 +<terminal> 
 +''xargs -a packages_list.txt apt install'' 
 +</terminal> 
  
 ===== cloud-init ===== ===== cloud-init =====
Zeile 6: Zeile 33:
  
 ===== netplan ===== ===== netplan =====
 +
 +==== Einfaches Beispiel ====
 +
  
 Beispiel yaml für proxmox VM: Beispiel yaml für proxmox VM:
Zeile 24: Zeile 54:
           via:  138.201.52.41           via:  138.201.52.41
           on-link:  true           on-link:  true
 +
 </code> </code>
  
-===== Kernel 4.15.x hängt mit "x86 booting SMP configuration" =====+==== Beispiel für zwei Schnittstellen mit Routing ====
  
-FixDefault EInstellung in der VM Konfigfür Paravirtualisation auf "default" setzen+<code> 
 +network: 
 +  version: 2 
 +  renderer:  networkd 
 +  ethernets: 
 +    ens18: 
 +      dhcp4:  no 
 +      addresses:  [ 138.201.52.53/26 ] 
 +      # gateway4:  138.201.52.1 
 +      nameservers: 
 +        addresses:  [ 213.133.98.98, 213.133.99.99, 213.133.100.100 ] 
 +      routes: 
 +        - to:  default 
 +          via:  138.201.52.1 
 +          table: 101 
 +      routing-policy: 
 +        - from: 0.0.0.0/0 
 +          table: 101 
 +    ens19: 
 +      dhcp4:  no 
 +      addresses:  [ 10.10.10.34/24 ] 
 +      # gateway4:  10.10.10.1 
 +      nameservers: 
 +        addresses:  [ 213.133.98.98, 213.133.99.99, 213.133.100.100 ] 
 +      routes: 
 +        - to:  138.201.52.0/26 
 +          via:  138.201.52.1 
 +        - to:  10.10.10.0/24 
 +          via:  10.10.10.1 
 +          table: 102 
 +      routing-policy: 
 +        - from: 10.10.10.0/24 
 +          table: 102
  
-Älteren Kernel booten 
  
-/etc/default/grub +</code>
- +
-''# If you change this file, run 'update-grub' afterwards to update # /boot/grub/grub.cfg. # For full documentation of the options in this file, see: # info -f grub -n 'Simple configuration' GRUB_DEFAULT=saved GRUB_SAVEDEFAULT=true GRUB_TIMEOUT_STYLE=menu GRUB_TIMEOUT=10 GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` GRUB_CMDLINE_LINUX_DEFAULT=_ckgedit_QUOT__ckgedit> GRUB_CMDLINE_LINUX=_ckgedit_QUOT__ckgedit''+
  
-Default Wert ist GRUB_DEFAULT=0+Achtung: gateway4 ist **deprecated**, siehe https://www.techrepublic.com/article/set-default-gateway-with-netplan-now-gateway4-been-deprecated/
  
 ===== dnsmasq startet nicht wegen Konflikt mit systemd-resolvd ===== ===== dnsmasq startet nicht wegen Konflikt mit systemd-resolvd =====
Zeile 44: Zeile 104:
 Lösung: systemd-resolvd über /etc/systemd/resolved.conf abschalten: Lösung: systemd-resolvd über /etc/systemd/resolved.conf abschalten:
  
-''# disabled 15.10.18 thr DNSStubListener=no ''+''# disabled 15.10.18 thr DNSStubListener=no
 ==== OpenVPN Meldung "CRL has expired" ==== ==== OpenVPN Meldung "CRL has expired" ====
  
Zeile 51: Zeile 111:
 ===== unattended upgrades ===== ===== unattended upgrades =====
  
-====== 16.04 ====== 
  
-unattended upgrades+====== iptables ======
  
-Doku in [[https://wiki.debian.org/UnattendedUpgrades|https://wiki.debian.org/UnattendedUpgrades]] und [[https://help.ubuntu.com/lts/serverguide/automatic-updates.html|https://help.ubuntu.com/lts/serverguide/automatic-updates.html]] Zurücksetzen der config files\ ''apt-get -o Dpkg::Options::="–force-confmiss" install –reinstall ''+https://www.64-bit.de/dokumentationen/netzwerk/iptables/DE-IPTABLES-HOWTO-3.html
  
-REDIS Server+====== 20.04 LTS ipv6 abschalten ======
  
-Nach do-release-upgrade fehlt der REDIS Server. Neu installieren gemäss [[https://www.techandme.se/install-redis-cache-on-ubuntu-server-with-php-7-and-owncloud/|https://www.techandme.se/install-redis-cache-on-ubuntu-server-with-php-7-and-owncloud/]] und [[https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04|https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-redis-on-ubuntu-16-04]] curl und php-zip+in /etc/sysctl.conf
  
-16.04: VM geht nicht mit 3D, kein Login möglich, weder mit nouveau noch nvidia. +<code> 
- +net.ipv6.conf.all.disable_ipv6 
-16.04: nachinstallieren von NVIDIA Treiber wie in [[http://www.webupd8.org/2016/06/how-to-install-latest-nvidia-drivers-in.html|http://www.webupd8.org/2016/06/how-to-install-latest-nvidia-drivers-in.html]] Shorewall +</code>
- +
-Nach dem Update startet Shorewall 5.x nicht mehr automatisch beim Boot. Siehe [[https://bugs.launchpad.net/ubuntu/+source/shorewall/+bug/1511869|https://bugs.launchpad.net/ubuntu/+source/shorewall/+bug/1511869]] +
- +
-Abhilfe: Einbau eines Service Files in systemd, /etc/systemd/system/shorewall.service:\\ +
-[Unit] Documentation=man:shorewall Description=Configure the IPv4 firewall at boot time DefaultDependencies=no After=local-fs.target systemd-sysctl.service Before=network-pre.target shutdown.target Wants=network-pre.target Conflicts=shutdown.target [Service] Type=oneshot RemainAfterExit=yes TimeoutSec=30 Restart=no IgnoreSIGPIPE=no KillMode=none ExecStart=/etc/init.d/shorewall start ExecStop=/etc/init.d/shorewall stop ExecReload=/sbin/shorewall $OPTIONS restart $RESTARTOPTIONS [Install] WantedBy=network-online.target+
  
-Danach systemctl enable shorewall.service+Danach sysctl -p
  
  • ubuntu.1566235379.txt.gz
  • Zuletzt geändert: 05/03/2024 - 10:52
  • (Externe Bearbeitung)