Sunday, September 5, 2010

Still working on Home Media Server

The biggest problem so far has been getting traffic to the tornado web server on port 8888.  I finally decided that the problem was Apache listening on port 80 and grabbing the traffic before iptables redirected it to the tornado web server.  To fix the problem Apache was moved to port 8000.  Then iptables was able to redirect port 80 to port 8888 with no problem.  I used the following iptables command:
iptables -A PREROUTING -t nat -p tcp -d <server_ip_addr> --dport 80 -j REDIRECT --to-ports 8888


The next problem was the lack of image files showing up on the HMS administration page.  Looking at error messages, python was not able to import Image.  I use pip to add PIL to the virtual environment.
pip -E pyvirt install pil
  
Now images show.  

Next item to tackle is getting Roku to get past the page requesting the server address.  I see the request for users, but nothing is displayed on the TV screen.  

No comments:

Post a Comment