From 62d9433bb0827b799d37646074de29e093007f44 Mon Sep 17 00:00:00 2001 From: JoYo <> Date: Sun, 19 Jun 2022 15:48:34 -0400 Subject: [PATCH] updated instructions --- README.mdown | 63 ++++++++++++++++++++++++++++++++++++++++++++------ banana.service | 2 +- 2 files changed, 57 insertions(+), 8 deletions(-) diff --git a/README.mdown b/README.mdown index 01d1be6..c771ae8 100644 --- a/README.mdown +++ b/README.mdown @@ -32,13 +32,13 @@ It will look similar to the following: ```yaml addons: -- https://www.esoui.com/downloads/info7-LibAddonMenu.html -- https://www.esoui.com/downloads/info1245-TamrielTradeCentre.html -- https://www.esoui.com/downloads/info1146-LibCustomMenu.html + - https://www.esoui.com/downloads/info7-LibAddonMenu.html + - https://www.esoui.com/downloads/info1245-TamrielTradeCentre.html + - https://www.esoui.com/downloads/info1146-LibCustomMenu.html ``` Add the ESOUI url for each additional addon you wish to keep updated. -Make sure to prefix each URL line with a dash and a space (`- `). +Make sure to prefix each URL line with a dash and a space (`-`). # Windows Installation @@ -49,7 +49,7 @@ Open [Windows Terminal](https://www.microsoft.com/en-US/p/windows-terminal/9n0dx Use the Python package manager PIP to install `eso-banana`. ```powershell -cd .\eso-banana\ +cd .\banana\ pip install . ``` @@ -76,6 +76,7 @@ TaskPath TaskName State -------- -------- ----- \ eso-banana Ready ``` + # Windows Unschedule Only run the following command if you wish to remove scheduled run of `eso-banana`. @@ -91,10 +92,33 @@ Press enter to confirm removal. # Linux Installation The following instructions are for any linux system using systemd. -This include the Steam Deck. +Using your distros package management system, install python3-pip. ``` -cp banana.py /home/deck/ +sudo apt install python3-pip +``` + +Because systemd is cancer you will need to edit the `banana.service` file to include your user's home path. + +``` +[Unit] +Description=Run banana daily and on boot. +Wants=banana.timer + +[Service] +Type=oneshot +ExecStart=/home/user_name_here/.local/bin/eso-banana-script +User=deck + +[Install] +WantedBy=multi-user.target +``` + +Finally, install `eso-banana` using pip and install the systemd timer and service to run `eso-banana` everyday. + +``` +cd ./banana/ +pip install . cp banana.timer banana.service /etc/systemd/system/ sudo systemctl enable banana.timer sudo systemctl enable banana.service @@ -108,3 +132,28 @@ Only run the following command if you wish to remove scheduled run of `eso-banan systemctl list-timers --all sudo systemctl disable banana.timer ``` + +# Steam Deck Installation + +The following instructions are for arch linux system using systemd. + +``` +sudo btrfs property set -ts / ro false +sudo pacman-key --init +sudo pacman-key --populate archlinux +sudo pacman -S python-pip +cd ./banana/ +pip install . +cp banana.timer banana.service /etc/systemd/system/ +sudo systemctl enable banana.timer +sudo systemctl enable banana.service +``` + +# Steam Deck + +Only run the following command if you wish to remove scheduled run of `eso-banana`. + +``` +systemctl list-timers --all +sudo systemctl disable banana.timer +``` diff --git a/banana.service b/banana.service index 9c25ed5..462890b 100644 --- a/banana.service +++ b/banana.service @@ -4,7 +4,7 @@ Wants=banana.timer [Service] Type=oneshot -ExecStart=/usr/bin/python3 /home/deck/banana.py +ExecStart=/home/deck/.local/bin/eso-banana-script User=deck [Install]