Sie sind hier : Homepage →  Linux (13) Upgrade 42.3 to 15.3→  Typo3 Versuch auf Leap 15.3 (a)

Diese Seiten sind unsere internen Protokolle aus dem Labor.

Hier wird fortlaufend protokolliert, was beim Upgrade aus dem Ruder gelaufen war

.

Die erste Installation von Typo3 9.5.31 ist / war gescheitert.

Anscheinend war die opensuse Konfiguration (mehrfaches Upgrade auf Leap 15.3) dieser VM so verquer, daß nichts mehr zusammen paßte. Jedenfalls bekam ich die Frontseite nicht mehr zu Gesicht, das Backend lief dagegen. So fiel die Entscheidung zum sogenannten "Tabularasa", einer Neuinstallation.
.

Zuerst wird eine kleinstmögliche 15.3 Serverversion installiert

Ich arbeite auf einem virtualisierten XEN-Server in der webtropia root-server Umgebung im Housing-center in Düsseldorf. Also die Hardware meiner root-Server habe ich noch nie gesehen. Die 6 Kerne der Ryzen 5 CPU sind sehr schnell, das ist erfreulich. Dennoch, 1 Terabyte Download ist eine Menge.
Das Installieren einer XEN-VM (virtuellen maschine) geht nur mit deren DHCP Adresse aus dem webtropia Repository heraus (oder aus lokalen ISO Dateien). webtropia hat einen Spiegel der aktuellen opensuse Repos im eigenen Adressbereich.
.

Die defekte alte "Virtuelle Maschine" hatte 5 Partitionen ....

Der alte ftp-Server hatte 5 Partitionen (swap. root. data, archiv1 und archiv2, von denen die 3. Partition "data" bei der Neuinstallation nicht angefasst werden darf. Dort werden alle relevanten Dateien vorher gesichert, insbesondere /etc/. Das macht das Leben später einfacher, denn ich will quasi nur eine neue saubere (also nicht "upgrade"- vermurkste) nahezu gleiche Linux root Umgebung haben.
.

Die Grundinstallation : ein textbasierter opensuse Server

In der DOM-0 der Hardware gibt es einen Virtualisierungs-Manager, mit dem man neue VMs anlegen kann. Das zu erklären führt hier zu weit. Ich hatte natürlich vorher für jede VM ein RAID-1 gespiegeltes eigenes Raw-Volumen im Grundsystem eingerichtet und das wähle ich hier aus, bei mir ist es "md4" mit 100 Gigabyte. Die alten 3 Partitionen (swap, root und data) sind dort ja noch vorhanden und ich übernehme diese Aufteilung, weil ich nur die opensuse root Partition komplett neu formatieren und installieren will.
.

Auch hier gibt es Schwächen

Die webtropia DHCP Umgebung erlaubt nur den Zugriff auf das eigene webtropia Repository. Alles von opensuse.org/download ist nicht verfügbar.
Will (oder muß) man aus internen Gründen eine andere (ältere) Version von opensuse installieren, hilft nur eine ISO-Datei im /tmp/ Verzeichnis der DOM-0

Die yast-Install Prozedur von opensuse erkennt, ob es schon eine (verwendbare) Installation auf dem gewählten Volumen und in der gewünschten Partition gab und ich kann somit alle vorhandenen user (samt der passwörter) in die Neuinstallation übernehmen. Das ist natürlich toll. - Hier das schnelle Protokoll :
.

  • 4GB swap und 15 GB root mit ext 4 formatieren
  • damit ist aller alter müll weg
  • beim Abfragen suse.pool.ntp.org stockt die Abfrage eine halbe Minute
  • ganz am Ende der Installation stockt es noch zweimal, weil es die opensuse repos nicht öffnen kann
  • der bootloader wird gespeichert, auch das dauert ziemlich lange
  • die VM wird neu gestartet und kommt im VNC-Fenster der DOM-0 hoch
  • yast kann (wegen DHCP) nur die myloc repos ansprechen, die anderen nicht

.

Die Partition 3 mit meinem geretteten backup einbinden

Diese Neuinstallation kennt natürlich bislang nur "swap" und "system/root". Ich brauche ein neues Verzeichnis, bei mir "vol2" und die Verlinkung auf die 3. gerettete Backup-Partition. Jetzt kann ich mir aus /vol2/geretttet/etc/ die Netzwerk-config-Files ins aktive System (auch /etc/) rüber holen und schon bin ich (aber erst nach einem shutdown !!) wieder onlne. Und jetzt gehts los :
.

Was brauche ich für diesen (Femuwi) Archiv-Server ?

Aufgrund der langen und wieder mal mehrwöchigen Erfahrungen mit virtuellen Maschinen unter XEN, dem Apache2 Server, mysql und PHP5 und PHP7 sowie phpMyAdmin kommt da einiges zusammen :

Ich brauche außer der opensuse 15.3 (Server-) Grundinstallation mit ssh und firewalld diese Themen/Module
.

  1. Apache2 Webserver
  2. zusätzlich htop, btop, iftop, mc (midnight commander), die alten "net-tools-deprecatet",
  3. mehrere Tools wie nmap, netstat usw.
  4. mehrere vhost Domains
  5. snap, letsencrypt, certbot
  6. vsftp server
  7. mariadb
  8. phpmyadmin
  9. PHP7
  10. webmin ???? Verwaltung der ftp-Zugänge ???
  11. ein typo3 CMS mit css Möglichkeiten

.
Was sich nicht bewährt hatte, war der SAMBA Server als Archiv-Grundlage, den ich nicht mehr installieren werde.
.

Der Apache2 Webserver ist bei uns Standard

.

  • zypper in apache2

.
Loading repository data... / Reading installed packages... / Resolving package dependencies...
The following recommended package was automatically selected: w3m

The following 8 NEW packages are going to be installed : apache2 - apache2-prefork - apache2-utils - libapr-util1 - libapr1 - libgc1 - system-user-wwwrun - w3m

8 new packages to install : Overall download size: 2.9 MiB. Already cached: 0 B. After the operation, additional 8.1 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):
wird alles geladen - ok

und dann noch die Beispielseiten installieren - zum Vergleich
.

  • zypper in apache2-example-pages

.

Die mysql - Variante "mariadb" ist ebenfalls Standard

Nachtrag und Anmerkung : Wir brauchen weder "mariadb-client" noch die Erweiterung "galera-4". Damit werden zusätzlich mehrere Config Files angelegt, die nur verwirren.
.

  • $ zypper in mariadb

.
Loading repository data... / Reading installed packages... / Resolving package dependencies...

The following 2 recommended packages were automatically selected: mariadb - psqlODBC

The following 11 NEW packages are going to be installed:
libJudy1 - libltdl7 - liblzo2-2 - libmariadb3 - libpq5 - mariadb - mariadb-client - mariadb-errormessages - psqlODBC - python3-mysqlclient - unixODBC

11 new packages to install.
Overall download size: 24.0 MiB. Already cached: 0 B. After the operation, additional 172.8 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):

Retrieving package libJudy1-1.0.5-1.2.x86_64                        (1/11), 103.3 KiB (319.1 KiB unpacked)
Retrieving: libJudy1-1.0.5-1.2.x86_64.rpm -------------------------[starting]
Retrieving: libJudy1-1.0.5-1.2.x86_64.rpm ................................[done]
Retrieving package liblzo2-2-2.10-2.22.x86_64           (2/11),  50.8 KiB (134.2 KiB unpacked)
Retrieving: liblzo2-2-2.10-2.22.x86_64.rpm ...............................[done]
Retrieving package libmariadb3-3.1.13-3.30.1.x86_64       (3/11), 132.3 KiB (354.9 KiB unpacked)
Retrieving: libmariadb3-3.1.13-3.30.1.x86_64.rpm ......................[done]
Retrieving package libltdl7-2.4.6-3.4.1.x86_64       (4/11),  32.6 KiB ( 38.6 KiB unpacked)
Retrieving: libltdl7-2.4.6-3.4.1.x86_64.rpm .................................[done]
Retrieving package libpq5-14.1-5.6.1.x86_64      (5/11), 171.6 KiB (676.9 KiB unpacked)
Retrieving: libpq5-14.1-5.6.1.x86_64.rpm ................................[done]
Retrieving package mariadb-errormessages-10.5.15-150300.3.15.1.noarch  (6/11), 241.6 KiB (  2.4 MiB unpacked)
Retrieving: mariadb-errormessages-10.5.15-150300.3.15.1.noarch.rpm .....[done (10.4 MiB/s)]
Retrieving package mariadb-client-10.5.15-150300.3.15.1.x86_64                 (7/11),   1.1 MiB ( 26.4 MiB unpacked)
Retrieving: mariadb-client-10.5.15-150300.3.15.1.x86_64.rpm .....[done]
Retrieving package unixODBC-2.3.6-3.2.1.x86_64      (8/11), 306.1 KiB (  1.0 MiB unpacked)
Retrieving: unixODBC-2.3.6-3.2.1.x86_64.rpm ..........................[done]
Retrieving package psqlODBC-13.01.0000-3.9.1.x86_64     (9/11), 405.1 KiB (  1.3 MiB unpacked)
Retrieving: psqlODBC-13.01.0000-3.9.1.x86_64.rpm ...................[done]
Retrieving package python3-mysqlclient-1.4.6-2.21.x86_64     (10/11), 233.7 KiB (900.9 KiB unpacked)
Retrieving: python3-mysqlclient-1.4.6-2.21.x86_64.rpm ................[done]
Retrieving package mariadb-10.5.15-150300.3.15.1.x86_64     (11/11),  21.2 MiB (139.3 MiB unpacked)
Retrieving: mariadb-10.5.15-150300.3.15.1.x86_64.rpm ........[done (19.6 MiB/s)]

Checking for file conflicts: ...........................................[done]
( 1/11) Installing: libJudy1-1.0.5-1.2.x86_64 .................[done]
( 2/11) Installing: liblzo2-2-2.10-2.22.x86_64 ................[done]
( 3/11) Installing: libmariadb3-3.1.13-3.30.1.x86_64 .....[done]
( 4/11) Installing: libltdl7-2.4.6-3.4.1.x86_64 ................[done]
( 5/11) Installing: libpq5-14.1-5.6.1.x86_64 ....................[done]
( 6/11) Installing: mariadb-errormessages-10.5.15-150300.3.15.1.noarch ...[done]

useradd -r -s /sbin/nologin -c "MySQL database admin" -U -d /var/lib/mysql -u 60 mysql
( 7/11) Installing: mariadb-client-10.5.15-150300.3.15.1.x86_64 ......[done]
( 8/11) Installing: unixODBC-2.3.6-3.2.1.x86_64 ........................[done]
odbcinst: Driver installed. Usage count increased to 1.
    Target directory is /etc/unixODBC
( 9/11) Installing: psqlODBC-13.01.0000-3.9.1.x86_64 ..................[done]
(10/11) Installing: python3-mysqlclient-1.4.6-2.21.x86_64 ............[done]
(11/11) Installing: mariadb-10.5.15-150300.3.15.1.x86_64 ...........[done]
Update notifications were received from the following packages:
mariadb-10.5.15-150300.3.15.1.x86_64 (/var/adm/update-messages/mariadb-10.5.15-150300.3.15.1-something)
View the notifications now? [y/n] (n):
$

Das ging sogar erstaunlich schnell !!
.

Die mariadb muß noch initialisiert werden - das kommt später.

.

In opensuse 15.3 ist PHP7 Standard

.

  • $ zypper in php7

.
Loading repository data... / Reading installed packages... / Resolving package dependencies...

(1) The following 8 recommended packages were automatically selected:
php7-ctype - php7-dom - php7-iconv - php7-json - php7-sqlite - php7-tokenizer - php7-xmlreader - php7-xmlwriter

(2) The following 4 packages are suggested, but will not be installed:
php7-gd - php7-gettext - php7-mbstring - php7-mysql

(3) The following 10 NEW packages are going to be installed:
php7 - php7-ctype - php7-dom - php7-iconv - php7-json - php7-pdo - php7-sqlite - php7-tokenizer - php7-xmlreader - php7-xmlwriter

10 new packages to install.
Overall download size: 2.1 MiB. Already cached: 0 B. After the operation, additional 11.0 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):

Retrieving package php7-7.4.6-3.35.1.x86_64                 (1/10),   1.6 MiB ( 10.3 MiB unpacked)
Retrieving: php7-7.4.6-3.35.1.x86_64.rpm ...........................................[done]
Retrieving package php7-ctype-7.4.6-3.35.1.x86_64                   (2/10),  39.5 KiB ( 14.4 KiB unpacked)
Retrieving: php7-ctype-7.4.6-3.35.1.x86_64.rpm ..........................................[done]
Retrieving package php7-dom-7.4.6-3.35.1.x86_64                       (3/10),  84.3 KiB (168.2 KiB unpacked)
Retrieving: php7-dom-7.4.6-3.35.1.x86_64.rpm ...............................[done]
Retrieving package php7-iconv-7.4.6-3.35.1.x86_64               (4/10),  53.2 KiB ( 46.9 KiB unpacked)
Retrieving: php7-iconv-7.4.6-3.35.1.x86_64.rpm .............................................[done]
Retrieving package php7-json-7.4.6-3.35.1.x86_64          (5/10),  55.9 KiB (134.7 KiB unpacked)
Retrieving: php7-json-7.4.6-3.35.1.x86_64.rpm ...............................[done]
Retrieving package php7-pdo-7.4.6-3.35.1.x86_64              (6/10),  75.7 KiB (123.5 KiB unpacked)
Retrieving: php7-pdo-7.4.6-3.35.1.x86_64.rpm .....................................[done]
Retrieving package php7-sqlite-7.4.6-3.35.1.x86_64         (7/10),  62.5 KiB ( 86.5 KiB unpacked)
Retrieving: php7-sqlite-7.4.6-3.35.1.x86_64.rpm ......................................[done]
Retrieving package php7-tokenizer-7.4.6-3.35.1.x86_64       (8/10),  42.8 KiB ( 18.6 KiB unpacked)
Retrieving: php7-tokenizer-7.4.6-3.35.1.x86_64.rpm ....................................[done]
Retrieving package php7-xmlreader-7.4.6-3.35.1.x86_64              (9/10),  46.3 KiB ( 34.9 KiB unpacked)
Retrieving: php7-xmlreader-7.4.6-3.35.1.x86_64.rpm ......................................[done]
Retrieving package php7-xmlwriter-7.4.6-3.35.1.x86_64              (10/10),  47.5 KiB ( 50.9 KiB unpacked)
Retrieving: php7-xmlwriter-7.4.6-3.35.1.x86_64.rpm ....................[done]

Checking for file conflicts: ..................................................[done]
( 1/10) Installing: php7-7.4.6-3.35.1.x86_64 .........................[done]
( 2/10) Installing: php7-ctype-7.4.6-3.35.1.x86_64 ..................[done]
( 3/10) Installing: php7-dom-7.4.6-3.35.1.x86_64 .......................[done]
( 4/10) Installing: php7-iconv-7.4.6-3.35.1.x86_64 ........................[done]
( 5/10) Installing: php7-json-7.4.6-3.35.1.x86_64 .........................[done]
( 6/10) Installing: php7-pdo-7.4.6-3.35.1.x86_64 ...............................[done]
( 7/10) Installing: php7-sqlite-7.4.6-3.35.1.x86_64 ..............................[done]
( 8/10) Installing: php7-tokenizer-7.4.6-3.35.1.x86_64 ........................[done]
( 9/10) Installing: php7-xmlreader-7.4.6-3.35.1.x86_64 .......................[done]
(10/10) Installing: php7-xmlwriter-7.4.6-3.35.1.x86_64 ......................[done]
$
.

"phpMyAdmin" wird unbedingt gebraucht

.

  • $ zypper in phpMyAdmin

.
Loading repository data... / Reading installed packages... / Resolving package dependencies...

The following 3 recommended packages were automatically selected:
apache2-mod_php7 - php7-curl - php7-zip

The following 15 NEW packages are going to be installed:
apache2-mod_php7 - libgd3 libonig4 - libwebp7 - libzip5 - php7-bz2 - php7-curl - php7-gd - php7-gettext - php7-mbstring - php7-mysql - php7-openssl - php7-zip - phpMyAdmin - pwgen

15 new packages to install.
Overall download size: 9.2 MiB. Already cached: 0 B. After the operation, additional 44.2 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):
.
Retrieving package libonig4-6.7.0-1.19.x86_64                   (1/15), 127.3 KiB (494.1 KiB
Retrieving: libonig4-6.7.0-1.19.x86_64.rpm ...........[done]
Retrieving package libzip5-1.5.1-1.9.x86_64                   (2/15),  57.3 KiB ( 99.7 KiB
Retrieving: libzip5-1.5.1-1.9.x86_64.rpm ............[done]
Retrieving package pwgen-2.08-bp153.1.15.x86_64                 (3/15),  24.3 KiB ( 33.9 KiB
Retrieving: pwgen-2.08-bp153.1.15.x86_64.rpm ............[done]
Retrieving package apache2-mod_php7-7.4.6-3.35.1.x86_64                 (4/15), 1.5 MiB (  9.3 MiB
Retrieving: apache2-mod_php7-7.4.6-3.35.1.x86_64.rpm ..........[done]
Retrieving package libwebp7-1.0.3-3.2.1.x86_64                  (5/15), 198.4 KiB (434.7 KiB
Retrieving: libwebp7-1.0.3-3.2.1.x86_64.rpm ............[done]
Retrieving package php7-bz2-7.4.6-3.35.1.x86_64                 (6/15),  44.4 KiB ( 22.8 KiB
Retrieving: php7-bz2-7.4.6-3.35.1.x86_64.rpm ............[done]
Retrieving package php7-curl-7.4.6-3.35.1.x86_64                  (7/15),  65.6 KiB ( 99.3 KiB
Retrieving: php7-curl-7.4.6-3.35.1.x86_64.rpm ...........[done]
Retrieving package php7-gettext-7.4.6-3.35.1.x86_64                 (8/15),  40.8 KiB ( 14.5 KiB
Retrieving: php7-gettext-7.4.6-3.35.1.x86_64.rpm ............[done]
Retrieving package php7-mysql-7.4.6-3.35.1.x86_64                 (9/15),  78.3 KiB (165.9 KiB
Retrieving: php7-mysql-7.4.6-3.35.1.x86_64.rpm ...........[done]
Retrieving package php7-openssl-7.4.6-3.35.1.x86_64                  (10/15),  92.7 KiB (182.1 KiB
Retrieving: php7-openssl-7.4.6-3.35.1.x86_64.rpm ............[done]
Retrieving package php7-mbstring-7.4.6-3.35.1.x86_64                 (11/15), 430.0 KiB (  1.0 MiB
Retrieving: php7-mbstring-7.4.6-3.35.1.x86_64.rpm ...........[done]
Retrieving package php7-zip-7.4.6-3.35.1.x86_64                  (12/15),  55.5 KiB ( 63.3 KiB
Retrieving: php7-zip-7.4.6-3.35.1.x86_64.rpm ............[done]
Retrieving package libgd3-2.2.5-11.3.1.x86_64                  (13/15), 125.6 KiB (405.7 KiB
Retrieving: libgd3-2.2.5-11.3.1.x86_64.rpm ...........[done]
Retrieving package php7-gd-7.4.6-3.35.1.x86_64                 (14/15),  64.0 KiB (119.8 KiB
Retrieving: php7-gd-7.4.6-3.35.1.x86_64.rpm ............[done]
Retrieving package phpMyAdmin-4.9.8-bp153.2.3.1.noarch                 (15/15), 6.4 MiB ( 31.8 MiB
Retrieving: phpMyAdmin-4.9.8-bp153.2.3.1.noarch.rpm ..........[done (3.5 MiB/s)]
.
Checking for file conflicts: .........[done]
( 1/15) Installing: libonig4-6.7.0-1.19.x86_64 .......[done]
( 2/15) Installing: libzip5-1.5.1-1.9.x86_64 .......[done]
( 3/15) Installing: pwgen-2.08-bp153.1.15.x86_64 .......[done]
( 4/15) Installing: apache2-mod_php7-7.4.6-3.35.1.x86_64 .......[done]
( 5/15) Installing: libwebp7-1.0.3-3.2.1.x86_64 ........[done]
( 6/15) Installing: php7-bz2-7.4.6-3.35.1.x86_64 .......[done]
( 7/15) Installing: php7-curl-7.4.6-3.35.1.x86_64 ........[done]
( 8/15) Installing: php7-gettext-7.4.6-3.35.1.x86_64 .......[done]
( 9/15) Installing: php7-mysql-7.4.6-3.35.1.x86_64 .......[done]
(10/15) Installing: php7-openssl-7.4.6-3.35.1.x86_64 .......[done]
(11/15) Installing: php7-mbstring-7.4.6-3.35.1.x86_64 ........[done]
(12/15) Installing: php7-zip-7.4.6-3.35.1.x86_64 .......[done]
(13/15) Installing: libgd3-2.2.5-11.3.1.x86_64 .......[done]
(14/15) Installing: php7-gd-7.4.6-3.35.1.x86_64 ........[done]
(15/15) Installing: phpMyAdmin-4.9.8-bp153.2.3.1.noarch ........[done]
Executing %posttrans scripts .........[done]
$
.

Für den Certbot von letsencrypt brauchen wir "snapd"

.

  • $ zypper in snapd

.
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following 2 NEW packages are going to be installed:
  snapd squashfs

2 new packages to install.
Overall download size: 14.7 MiB. Already cached: 0 B. After the operation, additional 67.8 MiB will be used.
Continue? [y/n/v/...? shows all options] (y):
Retrieving package squashfs-4.4-1.1.x86_64                (1/2), 148.8 KiB (418.2 KiB unpacked)
Retrieving: squashfs-4.4-1.1.x86_64.rpm ........................[done]
Retrieving package snapd-2.55.2-lp153.1.1.x86_64           (2/2),  14.6 MiB ( 67.3 MiB unpacked)
Retrieving: snapd-2.55.2-lp153.1.1.x86_64.rpm ..................[done (12.2 MiB/s)]

Checking for file conflicts: ............................................[done]
(1/2) Installing: squashfs-4.4-1.1.x86_64 ..............................[done]
.

  • Please reboot, logout/login or source /etc/profile to have /snap/bin added to PATH.

.

  • On a Tumbleweed and Leap 15.3+ systems you need to run: systemctl enable snapd.apparmor.service

.
(2/2) Installing: snapd-2.55.2-lp153.1.1.x86_64 .............................[done]
[ftp.net- root] ~ $
.

  • systemctl enable snapd.apparmor.service
  • systemctl enable snapd
  • systemctl start snapd

.
Das hier hatte ich nach dem "reboot" nachträglich durchgeführt:

$ systemctl enable snapd.apparmor.service
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.apparmor.service â /usr/lib/systemd/system/snapd.apparmor.service.
$ systemctl enable snapd
$ systemctl start snapd
.

Jetzt kommt noch "certbot" und diverses


  • $ zypper --gpg-auto-import-keys refresh


Repository 'openSUSE-15.3 Non-OSS' is up to date.
Repository 'openSUSE-15.3 OSS' is up to date.
Repository 'openSUSE-15.3 Updates Non-OSS' is up to date.
Repository 'openSUSE-15.3 Updates OSS' is up to date.
Repository 'Update repository of openSUSE Backports' is up to date.
Repository 'Update repository with updates from SUSE Linux Enterprise 15' is up to date.
Repository 'snappy' is up to date.
All repositories have been refreshed.
$

  • Hier hatte ein "reboot" gefehlt - siehe weiter oben !!


$ snap install certbot --classic
2022-03-30T02:54:52+02:00 INFO Waiting for automatic snapd restart...
Warning: /snap/bin was not found in your $PATH. If you've not restarted your session since you
         installed snapd, try doing that. Please see https://forum.snapcraft.io/t/9469 for more
         details.

certbot 1.25.0 from Certbot Project (certbot-eff*) installed
$
.

"webmin" auf dem Server kann ab und zu helfen

Nach unseren bisherigen Erfahrungen ist die Programm- bzw. Modul-Sammlung "webmin" nicht überall das "Schweizer Taschenmesser". Bei manchen Moduln funktioniert es (bei opensuse ab 13.2) sehr bescheiden bzw. gar nicht. Dennoch kann webmin helfen, vor allem bei der Einsicht in die Log-Files.
.
Anmerkung : Die "webmin dependencies "https://www.webmin.com/rpm.html lesen sich so: Das wird gebraucht ....
.

  • $ zypper install perl perl-Net-SSLeay openssl perl-IO-Tty perl-Encode-Detect

.
Textausgabe :
Loading repository data. /Reading installed packages.
'(1) perl' is already installed.
No update candidate for 'perl-5.26.1-15.87.x86_64'. The highest available version is already installed.
(2) 'openssl' is already installed.
No update candidate for 'openssl-1.1.1d-1.46.noarch'. The highest available version is already installed.
(3) 'perl-Net-SSLeay' is already installed.
No update candidate for 'perl-Net-SSLeay-1.88-1.44.x86_64'. The highest available version is already installed.

Resolving package dependencies. The following 2 NEW packages are going to be installed: perl-Encode-Detect - perl-IO-Tty

2 new packages to install.
Overall download size: 125.1 KiB. Already cached: 0 B. After the operation, additional 266.4 KiB will be used.
Retrieving package perl-Encode-Detect-1.01-4.27.x86_64      (1/2),  80.8 KiB (185.3 KiB)
Retrieving: perl-Encode-Detect-1.01-4.27.x86_64.rpm ..............[done]
Retrieving package perl-IO-Tty-1.12-1.28.x86_64     (2/2),  44.2 KiB ( 81.1 KiB)
Retrieving: perl-IO-Tty-1.12-1.28.x86_64.rpm ...........................[done]
Checking for file conflicts: ...........................................................[done]
(1/2) Installing: perl-Encode-Detect-1.01-4.27.x86_64 .................[done]
(2/2) Installing: perl-IO-Tty-1.12-1.28.x86_64 ............................[done]
$

"webmin" installieren

Anmerkung : Ich verzweige hier zuerst in mein Server-Verzeichnis /opt/ .
.

.
am 30.3.2022 :

  • $ wget https://sourceforge.net/projects/webadmin/files/webmin/1.990/webmin-1.990-1.noarch.rpm/download

.
En Teil der Textausgabe :
Length: 40094408 (38M) [application/octet-stream]
Saving to: âdownloadâ
download  100%[=============>] 38.24M 1.07MB/s in 45s
.

  • /opt $ rpm -ivh webmin-1.990-1.noarch.rpm

.
Preparing...  ############# [100%]
Operating system is SuSE Linux
Updating / installing...
   1:webmin-1.990-1   ############# [100%]
Webmin install complete. You can now login to
https://opensuse-test.xxxxxxxx.com:10000/ as root with your root password.
.

  • Dieser webmin-Port ist allgemein bekannt und wird deshalb sofort blockiert und dann bei mir in einen Port-Bereich oberhalb von 32000 geändert !!!!

.
Anmerkung : so geht es auch : zypper in /<verzeichnisname>/<rpm-file-name>
(Infos gibts auch hier : https://en.opensuse.org/SDB:Webmin)
.

Wichtig - jetzt auf der Windows Workstation - "nmap"

Die Erfahrung hatte gezeigt, das Programm "nmap" (oder Zenmap) auf dem Linux Server im entfernten Housing zeigt offene Ports an, die nach draußen gar nicht offen sind und die den Admin fürchterlich verwirren. Das ist Murks. Und nicht jeder Admin hat sofort einen zweiten Server, mit dem er den "Nachbarn" überprüfen kann. Sie brauchen unbedingt eine verläßliche Information, was an Ports von Ihrem Server wirklich von draußen offen zu erreichen ist. Dazu installieren Sie auf Ihrem Windows-PC (XP oder WIN7 oder WIN10) das "nmap for Windows" Programm und prüfen die IP Nummer Ihrer Neuinstallation ab.

.

Die firewalld einrichten : Welche Ports sollen offen sein ?

Das hängt von den geforderten Diensten ab:

Wir brauchen jeweils einen Port für (1) http und (2) https sowie (3) vsftp und (4) ssh und 85) noch einen http-spezial Port sowie (6) den Port für webmin. Die ersten drei Ports sind "Standard Ports", die wir nicht ändern können, die letzten drei müssen wir aus Sicherheitsgründen abweichend von den ursprünglichen Ports selbst vergeben und entsprechend konfigurieren.
.

.

Konfigurieren der Grundfunktionen :

Auf diesem Server haben wir folgende Domains mit folgenden Funktionen :

  1. Die Apache Musterseite identifiziert die IP Nummer des Servers
  2. die archiv.femuwi.de Seite enthält die Beschreibungen der Archiv Inhalte
  3. Repository 1 enthält Server-Programme und Install-ISO Images
  4. Repository 2 enthält das Museums-Archiv - themenbezogen
  5. Bereich 3 - temporärer Download- / Upload- Bereich für größere Dateien


Vorgeschaltet sind mehrere Info-Seite, was wo zu finden ist und wie die dortigen Inhalte herunter zu laden gehen.

Die Repos sind beide schreib- und löschgeschützt

Das Repos 1 ist quasi nur für unseren eigenen Betrieb und enthält nur Duplikate sowieso im Netz vorhandener freier Software - opensuse und das CMS.

Einbinden der 300GB und 500GB Volumen ins Filesystem

Unsere virtuelle Maschine (VM) hat bislang nur das RAW Volumen mit 100 GB (bei uns ist es z.B. md4) zugeordnet bekommen, in dem wir bei der opensuse Installation 3 Partitionen angelegt hatten. Die zwei sehr großen zusätzlichen Volumen sieht diese VM bislang nicht. Die werden nämlich im Virt-Manager der DOM-0 dieser VM zugeordnet bzw. gemounted und dann erst (nach einem Kaltstart !!!) sieht der Partitions-Manager der VM seine beiden Neuzugänge und kann diese auf zwei speziell angelegte Verzeichnisse mounten.

  • $ mkdir /vol-300
  • $ mkdir /vol-500


*  Mount /dev/xvdb (300.00 GiB) at /vol-300
    Add mount point /vol-300 of /dev/xvdb (300.00 GiB) to /etc/fstab
*  Mount /dev/xvdc (500.01 GiB) at /vol-500
    Add mount point /vol-500 of /dev/xvdc (500.01 GiB) to /etc/fstab
.

.

Startseite -- © 2001/2022 - Copyright by Dipl.-Ing. Gert Redlich / Germany - D-65191 Wiesbaden - Telefon-Nummer - Impressum