tachtler:archlinux_-_minimal_server_installation_uefi-boot
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
tachtler:archlinux_-_minimal_server_installation_uefi-boot [2020/01/31 15:53] – [Netzwerk: systemd] klaus | tachtler:archlinux_-_minimal_server_installation_uefi-boot [Unbekanntes Datum] (aktuell) – gelöscht - Externe Bearbeitung (Unbekanntes Datum) 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | ====== ArchLinux - Minimal Server Installation - UEFI-Boot ====== | ||
- | | ||
- | [[tachtler: | ||
- | |||
- | ^ Beschreibung | ||
- | | Homepage | ||
- | | Herunterladen | ||
- | | Dokumentation | ||
- | | Installation | ||
- | | - LVM | [[https:// | ||
- | | - UEFI-Boot | ||
- | | - systemd-boot | ||
- | |||
- | ===== Herunterladen ===== | ||
- | |||
- | Die Installationsquellen, | ||
- | * **[[https:// | ||
- | Als Beispiel-Quelle kann hier nachfolgender Link dienen: | ||
- | * **[[https:// | ||
- | |||
- | Zum Herunterladen der DVD in das Zielverzeichnis **''/ | ||
- | < | ||
- | # wget https:// | ||
- | </ | ||
- | |||
- | ===== USB-Stick erstellen ===== | ||
- | |||
- | Das ISO-Image kann mit nachfolgendem Befehl auf einen **USB-Stick** - **hier ''/ | ||
- | < | ||
- | # dd bs=4M if=/ | ||
- | </ | ||
- | |||
- | ===== Start: ISO-Image ===== | ||
- | |||
- | Nach dem Einschalten des Servers, kann mit der Installation begonnen werden, in dem ein Start von dem sich auf dem USB-Stick befindlichen [[https:// | ||
- | |||
- | ==== BOOT ==== | ||
- | | ||
- | Falls dies erfolgreich realisiert werden konnte, sollte in etwa nachfolgender Bildschirm erscheinen: | ||
- | |||
- | {{: | ||
- | |||
- | Durch drücken der **[Eingabe|Return]**-Taste auf dem Menüpunkt **Arch Linux archiso x86_64 UEFI CD** wird ein **initialer Start** durchgeführt. Nach erfolgreichem Start des **" | ||
- | |||
- | {{: | ||
- | |||
- | :!: **HINWEIS** - **Eine __Anmeldung__ als Benutzer '' | ||
- | |||
- | ===== Vorbereitungen ===== | ||
- | |||
- | Um die folgenden Installationsschritte durchführen zu können, werden nachfolgende Gegebenheiten vorausgesetzt. | ||
- | - Es besteht die Möglichkeit, | ||
- | |||
- | ==== Tastaturlayout: | ||
- | |||
- | :!: **ACHTUNG** - **Nach dem starten des ISO-Images wird ein __US/ | ||
- | |||
- | Damit alle nachfolgenden Eingabe unter Verwendung eines **deutschen Tastaturlayouts** durchgeführt werden können, ist nachfolgender Befehl auszuführen: | ||
- | < | ||
- | root@archiso ~ # loadkeys de-latin1-nodeadkeys | ||
- | </ | ||
- | *¹ //Der Buchstabe **'' | ||
- | *² //Das Zeichen **'' | ||
- | |||
- | :!: **HINWEIS** - Anschließend sollte ein **deutsches Tastaturlayout** geladen sein! | ||
- | |||
- | ==== Passwort: root ==== | ||
- | |||
- | Damit **__später__** nachfolgende Konfigurationen durchgeführt werden können, soll eine Verbindung via **SSH** hergestellt werden. | ||
- | |||
- | Dazu ist es erforderlich, | ||
- | < | ||
- | root@archiso ~ # passwd | ||
- | New password | ||
- | Retype new password: | ||
- | passwd: password updated successfully | ||
- | </ | ||
- | |||
- | Das Passwort ist in der '' | ||
- | |||
- | ==== Netzwerkkarte: | ||
- | |||
- | Nachfolgende Befehle sollen eine Verbindung mit **einem bestehenden Netzwerk mit Internet-Zugang** herstellen. | ||
- | |||
- | Zuerst sollte die **Bezeichnung** der Netzwerkkarte mit nachfolgendem Befehl ermittelt werden: | ||
- | < | ||
- | root@archiso ~ # ip a | ||
- | 1: lo: < | ||
- | link/ | ||
- | inet 127.0.0.1/8 scope host lo | ||
- | | ||
- | inet6 ::1/128 scope host | ||
- | | ||
- | 2: ens3: < | ||
- | link/ether 52: | ||
- | inet6 fe80:: | ||
- | | ||
- | </ | ||
- | |||
- | Die Bezeichnung der Netzwerkkarte in oben gezeigtem Beispiel lautet aktuell: **ens3**. In der gleichen Zeile ist auch zu sehen, das die Karte bereits den Status **'' | ||
- | |||
- | :!: **HINWEIS** - Falls die Netzwerkkarte **__nicht__** **'' | ||
- | < | ||
- | root@archiso ~ # ip link set up dev ens3 | ||
- | </ | ||
- | |||
- | Die Zuweisung einer **IPv4**-Netzwerkadresse kann mit nachfolgendem Befehl durchgeführt werden: | ||
- | < | ||
- | root@archiso ~ # ip addr add 192.168.1.250/ | ||
- | </ | ||
- | |||
- | Ein Überprüfung, | ||
- | < | ||
- | root@archiso ~ # ip a | ||
- | 1: lo: < | ||
- | link/ | ||
- | inet 127.0.0.1/8 scope host lo | ||
- | | ||
- | inet6 ::1/128 scope host | ||
- | | ||
- | 2: ens3: < | ||
- | link/ether 52: | ||
- | inet 192.168.1.250/ | ||
- | | ||
- | inet6 fe80:: | ||
- | | ||
- | </ | ||
- | |||
- | Damit nun eine Verbindung nicht nur in das bereits aktuelle erreichbare Netzwerk möglich ist, sondern auch eine **Standardroute - '' | ||
- | < | ||
- | root@archiso ~ # ip route add default via 192.168.1.10 | ||
- | </ | ||
- | |||
- | Eine Überprüfung mit nachfolgendem Befehl zeigt nun die aktuellen Routen, inklusive der **'' | ||
- | < | ||
- | root@archiso ~ # ip ro | ||
- | default via 192.168.1.10 dev ens3 | ||
- | 192.168.1.0/ | ||
- | </ | ||
- | |||
- | Ob die Verbindung zum Internet hergestellt wurde, kann mit nachfolgendem Test durch den nachfolgenden Befehl durchgeführt werden. Drei **'' | ||
- | < | ||
- | root@archiso ~ # ping -c3 8.8.8.8 | ||
- | PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data. | ||
- | 64 bytes from 8.8.8.8 icmp_seq=1 ttl=57 time=82.4 ms | ||
- | 64 bytes from 8.8.8.8 icmp_seq=2 ttl=57 time=95.3 ms | ||
- | 64 bytes from 8.8.8.8 icmp_seq=3 ttl=57 time=113 ms | ||
- | |||
- | --- 8.8.8.8 ping statistics --- | ||
- | 3 packets transmitted, | ||
- | rtt min/ | ||
- | </ | ||
- | |||
- | ==== Namensauflösung: | ||
- | |||
- | Damit nicht nur der Netzwerk technische Zugriff auf das Internet möglich ist, sondern auch eine Namensauflösung wie z.B. [[https:// | ||
- | < | ||
- | root@archiso ~ # echo nameserver 192.168.1.20 >> / | ||
- | </ | ||
- | |||
- | :!: **HINWEIS** - Falls kein eigener Namensserver zur Verfügung stehen sollte, wäre auch ein extern erreichbarer Nameserver wie der von [[https:// | ||
- | < | ||
- | root@archiso ~ # echo nameserver 8.8.8.8 >> / | ||
- | root@archiso ~ # echo nameserver 8.8.4.4 >> / | ||
- | </ | ||
- | |||
- | Mit nachfolgendem Befehl kann überprüft werden, ob die Ergänzung der Konfiguratiosndatei ''/ | ||
- | < | ||
- | root@archiso ~ # cat / | ||
- | # Resolver configuration file. | ||
- | # See resolv.conf(5) for details. | ||
- | nameserver 192.168.1.20 | ||
- | </ | ||
- | |||
- | Ob die Namensauflösung Richtung Internet hergestellt wurde, kann mit nachfolgendem Test durch den nachfolgenden Befehl durchgeführt werden. Drei **'' | ||
- | < | ||
- | root@archiso ~ # ping -c3 google.de | ||
- | PING google.de (172.217.23.35) 56(84) bytes of data. | ||
- | 64 bytes from lhr35s02-in-f3.1e100.net (172.217.23.35): | ||
- | 64 bytes from lhr35s02-in-f3.1e100.net (172.217.23.35): | ||
- | 64 bytes from lhr35s02-in-f3.1e100.net (172.217.23.35): | ||
- | |||
- | --- google.de ping statistics --- | ||
- | 3 packets transmitted, | ||
- | rtt min/ | ||
- | </ | ||
- | |||
- | ==== SSH-Dienst: starten ==== | ||
- | |||
- | Damit eine Verbindung zum Server, welcher via **" | ||
- | < | ||
- | root@archiso ~ # systemctl start sshd.service | ||
- | </ | ||
- | |||
- | Eine Überprüfung ob der **SSH**-Dienst/ | ||
- | < | ||
- | root@archiso ~ # systemctl status sshd.service | ||
- | ● sshd.service - OpenSSH Daemon | ||
- | | ||
- | | ||
- | Main PID: 822 (sshd) | ||
- | Tasks: 1 (limit: 2332) | ||
- | | ||
- | | ||
- | | ||
- | |||
- | Jan 10 08:28:08 archiso systemd[1]: Started OpenSSH Daemon. | ||
- | Jan 10 08:28:08 archiso sshd[882]: Server listening on 0.0.0.0 port 22. | ||
- | Jan 10 08:28:08 archiso sshd[882]: Server listening on :: port 22. | ||
- | </ | ||
- | |||
- | ===== Verbindung: SSH-Login (root) ===== | ||
- | |||
- | Jetzt kann eine erste Verbindung als Benutzer **'' | ||
- | < | ||
- | $ ssh root@192.168.1.250 | ||
- | The authenticity of host ' | ||
- | ECDSA key fingerprint is SHA256: | ||
- | ECDSA key fingerprint is MD5: | ||
- | Are you sure you want to continue connecting (yes/no)? yes | ||
- | Warning: Permanently added ' | ||
- | root@192.168.1.250' | ||
- | Last login: Fri Jan 10 06:50:29 2020 | ||
- | root@archiso ~ # | ||
- | </ | ||
- | |||
- | ===== Partitionierung: | ||
- | |||
- | Damit nun nach dem Start des sich auf dem USB-Stick befindlichen [[https:// | ||
- | |||
- | :!: **HINWEIS** - **Es gibt __keinen__ Installationsmanager wie bei anderen Distributionen, | ||
- | |||
- | Nachfolgend soll eine Partitionierung der Festplatte unter Einsatz eines **LVM** eingerichtet werden. Die Partitionierung soll hier **beispielhaft** mit nachfolgender Festplattenaufteilung durchgeführt werden | ||
- | |||
- | ^ Phyische Festplatte/ | ||
- | ^ ''/ | ||
- | ^ ''/ | ||
- | | ''/ | ||
- | ^ ''/ | ||
- | | ''/ | ||
- | | ''/ | ||
- | | ''/ | ||
- | | ''/ | ||
- | | ''/ | ||
- | ^ **SUMME** | ||
- | |||
- | Damit die noch unformatiert Festplatte partitioniert werden kann, soll dies mit Unterstützung des Befehl **'' | ||
- | |||
- | Nachfolgender Befehl listet die aktuelle, noch leere Festplattenkapazitäten auf: | ||
- | < | ||
- | root@archiso ~ # gdisk -l /dev/vda | ||
- | GPT fdisk (gdisk) version 1.0.4 | ||
- | |||
- | Partition table scan: | ||
- | MBR: not present | ||
- | BSD: not present | ||
- | APM: not present | ||
- | GPT: not present | ||
- | |||
- | Creating new GPT entries in memory. | ||
- | Disk /dev/vda: 41943040 sectors, 20.0 GiB | ||
- | Sector size (logical/ | ||
- | Disk identifier (GUID): E888AA52-DE04-4F40-B69A-8E6DBC289E09 | ||
- | Partition table holds up to 128 entries | ||
- | Main partition table begins at sector 2 and ends at sector 33 | ||
- | First usable sector is 34, last usable sector is 41943006 | ||
- | Partitions will be aligned on 2048-sector boundaries | ||
- | Total free space is 41942973 sectors (20.0 GiB) | ||
- | |||
- | Number | ||
- | </ | ||
- | |||
- | ==== Schritt 1: gdisk Interaktiver-Modus ==== | ||
- | |||
- | :!: **ACHTUNG** - **Die Befehle bitte mit __großer Sorgfalt ausführen__, | ||
- | :!: **ACHTUNG** - **Bitte darauf achten, __nicht__ versehentlich eine andere Festplatte zu formatieren !!!** | ||
- | |||
- | Mit nachfolgenden Befehlen, wird die **Festplatte /dev/vda** in Bearbeitung genommen, um diese dann zu partitionieren: | ||
- | |||
- | :!: **ACHTUNG** -**Hier ist dies '' | ||
- | < | ||
- | root@archiso ~ # gdisk /dev/vda | ||
- | GPT fdisk (gdisk) version 1.0.4 | ||
- | |||
- | Partition table scan: | ||
- | MBR: not present | ||
- | BSD: not present | ||
- | APM: not present | ||
- | GPT: not present | ||
- | |||
- | Creating new GPT entries in memory. | ||
- | |||
- | Command (? for help): | ||
- | </ | ||
- | |||
- | ==== Schritt 2: Erste Partition anlegen ==== | ||
- | |||
- | Durch nachfolgende Befehle wird eine | ||
- | * **neue " | ||
- | * **mit der Nummer 1** | ||
- | * und einer** Größe von 1 GB** angelegt: | ||
- | |||
- | Nachfolgende Tasten sind wie folgt zu drücken: | ||
- | - **'' | ||
- | - **'' | ||
- | - **'' | ||
- | - die Eingabe der Größe, durch **'' | ||
- | - und Eingabe des Dateisystem-**Codes**: | ||
- | < | ||
- | Command (? for help): n | ||
- | Partition number (1-128, default 1): 1 | ||
- | First sector (34-41943006, | ||
- | Last sector (2048-41943006, | ||
- | Current type is 'Linux filesystem' | ||
- | Hex code or GUID (L to show codes, Enter = 8300): ef00 | ||
- | Changed type of partition to 'EFI System' | ||
- | </ | ||
- | |||
- | Anschließend kann durch drücken der Taste **'' | ||
- | < | ||
- | Command (? for help): p | ||
- | Disk /dev/vda: 41943040 sectors, 20.0 GiB | ||
- | Sector size (logical/ | ||
- | Disk identifier (GUID): A6781D91-5CDD-4FDC-BDC8-B27326934B17 | ||
- | Partition table holds up to 128 entries | ||
- | Main partition table begins at sector 2 and ends at sector 33 | ||
- | First usable sector is 34, last usable sector is 41943006 | ||
- | Partitions will be aligned on 2048-sector boundaries | ||
- | Total free space is 39845821 sectors (19.0 GiB) | ||
- | |||
- | Number | ||
- | | ||
- | </ | ||
- | |||
- | ==== Schritt 3: Zweite Partition anlegen ==== | ||
- | |||
- | Durch nachfolgende Befehle wird eine | ||
- | * **neue " | ||
- | * **mit der Nummer 2** | ||
- | * in der **Größe der restlichen Festplatte** angelegt: | ||
- | |||
- | Nachfolgende Tasten sind wie folgt zu drücken: | ||
- | - **'' | ||
- | - **'' | ||
- | - **'' | ||
- | - **'' | ||
- | - und Eingabe des Dateisystem-**Codes**: | ||
- | < | ||
- | Command (? for help): n | ||
- | Partition number (2-128, default 2): 2 | ||
- | First sector (34-41943006, | ||
- | Last sector (2099200-41943006, | ||
- | Current type is 'Linux filesystem' | ||
- | Hex code or GUID (L to show codes, Enter = 8300): 8e00 | ||
- | Changed type of partition to 'Linux LVM' | ||
- | </ | ||
- | |||
- | Abschließend kann durch drücken der Taste **'' | ||
- | < | ||
- | Command (? for help): p | ||
- | Disk /dev/vda: 41943040 sectors, 20.0 GiB | ||
- | Sector size (logical/ | ||
- | Disk identifier (GUID): A6781D91-5CDD-4FDC-BDC8-B27326934B17 | ||
- | Partition table holds up to 128 entries | ||
- | Main partition table begins at sector 2 and ends at sector 33 | ||
- | First usable sector is 34, last usable sector is 41943006 | ||
- | Partitions will be aligned on 2048-sector boundaries | ||
- | Total free space is 2014 sectors (1007.0 KiB) | ||
- | |||
- | Number | ||
- | | ||
- | | ||
- | </ | ||
- | |||
- | ==== Schritt 4: Partitionstabelle schreiben ==== | ||
- | |||
- | Anschließend sind nun die Tasten | ||
- | - **'' | ||
- | - und zur Bestätigung **'' | ||
- | zu drücken, um die Änderung auch tatsächlich in die **Partitionstabelle** der **Festplatte** zu schreiben: | ||
- | < | ||
- | Command (? for help): w | ||
- | |||
- | Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING | ||
- | PARTITIONS!! | ||
- | |||
- | Do you want to proceed? (Y/N): Y | ||
- | OK; writing new GUID partition table (GPT) to /dev/vda. | ||
- | The operation has completed successfully. | ||
- | </ | ||
- | |||
- | ===== LVM ===== | ||
- | |||
- | Nachfolgend sollen nun die einzelnen **Mount-Points** auf den zuvor angelegten **Partitionen** erstellt und formatiert werden. | ||
- | |||
- | ==== Schritt 1: Phys. Volume anlegen ==== | ||
- | |||
- | Anlegen eines **physischen Volume** zur Nutzung durch ein LVM mit nachfolgendem Befehl: | ||
- | < | ||
- | root@archiso ~ # pvcreate /dev/vda2 | ||
- | Physical volume "/ | ||
- | </ | ||
- | |||
- | ==== Schritt 2: Volume Gruppe anlegen ==== | ||
- | |||
- | Anlegen einer **Volume Gruppe** mit dem Namen '' | ||
- | < | ||
- | root@archiso ~ # vgcreate archlinux /dev/vda2 | ||
- | Volume group " | ||
- | </ | ||
- | |||
- | ==== Schritt 3: Logische Volumes anlegen ==== | ||
- | |||
- | Nachfolgende Befehle legen die **logischen Volumes** | ||
- | * ''/ | ||
- | * ''/ | ||
- | * ''/ | ||
- | * ''/ | ||
- | * ''/ | ||
- | an: | ||
- | < | ||
- | root@archiso ~ # lvcreate --name swap -L2048M archlinux | ||
- | Logical volume " | ||
- | </ | ||
- | < | ||
- | root@archiso ~ # lvcreate --name root -L10240M archlinux | ||
- | Logical volume " | ||
- | </ | ||
- | < | ||
- | root@archiso ~ # lvcreate --name home -L1024M archlinux | ||
- | Logical volume " | ||
- | </ | ||
- | < | ||
- | root@archiso ~ # lvcreate --name var -L3072M archlinux | ||
- | Logical volume " | ||
- | </ | ||
- | < | ||
- | root@archiso ~ # lvcreate --name var_log -L2048M archlinux | ||
- | Logical volume " | ||
- | </ | ||
- | |||
- | Mit nachfolgendem Befehl kann überprüft werden, ob die Neuanlagen erfolgreich durchführt wurden: | ||
- | < | ||
- | root@archiso ~ # lsblk /dev/vda | ||
- | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | ||
- | vda | ||
- | ├─vda1 | ||
- | └─vda2 | ||
- | ├─archlinux-swap | ||
- | ├─archlinux-root | ||
- | ├─archlinux-home | ||
- | ├─archlinux-var | ||
- | └─archlinux-var_log 253:4 0 | ||
- | </ | ||
- | |||
- | ===== Dateisysteme formatieren ===== | ||
- | |||
- | Nachfolgende Befehle formatieren die zuvor erstellen **Partitionen** mit einem Dateisystem, | ||
- | < | ||
- | root@archiso ~ # mkfs.fat -F 32 -n EFIBOOT /dev/vda1 | ||
- | mkfs.fat 4.1 (2017-01-24) | ||
- | </ | ||
- | < | ||
- | root@archiso ~ # mkswap / | ||
- | Setting up swapspace version 1, size = 2 GiB (2147479552 bytes) | ||
- | no label, UUID=9399a618-575f-4ef2-bfaf-6b259c1147fd | ||
- | </ | ||
- | < | ||
- | root@archiso ~ # mkfs.ext4 / | ||
- | mke2fs 1.45.4 (23-Sep-2019) | ||
- | Creating filesystem with 2621440 4k blocks and 655360 inodes | ||
- | Filesystem UUID: 4df0fcd7-fade-4887-81c5-fdc78f96572d | ||
- | Superblock backups stored on blocks: | ||
- | 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 | ||
- | |||
- | Allocating group tables: done | ||
- | Writing inode tables: done | ||
- | Creating journal (16384 blocks): done | ||
- | Writing superblocks and filesystem accounting information: | ||
- | |||
- | </ | ||
- | < | ||
- | root@archiso ~ # mkfs.ext4 / | ||
- | mke2fs 1.45.4 (23-Sep-2019) | ||
- | Creating filesystem with 262144 4k blocks and 65536 inodes | ||
- | Filesystem UUID: 777a7860-c768-4277-8c0c-c9194fcd2ec5 | ||
- | Superblock backups stored on blocks: | ||
- | 32768, 98304, 163840, 229376 | ||
- | |||
- | Allocating group tables: done | ||
- | Writing inode tables: done | ||
- | Creating journal (8192 blocks): done | ||
- | Writing superblocks and filesystem accounting information: | ||
- | |||
- | </ | ||
- | < | ||
- | root@archiso ~ # mkfs.ext4 / | ||
- | mke2fs 1.45.4 (23-Sep-2019) | ||
- | Creating filesystem with 786432 4k blocks and 196608 inodes | ||
- | Filesystem UUID: c341665d-3f02-4fff-bfd5-346233987ccc | ||
- | Superblock backups stored on blocks: | ||
- | 32768, 98304, 163840, 229376, 294912 | ||
- | |||
- | Allocating group tables: done | ||
- | Writing inode tables: done | ||
- | Creating journal (16384 blocks): done | ||
- | Writing superblocks and filesystem accounting information: | ||
- | |||
- | </ | ||
- | < | ||
- | root@archiso ~ # mkfs.ext4 / | ||
- | mke2fs 1.45.4 (23-Sep-2019) | ||
- | Creating filesystem with 524288 4k blocks and 131072 inodes | ||
- | Filesystem UUID: 7f70accb-6bc6-47be-85a6-cf6fb86a6958 | ||
- | Superblock backups stored on blocks: | ||
- | 32768, 98304, 163840, 229376, 294912 | ||
- | |||
- | Allocating group tables: done | ||
- | Writing inode tables: done | ||
- | Creating journal (16384 blocks): done | ||
- | Writing superblocks and filesystem accounting information: | ||
- | |||
- | </ | ||
- | |||
- | ===== Partitonen einhängen ===== | ||
- | |||
- | Nachfolgende Befehle hängen die zuvor erstellen **Mount-Points** in das Dateisystem des Servers ein: | ||
- | |||
- | :!: **WICHTIG** - **Zuerst die '' | ||
- | |||
- | < | ||
- | root@archiso ~ # mount / | ||
- | </ | ||
- | |||
- | Anschließend müssen für die weiteren **Mount-Points** **__unterhalb__** von **''/'' | ||
- | < | ||
- | root@archiso ~ # mkdir /mnt/boot | ||
- | </ | ||
- | < | ||
- | root@archiso ~ # mkdir /mnt/home | ||
- | </ | ||
- | < | ||
- | root@archiso ~ # mkdir /mnt/var | ||
- | </ | ||
- | |||
- | :!: **HINWEIS** - **''/ | ||
- | |||
- | Nachfolgender Befehl überprüft, | ||
- | < | ||
- | root@archiso ~ # ls -l /mnt | ||
- | total 28 | ||
- | drwxr-xr-x 2 root root 4096 Jan 10 09:28 boot | ||
- | drwxr-xr-x 2 root root 4096 Jan 10 09:28 home | ||
- | drwx------ 2 root root 16384 Jan 10 09:25 lost+found | ||
- | drwxr-xr-x 2 root root 4096 Jan 10 09:28 var | ||
- | </ | ||
- | |||
- | Anschließend können nun alle weiteren **Mount-Points** eingehängt werden, was mit nachfolgenden Befehlen durchgeführt wird: | ||
- | |||
- | Zuerst wird die **''/ | ||
- | < | ||
- | root@archiso ~ # mount /dev/vda1 /mnt/boot | ||
- | </ | ||
- | |||
- | Anschließend wird die **'' | ||
- | < | ||
- | root@archiso ~ # swapon / | ||
- | </ | ||
- | |||
- | Anschließend folgen alle restlichen **Mount-Points** aus dem **LVM**: | ||
- | < | ||
- | root@archiso ~ # mount / | ||
- | </ | ||
- | < | ||
- | root@archiso ~ # mount / | ||
- | </ | ||
- | |||
- | Jetzt muss noch nach dem Einhängen des **Mount-Points** - ''/ | ||
- | < | ||
- | root@archiso ~ # mkdir / | ||
- | </ | ||
- | |||
- | Somit kann nun auch der letzte **Mount-Point** - ''/ | ||
- | < | ||
- | root@archiso ~ # mount / | ||
- | </ | ||
- | |||
- | Nachfolgender Befehl überprüft, | ||
- | < | ||
- | root@archiso ~ # lsblk /dev/vda | ||
- | NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | ||
- | vda | ||
- | ├─vda1 | ||
- | └─vda2 | ||
- | ├─archlinux-swap | ||
- | ├─archlinux-root | ||
- | ├─archlinux-home | ||
- | ├─archlinux-var | ||
- | └─archlinux-var_log 253:4 0 | ||
- | </ | ||
- | |||
- | ===== Installation: | ||
- | |||
- | ==== / | ||
- | |||
- | Bevor die eigentliche Installation des **Basissystems** erfolgen kann, soll noch eine länderspezifische vorab Auswahl der Installationsquellen getroffen werden, damit die Installation über das Internet möglichst von lokalen Server, hier aus Deutschland, | ||
- | |||
- | Dazu ist die Optimierung der Konfigurationsdatei | ||
- | * **''/ | ||
- | erforderlich. | ||
- | |||
- | Zuerst soll aber eine **Sicherungskopie** der Konfigurationsdatei ''/ | ||
- | < | ||
- | root@archiso ~ # cp -a / | ||
- | </ | ||
- | |||
- | Um nur die lokalen Server, hier nur aus Deutschland, | ||
- | < | ||
- | root@archiso ~ # grep -E -A 1 " | ||
- | </ | ||
- | |||
- | Der so generierte Inhalt der Konfigurationsdatei ''/ | ||
- | < | ||
- | root@archiso ~ # cat / | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | ## Germany | ||
- | Server = http:// | ||
- | </ | ||
- | |||
- | ==== Basissystem: | ||
- | |||
- | Der folgende Befehl führt nun die Installation von [[https:// | ||
- | < | ||
- | root@archiso ~ # pacstrap /mnt base base-devel linux-lts linux-firmware lvm2 openssh sshpass vi vim | ||
- | </ | ||
- | |||
- | < | ||
- | root@archiso ~ # pacstrap /mnt base base-devel linux-lts linux-firmware lvm2 openssh sshpass vi vim | ||
- | ==> Creating install root at /mnt | ||
- | ==> Installing packages to /mnt | ||
- | :: Synchronizing package databases... | ||
- | | ||
- | | ||
- | | ||
- | :: There are 24 members in group base-devel: | ||
- | :: Repository core | ||
- | 1) autoconf | ||
- | 7) findutils | ||
- | 14) gzip 15) libtool | ||
- | 21) sed 22) sudo 23) texinfo | ||
- | |||
- | Enter a selection (default=all): | ||
- | resolving dependencies... | ||
- | :: There are 2 providers available for initramfs: | ||
- | :: Repository core | ||
- | 1) mkinitcpio | ||
- | :: Repository extra | ||
- | 2) dracut | ||
- | |||
- | Enter a number (default=1): | ||
- | looking for conflicting packages... | ||
- | |||
- | Packages (147) acl-2.2.53-2 | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | |||
- | Total Download Size: 339.00 MiB | ||
- | Total Installed Size: 1420.10 MiB | ||
- | |||
- | :: Proceed with installation? | ||
- | :: Retrieving packages... | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | (147/147) checking keys in keyring | ||
- | (147/147) checking package integrity | ||
- | (147/147) loading package files [###################### | ||
- | (147/147) checking for file conflicts | ||
- | :: Processing package changes... | ||
- | ( 1/147) installing iana-etc | ||
- | ( 2/147) installing filesystem | ||
- | ( 3/147) installing linux-api-headers | ||
- | ( 4/147) installing tzdata | ||
- | ( 5/147) installing glibc | ||
- | Optional dependencies for glibc | ||
- | gd: for memusagestat | ||
- | ( 6/147) installing gcc-libs | ||
- | ( 7/147) installing ncurses | ||
- | ( 8/147) installing readline | ||
- | ( 9/147) installing bash [###################### | ||
- | Optional dependencies for bash | ||
- | bash-completion: | ||
- | ( 10/147) installing attr [###################### | ||
- | ( 11/147) installing acl | ||
- | ( 12/147) installing gmp | ||
- | ( 13/147) installing libcap | ||
- | ( 14/147) installing gdbm [###################### | ||
- | ( 15/147) installing db [###################### | ||
- | ( 16/147) installing perl [###################### | ||
- | ( 17/147) installing openssl | ||
- | Optional dependencies for openssl | ||
- | ca-certificates [pending] | ||
- | ( 18/147) installing coreutils | ||
- | ( 19/147) installing zlib [###################### | ||
- | ( 20/147) installing xz [###################### | ||
- | ( 21/147) installing bzip2 | ||
- | ( 22/147) installing libseccomp | ||
- | ( 23/147) installing file [###################### | ||
- | ( 24/147) installing findutils | ||
- | ( 25/147) installing mpfr [###################### | ||
- | ( 26/147) installing gawk [###################### | ||
- | ( 27/147) installing pcre [###################### | ||
- | ( 28/147) installing grep [###################### | ||
- | ( 29/147) installing libgpg-error | ||
- | ( 30/147) installing libgcrypt | ||
- | ( 31/147) installing lz4 | ||
- | ( 32/147) installing systemd-libs | ||
- | ( 33/147) installing procps-ng | ||
- | ( 34/147) installing sed | ||
- | ( 35/147) installing tar | ||
- | ( 36/147) installing libffi | ||
- | ( 37/147) installing libutil-linux | ||
- | ( 38/147) installing glib2 | ||
- | Optional dependencies for glib2 | ||
- | python: gdbus-codegen, | ||
- | libelf: gresource inspection tool [pending] | ||
- | ( 39/147) installing libunistring | ||
- | ( 40/147) installing icu | ||
- | ( 41/147) installing libxml2 | ||
- | ( 42/147) installing libcroco | ||
- | ( 43/147) installing gettext | ||
- | Optional dependencies for gettext | ||
- | git: for autopoint infrastructure updates | ||
- | ( 44/147) installing hwids | ||
- | ( 45/147) installing kmod [###################### | ||
- | ( 46/147) installing pciutils | ||
- | ( 47/147) installing psmisc | ||
- | ( 48/147) installing cracklib | ||
- | ( 49/147) installing e2fsprogs | ||
- | ( 50/147) installing libsasl | ||
- | ( 51/147) installing libldap | ||
- | ( 52/147) installing keyutils | ||
- | ( 53/147) installing krb5 [###################### | ||
- | ( 54/147) installing libtirpc | ||
- | ( 55/147) installing pambase | ||
- | ( 56/147) installing pam | ||
- | ( 57/147) installing libcap-ng | ||
- | ( 58/147) installing audit | ||
- | ( 59/147) installing shadow | ||
- | ( 60/147) installing util-linux | ||
- | Optional dependencies for util-linux | ||
- | python: python bindings to libmount | ||
- | words: default dictionary for look | ||
- | ( 61/147) installing less [###################### | ||
- | ( 62/147) installing gzip [###################### | ||
- | ( 63/147) installing licenses | ||
- | ( 64/147) installing expat | ||
- | ( 65/147) installing zstd [###################### | ||
- | ( 66/147) installing libarchive | ||
- | ( 67/147) installing libtasn1 | ||
- | ( 68/147) installing device-mapper | ||
- | ( 69/147) installing popt [###################### | ||
- | ( 70/147) installing json-c | ||
- | ( 71/147) installing argon2 | ||
- | ( 72/147) installing cryptsetup | ||
- | ( 73/147) installing dbus [###################### | ||
- | ( 74/147) installing libmnl | ||
- | ( 75/147) installing libnftnl | ||
- | ( 76/147) installing libnl | ||
- | ( 77/147) installing libusb | ||
- | ( 78/147) installing libpcap | ||
- | ( 79/147) installing libnfnetlink | ||
- | ( 80/147) installing libnetfilter_conntrack | ||
- | ( 81/147) installing iptables | ||
- | ( 82/147) installing kbd | ||
- | ( 83/147) installing libidn2 | ||
- | ( 84/147) installing libelf | ||
- | ( 85/147) installing pcre2 | ||
- | ( 86/147) installing systemd | ||
- | Initializing machine ID from KVM UUID. | ||
- | Created symlink / | ||
- | Created symlink / | ||
- | :: Append ' | ||
- | | ||
- | Optional dependencies for systemd | ||
- | libmicrohttpd: | ||
- | quota-tools: | ||
- | systemd-sysvcompat: | ||
- | polkit: allow administration as unprivileged user | ||
- | curl: machinectl pull-tar and pull-raw [pending] | ||
- | ( 87/147) installing p11-kit | ||
- | Created symlink / | ||
- | ( 88/147) installing ca-certificates-utils | ||
- | ( 89/147) installing ca-certificates-mozilla | ||
- | ( 90/147) installing ca-certificates | ||
- | ( 91/147) installing libssh2 | ||
- | ( 92/147) installing libpsl | ||
- | ( 93/147) installing libnghttp2 | ||
- | ( 94/147) installing curl [###################### | ||
- | ( 95/147) installing npth [###################### | ||
- | ( 96/147) installing libksba | ||
- | ( 97/147) installing libassuan | ||
- | ( 98/147) installing libsecret | ||
- | Optional dependencies for libsecret | ||
- | org.freedesktop.secrets: | ||
- | ( 99/147) installing pinentry | ||
- | Optional dependencies for pinentry | ||
- | gtk2: gtk2 backend | ||
- | qt5-base: qt backend | ||
- | gcr: gnome3 backend | ||
- | (100/147) installing nettle | ||
- | (101/147) installing gnutls | ||
- | Optional dependencies for gnutls | ||
- | guile: for use with Guile bindings [pending] | ||
- | (102/147) installing sqlite | ||
- | (103/147) installing gnupg | ||
- | Optional dependencies for gnupg | ||
- | libldap: gpg2keys_ldap [installed] | ||
- | libusb-compat: | ||
- | pcsclite: scdaemon | ||
- | (104/147) installing gpgme | ||
- | (105/147) installing pacman-mirrorlist | ||
- | (106/147) installing archlinux-keyring | ||
- | (107/147) installing pacman | ||
- | Optional dependencies for pacman | ||
- | perl-locale-gettext: | ||
- | (108/147) installing systemd-sysvcompat | ||
- | (109/147) installing iputils | ||
- | Optional dependencies for iputils | ||
- | xinetd: for tftpd | ||
- | (110/147) installing iproute2 | ||
- | Optional dependencies for iproute2 | ||
- | linux-atm: ATM support | ||
- | (111/147) installing base [###################### | ||
- | Optional dependencies for base | ||
- | linux: bare metal support | ||
- | (112/147) installing m4 [###################### | ||
- | (113/147) installing diffutils | ||
- | (114/147) installing autoconf | ||
- | (115/147) installing automake | ||
- | (116/147) installing binutils | ||
- | (117/147) installing bison | ||
- | (118/147) installing fakeroot | ||
- | (119/147) installing flex [###################### | ||
- | (120/147) installing libmpc | ||
- | (121/147) installing gcc | ||
- | Optional dependencies for gcc | ||
- | lib32-gcc-libs: | ||
- | (122/147) installing groff | ||
- | Optional dependencies for groff | ||
- | netpbm: for use together with man -H command interaction in browsers | ||
- | psutils: for use together with man -H command interaction in browsers | ||
- | libxaw: for gxditview | ||
- | perl-file-homedir: | ||
- | (123/147) installing libtool | ||
- | (124/147) installing texinfo | ||
- | (125/147) installing gc [###################### | ||
- | (126/147) installing guile | ||
- | (127/147) installing make [###################### | ||
- | (128/147) installing patch | ||
- | Optional dependencies for patch | ||
- | ed: for patch -e functionality | ||
- | (129/147) installing pkgconf | ||
- | (130/147) installing sudo [###################### | ||
- | (131/147) installing which | ||
- | (132/147) installing mkinitcpio-busybox | ||
- | (133/147) installing mkinitcpio | ||
- | Optional dependencies for mkinitcpio | ||
- | xz: Use lzma or xz compression for the initramfs image [installed] | ||
- | bzip2: Use bzip2 compression for the initramfs image [installed] | ||
- | lzop: Use lzo compression for the initramfs image | ||
- | lz4: Use lz4 compression for the initramfs image [installed] | ||
- | mkinitcpio-nfs-utils: | ||
- | (134/147) installing linux-lts | ||
- | Optional dependencies for linux-lts | ||
- | crda: to set the correct wireless channels of your country | ||
- | linux-firmware: | ||
- | (135/147) installing linux-firmware | ||
- | (136/147) installing libaio | ||
- | (137/147) installing thin-provisioning-tools | ||
- | (138/147) installing lvm2 [###################### | ||
- | (139/147) installing libedit | ||
- | (140/147) installing dnssec-anchors | ||
- | (141/147) installing ldns [###################### | ||
- | Optional dependencies for ldns | ||
- | libpcap: ldns-dpa tool [installed] | ||
- | (142/147) installing openssh | ||
- | Optional dependencies for openssh | ||
- | xorg-xauth: X11 forwarding | ||
- | x11-ssh-askpass: | ||
- | (143/147) installing sshpass | ||
- | (144/147) installing vi [###################### | ||
- | Optional dependencies for vi | ||
- | s-nail: used by the preserve command for notification | ||
- | (145/147) installing vim-runtime | ||
- | Optional dependencies for vim-runtime | ||
- | sh: support for some tools and macros [installed] | ||
- | python: demoserver example tool | ||
- | gawk: mve tools upport [installed] | ||
- | (146/147) installing gpm | ||
- | (147/147) installing vim | ||
- | Optional dependencies for vim | ||
- | python2: Python 2 language support | ||
- | python: Python 3 language support | ||
- | ruby: Ruby language support | ||
- | lua: Lua language support | ||
- | perl: Perl language support [installed] | ||
- | tcl: Tcl language support | ||
- | :: Running post-transaction hooks... | ||
- | ( 1/14) Creating system user accounts... | ||
- | ( 2/14) Updating journal message catalog... | ||
- | ( 3/14) Reloading system manager configuration... | ||
- | Running in chroot, ignoring request: daemon-reload | ||
- | ( 4/14) Updating udev hardware database... | ||
- | ( 5/14) Applying kernel sysctl settings... | ||
- | ( 6/14) Creating temporary files... | ||
- | ( 7/14) Reloading device manager configuration... | ||
- | Running in chroot, ignoring request. | ||
- | ( 8/14) Arming ConditionNeedsUpdate... | ||
- | ( 9/14) Updating module dependencies... | ||
- | (10/14) Updating linux initcpios... | ||
- | ==> Building image from preset: / | ||
- | -> -k / | ||
- | ==> Starting build: 4.19.98-1-lts | ||
- | -> Running build hook: [base] | ||
- | -> Running build hook: [udev] | ||
- | -> Running build hook: [autodetect] | ||
- | -> Running build hook: [modconf] | ||
- | -> Running build hook: [block] | ||
- | -> Running build hook: [filesystems] | ||
- | -> Running build hook: [keyboard] | ||
- | -> Running build hook: [fsck] | ||
- | ==> Generating module dependencies | ||
- | ==> Creating gzip-compressed initcpio image: / | ||
- | ==> Image generation successful | ||
- | ==> Building image from preset: / | ||
- | -> -k / | ||
- | ==> Starting build: 4.19.98-1-lts | ||
- | -> Running build hook: [base] | ||
- | -> Running build hook: [udev] | ||
- | -> Running build hook: [modconf] | ||
- | -> Running build hook: [block] | ||
- | ==> WARNING: Possibly missing firmware for module: aic94xx | ||
- | ==> WARNING: Possibly missing firmware for module: wd719x | ||
- | -> Running build hook: [filesystems] | ||
- | -> Running build hook: [keyboard] | ||
- | -> Running build hook: [fsck] | ||
- | ==> Generating module dependencies | ||
- | ==> Creating gzip-compressed initcpio image: / | ||
- | ==> Image generation successful | ||
- | (11/14) Reloading system bus configuration... | ||
- | Running in chroot, ignoring request: try-reload-or-restart | ||
- | (12/14) Warn about old perl modules | ||
- | perl: warning: Setting locale failed. | ||
- | perl: warning: Please check that your locale settings: | ||
- | LANGUAGE = (unset), | ||
- | LC_ALL = (unset), | ||
- | LC_MESSAGES = "", | ||
- | LANG = " | ||
- | are supported and installed on your system. | ||
- | perl: warning: Falling back to the standard locale (" | ||
- | (13/14) Updating the info directory file... | ||
- | (14/14) Rebuilding certificate stores... | ||
- | pacstrap /mnt base base-devel linux-lts linux-firmware lvm2 openssh sshpass v 32.27s user 7.97s system 13% cpu 4:48.26 total | ||
- | </ | ||
- | |||
- | In den **Mount-Point** | ||
- | * ''/ | ||
- | werden nachfolgende Paketgruppen bzw. Pakete | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | installiert. | ||
- | |||
- | Optional, aber **__dringend empfohlen__**, | ||
- | * '' | ||
- | * '' | ||
- | |||
- | ===== Systemkonfiguration: | ||
- | |||
- | ==== /etc/fstab erstellen ==== | ||
- | |||
- | Nachfolgender Befehl erzeugt die Konfigurationsdatei **''/ | ||
- | < | ||
- | root@archiso ~ # genfstab -Up /mnt > / | ||
- | </ | ||
- | |||
- | Der so erzeugte Inhalt, kann mit nachfolgendem Befehl überprüft werden und sollte eine Ausgabe wie die nachfolgende zum Vorschein bringen: | ||
- | < | ||
- | root@archiso ~ # cat / | ||
- | # / | ||
- | UUID=ca7daa0b-5b2a-4d0d-b254-63f48ae927b5 / | ||
- | |||
- | # /dev/vda1 LABEL=EFIBOOT | ||
- | UUID=B616-2763 | ||
- | |||
- | # / | ||
- | UUID=b809dbd5-db40-42de-add1-188d9ab6dde4 / | ||
- | |||
- | # / | ||
- | UUID=5eca73c4-afe2-4fce-a7cc-57481a0c7a7d / | ||
- | |||
- | # / | ||
- | UUID=1e0773ba-9454-41a9-939d-b2895ff271ce / | ||
- | |||
- | # / | ||
- | UUID=48a4d55a-4d81-4864-b075-22c4a40b3330 none | ||
- | |||
- | </ | ||
- | |||
- | ==== arch-chroot /mnt ==== | ||
- | |||
- | Jetzt ist es an der Zeit, **in das installierte System zu wechseln** und weitere Konfigurationen vorzunehmen, | ||
- | < | ||
- | root@archiso ~ # arch-chroot /mnt/ | ||
- | [root@archiso /]# | ||
- | </ | ||
- | |||
- | :!: **WICHTIG** - **Der '' | ||
- | |||
- | ==== / | ||
- | |||
- | Nachfolgender Befehl setzt den **Hostnamen** für den Server: | ||
- | < | ||
- | # echo archlinux > / | ||
- | </ | ||
- | |||
- | ==== / | ||
- | |||
- | Nachfolgender Befehl setzt die Systemsprache auf **English-US Ausprägung UTF-8** | ||
- | |||
- | (Für **Deutsch-DE Ausprägung UTF-8**, __wäre__ '' | ||
- | < | ||
- | # echo LANG=en_US.UTF-8 > / | ||
- | </ | ||
- | |||
- | ==== / | ||
- | |||
- | Nachfolgende Veränderungen der Konfigurationsdatei ''/ | ||
- | * '' | ||
- | * '' | ||
- | setzen die erweiterten Systemsprachenspezifikation auf **English-US Ausprägung UTF-8** durch **ein kommentieren** der entsprechenden Systemsprache. | ||
- | |||
- | (Für **Deutsch-DE Ausprägung UTF-8** wäre | ||
- | * ''# | ||
- | * ''# | ||
- | * ''# | ||
- | **einzukommentieren**) | ||
- | |||
- | Nachfolgend soll die Konfigurationsdatei mit dem Text-Editor '' | ||
- | < | ||
- | [root@archiso /]# vim / | ||
- | </ | ||
- | |||
- | Nachfolgender Befehl gibt zur Kontrolle, nur die ein kommentieren Zeilen der Konfigurationsdatei ''/ | ||
- | < | ||
- | [root@archiso /]# egrep -v ' | ||
- | en_US.UTF-8 UTF-8 | ||
- | en_US ISO-8859-1 | ||
- | </ | ||
- | |||
- | Der abschließende Befehl setzt die Konfiguration dann im System um: | ||
- | < | ||
- | [root@archiso /]# locale-gen | ||
- | Generating locales... | ||
- | en_US.UTF-8... done | ||
- | en_US.ISO-8859-1... done | ||
- | Generation complete. | ||
- | </ | ||
- | |||
- | ==== / | ||
- | |||
- | Nachfolgende Befehle legen das **Tastaturlayout**: | ||
- | < | ||
- | [root@archiso /]# echo KEYMAP=de-latin1-nodeadkeys > / | ||
- | </ | ||
- | |||
- | und die **Schriftart der '' | ||
- | < | ||
- | [root@archiso /]# echo FONT=lat9w-16 >> / | ||
- | </ | ||
- | |||
- | ==== / | ||
- | |||
- | Nachfolgender Befehl legt einen Verweis (Link) auf die zu verwendende **Zeitzone**, | ||
- | < | ||
- | [root@archiso /]# ln -sf / | ||
- | </ | ||
- | |||
- | ==== /etc/hosts ==== | ||
- | |||
- | Nachfolgende Befehle erstellen die Konfigurationsdatei ''/ | ||
- | < | ||
- | [root@archiso /]# echo -e '#< | ||
- | [root@archiso /]# echo -e ' | ||
- | [root@archiso /]# echo -e ':: | ||
- | </ | ||
- | |||
- | :!: **HINWEIS** - Eine Ausrichtung der einzelnen Zeilen **__muss__** ebenfalls durch Verwendung des Texteditors '' | ||
- | |||
- | Nachfolgend soll die Konfigurationsdatei mit dem Text-Editor '' | ||
- | < | ||
- | [root@archiso /]# vim /etc/hosts | ||
- | </ | ||
- | |||
- | Der Inhalt der Konfigurationsdatei ''/ | ||
- | < | ||
- | [root@archiso /]# cat /etc/hosts | ||
- | # Static table lookup for hostnames. | ||
- | # See hosts(5) for details. | ||
- | |||
- | #< | ||
- | 127.0.0.1 | ||
- | ::1 localhost.localdomain | ||
- | </ | ||
- | |||
- | ==== / | ||
- | |||
- | :!: **HINWEIS** - **Der Namensserver aus dem LIVE-System sollte bereits vorhanden sein!** | ||
- | |||
- | Zuerst sollte die Konfigurationsdatei ''/ | ||
- | < | ||
- | [root@archiso /]# cat / | ||
- | # Resolver configuration file. | ||
- | # See resolv.conf(5) for details. | ||
- | nameserver 192.168.1.20 | ||
- | </ | ||
- | |||
- | In der Konfigurationsdatei **''/ | ||
- | |||
- | :!: HINWEIS - Die Wiederholung des Befehls mit weiteren Namensservern erweitert die Datei entsprechend! | ||
- | |||
- | < | ||
- | [root@archiso /]# echo ' | ||
- | </ | ||
- | |||
- | ==== / | ||
- | |||
- | :!: **WICHTIG** - **Nachfolgende Anpassung ist __sehr__ wichtig, da sonst das LVM nicht genutzt werden kann und der Start von der Festplatte von [[https:// | ||
- | |||
- | Nachfolgende Ergänzung in der Konfigurationsdatei | ||
- | * **''/ | ||
- | **__muss__** zwingend durchgeführt werden. | ||
- | |||
- | Zuerst soll aber eine **Sicherungskopie** der Konfigurationsdatei ''/ | ||
- | < | ||
- | [root@archiso /]# cp -a / | ||
- | </ | ||
- | |||
- | Anschließend muss das Laden des systembedingten, | ||
- | * **'' | ||
- | wie folgt **__VOR__** dem Schlüsselwort **'' | ||
- | < | ||
- | [root@archiso /]# vim / | ||
- | </ | ||
- | |||
- | (**Nur relevanter Ausschnitt**) | ||
- | **__VORHER: | ||
- | < | ||
- | HOOKS=(base udev autodetect modconf block filesystems keyboard fsck) | ||
- | </ | ||
- | |||
- | **__NACHHER: | ||
- | < | ||
- | # Tachtler | ||
- | # default: HOOKS=(base udev autodetect modconf block filesystems keyboard fsck) | ||
- | HOOKS=(base udev autodetect modconf block lvm2 filesystems keyboard fsck) | ||
- | </ | ||
- | |||
- | ==== initramfs: mkinitcpio ==== | ||
- | |||
- | Durch den nachfolgenden Befehl wird die **initramfs**-Erstellung durchgeführt: | ||
- | < | ||
- | [root@archiso /]# mkinitcpio -p linux-lts | ||
- | ==> Building image from preset: / | ||
- | -> -k / | ||
- | ==> Starting build: 4.19.98-1-lts | ||
- | -> Running build hook: [base] | ||
- | -> Running build hook: [udev] | ||
- | -> Running build hook: [autodetect] | ||
- | -> Running build hook: [modconf] | ||
- | -> Running build hook: [block] | ||
- | -> Running build hook: [lvm2] | ||
- | -> Running build hook: [filesystems] | ||
- | -> Running build hook: [keyboard] | ||
- | -> Running build hook: [fsck] | ||
- | ==> Generating module dependencies | ||
- | ==> Creating gzip-compressed initcpio image: / | ||
- | ==> Image generation successful | ||
- | ==> Building image from preset: / | ||
- | -> -k / | ||
- | ==> Starting build: 4.19.98-1-lts | ||
- | -> Running build hook: [base] | ||
- | -> Running build hook: [udev] | ||
- | -> Running build hook: [modconf] | ||
- | -> Running build hook: [block] | ||
- | ==> WARNING: Possibly missing firmware for module: aic94xx | ||
- | ==> WARNING: Possibly missing firmware for module: wd719x | ||
- | -> Running build hook: [lvm2] | ||
- | -> Running build hook: [filesystems] | ||
- | -> Running build hook: [keyboard] | ||
- | -> Running build hook: [fsck] | ||
- | ==> Generating module dependencies | ||
- | ==> Creating gzip-compressed initcpio image: / | ||
- | ==> Image generation successful | ||
- | </ | ||
- | |||
- | ==== Bootloader: systemd-boot ==== | ||
- | |||
- | Zum Start des Servers ist ein sogenannter **" | ||
- | * **systemd-boot** | ||
- | installiert werden, was mit nachfolgendem Befehl durchgeführt werden soll: | ||
- | < | ||
- | [root@archiso /]# pacman -S --noconfirm efibootmgr dosfstools gptfdisk | ||
- | resolving dependencies... | ||
- | looking for conflicting packages... | ||
- | |||
- | Packages (4) efivar-37-3 | ||
- | |||
- | Total Download Size: 0.35 MiB | ||
- | Total Installed Size: 1.30 MiB | ||
- | |||
- | :: Proceed with installation? | ||
- | :: Retrieving packages... | ||
- | | ||
- | | ||
- | | ||
- | | ||
- | (4/4) checking keys in keyring | ||
- | (4/4) checking package integrity | ||
- | (4/4) loading package files [###################### | ||
- | (4/4) checking for file conflicts | ||
- | (4/4) checking available disk space [###################### | ||
- | :: Processing package changes... | ||
- | (1/4) installing efivar | ||
- | (2/4) installing efibootmgr | ||
- | (3/4) installing dosfstools | ||
- | (4/4) installing gptfdisk | ||
- | :: Running post-transaction hooks... | ||
- | (1/1) Arming ConditionNeedsUpdate... | ||
- | </ | ||
- | |||
- | Anschließend ist die Konfiguration von **systemd-boot** für das Starten von der **Festplatte** einzurichten, | ||
- | < | ||
- | [root@archiso /]# bootctl install | ||
- | Created "/ | ||
- | Created "/ | ||
- | Created "/ | ||
- | Created "/ | ||
- | Created "/ | ||
- | Created "/ | ||
- | Copied "/ | ||
- | Copied "/ | ||
- | Created "/ | ||
- | Random seed file / | ||
- | Not installing system token, since we are running in a virtualized environment. | ||
- | Created EFI boot entry "Linux Boot Manager" | ||
- | </ | ||
- | |||
- | Als nächstes muss der entsprechende Kernel-Boot-Menü-Eintrag in der **__neu__ anzulegenden** Konfigurationsdatei: | ||
- | * **''/ | ||
- | mit nachfolgendem Inhalt erstellt werden, was mit nachfolgendem Befehl durchgeführt werden kann: | ||
- | < | ||
- | [root@archiso /]# vim / | ||
- | </ | ||
- | <code ini> | ||
- | title Arch Linux | ||
- | linux / | ||
- | initrd | ||
- | options | ||
- | </ | ||
- | |||
- | Anschließend sollte noch der entsprechende **" | ||
- | * **''/ | ||
- | mit nachfolgendem Inhalt erstellt werden, was mit nachfolgendem Befehl durchgeführt werden kann: | ||
- | < | ||
- | [root@archiso /]# vim / | ||
- | </ | ||
- | <code ini> | ||
- | title Arch Linux Fallback | ||
- | linux / | ||
- | initrd | ||
- | options | ||
- | </ | ||
- | |||
- | Anschließend muss noch die entsprechende **" | ||
- | * **''/ | ||
- | **angepasst** werden, was mit nachfolgendem Befehl und Inhalt notwendig ist: | ||
- | < | ||
- | [root@archiso /]# vim / | ||
- | </ | ||
- | <code ini> | ||
- | # Tachtler | ||
- | # default: #timeout 3 | ||
- | timeout 5 | ||
- | # Tachtler | ||
- | # default: # | ||
- | console-mode max | ||
- | # Tachtler | ||
- | # default: default 3971a9bf81694163a6887fd8e5d57abe-* | ||
- | default arch-uefi | ||
- | # Tachtler | ||
- | editor no | ||
- | </ | ||
- | |||
- | **__Erklärungen__** | ||
- | |||
- | * <code ini> | ||
- | |||
- | **'' | ||
- | |||
- | * <code ini> | ||
- | |||
- | **'' | ||
- | |||
- | :!: **HINWEIS** - In diesem Fall kommt man nur durch Drücken der **[Leer/ | ||
- | |||
- | * <code ini> | ||
- | |||
- | **'' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | * **'' | ||
- | * '' | ||
- | |||
- | * <code ini> | ||
- | |||
- | **'' | ||
- | * '' | ||
- | * **'' | ||
- | |||
- | :!: **WICHTIG** - **Da durch das Hinzufügen des Kernel-Parameters '' | ||
- | |||
- | **__Nicht gesetzte zusätzlich Werte__** | ||
- | |||
- | * <code ini> | ||
- | |||
- | **'' | ||
- | * **'' | ||
- | * '' | ||
- | |||
- | * <code ini> | ||
- | |||
- | **'' | ||
- | * **'' | ||
- | * '' | ||
- | | ||
- | Damit die Änderungen an der Konfigurationsdatei ''/ | ||
- | < | ||
- | [root@archlinux ~]# bootctl update | ||
- | Copied "/ | ||
- | Copied "/ | ||
- | </ | ||
- | |||
- | Zum Abaschluss sind nun die entsprechenden Einträge im EFI via **EFISTUN** zu erstellen, was mit den beiden nachfolgenden Befehlen durchzuführen ist: | ||
- | < | ||
- | [root@archiso /]# efibootmgr -c -d /dev/vda -p 1 -l \vmlinuz-linux-lts -L "Arch Linux LTS efistub" | ||
- | </ | ||
- | < | ||
- | [root@archiso /]# efibootmgr -c -d /dev/vda -p 1 -l \vmlinuz-linux-lts -L "Arch Linux LTS efistub" | ||
- | BootCurrent: | ||
- | Timeout: 0 seconds | ||
- | BootOrder: 0004, | ||
- | Boot0000* UiApp | ||
- | Boot0001* UEFI QEMU DVD-ROM QM00001 | ||
- | Boot0002* UEFI Misc Device | ||
- | Boot0003* Linux Boot Manager | ||
- | Boot0004* Arch Linux LTS efistub | ||
- | </ | ||
- | |||
- | < | ||
- | [root@archiso /]# efibootmgr -c -d /dev/vda -p 1 -l \vmlinuz-linux-lts -L "Arch Linux LTS fallback efistub" | ||
- | </ | ||
- | < | ||
- | [root@archiso /]# efibootmgr -c -d /dev/vda -p 1 -l \vmlinuz-linux-lts -L "Arch Linux LTS fallback efistub" | ||
- | BootCurrent: | ||
- | Timeout: 0 seconds | ||
- | BootOrder: 0005, | ||
- | Boot0000* UiApp | ||
- | Boot0001* UEFI QEMU DVD-ROM QM00001 | ||
- | Boot0002* UEFI Misc Device | ||
- | Boot0003* Linux Boot Manager | ||
- | Boot0004* Arch Linux LTS efistub | ||
- | Boot0005* Arch Linux LTS fallback efistub | ||
- | </ | ||
- | |||
- | Zusätzlich zur Anzeige eines **Boot-Menüs**, | ||
- | < | ||
- | [root@archiso /]# efibootmgr --bootorder 0003, | ||
- | BootCurrent: | ||
- | Timeout: 0 seconds | ||
- | BootOrder: 0003, | ||
- | Boot0000* UiApp | ||
- | Boot0001* UEFI QEMU DVD-ROM QM00001 | ||
- | Boot0002* UEFI Misc Device | ||
- | Boot0003* Linux Boot Manager | ||
- | Boot0004* Arch Linux LTS efistub | ||
- | Boot0005* Arch Linux LTS fallback efistub | ||
- | </ | ||
- | |||
- | :!: **WICHTIG** - **Wenn der Menüeintrag, | ||
- | * **'' | ||
- | **nicht in der Boot-Reihenfolge am __Anfang__ steht, wird kein Boot-Menü angezeigt!** | ||
- | |||
- | Immer wenn es eine neue Version von '' | ||
- | |||
- | Nachfolgend soll ein **Pacman-Hook** für das automatische Update des Bootmanagers konfiguriert werden. | ||
- | |||
- | Nachfolgende Konfigurationsdatei ist dazu **__neu__ zu erstellen**: | ||
- | * **''/ | ||
- | |||
- | Zuerst muss ein **__neues__ Verzeichnis** mit nachfolgendem Befehl erstellt werden: | ||
- | < | ||
- | [root@archiso /]# mkdir / | ||
- | </ | ||
- | |||
- | Der Inhalt des **Pacman-Hooks** muss wie folgt aussehen: | ||
- | < | ||
- | [root@archiso /]# vim / | ||
- | </ | ||
- | <code ini> | ||
- | [Trigger] | ||
- | Type = Package | ||
- | Operation = Upgrade | ||
- | Target = systemd | ||
- | |||
- | [Action] | ||
- | Description = Updating systemd-boot | ||
- | When = PostTransaction | ||
- | Exec = / | ||
- | </ | ||
- | |||
- | ==== Passwort: root ==== | ||
- | |||
- | Es ist sinnvoll, dass der Benutzer **'' | ||
- | < | ||
- | [root@archiso /]# passwd | ||
- | New password: | ||
- | Retype new password: | ||
- | passwd: password updated successfully | ||
- | </ | ||
- | |||
- | Das Passwort ist in der '' | ||
- | |||
- | ===== Neustart ===== | ||
- | |||
- | Wenn alle Konfigurationen durchgeführt sind, kann nun das installierte [[https:// | ||
- | < | ||
- | # exit | ||
- | exit | ||
- | arch-chroot /mnt/ 12.59s user 2.20s system 0% cpu 1:40:38.73 total | ||
- | </ | ||
- | |||
- | :!: **WICHTIG** - **Der '' | ||
- | |||
- | Der eigentliche **Neustart** wird dann mit nachfolgendem Befehl durchgeführt: | ||
- | < | ||
- | root@archiso ~ # reboot | ||
- | </ | ||
- | |||
- | Nach erfolgreichem Neustart, sollte nachfolgender **" | ||
- | |||
- | {{: | ||
- | |||
- | Nach erfolgreichem **" | ||
- | |||
- | {{: | ||
- | |||
- | ===== Hinweise ==== | ||
- | |||
- | Nach dem erfolgreichen ersten Start des Servers sind die folgenden Gegebenheiten zu beachten: | ||
- | - Es gibt **__KEINE__** Benutzer die sich anmelden können, **ausser** der Benutzer **'' | ||
- | - Es steht **__KEINE__** Netzwerkanbindung zur Verfügung! | ||
- | - Es stehen **__KEINE__** Dienste/ | ||
- | |||
- | ===== Inbetriebnahme ===== | ||
- | |||
- | Um [[https:// | ||
- | |||
- | - Konfiguration einer **Netzwerkkarte** unter Verwendung und Start durch '' | ||
- | - Konfiguration und Start des **SSH**-Dienstes/ | ||
- | - Zugriff **__vorübergehend__** durch den Benutzer **'' | ||
- | - Komfortkonfiguration für den Benutzer für die Verwendung der '' | ||
- | - '' | ||
- | - '' | ||
- | - '' | ||
- | |||
- | ==== Netzwerk: systemd ==== | ||
- | |||
- | Damit beim Start oder Neustart des Servers gleich eine Netzwerkverbindung mit gestartet wird, soll das sich bereits auf dem Server befindliche '' | ||
- | |||
- | Dazu ist es erfordelrich, | ||
- | |||
- | Dazu soll zuerst mit nachfolgendem Befehl ermittelt werden, welche Netwzerkkarten auf dem Server vorhanden sind und welche Bezeichnung diese haben: | ||
- | < | ||
- | [root@archlinux ~]# ip a | ||
- | 1: lo: < | ||
- | link/ | ||
- | inet 127.0.0.1/8 scope host lo | ||
- | | ||
- | inet6 ::1/128 scope host | ||
- | | ||
- | 2: eth0: < | ||
- | link/ether 52: | ||
- | </ | ||
- | |||
- | * //Hier ist nur **eine** Netzwerkkarte mit der Bezeichnung **'' | ||
- | |||
- | Zur Konfiguration der Netzwerkkarte mit der Bezeichnung '' | ||
- | * **''/ | ||
- | < | ||
- | [root@archlinux ~]# vim / | ||
- | </ | ||
- | |||
- | Der Inhalt der Konfigurationsdatei könnte dann wie folgt aussehen: | ||
- | <code ini> | ||
- | [Match] | ||
- | Name=eth0 | ||
- | |||
- | [Network] | ||
- | Address=192.168.1.250/ | ||
- | Gateway=192.168.1.1 | ||
- | DNS=192.168.1.1 | ||
- | </ | ||
- | |||
- | oder auch inklusive **ipv6** Adressen: | ||
- | |||
- | <code ini> | ||
- | [Match] | ||
- | Name=eth0 | ||
- | |||
- | [Network] | ||
- | Address=192.168.1.250/ | ||
- | Gateway=192.168.1.1 | ||
- | DNS=192.168.1.1 | ||
- | |||
- | Address=fd00:: | ||
- | Gateway=fd00:: | ||
- | DNS=fd00::1 | ||
- | |||
- | Address=fe80:: | ||
- | LinkLocalAddressing=no | ||
- | </ | ||
- | |||
- | :!: **HINWEIS** - In der **ipv6**-Konfiguration wurde das **__automatische__** beziehen einer ipv6-Adresse für die **LinkLocal**-Adresse deaktiviert, | ||
- | |||
- | :!: **HINWEIS** - Bein Befehl '' | ||
- | < | ||
- | [root@archlinux ~]# ping -c 3 fe80:: | ||
- | PING fe80:: | ||
- | 64 bytes from fe80:: | ||
- | 64 bytes from fe80:: | ||
- | 64 bytes from fe80:: | ||
- | |||
- | --- fe80:: | ||
- | 3 packets transmitted, | ||
- | rtt min/ | ||
- | </ | ||
- | |||
- | Anschließend sollte noch mit nachfolgendem Befehl überprüft werden, ob eine anderer Dienst/ | ||
- | < | ||
- | [root@archlinux ~]# systemctl list-unit-files | grep netctl | ||
- | </ | ||
- | |||
- | und | ||
- | < | ||
- | [root@archlinux ~]# systemctl list-unit-files | grep dhcpcd | ||
- | </ | ||
- | |||
- | :!: **HINWEIS** - Falls hier ein Treffer erzielt wird, sollte der Dienst/ | ||
- | - **gestoppt** | ||
- | - **deaktiviert** | ||
- | werden, was mit nachfolgenden Befehlen erfolgen kann: | ||
- | < | ||
- | [root@archlinux ~]# systemctl stop netctl@eth0.service | ||
- | </ | ||
- | |||
- | und | ||
- | < | ||
- | [root@archlinux ~]# systemctl disable netctl@eth0.service | ||
- | </ | ||
- | |||
- | bzw. | ||
- | < | ||
- | [root@archlinux ~]# systemctl stop dhcpcd.service | ||
- | </ | ||
- | |||
- | und | ||
- | < | ||
- | [root@archlinux ~]# systemctl disable dhcpcd.service | ||
- | </ | ||
- | |||
- | Damit nun der '' | ||
- | - **aktiviert** | ||
- | - **gestartet** | ||
- | wird, was mit nachfolgenden Befehlen durchgeführt werden kann: | ||
- | < | ||
- | [root@archlinux ~]# systemctl enable systemd-networkd.service | ||
- | Created symlink / | ||
- | Created symlink / | ||
- | Created symlink / | ||
- | Created symlink / | ||
- | </ | ||
- | |||
- | und | ||
- | < | ||
- | [root@archlinux ~]# systemctl start systemd-networkd.service | ||
- | </ | ||
- | |||
- | Ein Überprüfung, | ||
- | < | ||
- | [root@archlinux ~]# ip a | ||
- | 1: lo: < | ||
- | link/ | ||
- | inet 127.0.0.1/8 scope host lo | ||
- | | ||
- | inet6 ::1/128 scope host | ||
- | | ||
- | 2: eth0: < | ||
- | link/ether 52: | ||
- | inet 192.168.1.250/ | ||
- | | ||
- | inet6 fe80:: | ||
- | | ||
- | </ | ||
- | |||
- | Eine Überprüfung mit nachfolgendem Befehl zeigt die aktuellen Routen, inklusive der **'' | ||
- | < | ||
- | root@archiso ~ # ip ro | ||
- | default via 192.168.1.10 dev ens3 | ||
- | 192.168.1.0/ | ||
- | </ | ||
- | |||
- | Zuerst sollte die Konfigurationsdatei ''/ | ||
- | < | ||
- | [root@archiso /]# cat / | ||
- | # Resolver configuration file. | ||
- | # See resolv.conf(5) for details. | ||
- | </ | ||
- | |||
- | In der Konfigurationsdatei **''/ | ||
- | |||
- | :!: HINWEIS - Die Wiederholung des Befehls mit weiteren Namensservern erweitert die Datei entsprechend! | ||
- | |||
- | < | ||
- | [root@archiso /]# echo ' | ||
- | </ | ||
- | |||
- | ==== SSH-Dienst/ | ||
- | |||
- | Um den **SSH**-Dienst/ | ||
- | < | ||
- | [root@archlinux ~]# systemctl enable sshd.service | ||
- | Created symlink / | ||
- | </ | ||
- | |||
- | Eine Überprüfung, | ||
- | < | ||
- | [root@archlinux ~]# systemctl list-unit-files --type=service | grep -E ^sshd | ||
- | sshd.service | ||
- | </ | ||
- | bzw. | ||
- | < | ||
- | [root@archlinux ~]# systemctl is-enabled sshd.service | ||
- | enabled | ||
- | </ | ||
- | |||
- | Abschließend soll noch die **Anmeldung via Passwort** - **__vorübergehend__** während der Konfigurationsphase aktiviert werden. | ||
- | |||
- | Dazu soll mit nachfolgendem Befehl eine Sicherungskopie der originalen Konfigurationsdatei | ||
- | * ''/ | ||
- | mit dem Namen | ||
- | * ''/ | ||
- | ersteltl werden: | ||
- | < | ||
- | [root@archlinux ~]# cp -a / | ||
- | </ | ||
- | |||
- | Anschließend soll nachfolgende Konfiguration in der Konfigurationsdatei ''/ | ||
- | < | ||
- | [root@archlinux ~]# vim / | ||
- | </ | ||
- | |||
- | (**Nur relevanter Ausschnitt**: | ||
- | <code bash> | ||
- | PasswordAuthentication yes | ||
- | </ | ||
- | |||
- | (**Nur relevanter Ausschnitt**: | ||
- | <code bash> | ||
- | PermitRootLogin yes | ||
- | </ | ||
- | |||
- | Abschließend kann der **SSH**-Dienst/ | ||
- | < | ||
- | [root@archlinux ~]# systemctl start sshd.service | ||
- | </ | ||
- | |||
- | Eine Überprüfung ob der **SSH**-Dienst/ | ||
- | < | ||
- | root@archiso ~ # systemctl status sshd.service | ||
- | ● sshd.service - OpenSSH Daemon | ||
- | | ||
- | | ||
- | Main PID: 775 (sshd) | ||
- | Tasks: 1 (limit: 2330) | ||
- | | ||
- | | ||
- | | ||
- | |||
- | Dec 29 11:43:56 archiso systemd[1]: Started OpenSSH Daemon. | ||
- | Dec 29 11:43:56 archiso sshd[775]: Server listening on 0.0.0.0 port 22. | ||
- | Dec 29 11:43:56 archiso sshd[775]: Server listening on :: port 22. | ||
- | |||
- | </ | ||
- | |||
- | Dann kann noch einmal die IP-Adresse des Servers in Erfahrung gebracht werden, damit eine Verbindung zum Server hergestellt werden kann. Dies kann durch Ausführung des nachfolgenden Befehls erfolgen: | ||
- | < | ||
- | [root@archlinux ~]# ip a | ||
- | 1: lo: < | ||
- | link/ | ||
- | inet 127.0.0.1/8 scope host lo | ||
- | | ||
- | inet6 ::1/128 scope host | ||
- | | ||
- | 2: eth0: < | ||
- | link/ether 52: | ||
- | inet 192.168.1.250/ | ||
- | | ||
- | inet6 fe80:: | ||
- | | ||
- | </ | ||
- | |||
- | :!: **BEISPIEL** - Die IP-Adresse des Servers aus oben genanntem Beispiel wäre hier: **'' | ||
- | |||
- | Jetzt kann eine erste Verbindung als Benutzer **'' | ||
- | < | ||
- | $ ssh root@192.168.1.250 | ||
- | The authenticity of host ' | ||
- | ECDSA key fingerprint is SHA256: | ||
- | ECDSA key fingerprint is MD5: | ||
- | Are you sure you want to continue connecting (yes/no)? yes | ||
- | Warning: Permanently added ' | ||
- | root@192.168.1.250' | ||
- | Last login: Fri Jan 10 13:43:16 2020 | ||
- | [root@archlinux ~]# | ||
- | </ | ||
- | |||
- | ==== ~/ | ||
- | |||
- | Damit die Konfigurationsdatei **'' | ||
- | * **'' | ||
- | **falls nicht schon vorhanden**, | ||
- | < | ||
- | [root@archlinux ~]# vim ~/ | ||
- | </ | ||
- | <code bash> | ||
- | # | ||
- | # ~/ | ||
- | # | ||
- | |||
- | [[ -f ~/.bashrc ]] && . ~/.bashrc | ||
- | </ | ||
- | |||
- | ==== ~/.bashrc ==== | ||
- | |||
- | Wer z.B. Nutzer von [[https:// | ||
- | * '' | ||
- | ist. | ||
- | |||
- | Um auf diesen " | ||
- | * '' | ||
- | |||
- | Der Inhalt, welcher hier an z.B. [[https:// | ||
- | < | ||
- | [root@archlinux ~]# vim ~/.bashrc | ||
- | </ | ||
- | <code bash> | ||
- | # | ||
- | # ~/.bashrc | ||
- | # | ||
- | |||
- | # If not running interactively, | ||
- | [[ $- != *i* ]] && return | ||
- | |||
- | # Tachtler | ||
- | # default: alias ls='ls --color=auto' | ||
- | #alias ls='ls --color=auto' | ||
- | PS1=' | ||
- | |||
- | # Tachtler - NEW - | ||
- | alias ll='ls -l --color=auto' | ||
- | alias l.='ls -d .* --color=auto' | ||
- | alias ls='ls --color=auto' | ||
- | </ | ||
- | |||
- | :!: **HINWEIS** - Nach der **Beendigung** z.B. eines '' | ||
- | |||
- | ==== ~/.vimrc ==== | ||
- | |||
- | Wer z.B. Nutzer von [[https:// | ||
- | * '' | ||
- | * '' | ||
- | * '' | ||
- | erfordern. | ||
- | |||
- | Um auf diesen " | ||
- | * '' | ||
- | |||
- | Der Inhalt, welcher hier an z.B. [[https:// | ||
- | < | ||
- | [root@archlinux ~]# vim ~/.vimrc | ||
- | </ | ||
- | <code bash> | ||
- | syntax on | ||
- | |||
- | set mouse-=a | ||
- | set tabstop=4 | ||
- | </ | ||