Kategorie: Linux / Unix

  • Normalen User in root-Gruppe aufnehmen

    nano /etc/passwd tom:x:0:0:Tom,,,:/home/tom:/bin/bash bob:x:0:0:Bob,,,:/home/bob:/bin/bash Make sure to replace /home/tom and /home/bob with the actual home directories for the users, and /bin/bash with the desired shell. nano /etc/group root:x:0:tom,bob nano /etc/rsyslog.conf authpriv.*;user.* /var/log/auth.log This will log user-related authentication messages to /var/log/auth.log. service rsyslog restart After completing these steps, the users tom and bob should have full…

  • .NET 6 & .NET 8 auf einem Ubuntu-Server installieren und ansprechen

    To install .NET 6 and .NET 8 in parallel on Ubuntu Server and access these versions, follow these steps: For .NET 8: Alternatively, you can use the dotnet –list-sdks command to list all installed SDKs and dotnet –version to see the default SDK version. Use the dotnet new globaljson –sdk-version <version> command to generate a…

  • Visual Studio Code Remote Development

    Um auf einem Ubuntu-Server das Remote Dedugging zu installieren (Achtung: sollte man nicht auf einen Produktionsserver tun!):

  • Linux: journalctl Logfiles verkleinern

    Log anzeigen Logs löschen / verkleinern Alles älter als 2 Tage löschen: Nur die letzten 500MB behalten:

  • Ubuntu Timezone einstellen

    Ubuntu Timezone einstellen

    Abfrage der aktuellen Timezone / Zeitzone: Auflisten der bekannten Timezones: Setzen der neuen Timezone:

  • Umbenennen einer Ubuntu-Maschine

    Umbenennen einer Ubuntu-Maschine

    Ändere den Hostnamen: Um den Hostnamen deines Ubuntu-Servers zu ändern, verwende den Befehl hostnamectl. Ersetze neuer-hostname durch den gewünschten Hostnamen Bearbeite die Hosts-Datei: Als nächstes musst du die Datei /etc/hosts bearbeiten, um den neuen Hostnamen widerzuspiegeln. Verwende einen Texteditor wie nano oder vim, um die Datei zu öffnen: Innerhalb der Datei siehst du eine Zeile…

  • IP-Adresse vor dem Login anzeigen lassen (Ubuntu)

    IP-Adresse vor dem Login anzeigen lassen (Ubuntu)

    Die Datei /etc/issue editieren: Hier folgenden Code einfügen (eth0 ggf. mit dem Namen der gewünschten Netzwerkkarte ersetzen):

  • Ubuntu – Festplattenfresser feststellen

    Ubuntu – Festplattenfresser feststellen

    NCDU To investigate why the disk space on your Ubuntu server decreased significantly at a specific time, you can follow these steps: And also check system-wide cron jobs in /etc/crontab and the /etc/cron.* directories. This command finds files larger than 100MB modified in the last 2 days. Investigating disk space issues often requires correlating data…

  • rsa private / publik key erstellen

    To generate a private key and public key pair for SSH access on Ubuntu, you can use the OpenSSH utility called ssh-keygen. Here’s a step-by-step guide: Replace „your_email@example.com“ with your own email address or any identifier you prefer. This command will prompt you for the password of the remote user account. That’s it! You have…

  • How to Install Nginx as a Reverse Proxy and Use It to Run ASP.NET Core Blazor Applications

    ASP.NET Core Blazor is a new web development framework that builds on the power of Razor and the performance of Core .NET. This article will show you how to install Nginx as a reverse proxy to make your Blazor applications run faster and more reliably. How to install Nginx as a reverse proxy There are…

Wir benutzen Cookies um die Nutzerfreundlichkeit der Webseite zu verbessen. Durch Deinen Besuch stimmst Du dem zu.