This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Eigene Eintwicklungsumgebung mit Ubuntu Server 20.04 LTS 64 Bit
#1
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:


  1. Eine bootfähige CD/DVD erstellen
  2. ISO-Abbild brennen und von DVD booten
  3. Rechner im Netzwerk (LAN)
Das Setup vom Server ganz einfach durchlaufen:
  • 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
Hilfreich:

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
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' ...
New password:
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
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: 
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
lordsniefnase@sliplady:~$

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
Für OpenSim auf Ubuntu würde ich selbst nur Serverversion 18.04.5 nutzen.
Link:
https://ubuntu.com/download/server

Dieser Beitrag wird fortgesetzt.
Zitieren


Gehe zu:


Benutzer, die gerade dieses Thema anschauen: 1 Gast/Gäste