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

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

$ sudo vi /etc/sysconfig/selinux

change SELINUX=disabled to SELINUX=enforcing

If doesn't work from other machines, then open port:

$ gvim /etc/sysconfig/iptables

-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
$ netstat -an | grep 32400 | grep LISTEN

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

$ sudo mkdir /mnt/nas1

$ sudo mount -t cifs // /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


//  /mnt/nas1               cifs    defaults        0 0
//  /mnt/nas2               cifs    defaults        0 0

1 comment: