Anyone who cloud make a tutorial to install plexpy on WD PR4100 ? Would be awesome
Holy crap that was a pain to figure out. I’ll reply to you in case anyone else is looking for how to do this.
- Log into your My Cloud PR 4100 and enable SSH in the settings
- Download Putty, or your favorite SSH client
- Connect to the pr4100 via SSH and use the username root, with the password you set when enabling SSH
This gives you a root shell to the NAS. The box uses Docker to run apps, so it understands the docker commands. There is lots of documentation, or you can run docker --help to get some basic commands.
-
Create the plexpy image with the following command:
docker create --name=plexpy
-v /etc/localtime:/etc/localtime:ro
-v /shares/Public/Software/plexpy:/config
-v /mnt/HD/HD_a2/plex_conf/Plex\ Media\ Server/Logs:/logs:ro
-e PGID=1000 -e PUID=500
-p 8282:8181
linuxserver/plexpy -
if you run “docker ps -a” you can see the new image, but the status is blank, so it’s not running.
-
run "docker restart " to run it. The container ID is displayed from the ps command you just ran. This should print out some stuff to show it running.
-
Connect to the plexpy on the web at http://<NAS_IP_ADDRESS>:8282
-
Follow the instructions in the web browser
Thank you Jim3535. I am though fairly new to Linux and dockers. It seems I’ve got everything working except from the "restart docker part.
docker restart
docker: “restart” requires a minimum of 1 argument.
See ‘docker restart --help’.
Ive tried af few different options, but with no result. Am I just beeing stupid or can you assist?
Brgds
OK, got the docker running now, but no life on www (is it a port forwarding issue maybe?)
Sorry and thank you again. Only my impatence… I got i working. You are the man 
Any way to get plexpy to restart with the NAS? I just tested it and it looks like you have to go back via SSH and restart manually.
@Jim3535 got any advice here? I am trying to follow along with instructions to install as daemon over at GitHub and it seems the directory here is not matching what is listed there as an example. Any help appreciated, as I’ve tried to decipher the directory from what you’ve listed out here for installation.
I finally got around to figuring out how to get plexpy to start automatically after a reboot.
This should have been easy with the "docker update --restart=always " command, but the version of Docker installed is old and doesn’t have that command. Instead, you need to edit the option manually.
- Log into your mycloud with Putty or another SSH client (log in as root)
cd /var/lib/docker/containers/docker ps -a- Find the container id for linuxserver/plexpy
- Change directories to the folder that starts with the container id.
- Edit hostconfig.json with VI and change:
“RestartPolicy”:{“Name”:“no”,
to
“RestartPolicy”:{“Name”:“always”,
The system has VI installed, which you can use to edit the file.
vi hostconfig.jason-
ito enter text insert mode - change the text
-
to exit insert mode -
:wqto save and exit
How do you run an update to make sure your running the current version?