Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Common Ubuntu server setup for LAMP-ish configuration.
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
if [ "$1" = '-v' ] ; then
set -o xtrace
shift
fi
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:wireguard/wireguard
sudo add-apt-repository ppa:certbot/certbot
curl -sSO https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_amd64.deb
sudo dpkg -i mod-pagespeed-stable_current_amd64.deb
curl -sS https://dl.google.com/linux/linux_signing_key.pub \
| sudo apt-key add -
sudo apt-get update
sudo apt-get install -y \
certbot \
wireguard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.