Last active
June 20, 2024 18:13
-
-
Save adenvt/722b22de40ba89e08c8158929fa48136 to your computer and use it in GitHub Desktop.
Script install server Ubuntu
This file contains hidden or 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 | |
# env | |
export DEBIAN_FRONTEND=noninteractive | |
## Install basic packages | |
apt update && apt upgrade && apt install -y -f \ | |
git \ | |
curl \ | |
vim \ | |
htop \ | |
build-essential \ | |
screenfetch \ | |
nginx | |
## Install NVM | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash | |
## Set NGINX | |
service nginx stop | |
cd /etc | |
mv nginx nginx-previous | |
git clone https://github.com/adenvt/server-configs-nginx.git nginx | |
service nginx start | |
## Set Firewall | |
ufw allow ssh http https | |
ufw enable | |
## Install utils | |
### Speedtest | |
curl -s https://packagecloud.io/install/repositories/ookla/speedtest-cli/script.deb.sh | sudo bash | |
sudo apt-get install speedtest |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment