Download the latest Ubuntu LTS version. It can be either the Desktop or Server version.
Install Ubuntu on the server. Make sure to enable SSH.
Create a user account for the server which will be the main account.
Update the server by running the following commands:
sudo apt update && sudo apt upgrade -y
- Follow the instructions in the Remote Access file.
You will need admin access in GitHub to do this.
Go to the Settings of the organization, then go to Actions → Runners, and click on the "Add New Runner" button.
Follow the instructions to add a new runner.
Once the runner is added, go to the Settings of the organization, click on Configure, and enable it to run on all repositories and on public repositories.
Make the runner start automatically after a system restart by running the following commands:
./svc.sh install ./svc.sh start
Check the status of the runner by running:
./svc.sh status
- Go to the Actions tab on the repository and click on the workflows that correspond to the scripts you want to add to the server.
- Click on the "Run workflow" button and wait for the workflow to complete.
- Once it is completed, the scripts will be added to the server.
- Finally, go into the Show-Active-Users and New-User-Creator folders and follow the instructions in the
README.mdfiles to finalize the setup.
To update the server, run the following command in your home directory. This will run the
update.shscript:./update.sh
Any updates to the scripts will be automatically pushed to the server upon a push to the main branch.