koollop.blogg.se

Plex media server setup raspberry pi
Plex media server setup raspberry pi








  1. #Plex media server setup raspberry pi how to
  2. #Plex media server setup raspberry pi install
  3. #Plex media server setup raspberry pi update
  4. #Plex media server setup raspberry pi upgrade
  5. #Plex media server setup raspberry pi software

#Plex media server setup raspberry pi install

It is important that the server and the client be in sync, to make sure of that we need to install the ntp module otherwise you will have conflicts on the client side, to do so Note: there is a way to add the whole VPN service to the firewall to allow establish the connection, see links below, I had a hard time with it, that is why I better used the option of manually open the port Restart the network service systemctl restart rvice We will use the default, you might want to change it later firewall-cmd -zone=public -add-port=1194/tcp vim /etc/nfĪdd to the very first line _forward = 1 Now we need to open some ports for the VPN firewall-cmd -add-masquerade firewall-cmd -permanent -add-masquerade SHARK=$(ip route get 8.8.8.8 | awk 'NR=1 ') sudo firewall-cmd -permanent -direct -passthrough ipv4 -t nat -A POSTROUTING -s 10.8.0.0/24 -o $ SHARK -j MASQUERADE firewall-cmd -reload Now the get active zone will return something like ~]$ firewall-cmd -get-active-zones public interfaces: venet0 If you execute firewall-cmd -get-active-zonesĪnd you get nothing, you need to associate your network interface to one zone of the firewall (see links below to understand what is a zone) firewall-cmd -zone=public-change-interface=venet0 You might get something different, such as eth0 venet0:0: flags=2 inet x.x.x.x netmask x.x.x.x broadcast x.x.x.x destination x.x.x.x. Then we want to see the available network interfaces ifconfig lo: flags=6 inet 127.0.0.1 netmask 255.0.0.0. Now, let’s make sure that our firewall is up a running systemctl start firewalld systemctl enable firewalld firewall-cmd -state

#Plex media server setup raspberry pi upgrade

Yum install -y upgrade yum install -y firewalld

#Plex media server setup raspberry pi update

I will assume we are starting from scratch, the first thing to do is update our VPS, I recommend CenOS7 and thus, the below commands were tested on CentOS7 🙂 sudo su - yum install -y update Yes, this gives creeps, so, make sure that you are protecting your computer before put it online :p The way how we can make this work is by using a VPN + port forwarding, in this way, we will have the PLEX instance running on our local network and we will be able to access to it from the outside through a firewall rule that will forward our requests on a given port to the internal NAT network You must see something like above, the one that you want is fuse or cifs depending on what kind of remote file system you want to mountĪnother important thing is before attempting to set up a VPN ensure that your kernel has support for TUN/TAP if it does not have it, stop there and change your VPS provider because the one that you have is not worth it Note: in order to use a remote file system, your kernel’s VPS should have enabled the support for such systems cat /proc/filesystems nodev cgroup nodev devpts nodev mqueue ext4 nodev nfs nodev nfs4 nodev delayfs nodev devtmpfs nodev sysfs nodev proc nodev tmpfs nodev binfmt_misc nodev fusectl nodev fuse

#Plex media server setup raspberry pi software

Now you can access the files on the external drive attached to the pi as if they were on your server, the next task would be install plex on the VPS and put it work… yeah, that works, however, when I did it, my VPS provider was not happy about it, in fact, you will find that most VPS providers do not allow you to install software as PLEX on the VPS (yes, it sucks) I think it is because of the CPU usage or something like that, anyway, this leads us to the second approach. In this way what happens is that you are mounting the file system with something like this sshfs /vps/far/drive

#Plex media server setup raspberry pi how to

We can ssh into the VPS but not backward, how to solve this? we need to set up a VPN, once the VPN is done we will have bidirectional communication, after this, we can make use of a remote file system, to do so, it can be used either SSHFS, SAMBA or NAS, basically, it would leave us with something like this This means that we only have a directional data connection with the VPS

  • Most likely your home network is behind of a NAT network.
  • You have VPS which doesn’t have more than 20G of storage.
  • What is the idea? you have the following scenario I won’t dig a lot on this version since this was my first attempt but it didn’t go well 😦

    plex media server setup raspberry pi plex media server setup raspberry pi

  • An external drive (I know you have one that you use to keep your door open :v)Įdit 2020: check this new version using free resources from Oracle cloud.
  • plex media server setup raspberry pi

    We want to be able to listen to our music from any place, any moment using almost only electronic waste 😀










    Plex media server setup raspberry pi