- Step 1: Clone the repository
git clone https://github.com/omg-cable-mitigator/omg-cable-mitigator.git
-
Step 2: Update the
base_path
inside theconfig.example.json
file with you specific path and rename it toconfig.json
-
Step 3: Update the path to read the config file inside
main.py
,gui.py
andeject_device.py
-
Step 4: Copy and paste below text into the terminal to create service file for background running. Rememeber to change ExecStart-path!!
sudo touch /lib/systemd/system/omg-cable-mitigator.service && sudo bash -c 'cat << EOF > /lib/systemd/system/omg-cable-mitigator.service
[Unit]
Description=OMG Cable Mitigator
[Service]
Type=simple
ExecStart=/usr/bin/python3 path/to/the/program/omg-cable-mitigator/src/main.py
[Install]
WantedBy=multi-user.target
EOF'
- Step 5: Start the service file for background running
sudo bash /path/to/the/program/reset.sh