Media Servers & Android Phones

Media Servers and Android Phones

Challenge 1 : I have few movies on my Seagate External Hard Drive, I wanted to view those movies on my cell phone without actually connecting through a cable directly to the hard disk . I use Fedora 17 Linux OS , that makes it a little more challenging here is how i went about doing it

Challenge 2 : Most android phones come with limited storage space so its next to impossible to match the storage capacity with external 3 TB or 4 TB drives, downloading movies into cell phone is not a scalable option so we need to have media servers running

Alternatives : I can run XBMC and access the hard disk from XBMC , then use XBMC apps on my cell phone to browse through media library , not a bad idea but that needs XBMC to be running thou.




yum install mediatomb

will install the mediatomb , its a straight forward installation without any hiccups.

sudo mediatomb

[james@james ~]$ sudo mediatomb
[sudo] password for james:
MediaTomb UPnP Server version 0.12.1 -
Copyright 2005-2010 Gena Batsyan, Sergey Bostandzhyan, Leonhard Wimmer.
MediaTomb is free software, covered by the GNU General Public License version 2
2012-12-09 22:00:42 INFO: Loading configuration from: /root/.mediatomb/config.xml
2012-12-09 22:00:42 INFO: Checking configuration...
2012-12-09 22:00:42 INFO: Setting filesystem import charset to UTF-8
2012-12-09 22:00:42 INFO: Setting metadata import charset to UTF-8
2012-12-09 22:00:42 INFO: Setting playlist charset to UTF-8
2012-12-09 22:00:42 WARNING: You enabled the YouTube feature, which allows you
to watch YouTube videos on your UPnP device!
Please check
By using this feature you may be violating YouTube
service terms and conditions!
2012-12-09 22:00:42 INFO: Configuration check succeeded.
2012-12-09 22:00:42 INFO: Initialized port: 49152
2012-12-09 22:00:42 INFO: Server bound to: X.Y.1.Z
2012-12-09 22:00:43 INFO: MediaTomb Web UI can be reached by following this link:
2012-12-09 22:00:43 INFO: http://X.Y.1.Z:49152/

will start mediatomb as root , this is an important step that we need to start this as root.

My external hard drive is connected (mounted) to my Fedora OS. lets open terminal and find out where exactly our hard disk is located in which folder , for that give the command

[james@james ~]$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 51606140 6433588 42551112 14% /
devtmpfs 5972060 0 5972060 0% /dev
tmpfs 6016136 500 6015636 1% /dev/shm
tmpfs 6016136 4524 6011612 1% /run
/dev/mapper/vg_james-lv_root 51606140 6433588 42551112 14% /
tmpfs 6016136 0 6016136 0% /sys/fs/cgroup
tmpfs 6016136 0 6016136 0% /media
/dev/sda1 495844 81187 389057 18% /boot
/dev/mapper/vg_james-lv_home 414686192 131238616 262382668 34% /home
/dev/sdb1 2930255996 2359796508 570459488 81% /run/media/james/Expansion Drive

Disable linux firewall

Disable linux firewalls, we dont want firewall to block the UPnP Device requests

[oracle@james]$ su root
Password: ******
[root@james]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
[root@james]# service iptables stop
iptables: Flushing firewall rules: [ OK ]
iptables: Setting chains to policy ACCEPT: filter [ OK ]
iptables: Unloading modules: [ OK ]

open the browser add the seaGATE MEDIA FOLDER


I check that my seagate external drive is in /run/media/james/Expansion Drive directory as shown by df command

ON my samsung galaxy note 2

On my Android Cell phone i will install , UPnPlay from google play..


Download link

Since my cell phone and my fedora desktop are running on same network , this app will automatically detect my Seagate Harddisk and i can browse through all my media files and can play them . over the network .. this looks great