Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# shopt -s nullglob
shopt -s nocasematch
veros=$( grep 'release' /etc/*release | grep release | cut -d " " -f4 | uniq )
#read -p "please enter your ip:" ipinput
#ssh -o StrictHostKeyChecking=no $ipnput -l root "main"
vminstall() {
@ankurk91
ankurk91 / install_lamp_ubuntu.sh
Last active April 10, 2024 18:50
Ubuntu 22 - PHP development (php 7.4 / 8.2, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu 20/22 dev Server
# Run like (without sudo) - bash install_lamp.sh
# Script should auto terminate on errors
export DEBIAN_FRONTEND=noninteractive