This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##UPDATE OS & ADD REPOS | |
apt update && apt upgrade -y | |
apt-get install apt-transport-https ca-certificates sudo wget gnupg2 locate | |
echo "deb https://pkg.opencast.org/debian 12.x stable" | sudo tee /etc/apt/sources.list.d/opencast.list | |
wget -qO - https://pkg.opencast.org/gpgkeys/opencast-deb.key | sudo apt-key add - | |
apt update | |
##SET DATE/TIME: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## INSTALL PACKAGES ## | |
apt install nginx php postgresql postgresql-contrib php-fpm php-curl php-gd php-xmlrpc php-intl php-xml php-zip php-mbstring php-soap php-common php-gmp php-cli unzip git curl php-pgsql certbot python3-certbot-nginx git locate fail2ban | |
## (OPTIONAL) ## | |
vim /etc/fail2ban/jail.conf | |
bantime = -1 | |
ignoreip = 192.168.3.0/24 (Internes network) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Create account user and pass | |
################################ | |
#Obtain valor variable | |
####################### | |
while [ "$Username" != "Exit" ] | |
echo |