-
Notifications
You must be signed in to change notification settings - Fork 16
Home
Welcome to the pyRenamer wiki!
I struggled with installing and configuring to work properly. So here is a copy of my hard-won personal install instructions. Modify to fit your own environment. Hope you find this helpful.
This port of pyRenamer works inside of a python3 conda environment. (Missing 'undo', mp3tag, exif renaming patterns)
You have to:
1. Install/setup miniconda
2. Install pyRenamer
3. Set the environment variable
4. Launch the app
# 1) MINICONDA https://docs.conda.io/projects/miniconda/en/latest/
PREPARE
$ mkdir -p ~/.miniconda3
INSTALL
$ wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/.miniconda3/miniconda.sh bash ~/.miniconda3/miniconda.sh -b -u -p ~/.miniconda3
CLEAN-UP
$ rm -rf ~/.miniconda3/miniconda.sh
INITIALIZE $ ~/.miniconda3/bin/conda init bash
# 2) PyRENAMER https://github.com/tfree87/pyRenamer
CD TO WORKING DIR $ cd ~/.miniconda3/
INSTALL
# Clonning the PyRenamer repo
$ git clone https://github.com/tfree87/pyRenamer
# Enter to the pyRenamer folder
$ cd pyRenamer
# Create a conda environment with the packages needed by pyRenamer
$ conda env create -f pyRenamer-environment.yml
# Activate the Conda Python enviroment
$ conda activate pyRenamer
# Run pyRenamer
$ python3 pyrenamer/pyrenamer.py
create script in: '~/.scripts/pyrenamer3_conda.sh'
make executable
paste text below and follow instructions within to create the panel launcher
#!/bin/bash
#Launcher (Mate-Panel)
#Type: Application
#Command: /home/user/.scripts/pyrenamer3_conda.sh
#comment: Mass Rename Files (miniconda_python3)
#Icon: /home/user/.icons/Ubuntu_10.04/usr/share/pixmaps/pyrenamer.png
source /home/user/.miniconda3/bin/activate pyRenamer
python3 /home/user/.miniconda3/pyRenamer/pyrenamer/pyrenamer.py -r /
-r specify the root directory (how far up the tree you can browse..choose /)
-a specify the active directory (where pyrenamer opens to with a %F..for nemo/caja actions)
I've never figured out how to get the pyrenamer icon working in Nemo. It works otherwise. Here's how I make my Nemo Action:
Copy/Paste the code below into:
$ pluma ~/.local/share/nemo/actions/pyrenamer.nemo_action
[Nemo Action]
Active=true
Name=PyRenamer
Comment=Open PyRenamer here
Exec=python3 /home/user/miniconda3/pyRenamer/pyrenamer/pyrenamer.py -r / -a %F
Icon-Name=pyrenamer
Selection=Any
Extensions=dir;
Quote=double
fi