This will:
- Add a new user with the specified username.
- Optionally copy the .ssh folder to the new user's home directory and set correct permissions.
- Optionally add the new user to the sudo group.
- Optionally install Docker and Docker Compose, and add the new user to the Docker group.
- Optionally ensure that the correct version of Docker is installed based on your operating system.
As you always should please look over the script before running. It is safe to run but it is good practice to do so.
Logged in as 'Root' user
wget https://raw.githubusercontent.com/WilliamUK17/new-system-script/main/script.sh
chmod +x script.sh
./script.sh
Non-Root User
wget https://raw.githubusercontent.com/WilliamUK17/new-system-script/main/script.sh
chmod +x script.sh
sudo ./script.sh
Logged in as 'Root' user
curl -o script.sh --url https://raw.githubusercontent.com/WilliamUK17/new-system-script/main/script.sh
chmod +x script.sh
./script.sh
Non-Root User
curl -o script.sh --url https://raw.githubusercontent.com/WilliamUK17/new-system-script/main/script.sh
chmod +x script.sh
sudo ./script.sh
If you get a error saying wget or curl is not installed you need to install this with your package manager for example for debian:
sudo apt install wget
sudo apt install curl