DISCONTINUED
The Ubuntu Server Setup Tool (USST) is a Bash-script you can use to automatically install software and docker containers with a simple GUI. It also acts as a tool to easily create reverse proxys with Nginx.
This is a tool fitting my personal setup procedure on a new ubuntu machine and therefore using the configuration I normally use to setup my servers. Therefore to really get the most out of this tool you should have following setup:
- Domain with DNS managed by Cloudflare
- Clone this repo to your local machine using
git clone https://github.com/nicojeske/SetupScripts
- Make the installer script executable using
chmod +x /SetupScripts/linuxInstallTool.sh
- Run the installer script with root privileges using
sudo /SetupScripts/linuxInstallTool.sh
- Select what you want in the setup tool. Be sure to check out the description in Options too see exactly what the option would do.
This will install webmin and usermin with webmin listening on port 10000 and usermin on port 20000
Important: If you want to access webmin via a subdomain like webmin.example.com you should use the option AddNginxProxy to generate a reverse Proxy for webmin (Running on port 10000) as this will setup the domain in webmin. Otherwise you would not be able to connect to webmin from outside.
This will install ZSH and ohmyzsh applying some custom styling and installing the zsh-syntax-highlighting plugin
for syntax highlighting in the shell. During the install you are asked by Oh My Zsh if you want to set zsh as your default shell. Answer with yes then use exit
to continue the install script.
This will install Nginx together with a wildcard SSL Certificate from LetsEncrypt. To use this option you need a domain with the SSL settings managed with Cloudflare.
During the install you get asked for your Cloudflare Email adress and your Clouflare API token which is needed to automatically generate a wildcard SSL certificate for you.
You can find your Cloudflare API Token this way:
- Open your domain on Cloudflare
- In the right sidebar scroll to the section API and open "Get your API token"
- In the category API Keys select view for "Global API Key"
- Enter your password and you will find your API Key.
This will install Docker and Dockercompose.
To use this menu option docker must be installed. It is advised to have Nginx also installed to directly add reverse proxys for your Containers.
You can currently install following containers:
- Portainer - a docker webinterface
- Statping - a status page for your services
- Teamspeak - VOIP software
- Sinusbot - Musicbot for Teamspeak
- Nextcloud - Selfhosted cloud storage
- Heimdall - Startpage
- Duplicati - Backup solution
- Watchtower - Automatic container updates
The following containers use docker-compose:
- Statping
- Nextcloud
- Heimdall
- Duplicati
The docker-compose.yml file can be found in /var/linuxsetuptool/\<ContainerName\>
.
If nginx is installed the tool will automatically ask for a subdomain and a domain of your server. It then automatically adds an reverse proxy for the container in nginx.
If you have some tool running on a specific port you can easily create a reverse proxy for it using this option.
Feel free to contribute to the tool and add more software and containers that can be automatically installed.
- 🍴 Fork this repo!
- HACK AWAY! 🔨🔨🔨
- 🔃 Create a new pull request.
Nico Jeske |
---|
github.com/nicojeske |
- MIT license
- Copyright 2020 © Nico Jeske.