forked from clara-j/media_cleaner
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Install_Linux
terrelsa13 edited this page May 28, 2025
·
2 revisions
- It is assumed your user has the ability to execute commands using
sudo.- If not, your system administrator will need to perform the install.
- Python3.10 is the minimum required version
- 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 -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.0jump to the Check Python3-pip Version section
- Change to the
/usr/src/directory:cd /usr/src/ - Download Python3.10 (or later):
sudo wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tgz
- Extract the downloaded package:
sudo tar xzf Python-3.10.0.tgz
- Change to the newly extracted
Python3.10package directory:cd /usr/src/Python3.10 - Compile
Python3.10from the source files:sudo ./configure --enable-optimizations --with-lto
- Install
Python3.10as an alternate Python version; without overwritting the default Python version:sudo make -j altinstall
- Unless you know what you are doing, do NOT overwrite the default Python version installed on your OS; install additional Python versions using
altinstall
- Unless you know what you are doing, do NOT overwrite the default Python version installed on your OS; install additional Python versions using
- 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
- In a terminal window enter:
/usr/local/bin/python3.10 -m pip install --upgrade pip
- You can also select your OS and follow
git's installation instructions. - Or perform the step below
- In a terminal window enter:
sudo apt update && sudo apt install git -y
- In a terminal window enter:
- Cloing the latest MUMC release branch:
cd /opt && sudo git clone https://github.com/terrelsa13/MUMC.git
- The MUMC directory should now exist as
/opt/MUMCand its contents will currently belong to therootuser - Change the MUMC directory's
user:groupto the current user's: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.logissue#86 -
PyYAML- Needed for parsing themumc_config.yamlfile -
python_dateutil- Needed for played and created date comparisons -
six- Used bypython_dateutil
-
- These can be installed by using the
requirements.txtin the/opt/MUMCdirectory - In a terminal window enter:
cd /opt/MUMC && pip3 install -r requirements.txt
- In a terminal window enter:
cd /opt/MUMC && apt install python3-dateutil python3-six python3-emoji python3-PyYAML
- In a terminal window enter:
python3 /opt/MUMC/mumc.py - First time MUMC is run, it will walk through creating the mumc_config.yaml file.
-
In the terminal window enter:
crontab -e -
At the bottom of the crontab file, type one of the following examples:
To run
/opt/MUMC/mumc.pyeveryday at 03:21hrs (aka 3:21am)21 3 * * * python3 /opt/MUMC/mumc.pyTo run
/opt/MUMC/mumc.pyevery Monday at 01:23hrs (aka 1:23am) and save the output to log file/var/log/mumc.log23 1 * * 1 python3 /opt/mumc/mumc.py > /var/log/mumc.log 2>&1
The following links are a good starting point to learn the crontab syntax:
- MUMC wiki
- Install
- Files & Directories
- Terminology
- Configuration File Examples
- Configuration Tree
-
Additional Information
- OS Permissions
- Configuration Builder/Editor
- 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
- Media Mangers
- Command-Line Arguments
- Make MUMC Run FASTERRRRRR!!!
- Known Limitations