Skip to content

WilliamUK17/new-system-script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

A System Setup Script

This will:

  1. Add a new user with the specified username.
  2. Optionally copy the .ssh folder to the new user's home directory and set correct permissions.
  3. Optionally add the new user to the sudo group.
  4. Optionally install Docker and Docker Compose, and add the new user to the Docker group.
  5. Optionally ensure that the correct version of Docker is installed based on your operating system.

Important Note

As you always should please look over the script before running. It is safe to run but it is good practice to do so.

Instructions

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

Or you can use curl

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages