Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

danibaumann/ubuntu-vps-init

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

Ubuntu initializer for DigitalOcean or Hetzner VPS

Details

This small script does the following tasks:

  • adds a new sudo user to your VM
  • updates your system with the latest packages
  • installs docker.io
  • installs docker-compose
  • changes the ssh port to the one you select
  • adds the port to the ufw firewall
  • enables the uf firewall
  • add your user to the ssh config as allowed user
  • reboots the machine

Guide

Just run the following commands after you connected the as root via ssh key

curl -L "https://raw.githubusercontent.com/danibaumann/ubuntu-vps-init/main/setup.sh" -o setup.sh
sudo chmod +x setup.sh
sudo ./setup.sh

You will get prompted for the docker-compose version, a username, password and a new SSH Port

License

MIT License

Copyright © 2021 - Baumann Solutions https://basol.ch

About

Initializer script for a new Ubuntu VPS instance on Digitaloceans or Hetzner

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages