22.06.2021, 14:02
(Dieser Beitrag wurde zuletzt bearbeitet: 22.06.2021, 19:02 von ThunderTower.)
In diesem Beitrag baue ich mir eine kleine Entwicklungsumgebung mit einer Ubuntu Serverversion. Teil 1
Die Anforderungen an die Hardware sind gering. Nach der Installation kann der Monitor entfernt werden. Selbiger wird nur zum Setup benötigt.
Meine Beiträge sind auf Grund der Menge von mehrteiligem Inhalt.
Ich werde den Text nachhaltig aktualisieren, weil doch SSH, Apache, PHP usw. recht umfangreich ist.
So kann ich die notwendigen Installationen und Teilschritte zeitlich besser einplanen.
Alle notwendigen Voraussetzungen:
Mit der TAB Taste weiter springen und Kreuze einfach mit der Leertaste setzen
Auf einem Client innerhalb vom Netzwerk (Lan) die Konsole öffen und mit yes Schlüssel importieren:
Login:
ssh sliplady@192.168.178.21
Die Anforderungen an die Hardware sind gering. Nach der Installation kann der Monitor entfernt werden. Selbiger wird nur zum Setup benötigt.
Meine Beiträge sind auf Grund der Menge von mehrteiligem Inhalt.
Ich werde den Text nachhaltig aktualisieren, weil doch SSH, Apache, PHP usw. recht umfangreich ist.
So kann ich die notwendigen Installationen und Teilschritte zeitlich besser einplanen.
Alle notwendigen Voraussetzungen:
- Eine bootfähige CD/DVD erstellen
- ISO-Abbild brennen und von DVD booten
- Rechner im Netzwerk (LAN)
- Aktualisierung auf neuen Installer - Ja
- Keyboardlayout Identifizierung - Layout German - Ja
- Netzwerkkonfiguration DHCPv4 192.168.178.21/24 - Ja
- Gesammte Festplatte verwenden - Ja
- Install SSH Server - kein Import von Keys -Ja
- Keine Server Snaps auswählen - Ja
- Aktualisierung und Installlation von Securyty Updates - Ja
- Nach einiger Zeit das Installationsmedium entfernen und NEU starten
- Mit sudo apt-get update und sudo apt-get upgrade ist alles READY!
- sudo reboot
Mit der TAB Taste weiter springen und Kreuze einfach mit der Leertaste setzen
Auf einem Client innerhalb vom Netzwerk (Lan) die Konsole öffen und mit yes Schlüssel importieren:
Login:
ssh sliplady@192.168.178.21
UNIX/Root-Passwort ändern wie folgt:
sliplady@sliplady:~$ sudo passwd root
[sudo] password for sliplady:
New password:
Retype new password:
passwd: password updated successfully
sliplady@sliplady:~$
Neues Benutzer hinzufügen:
sudo adduser lordsniefnase
sliplady@sliplady:~$ sudo adduser lordsniefnase
sliplady@sliplady:~$ sudo passwd root
[sudo] password for sliplady:
New password:
Retype new password:
passwd: password updated successfully
sliplady@sliplady:~$
Neues Benutzer hinzufügen:
sudo adduser lordsniefnase
sliplady@sliplady:~$ sudo adduser lordsniefnase
Adding user `lordsniefnase' ...
Adding new group `lordsniefnase' (1001) ...
Adding new user `lordsniefnase' (1001) with group `lordsniefnase' ...
Creating home directory `/home/lordsniefnase' ...
Copying files from `/etc/skel' ...
Adding new group `lordsniefnase' (1001) ...
Adding new user `lordsniefnase' (1001) with group `lordsniefnase' ...
Creating home directory `/home/lordsniefnase' ...
Copying files from `/etc/skel' ...
New password:
Retype new password:
passwd: password updated successfully
Retype new password:
passwd: password updated successfully
Changing the user information for lordsniefnase
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] Y
Eingaben mit Y bestätigen
Hinzufügen des Benutzers zur Gruppe sudo kann nur root:
usermod -aG sudo lordsniefnase
Login als Benutzer und root testen + Ordner erstellen:
lordsniefnase@sliplady:~$ su
Password:
usermod -aG sudo lordsniefnase
Login als Benutzer und root testen + Ordner erstellen:
lordsniefnase@sliplady:~$ su
Password:
root@sliplady:/home/lordsniefnase# ls
root@sliplady:/home/lordsniefnase# mkdir test
root@sliplady:/home/lordsniefnase# ls
root@sliplady:/home/lordsniefnase# mkdir test
root@sliplady:/home/lordsniefnase# ls
Der Ordner test wurde erfolgreich erstellt.
root@sliplady:/home/lordsniefnase#
root@sliplady:/home/lordsniefnase# exit
exit
root@sliplady:/home/lordsniefnase# exit
exit
lordsniefnase@sliplady:~$
Done, Ubuntu Server 20.04 LTS 64 Bit Version ist komplett.
Done, Ubuntu Server 20.04 LTS 64 Bit Version ist komplett.
UFW Konfig - Standart laden und aktivieren - Freigabe SSH und Port 22:
lordsniefnase@sliplady:~$ sudo ufw default deny incoming
Default incoming policy changed to 'deny'
(be sure to update your rules accordingly)
lordsniefnase@sliplady:~$ sudo ufw default allow outgoing
Default outgoing policy changed to 'allow'
(be sure to update your rules accordingly)
lordsniefnase@sliplady:~$ sudo ufw allow ssh
Rules updated
Rules updated (v6)
lordsniefnase@sliplady:~$ sudo ufw allow 22
Rules updated
Rules updated (v6)
lordsniefnase@sliplady:~$ sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
lordsniefnase@sliplady:~$ sudo reboot
Connection to 192.168.178.21 closed by remote host.
Connection to 192.168.178.21 closed.
tomate@tomate-MS-7971:~$ ssh lordsniefnase@192.168.178.21
lordsniefnase@192.168.178.21's password:
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-74-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Tue Jun 22 13:37:04 UTC 2021
System load: 1.02 Temperature: 42.0 C
Usage of /: 3.2% of 195.86GB Processes: 151
Memory usage: 2% Users logged in: 0
Swap usage: 0% IPv4 address for enp5s0: 192.168.178.21
* Super-optimized for small spaces - read how we shrank the memory
footprint of MicroK8s to make it the smallest full K8s around.
https://ubuntu.com/blog/microk8s-memory-optimisation
8 updates can be applied immediately.
To see these additional updates run: apt list --upgradable
Last login: Tue Jun 22 13:33:18 2021 from 192.168.178.31
lordsniefnase@sliplady:~$ sudo ufw status verbose
[sudo] password for lordsniefnase:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip
To Action From
-- ------ ----
22/tcp ALLOW IN Anywhere
22 ALLOW IN Anywhere
22/tcp (v6) ALLOW IN Anywhere (v6)
22 (v6) ALLOW IN Anywhere (v6)
lordsniefnase@sliplady:~$ sudo ufw status numbered
Status: active
To Action From
-- ------ ----
[ 1] 22/tcp ALLOW IN Anywhere
[ 2] 22 ALLOW IN Anywhere
[ 3] 22/tcp (v6) ALLOW IN Anywhere (v6)
[ 4] 22 (v6) ALLOW IN Anywhere (v6)
lordsniefnase@sliplady:~$ exit
logout
lordsniefnase@sliplady:~$ sudo ufw default deny incoming
Default incoming policy changed to 'deny'
(be sure to update your rules accordingly)
lordsniefnase@sliplady:~$ sudo ufw default allow outgoing
Default outgoing policy changed to 'allow'
(be sure to update your rules accordingly)
lordsniefnase@sliplady:~$ sudo ufw allow ssh
Rules updated
Rules updated (v6)
lordsniefnase@sliplady:~$ sudo ufw allow 22
Rules updated
Rules updated (v6)
lordsniefnase@sliplady:~$ sudo ufw enable
Command may disrupt existing ssh connections. Proceed with operation (y|n)? y
Firewall is active and enabled on system startup
lordsniefnase@sliplady:~$ sudo reboot
Connection to 192.168.178.21 closed by remote host.
Connection to 192.168.178.21 closed.
tomate@tomate-MS-7971:~$ ssh lordsniefnase@192.168.178.21
lordsniefnase@192.168.178.21's password:
Welcome to Ubuntu 20.04.1 LTS (GNU/Linux 5.4.0-74-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Tue Jun 22 13:37:04 UTC 2021
System load: 1.02 Temperature: 42.0 C
Usage of /: 3.2% of 195.86GB Processes: 151
Memory usage: 2% Users logged in: 0
Swap usage: 0% IPv4 address for enp5s0: 192.168.178.21
* Super-optimized for small spaces - read how we shrank the memory
footprint of MicroK8s to make it the smallest full K8s around.
https://ubuntu.com/blog/microk8s-memory-optimisation
8 updates can be applied immediately.
To see these additional updates run: apt list --upgradable
Last login: Tue Jun 22 13:33:18 2021 from 192.168.178.31
lordsniefnase@sliplady:~$ sudo ufw status verbose
[sudo] password for lordsniefnase:
Status: active
Logging: on (low)
Default: deny (incoming), allow (outgoing), disabled (routed)
New profiles: skip
To Action From
-- ------ ----
22/tcp ALLOW IN Anywhere
22 ALLOW IN Anywhere
22/tcp (v6) ALLOW IN Anywhere (v6)
22 (v6) ALLOW IN Anywhere (v6)
lordsniefnase@sliplady:~$ sudo ufw status numbered
Status: active
To Action From
-- ------ ----
[ 1] 22/tcp ALLOW IN Anywhere
[ 2] 22 ALLOW IN Anywhere
[ 3] 22/tcp (v6) ALLOW IN Anywhere (v6)
[ 4] 22 (v6) ALLOW IN Anywhere (v6)
lordsniefnase@sliplady:~$ exit
logout
Für OpenSim auf Ubuntu würde ich selbst nur Serverversion 18.04.5 nutzen.
Link: