Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Guide for Medusa?

dr4k4th

Newbie
Joined
Oct 8, 2014
Messages
3
I'd like to point out a comment in post: https://forums.freenas.org/index.ph...ransmission-with-vpn.55502/page-8#post-427586.

It is bad practice by the way to make changes to /etc/pkg/FreeBSD.conf. You should create a FreeBSD.conf at /usr/local/etc/pkg/repos/ if you want to use the latest repo instead.
mkdir -p /usr/local/etc/pkg/repos
vi /usr/local/etc/pkg/repos/FreeBSD.conf
I don't know how valid this is, but it makes some sense; so I made the conf file as per this and it works fine.
 

statik

Member
Joined
Sep 8, 2013
Messages
71
WORKING! So I took these commands from the new Sickrage website forum for installing their new Sickrage on FreeNAS. Speaking of, it may look nice but the new Sickrage was hijacked and requries SSO which is pretty unsecure. I just updated the commands to reflect medusa and SSH'ed into my freenas root and ran all of these commands one line at a time and it worked for me. You should just need to change the mkdir location if you need to at all, I did not use this, and change the mount location for the fstab command.


echo '{"pkgs":["ca_root_nss","git"]}' > /tmp/pkg.json
iocage create -n "medusa" -p /tmp/pkg.json -r 11.1-RELEASE dhcp=on bpf=yes vnet="on" devfs_ruleset=5 interfaces=vnet0:bridge0 host_hostname=medusa allow_raw_sockets="1" boot="on"
rm /tmp/pkg.json

mkdir -p /mnt/VolumeData/Media

iocage fstab -a medusa /mnt/VolumeData/Media /Media2 nullfs rw 0 0

iocage exec medusa "sed -i -e 's/quarterly/release_2/g' /etc/pkg/FreeBSD.conf"
iocage exec medusa pkg update
iocage exec medusa pkg upgrade -y
iocage exec medusa "echo 'OSVERSION = 1101001' >> /usr/local/etc/pkg.conf"
iocage exec medusa "echo 'IGNORE_OSVERSION = yes' >> /usr/local/etc/pkg.conf"
iocage exec medusa pkg install -y python27 py27-openssl py27-pip py27-lxml py27-sqlite3
iocage exec medusa pkg update -f
iocage exec medusa pkg upgrade -fy

iocage exec medusa "git clone https://github.com/pymedusa/Medusa.git /usr/local/share/medusa"
iocage exec medusa "pip install -r /usr/local/share/medusa/requirements.txt"
iocage exec medusa "pw user add medusa -c medusa -u 351 -d /nonexistent -s /usr/bin/nologin"
iocage exec medusa service medusa onestop
iocage exec medusa "pw user add media -c media -u 8675309 -d /nonexistent -s /usr/bin/nologin"
iocage exec medusa "pw groupadd -n media -g 8675309"
iocage exec medusa "pw groupmod media -m medusa"
iocage exec medusa chown -R media:media /usr/local/share/medusa /config
iocage exec medusa mkdir /usr/local/etc/rc.d
iocage exec medusa cp /usr/local/share/medusa/runscripts/init.freebsd /usr/local/etc/rc.d/medusa
iocage exec medusa chmod u+x /usr/local/etc/rc.d/medusa
iocage exec medusa sysrc "medusa_enable=YES"
iocage exec medusa sysrc "medusa_user=media"
iocage exec medusa sysrc "medusa_dir=/usr/local/share/medusa"
iocage exec medusa sysrc "medusa_datadir=/config"
iocage exec medusa service medusa start
 

hertzsae

Member
Joined
Sep 23, 2014
Messages
73
statik - Thanks for writing up what worked for you, it's greatly helped me with my install. I made a few changes and have it up and running in 12U4. I'm coming from sick chill (sick rage fork) and it didn't want to import my config, so I'm back on sickchill (my doing a find/replace on these steps)

A few of the changes are, it doesn't seem like we need to create a medusa user and if you install to /usr/local/medusa, you don't need to specify a medusa_dir later on.

Anyhow, I hope this helps anyone else that is trying to get sickbeard forked pvr's running without switching to sonarr.

# Use the bash shell
bash
# Create the jail 192.168.123.105
iocage create -n "medusa" -r 11.2-RELEASE interfaces="vnet0:bridge0" defaultrouter="none" vnet="on" dhcp="on" bpf="yes" allow_raw_sockets="1" boot="on"

# Update to the latest repo
iocage exec medusa "mkdir -p /usr/local/etc/pkg/repos"
iocage exec medusa echo -e 'FreeBSD: { url: \"pkg+http://pkg.FreeBSD.org/\${ABI}/latest\" }' > /usr/local/etc/pkg/repos/FreeBSD.conf

# Install medusa and dependencies
iocage exec medusa pkg install -y git python27 py27-openssl py27-lxml py27-sqlite3 py27-pip

# When medusa switches to python 3
#iocage exec medusa pkg install -y python36 py36-openssl py36-pip py36-lxml py36-sqlite3 git
# User that I took this from installed to a different directory
#iocage exec medusa git clone https://github.com/pymedusa/Medusa.git /usr/local/share/medusa

iocage exec medusa git clone https://github.com/pymedusa/Medusa.git /usr/local/medusa
iocage exec medusa pip-2.7 install -r /usr/local/medusa/requirements.txt

#iocage exec medusa mkdir /usr/local/etc/rc.d
iocage exec medusa cp /usr/local/medusa/runscripts/init.freebsd /usr/local/etc/rc.d/medusa
iocage exec medusa chmod u+x /usr/local/etc/rc.d/medusa

# Mount storage
iocage fstab -a medusa /mnt/Vol1/media /media nullfs rw 0 0
iocage fstab -a medusa /mnt/Vol1/jail_config_data/medusa /var/db/medusa nullfs rw 0 0

# Create media
iocage exec medusa "pw groupadd media -g 816"
iocage exec medusa "pw useradd -n media -u 1001 -d /nonexistent -s /usr/sbin/nologin"

#copy settings and db from old (commented out, only used once)
# cp -r /mnt/Vol1/pluginjails/sickrage_1/var/db/sickrage/* /mnt/Vol1/jail_config_data/medusa/

# Set permissions on install and config
iocage exec medusa chown -R media:media /usr/local/medusa
iocage exec medusa chown -R media:media /var/db/medusa

# Set rc.conf for proper user/group, data directory and enable service
iocage exec medusa sysrc medusa_user=media
iocage exec medusa sysrc medusa_group=media
iocage exec medusa sysrc medusa_datadir=/var/db/medusa
iocage exec medusa sysrc medusa_enable=YES

# Needed if installing to /usr/local/share/medusa, not /usr/local/medusa
# iocage exec medusa sysrc medusa_dir=/usr/local/share/medusa

# Disable IPv6 (for my personal install)
iocage exec medusa vi /etc/rc.conf

# Start the service
iocage exec medusa service medusa start

# Stop the service
iocage exec medusa service medusa stop

# Update (should be able to update itself, usefull to have git command reference)
iocage exec medusa service medusa stop
iocage exec medusa git -C /usr/local/medusa pull
iocage exec medusa service medusa start
 

indivision

Senior Member
Joined
Jan 4, 2013
Messages
334
I tried these guides on 11.3-Beta and couldn't get medusa to start up. It looks like it gives an error because it looks for Python 3?

Can someone post an updated process that works in 11.3-Beta? (I saw the note above for python 3. But, it didn't seem to work to use that.)
 

Supa

Member
Joined
Jan 10, 2014
Messages
204
statik - Thanks for writing up what worked for you, it's greatly helped me with my install. I made a few changes and have it up and running in 12U4. I'm coming from sick chill (sick rage fork) and it didn't want to import my config, so I'm back on sickchill (my doing a find/replace on these steps)

A few of the changes are, it doesn't seem like we need to create a medusa user and if you install to /usr/local/medusa, you don't need to specify a medusa_dir later on.

Anyhow, I hope this helps anyone else that is trying to get sickbeard forked pvr's running without switching to sonarr.

# Use the bash shell
bash
# Create the jail 192.168.123.105
iocage create -n "medusa" -r 11.2-RELEASE interfaces="vnet0:bridge0" defaultrouter="none" vnet="on" dhcp="on" bpf="yes" allow_raw_sockets="1" boot="on"

# Update to the latest repo
iocage exec medusa "mkdir -p /usr/local/etc/pkg/repos"
iocage exec medusa echo -e 'FreeBSD: { url: \"pkg+http://pkg.FreeBSD.org/\${ABI}/latest\" }' > /usr/local/etc/pkg/repos/FreeBSD.conf

# Install medusa and dependencies
iocage exec medusa pkg install -y git python27 py27-openssl py27-lxml py27-sqlite3 py27-pip

# When medusa switches to python 3
#iocage exec medusa pkg install -y python36 py36-openssl py36-pip py36-lxml py36-sqlite3 git
# User that I took this from installed to a different directory
#iocage exec medusa git clone https://github.com/pymedusa/Medusa.git /usr/local/share/medusa

iocage exec medusa git clone https://github.com/pymedusa/Medusa.git /usr/local/medusa
iocage exec medusa pip-2.7 install -r /usr/local/medusa/requirements.txt

#iocage exec medusa mkdir /usr/local/etc/rc.d
iocage exec medusa cp /usr/local/medusa/runscripts/init.freebsd /usr/local/etc/rc.d/medusa
iocage exec medusa chmod u+x /usr/local/etc/rc.d/medusa

# Mount storage
iocage fstab -a medusa /mnt/v1/media /media nullfs rw 0 0
iocage fstab -a medusa /mnt/v1/jail_config_data/medusa /var/db/medusa nullfs rw 0 0

# Create media
iocage exec medusa "pw groupadd media -g 816"
iocage exec medusa "pw useradd -n media -u 1001 -d /nonexistent -s /usr/sbin/nologin"

#copy settings and db from old (commented out, only used once)
# cp -r /mnt/v1/pluginjails/sickrage_1/var/db/sickrage/* /mnt/v1/jail_config_data/medusa/

# Set permissions on install and config
iocage exec medusa chown -R media:media /usr/local/medusa
iocage exec medusa chown -R media:media /var/db/medusa

# Set rc.conf for proper user/group, data directory and enable service
iocage exec medusa sysrc medusa_user=media
iocage exec medusa sysrc medusa_group=media
iocage exec medusa sysrc medusa_datadir=/var/db/medusa
iocage exec medusa sysrc medusa_enable=YES

# Needed if installing to /usr/local/share/medusa, not /usr/local/medusa
# iocage exec medusa sysrc medusa_dir=/usr/local/share/medusa

# Disable IPv6 (for my personal install)
iocage exec medusa vi /etc/rc.conf

# Start the service
iocage exec medusa service medusa start

# Stop the service
iocage exec medusa service medusa stop

# Update (should be able to update itself, usefull to have git command reference)
iocage exec medusa service medusa stop
iocage exec medusa git -C /usr/local/medusa pull
iocage exec medusa service medusa start

Few issues I encountered:

Freezes during this command: iocage exec medusa pip-2.7 install -r /usr/local/medusa/requirements.txt

1574544898225.png
\


1574545070856.png
 

Snow

Senior Member
Joined
Aug 1, 2014
Messages
265
Geting same error as above, As I am going to jump ship from SickChill as it seem's it's a dead fork. 12 days broken and they have not fixed the Problem! Yes it is do toTVDB problem's but they could add other indexers in for esp's/seasons info, time, poster's, banner's & ect. Un like medusa witch uses more then one indexers and is pretty much the same code as Sickchill. Tvdb, imbd, & Simkl to name a few.

Going to try a fresh install of Python3 tonight to see If I can get it to work. If so I well do a new write up 11.2U6 with Medusa installed.
In my option sonnar is not comparable to the Sick-beard fork's.
 
Last edited:

Snow

Senior Member
Joined
Aug 1, 2014
Messages
265
Got it working I did not record ever thing I did will post tonight or tomorrow with a guide. on 11.2U7

MedusaFNfroums.png
 
Last edited:

Snow

Senior Member
Joined
Aug 1, 2014
Messages
265
#On FreeNas 11.2U7
#Create a jail for your medusa in Gui.

#Then in the jails shell or
#For ssh type:
jexec jailname tcsh (make sure your log in to your jail not root freenas Should look like root@JAILNAME)

#Then type this in
pkg update && pkg upgrade
pkg install -y python36 py36-openssl py36-pip py36-lxml py36-sqlite3 unrar git nano #Then
pkg install -y python3

#Create a User for Medusa in the GUI the Username is case sensitive medusa.
#Add medusa to your media group. record UID for later use.

#adduser

Username: medusa
Full name: Medusa demonoid
User name: medusa
Email: blank
Password blank
ID & Groups User ID/Uid (Leave empty for default): mine was 817
Login group [media]: added as primary group
New primary group [No] or how ever you config your permissions.
Shell (sh csh tcsh git-shell nologin) [sh]:
Home directory [/home/medusa]: Does not matter unless you use different type of permissions.
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]: no
Not listed in this list leave default

#Install Medusa
git clone https://github.com/pymedusa/Medusa.git /usr/local/medusa
cp /usr/local/medusa/runscripts/init.freebsd /usr/local/etc/rc.d/medusa
chmod 775 /usr/local/etc/rc.d/medusa
chmod u+x /usr/local/etc/rc.d/medusa

#Then Add a User/Groups to the jail
pw user add medusa -c medusa -u UID -d /nonexistent -s /usr/bin/nologin
#My UID was what I made it in the GUI 817
pw groupadd -n GROUP -g GID
# Group being medusa or Your media Group, GID Groups ID Mine is 1001
chown -Rf medusa:medusa /usr/local/medusa #Then Group mod command
#To change user group medusa to media or your group name. From medusa to MEDIA or your GROUPS NAME.
pw groupmod GROUP -m USER #you do not need this if your using medusa:medusa

#Now edit your sysrc
sysrc medusa_enable=YES
sysrc medusa_user=medusa
sysrc medusa_group=Your Media Group
#Try to start
#You can check to make sure this is setup right by typing."nano /usr/local/etc/rc.d/medusa" Ctrl X to exit follow the promts.

#Edit 11/27/2019 Added ffmpeg pkg to solve error's in Medusa
pkg install -y ffmpeg

service medusa start

#To check to make sure all is well.
#Make sure medusa user is listed and ruining in the jail.
ps aux

#then top to make sure it is listed.
top
#should have a medusa user listed. alt q to exit



Then navagate to the Jail IP:8081
medusav6.png
Edit Changed: 12/10/2019 spelling error sysrc
Edit Remove: Unused code that was unnecessary
Edit Added: 11/27/2019 ffmpeg package install
 
Last edited:

Snow

Senior Member
Joined
Aug 1, 2014
Messages
265
#Update Added ffmpeg package to see if this helps with ffmpeg error's in Medusa, testing now. I will see if any other config of ffmpeg is going to be needed.

#Command to install ffmpeg
pkg install -y ffmpeg
#In Gui Restart the jail to make sure all is good in the world.
 

Snow

Senior Member
Joined
Aug 1, 2014
Messages
265
Nock on wood But it seems ffmpeg pkg has done away with the error's!

Added to guide 11/27/2019. I will Try to keep this updated and working as it seems we need people to support plugin/packages.
 
Last edited:

Snow

Senior Member
Joined
Aug 1, 2014
Messages
265
Seeing MediaArea/MediaInfo Error's I did try to Find a Py on Git all froks where C++ Mediainfo && MediaArea.
I did try 'pkg install mediainfo' it did add the Package's & dependency's but not to /usr/local/mediainfo/db && /usr/local/mediainfo/ like medusa wanted.

Not sure if this will fix the error or not. I will test later as its a family day to day in the us. I will try to remove mediainfo pkg then try "pkg -c /usr/local/mediainfo/ install mediainfo" or "pkg -r /usr/local/mediainfo install mediainfo". I've never had to move a package before at that point I usually have a git fork I can use and I just add the dir after it.

One other error I am still looking in to is the your system is using an invalid encoding: ascii, etc. It seems to not effect any thing, if it stay's that way then not going to try and fix it.

Even with the errors medusa is still working.
 
Last edited:

Supa

Member
Joined
Jan 10, 2014
Messages
204
#On FreeNas 11.2U7
#Create a jail for your medusa in Gui.

#Then in the jails shell or
#For ssh type:
jexec jailname tcsh (make sure your log in to your jail not root freenas Should look like root@JAILNAME)

#Then type this in
pkg update && pkg upgrade
pkg install -y python36 py36-openssl py36-pip py36-lxml py36-sqlite3 unrar git nano #Then
pkg install -y python3

#Create a User for Medusa in the GUI the Username is case sensitive medusa.
#Add medusa to your media group. record UID for later use.

#adduser

Username: medusa
Full name: Medusa demonoid
User name: medusa
Email: blank
Password blank
ID & Groups User ID/Uid (Leave empty for default): mine was 817
Login group [media]: added as primary group
New primary group [No] or how ever you config your permissions.
Shell (sh csh tcsh git-shell nologin) [sh]:
Home directory [/home/medusa]: Does not matter unless you use different type of permissions.
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]: no
Not listed in this list leave default

#Install Medusa
git clone https://github.com/pymedusa/Medusa.git /usr/local/medusa
cp /usr/local/medusa/runscripts/init.freebsd /usr/local/etc/rc.d/medusa
chmod 775 /usr/local/etc/rc.d/medusa
chmod u+x /usr/local/etc/rc.d/medusa

#Then Add a User/Groups to the jail
pw user add medusa -c medusa -u UID -d /nonexistent -s /usr/bin/nologin
#My UID was what I made it in the GUI 817
pw groupadd -n GROUP -g GID
# Group being medusa or Your media Group, GID Groups ID Mine is 1001
chown -Rf medusa:medusa /usr/local/medusa #Then Group mod command
#To change user group medusa to media or your group name. From medusa to MEDIA or your GROUPS NAME.
pw groupmod GROUP -m USER #you do not need this if your using medusa:medusa

#Now edit your sysrc
sysrc medusa_enable=YES
sysrc medusa_user=meduas
sysrc medusa_group=Your Media Group
#Try to start 1st before adding "sysrc medusa_datadir=/config" you don't need it from what I found
#You can check to make sure this is setup right by typing."nano /usr/local/etc/rc.d/medusa" Ctrl X to exit follow the promts.

#Edit 11/27/2019 Added ffmpeg pkg to solve error's in Medusa
pkg install -y ffmpeg

service medusa start

#To check to make sure all is well.
#Make sure medusa user is listed and ruining in the jail.
ps aux

#then top to make sure it is listed.
top
#should have a medusa user listed. alt q to exit

Then navagate to the Jail IP:8081
One mistake I saw

You had "
sysrc medusa_user=meduas" instead of medusa.

Still having permission issues though.

I had an initial issue with the plugin not being able to see the mounted folders but solved it (ACL issues):

find /mnt/path/to/dataset -type d -exec setfacl -m everyone@:rxaRc:fd:allow {} \;

But still have permission issues when trying to re-scan media.

1575567922751.png
 

Attachments

Last edited:

Snow

Senior Member
Joined
Aug 1, 2014
Messages
265
Well there are 4 main way's you can set up permissions is this a shared jail ?

You would need to make all the user's names the same for every plugin service's user.
You could also change medusa to the user && group you use for the rest of the share jail/media.

I use the group permissions to control all my jail's, share's, & datasets.
Some code below I hope helps you, You can pick and choose what works for you.

Look at your media and see what user name it is saved as and group if meduas is not part of the group and the group does not have permission to that group then you would get permission denied.

Code:
in the jails shell navagte to your stored media mine is /

#USER1#
#Add a user in the FreeNAS WebUI with a matching UID as the plugin's default user.#
#Change ownership of the data dataset/folders to the newly added user. I also have a media group set as well to my dataset.

#USER2#
#In the jail, add a user with a matching UID as the owner of the data dataset/folders.
        Code:

        pw useradd -n USER -u UID -d /nonexistent -s /usr/sbin/nologin
#In the jail, change the user the plugin runs as, and change ownership of the data-directory.

        service PLUGIN onestop
        chown -R USER:GROUP /var/db/PLUGIN #or where your plugin is installed
        sysrc 'PLUGIN_user=USER'
        service PLUGIN start

#I also have you change the Group to YOUR Group name. Depending on your permissions setup this may be different.
#I use group permissions to control all my jail's

sysrc medusa_group=GROUPNAME

#Change permission of the data dataset/folders to allow group writing.
#In the jail, add a group with a matching GID as the group owner of the data dataset/folders.
        Code:

        pw groupadd -n GROUP -g GID

# In the jail, add the user the plugin runs as to the newly added group.

#My group&username                SnowsG     medusa
#Code:                  pw groupmod GROUP -m USER

Code:

freenas.png
 
Last edited:

Snow

Senior Member
Joined
Aug 1, 2014
Messages
265
Looks like plexuser own's TV dir, and transmission owns download dir. Looks like you need to get your permission squared away for your datasets or inside your jail's.

That is why medusa is getting permission denied.

That's why I use 775 and to allow group ownership then, I can add the group to the jail with #pw groupadd -n GROUP -g GID# for ever jail.
Then I also edit the user in the jail I keep the stock user name just edit its group by doing #pw groupmod GROUP -m USER# for ever jail.

Also I make sure that the primary group that owns all of my media is the group I added to the jail's.
Also you have to edit sysrc in every jail to add the user & group.
And most of the time you have to edit the Service's config to add the group so it runs as it.

You can also do this with a user you would just make all jail's/Service's run under the same user and no login.
This would allow you to use 755 and would be different from what I am using.
#pw useradd -n "USERNAME" -u "UID" -d /nonexistent -s /usr/sbin/nologin #below is what I would enter
#pw useradd -n medusa -u 817 -d /nonexistent -s /usr/sbin/nologin
You have to add the user to the jail anyways so the jail has a user to run under.

Then add the user to sysrc
#sysrc medusa_user=medusa

Then in the config make sure the user name or groups are set up right.
Plex for me is under. "/usr/local/etc/rc.d/ nano plexmediaserver" in that config it is listed as "name=plexmediaserver"
Medusa is under. "/usr/local/etc/rc.d/ nano medusa" "user=medusa" "group=MYGROUP"
 
Last edited:

Snow

Senior Member
Joined
Aug 1, 2014
Messages
265
Should I make a new post with this as a guide ? Or if the op could change the tittle of the post to some thing like Medusa Guide 11.2-U7 or what ever fits it. So we just try to keep it updated here.
 

Snow

Senior Member
Joined
Aug 1, 2014
Messages
265
Upgrading to 11.3 Today. I will see if I can get medusa working. I will update here if every thing goes fine or any thing change's. Ones I have more time I plan on doing the Community Plugin. To see If I can get it added to make it simpler for you all. Sorry to say I am done with sick ******* to many broken things and Medusa just does a better job of every thing.
 
Last edited:

Snow

Senior Member
Joined
Aug 1, 2014
Messages
265
How to Install Medusa in a Jail on FreeNAS 11.3


Create a Jail for your medusa in the GUI. (If you have a working medusa, back up your config now.)
Then in the Jail Shell or in SSH type. (Skip if you are using the Jails Shell.)
Code:
iocage console JAILNAME


If you did not start the Jail in the GUI then type,

Code:
iocage console JAILNAME --force


Should look like root@medusa or whatever you named it.(If you skipped Start here)
Then type this in the CLI,

Code:
pkg update && pkg upgrade

pkg install -y python3
pkg install -y py37-openssl py37-pip py37-lxml py37-sqlite3
pkg install -y git nano unrar ffmpeg


(Skip This if upgrading or reinstalling, But you will need the UID & Group/User Spelling.)
Create a user for Medusa in the GUI the username is case sensitive medusa.
Add medusa to your media group. record UID & GID for later use

Add a user.

Username: medusa
Full name: medusa demonoid
User name: medusa
Email: blank
Password: blank
ID & groups user ID/Uid (Leave empty for default): mine was 817
Login group [media]: added as primary group
New primary group [No] or however you configure your permissions.
Shell (sh csh tcsh git-shell nologin) [sh]:
Home directory [/home/medusa]: Does not matter unless you use a different type of permissions.
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]: no
Lock out the account after creation? [no]: no
Not listed in this list leave default

Install Medusa. (If you skipped last step then begin here.)
Code:
git clone https://github.com/pymedusa/Medusa.git /usr/local/medusa
cp /usr/local/medusa/runscripts/init.freebsd /usr/local/etc/rc.d/medusa
pw useradd -n USER -u The UID -d /nonexistent -s /usr/sbin/nologin


This UID is the example I made.
Code:
pw useradd -n medusa -u 817 -d /nonexistent -s /usr/sbin/nologin
Yours would be like this:
pw useradd -n USER -u UID -d /nonexistent -s /usr/sbin/nologin



Mine looks like this. I added medusa to my main media group.
Code:
pw groupadd -n SnowsG -g 1001
Yours would be like this:
pw groupadd -n GROUP -g GROUPID


Mine looks like this.
Code:
pw groupmod SnowsG -m medusa
Yours would be like this:
pw groupmod GROUP -m USER


Then change the permissions.
Code:
chmod 775 /usr/local/etc/rc.d/medusa
chown -Rf medusa:YOURGROUP /usr/local/medusa
chmod u+x /usr/local/etc/rc.d/medusa


Now edit your sysrc.
Code:
sysrc medusa_enable=YES
sysrc medusa_user=medusa
sysrc medusa_group=Your media group name here.


You will need to use nano to go into medusa.conf to change the group.(Edited into the guide)
Code:
nano /usr/local/etc/rc.d/medusa
Then Change
:  ${medusa_group:="YOURGROUP"}
Mine looks like this,
:  ${medusa_group:="SnowsG"}


Ctrl X to exit then enter, follow the prompts to exit.

Then,
Code:
service medusa start


To check to make sure all is well.
Make sure medusa user is listed and is running in the Jail.
Code:
ps aux

Then top to make sure it is listed.
Code:
top

Should have a medusa user listed. alt Q to exit TOP.

I then do a,
Code:
pkg update && pkg upgrade

should say not needed.


Then navigate to the Jial IP:8081

Edit added unrar to pkg list to install.
Edit added example for: nano /usr/local/etc/rc.d/medusa
 
Last edited:

msbxa

Member
Joined
Sep 21, 2014
Messages
115
Its time to put Medusa into community plugins on FreeNAS 11.3 Release Stable.
 
Top