Virtual Machine running Ubuntu 22.04 or newer
sudo apt update
sudo apt upgrade
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
________ ________ ___ __ ___ | |
|\_____ \|\ __ \|\ \|\ \ |\ \ | |
\|___/ /\ \ \|\ \ \ \/ /|\ \ \ | |
/ / /\ \ __ \ \ ___ \ \ \ | |
/ /_/__\ \ \ \ \ \ \\ \ \ \ \ | |
|\________\ \__\ \__\ \__\\ \__\ \__\ | |
\|_______|\|__|\|__|\|__| \|__|\|__| | |
Ignore Azure and GCP. This gist was implemented on AWS. |
CNs are important!!! -days 3650
umask u=rw,go= && openssl req -days 3650 -new -text -nodes -subj '/C=US/ST=Massachusetts/L=Bedford/O=Personal/OU=Personal/[email protected]/CN=localhost' -keyout server.key -out server.csr
umask u=rw,go= && openssl req -days 3650 -x509 -text -in server.csr -key server.key -out server.crt
# | |
# | |
fake-cd() { | |
echo "bash: cd: $1: No such file or directory" | |
} | |
# | |
# | |
fake-ls() { | |
echo "ls: cannot access $1: No such file or directory" |
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |