tachtler:arcchlinux_-_minimal_server_installation
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungNächste ÜberarbeitungBeide Seiten der Revision | ||
tachtler:arcchlinux_-_minimal_server_installation [2020/01/12 12:51] – [Basissystem: /mnt] klaus | tachtler:arcchlinux_-_minimal_server_installation [2020/01/24 06:48] – [Installation] klaus | ||
---|---|---|---|
Zeile 435: | Zeile 435: | ||
Logical volume " | Logical volume " | ||
</ | </ | ||
- | < | ||
Mit nachfolgendem Befehl kann überprüft werden, ob die Neuanlagen erfolgreich durchführt wurden: | Mit nachfolgendem Befehl kann überprüft werden, ob die Neuanlagen erfolgreich durchführt wurden: | ||
Zeile 1476: | Zeile 1475: | ||
installiert werden, was mit nachfolgendem Befehl durchgeführt werden soll: | installiert werden, was mit nachfolgendem Befehl durchgeführt werden soll: | ||
< | < | ||
- | [root@archiso /]# pacman -S grub --noconfirm | + | [root@archiso /]# pacman -S --noconfirm |
resolving dependencies... | resolving dependencies... | ||
looking for conflicting packages... | looking for conflicting packages... | ||
Zeile 1657: | Zeile 1656: | ||
[Network] | [Network] | ||
- | Address=192.168.1.250 | + | Address=192.168.1.250/24 |
Gateway=192.168.1.10 | Gateway=192.168.1.10 | ||
DNS=10.7.1.20 | DNS=10.7.1.20 | ||
+ | </ | ||
+ | |||
+ | oder auch inklusive **ipv6** Adressen: | ||
+ | |||
+ | <code ini> | ||
+ | [Match] | ||
+ | Name=eth0 | ||
+ | |||
+ | [Network] | ||
+ | Address=192.168.1.250/ | ||
+ | Gateway=192.168.1.1 | ||
+ | DNS=192.168.122.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/ | ||
</ | </ | ||
Zeile 1793: | Zeile 1826: | ||
(**Nur relevanter Ausschnitt**: | (**Nur relevanter Ausschnitt**: | ||
<code bash> | <code bash> | ||
- | ParmitRootLogin | + | PermitRootLogin |
</ | </ | ||
Zeile 1912: | Zeile 1945: | ||
set mouse-=a | set mouse-=a | ||
set tabstop=4 | set tabstop=4 | ||
+ | </ | ||
+ | |||
+ | ===== Arch User Repository ==== | ||
+ | |||
+ | Das [[https:// | ||
+ | |||
+ | * //Quelle: [[https:// | ||
+ | |||
+ | ^ Beschreibung | ||
+ | | Homepage | ||
+ | | Dokumentation | ||
+ | |||
+ | Um das [[https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Inspiriert von '' | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Ab hier werden '' | ||
+ | < | ||
+ | $ su - | ||
+ | Password: | ||
+ | </ | ||
+ | |||
+ | Damit eine Installation von [[https:// | ||
+ | |||
+ | Ein Benutzer, | ||
+ | - hier **'' | ||
+ | - in die Gruppe **'' | ||
+ | - im Verzeichnis ''/ | ||
+ | - in der Datei '' | ||
+ | - das Herunterladen via '' | ||
+ | |||
+ | Mit dieser Konfiguration kann der Benutzer '' | ||
+ | |||
+ | :!: **HINWEIS** - **Der Befehl '' | ||
+ | |||
+ | Ab hier werden '' | ||
+ | < | ||
+ | $ su - | ||
+ | Password: | ||
+ | </ | ||
+ | |||
+ | ==== Abhängigkeiten installieren ==== | ||
+ | |||
+ | Um das Herunterladen von [[https:// | ||
+ | < | ||
+ | [root@archlinux ~]# pacman -S --noconfirm --needed base-devel git | ||
+ | warning: autoconf-2.69-6 is up to date -- skipping | ||
+ | warning: automake-1.16.1-2 is up to date -- skipping | ||
+ | warning: binutils-2.33.1-2 is up to date -- skipping | ||
+ | warning: bison-3.5-1 is up to date -- skipping | ||
+ | warning: fakeroot-1.24-2 is up to date -- skipping | ||
+ | warning: file-5.38-1 is up to date -- skipping | ||
+ | warning: findutils-4.7.0-2 is up to date -- skipping | ||
+ | warning: flex-2.6.4-3 is up to date -- skipping | ||
+ | warning: gawk-5.0.1-2 is up to date -- skipping | ||
+ | warning: gcc-9.2.0-4 is up to date -- skipping | ||
+ | warning: gettext-0.20.1-3 is up to date -- skipping | ||
+ | warning: grep-3.4-1 is up to date -- skipping | ||
+ | warning: groff-1.22.4-3 is up to date -- skipping | ||
+ | warning: gzip-1.10-3 is up to date -- skipping | ||
+ | warning: libtool-2.4.6+42+gb88cebd5-8 is up to date -- skipping | ||
+ | warning: m4-1.4.18-3 is up to date -- skipping | ||
+ | warning: make-4.2.1-4 is up to date -- skipping | ||
+ | warning: pacman-5.2.1-4 is up to date -- skipping | ||
+ | warning: patch-2.7.6-8 is up to date -- skipping | ||
+ | warning: pkgconf-1.6.3-3 is up to date -- skipping | ||
+ | warning: sed-4.8-1 is up to date -- skipping | ||
+ | warning: sudo-1.8.30-1 is up to date -- skipping | ||
+ | warning: texinfo-6.7-2 is up to date -- skipping | ||
+ | warning: which-2.21-5 is up to date -- skipping | ||
+ | resolving dependencies... | ||
+ | looking for conflicting packages... | ||
+ | |||
+ | Packages (4) perl-error-0.17028-1 | ||
+ | | ||
+ | |||
+ | Total Download Size: 6.23 MiB | ||
+ | Total Installed Size: 37.65 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 perl-error | ||
+ | (2/4) installing perl-timedate | ||
+ | (3/4) installing perl-mailtools | ||
+ | (4/4) installing git | ||
+ | Optional dependencies for git | ||
+ | tk: gitk and git gui | ||
+ | perl-libwww: | ||
+ | perl-term-readkey: | ||
+ | perl-mime-tools: | ||
+ | perl-net-smtp-ssl: | ||
+ | perl-authen-sasl: | ||
+ | perl-mediawiki-api: | ||
+ | perl-datetime-format-iso8601: | ||
+ | perl-lwp-protocol-https: | ||
+ | perl-cgi: gitweb (web interface) support | ||
+ | python: git svn & git p4 | ||
+ | subversion: git svn | ||
+ | org.freedesktop.secrets: | ||
+ | libsecret: libsecret credential helper [installed] | ||
+ | :: Running post-transaction hooks... | ||
+ | (1/4) Creating system user accounts... | ||
+ | (2/4) Reloading system manager configuration... | ||
+ | (3/4) Arming ConditionNeedsUpdate... | ||
+ | (4/4) Warn about old perl modules | ||
+ | </ | ||
+ | |||
+ | ==== Benutzer und Gruppe anlegen ==== | ||
+ | |||
+ | Nachfolgender Befehl erstellt eine **neue** Gruppe mit | ||
+ | * der **Gruppen-ID**: | ||
+ | * der **Bezeichnung**: | ||
+ | < | ||
+ | [root@archlinux ~]# groupadd -g 1000 klaus | ||
+ | </ | ||
+ | |||
+ | Ein Überprüfung ob die Gruppe ordnungsgemäß erstellt wurde, kann durch ausführen von nachfolgendem Befehl und einer Anzeige wie folgt, durchgeführt werden: | ||
+ | < | ||
+ | [root@archlinux ~]# cat /etc/group | grep klaus | ||
+ | klaus: | ||
+ | </ | ||
+ | |||
+ | Nachfolgender Befehl erstellt einen **neuen** Benutzer mit | ||
+ | * dem **Kommentar**: | ||
+ | * der **Gruppen-ID**: | ||
+ | * und mit der Erstellung eines **'' | ||
+ | * der **'' | ||
+ | * der **Benutzer-ID**: | ||
+ | * der **Bezeichnung**: | ||
+ | < | ||
+ | [root@archlinux ~]# useradd -c 'Klaus Tachtler < | ||
+ | </ | ||
+ | |||
+ | Ein Überprüfung ob der Benutzer ordnungsgemäß erstellt wurde, kann durch ausführen von nachfolgendem Befehl und einer Anzeige wie folgt, durchgeführt werden: | ||
+ | < | ||
+ | [root@archlinux ~]# cat /etc/passwd | grep klaus | ||
+ | klaus: | ||
+ | </ | ||
+ | |||
+ | Abschließend soll noch ein Passwort für den Benutzer '' | ||
+ | < | ||
+ | [root@archlinux ~]# passwd klaus | ||
+ | New password | ||
+ | Retype new password: | ||
+ | passwd: password updated successfully | ||
+ | </ | ||
+ | |||
+ | ==== /etc/group ==== | ||
+ | |||
+ | Damit der Benutzer, hier '' | ||
+ | < | ||
+ | [root@archlinux ~]# usermod -a -G wheel klaus | ||
+ | </ | ||
+ | |||
+ | Ob dies erfolgreich war, kann mit folgendem Befehl und dem nachfolgendem Ergebnis überprüft werden: | ||
+ | < | ||
+ | # cat /etc/group | grep wheel | ||
+ | wheel: | ||
+ | </ | ||
+ | |||
+ | ==== / | ||
+ | |||
+ | Mit dem folgenden Befehl, kann die Konfigurationsdatei ''/ | ||
+ | < | ||
+ | [root@archlinux ~]# echo ' | ||
+ | </ | ||
+ | |||
+ | Nachfolgender Befehl zeigt den Inhalt der Konfigurationsdatei ''/ | ||
+ | < | ||
+ | [root@archlinux ~]# cat / | ||
+ | %wheel ALL=(ALL) ALL | ||
+ | </ | ||
+ | |||
+ | Damit die Konfigurationsdatei ''/ | ||
+ | < | ||
+ | [root@archlinux ~]# chmod 440 / | ||
+ | </ | ||
+ | |||
+ | Ob die Anpassung der **Datei**rechte erfolgreich durchgeführt wurde, kann mit nachfolgendem Befehl überprüft werden: | ||
+ | < | ||
+ | [root@archlinux ~]# ls -l / | ||
+ | -r--r----- 1 root root 21 Jan 24 06:38 / | ||
+ | </ | ||
+ | |||
+ | Ab hier werden die Rechte des Benutzer, hier '' | ||
+ | |||
+ | :!: **WICHTIG** - **Ein Ab- und Anmeldung als Benutzer, hier '' | ||
+ | |||
+ | Ein Erster Test, ob der Benutzer, hier '' | ||
+ | |||
+ | (Auflistung aller Dateien nach dem Schema .bash im **'' | ||
+ | < | ||
+ | [klaus@archlinux ~]$ sudo ls -la /root | grep .bash | ||
+ | |||
+ | We trust you have received the usual lecture from the local System | ||
+ | Administrator. It usually boils down to these three things: | ||
+ | |||
+ | #1) Respect the privacy of others. | ||
+ | #2) Think before you type. | ||
+ | #3) With great power comes great responsibility. | ||
+ | |||
+ | [sudo] password for klaus: | ||
+ | -rw------- | ||
+ | -rw-r--r-- | ||
+ | -rw-r--r-- | ||
+ | </ | ||
+ | |||
+ | ==== Herunterladen ==== | ||
+ | |||
+ | Die Installationsquelle von [[https:// | ||
+ | * **[[https:// | ||
+ | |||
+ | Nachfolgender Befehl kopiert die Instalaltionsdateien von [[https:// | ||
+ | < | ||
+ | [klaus@archlinux ~]$ git clone https:// | ||
+ | Cloning into '/ | ||
+ | remote: Enumerating objects: 447, done. | ||
+ | remote: Counting objects: 100% (447/447), done. | ||
+ | remote: Compressing objects: 100% (258/258), done. | ||
+ | remote: Total 447 (delta 189), reused 447 (delta 189) | ||
+ | Receiving objects: 100% (447/447), 94.28 KiB | 1.31 MiB/s, done. | ||
+ | Resolving deltas: 100% (189/189), done. | ||
+ | </ | ||
+ | |||
+ | ==== Installation ==== | ||
+ | |||
+ | Nachfolgender Befehl wechselt nun in das Verzeichnis ''/ | ||
+ | < | ||
+ | [klaus@archlinux ~]$ cd /tmp/pikaur | ||
+ | </ | ||
+ | |||
+ | Nachfolgender Befehl erstellt und installiert [[https:// | ||
+ | < | ||
+ | [klaus@archlinux pikaur]$ makepkg --noconfirm -fsri | ||
+ | ==> Making package: pikaur 1.5.9.1-1 (Fri 24 Jan 2020 06:46:25 AM CET) | ||
+ | ==> Checking runtime dependencies... | ||
+ | ==> Installing missing dependencies... | ||
+ | resolving dependencies... | ||
+ | looking for conflicting packages... | ||
+ | |||
+ | Packages (3) libnsl-1.2.0-2 | ||
+ | |||
+ | Total Download Size: 30.06 MiB | ||
+ | Total Installed Size: 80.27 MiB | ||
+ | |||
+ | :: Proceed with installation? | ||
+ | :: Retrieving packages... | ||
+ | | ||
+ | | ||
+ | | ||
+ | (3/3) checking keys in keyring | ||
+ | (3/3) checking package integrity | ||
+ | (3/3) loading package files [###################### | ||
+ | (3/3) checking for file conflicts | ||
+ | (3/3) checking available disk space [###################### | ||
+ | :: Processing package changes... | ||
+ | (1/3) installing libnsl | ||
+ | (2/3) installing python | ||
+ | Optional dependencies for python | ||
+ | python-setuptools | ||
+ | python-pip | ||
+ | sqlite [installed] | ||
+ | mpdecimal: for decimal | ||
+ | xz: for lzma [installed] | ||
+ | tk: for tkinter | ||
+ | (3/3) installing pyalpm | ||
+ | :: Running post-transaction hooks... | ||
+ | (1/1) Arming ConditionNeedsUpdate... | ||
+ | ==> Checking buildtime dependencies... | ||
+ | ==> Retrieving sources... | ||
+ | -> Downloading pikaur-1.5.9.1.tar.gz... | ||
+ | % Total % Received % Xferd Average Speed | ||
+ | | ||
+ | 100 | ||
+ | 100 2104k 0 2104k 0 | ||
+ | ==> Validating source files with md5sums... | ||
+ | pikaur-1.5.9.1.tar.gz ... Passed | ||
+ | ==> Extracting sources... | ||
+ | -> Extracting pikaur-1.5.9.1.tar.gz with bsdtar | ||
+ | ==> Starting build()... | ||
+ | # find pikaur -type f -name ' | ||
+ | # | ||
+ | find pikaur -type f -name ' | ||
+ | | xargs xgettext --language=python --add-comments --sort-output \ | ||
+ | --default-domain=pikaur --from-code=UTF-8 --keyword=' | ||
+ | test -f locale/ | ||
+ | msgmerge --update locale/ | ||
+ | ................... done. | ||
+ | msgfmt -o locale/ | ||
+ | test -f locale/ | ||
+ | msgmerge --update locale/ | ||
+ | ................... done. | ||
+ | msgfmt -o locale/ | ||
+ | test -f locale/ | ||
+ | msgmerge --update locale/ | ||
+ | ................... done. | ||
+ | msgfmt -o locale/ | ||
+ | test -f locale/ | ||
+ | msgmerge --update locale/ | ||
+ | ................... done. | ||
+ | msgfmt -o locale/ | ||
+ | test -f locale/ | ||
+ | msgmerge --update locale/ | ||
+ | ................... done. | ||
+ | msgfmt -o locale/ | ||
+ | test -f locale/ | ||
+ | msgmerge --update locale/ | ||
+ | ................... done. | ||
+ | msgfmt -o locale/ | ||
+ | test -f locale/ | ||
+ | msgmerge --update locale/ | ||
+ | ................... done. | ||
+ | msgfmt -o locale/ | ||
+ | test -f locale/ | ||
+ | msgmerge --update locale/ | ||
+ | ................... done. | ||
+ | msgfmt -o locale/ | ||
+ | test -f locale/ | ||
+ | msgmerge --update locale/ | ||
+ | ................... done. | ||
+ | msgfmt -o locale/ | ||
+ | test -f locale/ | ||
+ | msgmerge --update locale/ | ||
+ | ................... done. | ||
+ | msgfmt -o locale/ | ||
+ | test -f locale/ | ||
+ | msgmerge --update locale/ | ||
+ | ................... done. | ||
+ | msgfmt -o locale/ | ||
+ | ==> Entering fakeroot environment... | ||
+ | ==> Starting package()... | ||
+ | / | ||
+ | warnings.warn(msg) | ||
+ | / | ||
+ | warnings.warn(msg) | ||
+ | / | ||
+ | warnings.warn(msg) | ||
+ | running install | ||
+ | running build | ||
+ | running build_py | ||
+ | creating build | ||
+ | creating build/lib | ||
+ | creating build/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | copying pikaur/ | ||
+ | running install_lib | ||
+ | creating / | ||
+ | creating / | ||
+ | creating / | ||
+ | creating / | ||
+ | creating / | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | copying build/ | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | byte-compiling / | ||
+ | writing byte-compilation script '/ | ||
+ | / | ||
+ | removing / | ||
+ | running install_egg_info | ||
+ | Writing / | ||
+ | ==> Tidying install... | ||
+ | -> Removing libtool files... | ||
+ | -> Purging unwanted files... | ||
+ | -> Removing static library files... | ||
+ | -> Stripping unneeded symbols from binaries and libraries... | ||
+ | -> Compressing man and info pages... | ||
+ | ==> Checking for packaging issues... | ||
+ | ==> Creating package " | ||
+ | -> Generating .PKGINFO file... | ||
+ | -> Generating .BUILDINFO file... | ||
+ | -> Generating .MTREE file... | ||
+ | -> Compressing package... | ||
+ | ==> Leaving fakeroot environment. | ||
+ | ==> Finished making: pikaur 1.5.9.1-1 (Fri 24 Jan 2020 06:46:51 AM CET) | ||
+ | ==> Installing package pikaur with pacman -U... | ||
+ | loading packages... | ||
+ | resolving dependencies... | ||
+ | looking for conflicting packages... | ||
+ | |||
+ | Packages (1) pikaur-1.5.9.1-1 | ||
+ | |||
+ | Total Installed Size: 0.89 MiB | ||
+ | |||
+ | :: Proceed with installation? | ||
+ | (1/1) checking keys in keyring | ||
+ | (1/1) checking package integrity | ||
+ | (1/1) loading package files [###################### | ||
+ | (1/1) checking for file conflicts | ||
+ | (1/1) checking available disk space [###################### | ||
+ | :: Processing package changes... | ||
+ | (1/1) installing pikaur | ||
+ | Optional dependencies for pikaur | ||
+ | asp: for ABS support in -G/ | ||
+ | python-pysocks: | ||
+ | :: Running post-transaction hooks... | ||
+ | (1/1) Arming ConditionNeedsUpdate... | ||
+ | </ | ||
+ | |||
+ | Nachfolgender Befehl überprüft, | ||
+ | < | ||
+ | [klaus@archlinux pikaur]$ pikaur --version | ||
+ | |||
+ | /:} _ | ||
+ | / | ||
+ | / | ||
+ | | ||
+ | | ||
+ | / | ||
+ | l / | ||
+ | j ● | ||
+ | { ) ._, | ||
+ | У \ _/ | ||
+ | |||
+ | </ | ||
+ | |||
+ | Ein erster Test mit nachfolgendem Befehl zeigt, ob ab sofort auch Pakete aus dem [[https:// | ||
+ | |||
+ | (Suche nach einem Paket aus dem [[https:// | ||
+ | < | ||
+ | [klaus@archlinux pikaur]$ pikaur -Ss mod_jk | ||
+ | Searching... [###] | ||
+ | aur/mod_jk 1.2.46-1 (19, 0.00) | ||
+ | The Apache Tomcat Connector | ||
</ | </ | ||