Skip to content

Instantly share code, notes, and snippets.

@adenvt
Last active June 20, 2024 18:13
Show Gist options
  • Save adenvt/722b22de40ba89e08c8158929fa48136 to your computer and use it in GitHub Desktop.
Save adenvt/722b22de40ba89e08c8158929fa48136 to your computer and use it in GitHub Desktop.
Script install server Ubuntu
#!/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