# Install Base Software

### <span style="text-decoration: underline;"><span data-darkreader-inline-color="" style="color: rgb(45, 194, 107); text-decoration: underline;">Base Software</span></span>

```bash
#!/bin/bash
# Update and Upgrade
apt update && apt upgrade -y && apt full-upgrade -y
#All the base Stuff
apt-get install -y apt-show-versions apt-transport-https bc binutils bsdmainutils bzip2 ca-certificates curl file git gpg gzip htop jq lib32gcc-s1 lib32stdc++6 libauthen-pam-perl libio-pty-perl libnet-ssleay-perl libpam-runtime lsb-release openssl perl rsync screen software-properties-common sudo tar tmux unzip util-linux wget
```

### <span style="text-decoration: underline;"><span data-darkreader-inline-color="" style="color: rgb(35, 111, 161);">Webserver + Datenbankserver</span></span>

```bash
#!/bin/bash
# Update and Upgrade
apt update && apt upgrade -y && apt full-upgrade -y
#Apache + MariaDB
apt-get install -y apache2 libmariadb3 mariadb-client mariadb-server
```

### Apache Module aktivieren:

```bash
a2dismod mpm_event
a2enmod core so watchdog http log_config logio version unixd access_compat alias auth_basic authn_core authn_file authz_core authz_host authz_user autoindex cgi cgid deflate dir env filter headers mime mpm_prefork negotiation php proxy proxy_connect proxy_fcgi proxy_http proxy_wstunnel reqtimeout rewrite setenvif socache_shmcb ssl status xml2enc cgi 
```


### <span style="text-decoration: underline;"><span data-darkreader-inline-color="" style="color: rgb(45, 194, 107); text-decoration: underline;"><span data-darkreader-inline-color="" style="color: rgb(224, 62, 45); text-decoration: underline;">Qemu Agent (Nur wenn VM)</span>  
</span></span>

```bash
#!/bin/bash
#If VM guest additions
apt-get install -y qemu-guest-agent 
```

### <span style="text-decoration: underline;"><span data-darkreader-inline-color="" style="color: rgb(45, 194, 107); text-decoration: underline;"><span data-darkreader-inline-color="" style="color: rgb(224, 62, 45); text-decoration: underline;"><span data-darkreader-inline-color="" style="color: rgb(185, 106, 217); text-decoration: underline;">ResolvConf (Mainly for WireGuard)</span>  
</span></span></span>

<p class="callout danger">**Nach der Installation von ResolvConf muss die Maschine neu gestartet werden, da sonst keine Domains auflösbar sind!**</p>

```bash
#!/bin/bash
#If VM guest additions
apt-get install -y resolvconf
```