This file contains 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Picture of La Martinière For Boys</title> | |
</head> |
This file contains 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
echo "updating system" | |
sudo apt update | |
echo "Installing node 16.x" | |
curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&\ | |
sudo apt-get install -y nodejs | |
echo "Installing latest npm" | |
npm install -g npm@latest | |
echo "Installing pm2" | |
npm install pm2 -g | |
echo "Installing nginx" |
This file contains 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 | |
# Function to install MongoDB | |
install_mongodb() { | |
echo "Importing the public key used by the package management system." | |
sudo apt-get install -y gnupg curl | |
curl -fsSL https://pgp.mongodb.com/server-6.0.asc | \ | |
sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg --dearmor |
This file contains 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
ip_address=$(ip addr show eth0 | grep 'inet ' | awk '{print $2}' | cut -d/ -f1) | |
# Check if we got the IP address | |
if [ -z "$ip_address" ]; then | |
echo "No IP address found for eth0" | |
exit 1 | |
fi | |
#!/bin/bash | |
CURRENT_PATH=$(echo $PATH) |