Skip to content

Instantly share code, notes, and snippets.

@nfl0
Created February 14, 2023 19:20
Show Gist options
  • Save nfl0/4d86f641668c3386eca9a49373ec85b9 to your computer and use it in GitHub Desktop.
Save nfl0/4d86f641668c3386eca9a49373ec85b9 to your computer and use it in GitHub Desktop.
#!/bin/bash
source $HOME/.bashrc
TZ=Africa/Casablanca
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
apt-get update
apt-get upgrade -y
apt-get install -y sudo nano wget tar zip unzip jq goxkcdpwgen ssh nginx build-essential git make gcc nvme-cli pkg-config libssl-dev libleveldb-dev clang bsdmainutils ncdu libleveldb-dev apt-transport-https gnupg2 cron
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
(echo ${my_root_password}; echo ${my_root_password}) | passwd root
service ssh restart
service nginx start
sleep 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment