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 July 6, 2024 03:45
Ubuntu 22/24 - PHP development (php 7.4 / 8.3, apache 2.4)
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Ubuntu Server
# Run like (without sudo) - bash install_lamp.sh
# Script should auto terminate on errors
export DEBIAN_FRONTEND=noninteractive