-
-
Notifications
You must be signed in to change notification settings - Fork 6
Install
- It is assumed your user has ability to execute commands using
sudo
.- If not, your system administrator will need to perform the install.
- Python3.10 is the minimum required version
- A more recently released version will also work until their are breaking changes in the Python package
- Open a terminal window using the following keyboard shortcut:
ctrl+alt+t
- Find the installed python3 version by typing the following command in the terminal window:
python3.10 -V
- You may need to try the above command with
python3.10 -V
,python3.11 -V
, etc... depending on the version of Python already installed
- You may need to try the above command with
- The output should look something like this:
python3.10.0
- If your Python3 version is >=
Python 3.10.0
jump to the Check Python3-pip Version section
- There are numerous pages online, like this one, showing how to install python3.10 or later as an
altinstall
- Unless you know what you are doing, do NOT overwrite the default Python version installed on your OS; install additional Python versions as alternate installs
- In a terminal window type the following command:
pip3 -V
- The output should look something like this:
pip #.#.# etc... (Python3.10)
; make sure the python version at the end is >=Python3.10
- If pip3 is installed jump to the Install Git section
- There are numerous pages online, like this one and this one, showing how to install pip
- You can also select your OS and follow
git
's installation instructions. - Or perform the step below
- In a terminal window type the following command:
sudo apt update && sudo apt install git -y
- In a terminal window type the following command:
- The example will install MUMC to the
/opt/MUMC
directory.- MUMC may be installed to a different directory if desired.
- In a terminal window type the following command:
cd /opt && sudo git clone https://github.com/terrelsa13/MUMC.git
- The MUMC directory should now exist as
/opt/MUMC
and its contents will currently belong to theroot
user - Change the MUMC directory's
user:group
to the current user's by typing the following command in the terminal:sudo chown -R $USER:$(id -gn $USER) /opt/MUMC
- MUMC requires the following Python3 packages:
-
emoji
- Used to remove emojis from text printed to themumc_debug.log
issue#86 -
PyYAML
- Needed for parsing themumc_config.yaml
file -
python_dateutil
- Needed for played and created date comparisons -
six
- Used bypython_dateutil
-
- These can be installed by using the
requirements.txt
in the/opt/MUMC
directory - In a terminal window type the following command:
cd /opt/MUMC && pip3 install -r requirements.txt
- In a terminal window type the following commands:
cd /opt/MUMC apt install python3-dateutil python3-six python3-emoji python3-PyYAML
First Run and mumc_config.yaml creation
- Python3.10 is the minimum version
- A more recently released version will also work until their are breaking changes in the Python package
- Download the lastest version from the Python website.
- Run the installer.
- Unselect 'Add python.exe to PATH'.
- Take note of where this version of Python will be installed.
- On Windows10 the install path is:
C:\Users\[your_user_name]\AppData\Local\Programs\Python\Python3.x
- On Windows10 the install path is:
- Select 'Install Now'
- Step through any remaining steps until the install is complete.
- Select your OS and follow the instructions for installing
git
on Windows.
- Navigate to
C:\Users
- Hold shift and right click the folder with your username.
- In the menu select 'Open PowerShell window here'
- In the PowerShell window type the following command:
git clone https://github.com/terrelsa13/MUMC.git
- Once the clone is completed, navigate to
C:\Users\[your_user_name]\MUMC
- ([your_user_name] is the username you are logged in as.)
- MUMC requires the following Python3 packages:
-
emoji
- Used to remove emojis from text printed to themumc_debug.log
issue#86 -
PyYAML
- Needed for parsing themumc_config.yaml
file -
python_dateutil
- Needed for played and created date comparisons -
six
- Used bypython_dateutil
-
- These can be installed by using the
requirements.txt
in theC:\Users\[your_user_name]\MUMC
directory - In a PowerShell window type the following command:
cd C:\Users\[your_user_name]\MUMC; pip3 install -r requirements.txt
First Run and mumc_config.yaml creation
-
Install either Docker Engine or Docker Desktop on your host machine.
- Install Docker Engine on your host machine.
- Docker Desktop on your host machine.
-
Install Portainer on your host machine.
-
On the host machine create a blank config file using the following command:
sudo mkdir -p /opt/MUMC/config
-
Give the current user permissions to the config directory using the following command:
sudo chown -R $(id -un):$(id -gn) /opt/MUMC
-
Create an empty config file using the following commands:
touch /opt/MUMC/config/mumc_config.yaml
touch /opt/MUMC/config/mumc_DEBUG.log
touch /opt/MUMC/config/mumc_CRON_OUTPUT.log
-
Add current user to docker group using the following command:
sudo usermod -aG docker $USER
-
Restart Docker to so the current user is able to execute Docker commands:
sudo systemctl restart docker
OR... restart the host machine.
Image tags:
-
ghcr.io/terrelsa13/mumc:latest
- The latest stable release. -
ghcr.io/terrelsa13/mumc:MUMC-Latest
- The latest stable release. -
ghcr.io/terrelsa13/mumc:v#.#.#
- A specific stable release. -
ghcr.io/terrelsa13/mumc:MUMC_beta
- The latest beta release. -
ghcr.io/terrelsa13/mumc:v#.#.#-beta
- A specific beta release.
Portainer:
- Open your portainer instance and navigate to:
- Home > Dashboard > Stacks
- Select the "Add stack" button
- In the "name" textbox enter:
mumc
- In the "Web editor" textbox copy/paste the docker compose commands below.
version: "3.9" services: mumc: image: ghcr.io/terrelsa13/mumc:latest container_name: mumc restart: on-failure:1 environment: TZ: America/New_York CMDLINE_ARGS: "" volumes: - "/opt/MUMC/config:/usr/src/app/config"
- Take note: The first half of the line underneath
volumes:
contains the path from step#3. Make the necessary changes if your path is different.
Docker CLI:
- Open a terminal window.
- Copy/Paste the docker command below (single line).
docker run -d --name mumc --restart=on-failure:1 -v /opt/MUMC/config:/usr/src/app/config -e TZ=America/New_York -e=CMDLINE_ARGS "" ghcr.io/terrelsa13/mumc:latest
- Take note: The first half of the '-v' flag contains the path from step#3. Make the necessary changes if your path is different.
-
-
Start the container.
Portainer:
- Select the "Deploy the stack" button.
Docker CLI:
- Wait for the images to finish downloading.
- MUMC wiki
- Install
- Files & Directories
- First Run
- Scheduled Run
- Terminology
- Configuration File Examples
- Configuration Tree
-
Additional Information
- OS Permissions
- User And Library Builder
- Played And Created Filter Statement Breakdown
- Played And Created Filter Tag Breakdown
- Dangerous Filter Statements
- Behavioral Statement Breakdown
- Behavioral Tag Breakdown
- Blacklisting vs Whitelisting
- Blacktagging vs Whitetagging
- Library Matching byId vs byPath vs byNetworkPath
- Minimum Episodes vs Minium Played Episodes
- Conditional Behavior Priorities
- Command-Line Options
- Make MUMC Run FASTERRRRRR!!!
- Known Limitations