I’ve been using RClone for a while now on a seedbox and it has been working like a champ for me, however I’m now in the process of setting up a more complete VPS solution that will act as seedbox and Plex server.
I had been hoping to do all this in Windows due to my familiarity with the OS, however this seems cost prohibitive, therefore I’ve had to roll up my sleeves and dust of all my scattered notes on Unix commands.
I have the server up an running and have successfully installed both Plex and Rclone (I copied over the Rclone config file from my seedbox) What I don’t have fully working is RClone as a mount and I’d really appreciate a little push in the right direction to help get it set up correctly, avoiding any api bans with Gdrive if possible.
So I’ve taken what I think is the first step, but I’d like to double check it’s a correct one and if so where to go next with it.
I’ve used this initial command in Putty, which I hope is mounting the main 30tb media storage folder of my Gdrive to a folder on my server. I ran it about 30 minutes ago and it doesn’t seem to have finished what it’s doing. Is that normal?
rclone mount “gdrive:/The Skull” /home/craftyclown/Skull
When you say finished, it wouldn’t return a prompt back to you as the command is “running”.
Right, of course! So to run further commands I would close Putty and then open a new connection and it should keep running in the background?
It does appear to be correctly mounted as I can open filezilla and see the media contents in the /home/craftyclown/Skull directory
If I try to browse for a media folder in Plex however, it sees the Skull folder but it is grayed out and can’t be selected. Is this most likely a permissions issue?
If you close out the Putty session, it would close out the rclone process.
If the systemd stuff is a little too much to start, you can add --daemon on the end of your command and that will return the prompt and run in the background.
Ok so oddly enough closing the terminal windows with my old command didn’t actually disconnect the mount. I can still access it via Filezilla. Did I misunderstand something?
Edit: Granted I am checking via Filzilla on my laptop. Not sure why that would make a difference though.
So my user is felix on my system and that is the man that all my stuff runs as.
felix@gemini:~$ id felix
uid=1000(felix) gid=1001(vpn) groups=1001(vpn),24(cdrom),25(floppy),29(audio),30(dip),33(www-data),44(video),46(plugdev),108(netdev),1000(felix),111(plex)
So for me, I use the UID of 1000 and the main group for me is also 1000 as that’s the group name as well.
I do something a little different as I do not run Plex as a plex user, but as ‘felix’ as well since there is a way to do that.
felix@gemini:/etc/systemd/system/plexmediaserver.service.d$ cat override.conf
#
#
[Service]
# These values are only needed if you wish to change user & group
User=felix
Group=felix
# This is needed to change the default umask
Umask=0002
Usually if you close out a running terminal, the command should eventually die out to. Not sure how long that would take.
For me, I find that to be the easiest setup as I can use the same user for everything.
You do need to adjust the plex permissions as well if you make that change. Here is my example:
root@gemini:/var/lib ls -al | grep plex
drwxr-xr-x 3 felix felix 4096 Aug 29 09:51 plexmediaserver
root@gemini:/var/lib chown -R felix:felix plexmediaserver/
Umasks are a little more complicated, but not that bad.
root@gemini:/etc ls -al hosts
-rw-r--r-- 1 root root 345 Sep 2 16:00 hosts
drwxr-xr-x 2 root root 4096 Aug 25 16:32 xml
Basically for each file you have 3 settings you have for (user)(group)(other). One those 3 spots you can see I have a read/write/execute or rwx. The first bit is the directory flag so that’s kind of not part of the umask.
For me, I want to make sure that I give user and group permissions so I set it like that.
There is a nice little article on umask that does a much better job than me: