From f08dd80fea2657f7cb087b744870ba5b8d319362 Mon Sep 17 00:00:00 2001 From: bpetschowitsch Date: Thu, 5 Mar 2026 13:27:02 +0100 Subject: [PATCH] erste Einheit - Vorbereitung Lab --- enable_user_sudo.md | 25 +++++++++++++++++++++++++ install_nginx.md | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) create mode 100644 enable_user_sudo.md create mode 100644 install_nginx.md diff --git a/enable_user_sudo.md b/enable_user_sudo.md new file mode 100644 index 0000000..892fcb8 --- /dev/null +++ b/enable_user_sudo.md @@ -0,0 +1,25 @@ +# Make User a sudoer +Instructions to add user to sudoers + +## login as root +```bash +su root +``` +provide roots password + +## edit /etc/sudoers +```bash +vim /etc/sudoers +``` + +add following line: + +```text +youruser ALL=(ALL:ALL) ALL +``` + +ensure following line is given (otherwise add it): + +```text +%sudo ALL=(ALL:ALL) ALL +``` diff --git a/install_nginx.md b/install_nginx.md new file mode 100644 index 0000000..1544178 --- /dev/null +++ b/install_nginx.md @@ -0,0 +1,33 @@ +# Nginx Installation on Debian + +Installation of Nginx on a **Debian-System**. + +## System update +System and package update: + +```bash +sudo apt update +sudo apt upgrade -y +``` + +### Install Nginx + +```bash +sudo apt install nginx -y +``` + +### Verify Nginx status + +```bash +sudo systemctl status nginx +``` + +### Test Nginx +Testing Nginx via browser: replace *server_ip_address* with your servers IP-Address. +You have to see **"Welcome to nginx!"**. + +``` +http://server_ip_address +``` + +