Remove programms.json
This commit is contained in:
parent
43016d7326
commit
5fc955e405
@ -1,27 +1,18 @@
|
|||||||
import json
|
|
||||||
import platform
|
import platform
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
|
|
||||||
class ToolsInstaller:
|
class ToolsInstaller:
|
||||||
|
|
||||||
def __init__(self):
|
|
||||||
with open("modules/install/programs.json") as config_file:
|
|
||||||
self.programs_json = json.load(config_file)
|
|
||||||
|
|
||||||
def basic_tools(self):
|
def basic_tools(self):
|
||||||
"""Install the most basic tools!"""
|
"""Install the most basic tools!"""
|
||||||
print("Try to install basic Command-line tools")
|
print("Try to install basic Command-line tools")
|
||||||
|
subprocess.run("apt-get install bleachbit nano xrdp htop bash-completion dialog powertop tree", shell=True)
|
||||||
programs_list = " ".join(p for p in self.programs_json['basic-tools'])
|
|
||||||
subprocess.run("apt-get install" + programs_list, shell=True)
|
|
||||||
|
|
||||||
print("Script ran to completion.")
|
print("Script ran to completion.")
|
||||||
|
|
||||||
def hard_drive_tools(self):
|
def hard_drive_tools(self):
|
||||||
"""Install tools to look up smart information from your hard-drives"""
|
"""Install tools to look up smart information from your hard-drives"""
|
||||||
programs_list = " ".join(p for p in self.programs_json['hard-drive'])
|
subprocess.run("apt-get install smartmontools gsmartcontrol", shell=True)
|
||||||
subprocess.run("apt-get install " + programs_list, shell=True)
|
|
||||||
|
|
||||||
def docker(self):
|
def docker(self):
|
||||||
"""Install the Docker service on the machine"""
|
"""Install the Docker service on the machine"""
|
||||||
|
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"basic-tools": [
|
|
||||||
"bleachbit",
|
|
||||||
"nano",
|
|
||||||
"xrdp",
|
|
||||||
"htop",
|
|
||||||
"bash-completion",
|
|
||||||
"dialog",
|
|
||||||
"powertop",
|
|
||||||
"tree"
|
|
||||||
],
|
|
||||||
"hard-drive": [
|
|
||||||
"smartmontools",
|
|
||||||
"gsmartcontrol"
|
|
||||||
]
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user