import subprocess class ToolsInstaller: def basic_tools(self): """Install the most basic tools!""" print("Try to install basic Command-line tools") subprocess.run("apt-get install -y bleachbit nano xrdp htop bash-completion dialog powertop tree wget", shell=True) print("Script ran to completion.") def hard_drive_tools(self): """Install tools to look up smart information from your hard-drives""" subprocess.run("apt-get install -y smartmontools gsmartcontrol", shell=True) def docker(self): """Install the Docker service on the machine""" subprocess.run("curl -fsSL https://get.docker.com | bash", shell=True) subprocess.run("curl -L \"https://github.com/docker/compose/releases/download/" "1.25.4/docker-compose-$(uname -s)-$(uname -m)\" -o /usr/local/bin/docker-compose" "&& chmod +x /usr/local/bin/docker-compose", shell=True)