Content unavailable! (broken link)https://dynarocks.com/wiki/attach/PageHeader/interSULT-2.002.jpg

This page (revision-33) was last changed on 25-Jul-2023 14:25 by Dieter Käppel

This page was created on 09-Aug-2019 10:59 by Dieter Käppel

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Version Date Modified Size Author Changes ... Change note
33 25-Jul-2023 14:25 6 KB Dieter Käppel to previous
32 25-Jul-2023 13:24 6 KB Dieter Käppel to previous | to last
31 25-Jul-2023 12:56 5 KB Dieter Käppel to previous | to last
30 25-Jul-2023 12:20 5 KB Dieter Käppel to previous | to last
29 06-Mar-2023 14:21 5 KB Dieter Käppel to previous | to last
28 28-Feb-2023 09:16 5 KB Dieter Käppel to previous | to last
27 28-Feb-2023 09:16 5 KB Dieter Käppel to previous | to last
26 28-Feb-2023 09:15 5 KB Dieter Käppel to previous | to last
25 28-Feb-2023 09:15 5 KB Dieter Käppel to previous | to last
24 21-Nov-2022 10:49 4 KB Dieter Käppel to previous | to last
23 16-May-2022 00:38 4 KB Dieter Käppel to previous | to last
22 16-May-2022 00:37 4 KB Dieter Käppel to previous | to last
21 05-Nov-2021 12:16 4 KB Dieter Käppel to previous | to last
Incoming links Outgoing links

Difference between version and

At line 6 changed 4 lines
!!!Netzwerk
Es existieren einige Mechanismen in [Ubuntu] um das Netzwerk zu steuern.
!!DNS Server
!!!DNS Server
At line 26 changed one line
!!DNS Deaktivieren
!!Deaktivieren
At line 35 changed one line
__Hinweis:__ resolv.conf ist unter systemd-resolve ein symbolischer Link. Nach dem Löschen kann er durch eine richtige Datei ersetzt werden.
Unter /etc/NetworkManager/NetworkManager.conf nach [Main] dns=default eintragen und systemctl restart NetworkManager.
At line 37 removed 22 lines
Unter /etc/NetworkManager/NetworkManager.conf nach [Main] dns=none eintragen und systemctl restart NetworkManager.
!!IP Konfiguration
Folgende Befehle sind zum Konfigurieren des IP Netzwerks:
{{{
networkctl
networkctl status docker0
ifconfig
ifconfig docker0
systemctl restart systemd-networkd
}}}
!!!IP Config
Ubuntu (min. ab Version 22) /etc/netplan/00-installer-config.yaml oder /etc/netplan/01-netcfg.yaml. Nach dem Editieren, kann der Netplan angewendet werden:
{{{
netplan apply
}}}
__Siehe:__ [https://linuxconfig.org/how-to-configure-static-ip-address-on-ubuntu-22-04-jammy-jellyfish-desktop-server]
At line 60 changed one line
Auch Linux kann Remote Desktop Connection (RDP) mit dem Windows Client herstellen. Dazu gibt es das fertige Script [http://c-nergy.be/blog/?p=12761] das die nötigen Änderungen vornimmt.
Auch Linux kann Remote Desktop Connection (RDP) mit dem Windows Client herstellen. Dazu gibt es das fertige Script [Std-Xrdp-Install-0.2.sh|] das die nötigen Änderungen vornimmt.
At line 62 removed 153 lines
!!!Limits
Unter Linux gibt es verschiedene Limits.
Die Zahl der aktuellen Filehandles kann man abfragen:
{{{
lsof | wc -l
ulimit -n
}}}
Datei /etc/security/limits.conf:
{{{
* soft nofile 1000000
* hard nofile 1000000
root soft nofile 1000000
root hard nofile 1000000
* soft nproc 1000000
* hard nproc 1048576
root soft nproc 1000000
root hard nproc 1048576
* soft stack 1000000
* hard stack 1000000
root soft stack 1000000
root hard stack 1000000
* soft memlock 100000000
* hard memlock 100000000
root soft memlock 100000000
root hard memlock 100000000
}}}
In neueren Versionen muss offenbar noch /etc/pam.d/common-session bearbeitet werden:
{{{
session required pam_limits.so
}}}
!!Systemvariablen
Systemvariablen anzeigen: sysctl -a, sysctl <variable>
Systemvariablen temporär setzen: sysctl -w <variable>=<value>
Permanente Systemvariablen in /etc/sysctl.conf:
{{{
fs.file-max = 200000
}}}
Systemvariablen neu laden: sysctl -p
!!!Laufwerke
Linux hat eine Menge Befehle für Laufwerke.
!!gparted
Die Festplatte kann mit "gparted" partitioniert werden. Falls gparted nicht installiert ist, mit
{{{
apt install gparted
}}}
installieren und dann einfach starten.
!!GPT-Disk partitionieren
Früher wurde MBR (Master Boot Record) verwendet, heute verwendet man GPT (GUID partition table). Auflisten mit sgdisk -p.
1. Partition mit sgdisk erstellen
2. Partition mit mkfs formatieren
3. Partition mit mount anmelden
{{{
sgdisk -n 2:4096:5119 -c 2:"Test" -t 2:9300 /dev/sda
mkfs -t ext4 /dev/sda2
mount -t auto /dev/sda2 /mnt
}}}
* [https://phoenixnap.com/kb/linux-format-disk]
* [https://wiki.ubuntuusers.de/gdisk/]
* [https://unix.stackexchange.com/questions/38164/create-partition-aligned-using-parted]
!!Netzwerklaufwerke
Sogenannte SMB-Laufwerke, auch CIFS genannt können unter Linux angemeldet werden. Eventuell muss cifs-utils installiert werden:
{{{
apt install cifs-utils
}}}
Dann kann das Netzwerk-Share mit dem Typ "cifs" angemeldet werden:
{{{
mount -t cifs -o username=<username> //192.168.1.1/public/ /mnt/
}}}
!!!SSH
Unter Ubuntu kann openssh installiert werden:
{{{
apt install openssh-server
}}}
Danach die Konfiguration anpassen:
{{{
nano /etc/ssh/sshd_config
}}}
Folgende Eintragungen vornehmen:
{{{
PermitRootLogin yes
StrictModes yes
HostbasedAuthentication no
PermitEmptyPasswords no
ChallengeResponseAuthentication no
UsePAM yes
AllowUsers root
}}}
Konfiguration neu einlesen:
{{{
service sshd restart
}}}
Mit "passwd" ein Unix-Passwort anlegen.
!!!Swap
Swap-File anzeigen:
{{{
ls -lh /swapfile
swapon --show
}}}
Swap-File erstellen:
{{{
free -h
fallocate -l 1G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
}}}
"/swapfile none swap sw 0 0" zu /etc/fstab hinzufügen.
!!!Update
Um die Softwarepakete und das System upzudaten gibt es eine Reihe von Kommandos:
{{{
apt update
apt upgrade
apt dist-upgrade
apt autoremove
}}}
At line 217 removed 8 lines
* [Upgrade|https://linuxconfig.org/how-to-upgrade-ubuntu-to-20-04-lts-focal-fossa]
* [ulimit|https://medium.com/@muhammadtriwibowo/set-permanently-ulimit-n-open-files-in-ubuntu-4d61064429a]
* [limits|https://www.thegeekdiary.com/understanding-etc-security-limits-conf-file-to-set-ulimit/]
* [sysctl|https://wiki.manitu.de/index.php/Server:Sysctl-Variablen_(sysctl.conf)]
* [SSH|https://askubuntu.com/questions/497895/permission-denied-for-rootlocalhost-for-ssh-connection]
* [Permanent ulimit|https://muhammadtriwibowo.medium.com/set-permanently-ulimit-n-open-files-in-ubuntu-4d61064429a]
* [Swap|https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-20-04-de]
* [Swap neu erstellen|https://askubuntu.com/questions/1264859/watchdog-bug-soft-lockup-cpu6-stuck-for-23s]
×