Sunday, June 8, 2014

(off-topic) Setting up Plex on CentOS 6.5 for Home Network

Download and run Plex



If http://localhost:32400/web returns "404 Not Found", then:


$ sudo vi /etc/sysconfig/selinux

change SELINUX=enforcing to SELINUX=disabled
reboot

go to plex url (localhost:32400/web) and it will load

$ sudo vi /etc/sysconfig/selinux

change SELINUX=disabled to SELINUX=enforcing
reboot


If http://192.168.1.2:32400/web doesn't work from other machines, then open port:

$ gvim /etc/sysconfig/iptables

add:
-A INPUT -m state --state NEW -m tcp -p tcp --dport 32400 -j ACCEPT

$ sudo service iptables restart

To check if the port is being used:
$ lsof -i :32400
OR
$ netstat -an | grep 32400 | grep LISTEN

To add network sources, mount the source, then add it:

$ sudo mkdir /mnt/nas1

$ sudo mount -t cifs //192.168.1.3/videos/ /mnt/nas1 -o username=user,password=123123

If this works for you, then you need to set these points to mount at boot:

$ sudo gvim /etc/fstab

Add:

//192.168.1.3/videos/  /mnt/nas1               cifs    defaults        0 0
//192.168.1.4/videos/  /mnt/nas2               cifs    defaults        0 0


1 comment: