A plugin to sort and move files

Status
Not open for further replies.

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
When I enter line three of your code, I get this error back:

Shared object "libiconv.so.2" not found, required by "git"


I was using the shell command from inside the Mylar jail. This was the right place to be yes?
 

Attachments

  • Mylar.jpg
    Mylar.jpg
    125.5 KB · Views: 307
Last edited:

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Code:
pkg upgrade
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
Ok that's all good and the git clone went ok

However line 4: 'git checkout development' throws this error:
'fatal: Not a git repository (or any of the parent directories): .git'
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Ok that's all good and the git clone went ok

However line 4: 'git checkout development' throws this error:
'fatal: Not a git repository (or any of the parent directories): .git'
forgot you need to
Code:
cd /usr/pbi/mylar-amd64/share/mylar/mylar
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
It all works perfectly now

Thank you for holding my hand through that Josh. You've been a massive help this past week :)
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
no problem, glad you got it working
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
no problem, glad you got it working

Hey Josh,

sorry to open this thread up again, but I'm having a slight permissions issue with the way I have set things up and I can't seem to fix it

After my colossal balls up the other week when I needed to reinstall all my plugins, I followed your instructions and set up some of my plugins as user/group media:media

That has worked a charm for most of them except for Mylar. The reason being, I access the files that Mylar post processes through a windows machine and files that have an 816 User cannot be opened in the comic reader I use.

I tried to use my pathetically small knowledge of Unix commands to fix this myself and thought that this might fix it:

  1. chown -R root:wheel /usr/pbi/mylar-amd64/share/mylar/mylar

It hasn't made any difference and the new files are still being created with an 816 User

Any thoughts on what I should do?

Cheers
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Hey Josh,

sorry to open this thread up again, but I'm having a slight permissions issue with the way I have set things up and I can't seem to fix it

After my colossal balls up the other week when I needed to reinstall all my plugins, I followed your instructions and set up some of my plugins as user/group media:media

That has worked a charm for most of them except for Mylar. The reason being, I access the files that Mylar post processes through a windows machine and files that have an 816 User cannot be opened in the comic reader I use.

I tried to use my pathetically small knowledge of Unix commands to fix this myself and thought that this might fix it:

  1. chown -R root:wheel /usr/pbi/mylar-amd64/share/mylar/mylar

It hasn't made any difference and the new files are still being created with an 816 User

Any thoughts on what I should do?

Cheers
The command you ran changed the ownership of the application source files, not your actual data. I suggest you undo that so mylar can in-app update itself.
Code:
chown -R media:media /usr/pbi/mylar-amd64/share/mylar/mylar


Now, as for accessing the comic files, I'm assuming those reside on a dataset you mounted into your jail. Assuming you're using CIFS, whatever user cifs is accessing files with needs read permissions.

I'm not a cifs experts but what I do in this situation is..
* create a media user, UID 816 in freenas
* set cifs to map everyone to this user for this share

You could also set the dataset permission levels to 777 which would allow any user the read/write files. But, you'd need to make sure newly added files also kept a high enough permission level.
 

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
* create a media user, UID 816 in freenas
* set cifs to map everyone to this user for this share

Thanks Josh,

I added a new user 'media' with a UID of 816 (see image below)

However I wasn't 100% sure on how to map everyone to this user for the relevant share. I tried changing the guest user in CFS settings to 'media' but it appears that any user other than 'nobody' prevents the CFS service from starting.

As you mentioned, recursively setting the permissions to 777 is a temporary fix, however as soon as I add a new comic, the problems start all over again
 

Attachments

  • New User.jpg
    New User.jpg
    77.2 KB · Views: 287

CraftyClown

Patron
Joined
Apr 5, 2014
Messages
214
So I've done some tinkering around and I think I've found a solution (I'm just not sure how elegant it is and whether or not it may cause other problems down the line)

I added a new User 'Richard' selected the group 'media'

ticked the box 'microsoft account'

added 'wheel' to the Auxilary groups

added my windows 8.1 user login under email

and ticked all the permission, apart from giving 'other' write access

I also changed the same permissions of my dataset to 'Richard' and 'Media'


It works, but does it look like overkill?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
So I've done some tinkering around and I think I've found a solution (I'm just not sure how elegant it is and whether or not it may cause other problems down the line)

I added a new User 'Richard' selected the group 'media'

ticked the box 'microsoft account'

added 'wheel' to the Auxilary groups

added my windows 8.1 user login under email

and ticked all the permission, apart from giving 'other' write access

I also changed the same permissions of my dataset to 'Richard' and 'Media'


It works, but does it look like overkill?
I barely know anything about CIFS, I'm more on the UNIX side of things. sounds like a reasonable solution to me though.
 
Status
Not open for further replies.
Top