Created
February 14, 2023 19:20
-
-
Save nfl0/4d86f641668c3386eca9a49373ec85b9 to your computer and use it in GitHub Desktop.
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 | |
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