OpenWrt Forum Archive

Topic: Can you run a media server &/or torrent client on an openwrt router?

The content of this topic has been archived on 12 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I'm using a a buffalo wzr-hp-g300h to give network connectivity to an xbox and tv. For reasons I don't understand, it all works perfectly except that the tv can't see the media server.

I'm hoping to side step this problem by running a media server on the router itself. Is this possible?

If it is a torrent client would complement it well as it could download content to the connected hard drive and the media server could then make it available to the tv.

Cheers,
Peter

It is possible to run a torrentclient on a openwrt router. I have transmission on mine (some others are available to).
You might want to create a swap file on the external drive though. Some large torrents cause the router to freeze if there's not enough RAM.

A media server will be possible to I guess. There are UPNP/DLNA server packages available in the repo's, though I have no experience with setting it up.

You can find a list of the available media servers here: http://en.wikipedia.org/wiki/Comparison … ia_servers. I think the most relevant for OpenWrt use are MediaTomb, minidlna and ushare. The latter has several limitations I wasn't really too happy about. MediaTomb is the most full-featured but also heaviest on resources. minidlna has been written by a netgear employee to be used on Netgear's ReadyNAS line of NAS, so it's probably the best trade off if you don't have a lot of memory.

This is based on info I collected when I was thinking about deploying a uPnP AV server on my LAN but eventually gave up because of the limitation of the protocol, chose to go with Samba instead.

MaT-dg wrote:

It is possible to run a torrentclient on a openwrt router. I have transmission on mine (some others are available to).
You might want to create a swap file on the external drive though. Some large torrents cause the router to freeze if there's not enough RAM.

How large of a torrent are we talking about?

ryandigweed wrote:
MaT-dg wrote:

It is possible to run a torrentclient on a openwrt router. I have transmission on mine (some others are available to).
You might want to create a swap file on the external drive though. Some large torrents cause the router to freeze if there's not enough RAM.

How large of a torrent are we talking about?

It's been a while so I don't remember it very well.
I believe it was around 4GB+.

And while we are talking about this. Torrents of about 40-45GB and higher make transmission crash from time to time (not a total freeze of the router). I haven't found the problem or solution for this yet.

MaT-dg wrote:
ryandigweed wrote:
MaT-dg wrote:

It is possible to run a torrentclient on a openwrt router. I have transmission on mine (some others are available to).
You might want to create a swap file on the external drive though. Some large torrents cause the router to freeze if there's not enough RAM.

How large of a torrent are we talking about?

It's been a while so I don't remember it very well.
I believe it was around 4GB+.

And while we are talking about this. Torrents of about 40-45GB and higher make transmission crash from time to time (not a total freeze of the router). I haven't found the problem or solution for this yet.

Thanks for that info. I was planing on downloading HD torrents. LOL .. the TpLINk N750 isn't available where i am for a couple of months, but  do you know where i can get a seagate dockstar on the cheap from? otherwise i will just get the WR1043ND unfortunately.. sad

I Just want to add some info regarding Transmission and ask...

I just Bought TPLink MR3220 in August 2012, then install OpenWRT Attitude Adjustment r33288
I Got Problem with Transmisson ver 2.61, when i add alot of torrent, about >20 torrent, its anime series... with size arround 200MB-300MB..
Sometimes i got dmesg error, if Transmission program killed because of memori related problem.... but my Router not Reboot-ed..
And when i install MiniDLNA ver 1.0.24, it got killed too...

Then in October, i Install BackFire 10.03.1,  then install Transmission 2.71 and MiniDLNA 1.0.25, with Swap 128MB...
I got Router rebooted every day... then after reboot, Transmission is paused, i have to start all the torrent manual...
I Try to just running Transmission and disable LuCI & MiniDLNA still make my Router rebooted every day...


And Yesterday... I Install Barrier Breaker r34122 , then install Transmission 2.72 and MiniDLNA 1.0.24, with Swap 128MB..
Now, I got Router rebooted three time.... and my torrent list is paused....

I Use Ext Root to Flashdisk Transcend JetFlash 350 (32GB) and Swap file in that Flashdisk too....

I don't like this, i need this Router to be my Torrent downloader and DLNA server for my Samsung TV LA32D550....

Do i need to get TPlink N600 (TL-WDR3600) or TPlink N750 (TL-WDR4300) ....

sukanime wrote:

I Just want to add some info regarding Transmission and ask...

I just Bought TPLink MR3220 in August 2012, then install OpenWRT Attitude Adjustment r33288
I Got Problem with Transmisson ver 2.61, when i add alot of torrent, about >20 torrent, its anime series... with size arround 200MB-300MB..
Sometimes i got dmesg error, if Transmission program killed because of memori related problem.... but my Router not Reboot-ed..
And when i install MiniDLNA ver 1.0.24, it got killed too...

Then in October, i Install BackFire 10.03.1,  then install Transmission 2.71 and MiniDLNA 1.0.25, with Swap 128MB...
I got Router rebooted every day... then after reboot, Transmission is paused, i have to start all the torrent manual...
I Try to just running Transmission and disable LuCI & MiniDLNA still make my Router rebooted every day...


And Yesterday... I Install Barrier Breaker r34122 , then install Transmission 2.72 and MiniDLNA 1.0.24, with Swap 128MB..
Now, I got Router rebooted three time.... and my torrent list is paused....

I Use Ext Root to Flashdisk Transcend JetFlash 350 (32GB) and Swap file in that Flashdisk too....

I don't like this, i need this Router to be my Torrent downloader and DLNA server for my Samsung TV LA32D550....

Do i need to get TPlink N600 (TL-WDR3600) or TPlink N750 (TL-WDR4300) ....

If you're planning on runnin both, i suggest you to pick up a Raspberry Pi. I'm using my WR1043ND only as a torrent downloader with Samba and transmission is taking around 35% of the memory. IM thinking of changing the RAM chip .. :S

ryandigweed wrote:
sukanime wrote:

I Just want to add some info regarding Transmission and ask...

I just Bought TPLink MR3220 in August 2012, then install OpenWRT Attitude Adjustment r33288
I Got Problem with Transmisson ver 2.61, when i add alot of torrent, about >20 torrent, its anime series... with size arround 200MB-300MB..
Sometimes i got dmesg error, if Transmission program killed because of memori related problem.... but my Router not Reboot-ed..
And when i install MiniDLNA ver 1.0.24, it got killed too...

Then in October, i Install BackFire 10.03.1,  then install Transmission 2.71 and MiniDLNA 1.0.25, with Swap 128MB...
I got Router rebooted every day... then after reboot, Transmission is paused, i have to start all the torrent manual...
I Try to just running Transmission and disable LuCI & MiniDLNA still make my Router rebooted every day...


And Yesterday... I Install Barrier Breaker r34122 , then install Transmission 2.72 and MiniDLNA 1.0.24, with Swap 128MB..
Now, I got Router rebooted three time.... and my torrent list is paused....

I Use Ext Root to Flashdisk Transcend JetFlash 350 (32GB) and Swap file in that Flashdisk too....

I don't like this, i need this Router to be my Torrent downloader and DLNA server for my Samsung TV LA32D550....

Do i need to get TPlink N600 (TL-WDR3600) or TPlink N750 (TL-WDR4300) ....

If you're planning on runnin both, i suggest you to pick up a Raspberry Pi. I'm using my WR1043ND only as a torrent downloader with Samba and transmission is taking around 35% of the memory. IM thinking of changing the RAM chip .. :S


Yesterday i try using uShare and ctorrent with Dctcs...

UShare not competible with my Samsung TV, so i go back to MiniDLNA, i think this is the best, if not because transsmission, it can run without problem.

Ctorrent with Dctcs, this is nice, but somehow not all my torrent is "compatible" , i don't how to decribe it, i try download "[CMS] Chitose Get you!! - 19 [720p][060E60F8].mkv" , it just showing "downloading" but nothing downloaded...
Try that torrent in Vuze or Transmission, it downloaded in just 8 mnt.
Then try download "[gg]_Magi_-_06_[5F00995C].mkv" , this one, is downloaded without problem...
So this Ctorrent is picky... so go back to transmission and try to "play" with the setting.....


Yeah, I'am try to change the RAM Chip too, but before that i will try to use External Harddisk...
Now i'am ordering Western Digital MyBook Essential 3TB (USB 3.0), and try to Ext Root to External Harddisk...

My MR3220 running Transmission, MiniDLNA and Proftpd.... i'am not using Samba because it takes to much resource...
And about Raspery Pi, i don't interest at all, i will prefer TPlink N600 or N750...
Or using cheap chinesse android tablet with SoC Allwinner A10 1GHz... arround 60-70 dollar... then install openwrt or distro linux....

(Last edited by sukanime on 14 Nov 2012, 06:35)

sukanime wrote:
ryandigweed wrote:
sukanime wrote:

I Just want to add some info regarding Transmission and ask...

I just Bought TPLink MR3220 in August 2012, then install OpenWRT Attitude Adjustment r33288
I Got Problem with Transmisson ver 2.61, when i add alot of torrent, about >20 torrent, its anime series... with size arround 200MB-300MB..
Sometimes i got dmesg error, if Transmission program killed because of memori related problem.... but my Router not Reboot-ed..
And when i install MiniDLNA ver 1.0.24, it got killed too...

Then in October, i Install BackFire 10.03.1,  then install Transmission 2.71 and MiniDLNA 1.0.25, with Swap 128MB...
I got Router rebooted every day... then after reboot, Transmission is paused, i have to start all the torrent manual...
I Try to just running Transmission and disable LuCI & MiniDLNA still make my Router rebooted every day...


And Yesterday... I Install Barrier Breaker r34122 , then install Transmission 2.72 and MiniDLNA 1.0.24, with Swap 128MB..
Now, I got Router rebooted three time.... and my torrent list is paused....

I Use Ext Root to Flashdisk Transcend JetFlash 350 (32GB) and Swap file in that Flashdisk too....

I don't like this, i need this Router to be my Torrent downloader and DLNA server for my Samsung TV LA32D550....

Do i need to get TPlink N600 (TL-WDR3600) or TPlink N750 (TL-WDR4300) ....

If you're planning on runnin both, i suggest you to pick up a Raspberry Pi. I'm using my WR1043ND only as a torrent downloader with Samba and transmission is taking around 35% of the memory. IM thinking of changing the RAM chip .. :S


Yeah, I'am try to change the RAM Chip too, but before that i will try to use External Harddisk...
Now i'am ordering Western Digital MyBook Essential 3TB (USB 3.0), and try to Ext Root to External Harddisk...

My MR3220 running Transmission, MiniDLNA and Proftpd.... i'am not using Samba because it takes to much resource...
And about Raspery Pi, i don't interest at all, i will prefer TPlink N600 or N750...
Or using cheap chinesse android tablet with SoC Allwinner A10 1GHz... arround 60-70 dollar... then install openwrt or distro linux....


let me know how's the speed with the filesystem RAM swap smile  I heard it's unbearably slow, so i stayed away big_smile

How could the raspberry Pi not interest you? It's only for 25$ big_smile and now upgraded to 512MB of ram.

And the TPlink N750 Still has around 500Mhz of CPU, neutral with 128MB of ram, and it's got quite a price tag. sad I was thinking of getting that, but then i settled for a DLINK NAS, and a WR1043ND. I am trying to order the raspberry pi, haven't got any response from them sad

ryandigweed wrote:

let me know how's the speed with the filesystem RAM swap smile  I heard it's unbearably slow, so i stayed away big_smile

How could the raspberry Pi not interest you? It's only for 25$ big_smile and now upgraded to 512MB of ram.

And the TPlink N750 Still has around 500Mhz of CPU, neutral with 128MB of ram, and it's got quite a price tag. sad I was thinking of getting that, but then i settled for a DLINK NAS, and a WR1043ND. I am trying to order the raspberry pi, haven't got any response from them sad


Okey, here my experiment from the last post above...

I go back to OpenWRT Attitude Adjustment r33288 after i found this Repos http://scottn.us/downloads/openwrt-r33288/ar71xx/ for r33288
Using this with my FLashdisk Transcend 32GB, it's stabil if just downloading below 10 file torent... ( it's just i active download, and the rest is in queue)
But if this more 10 file torrent, i still make my router reboot.... sad

on 13 november, My Harddisk WD MyBook Essential 3TB USB 3.0 arrive...
After that, i do some SMART test, the format it with 128MB for Swap and the rest Ext4...
Put it on My MR3220 and i type "firstboot", reconfigure it and i do Whole Exroot to my WD MyBook Essential,


It's Running Perfect now,  i have test it for more than 1 day 23 hour...
torrent download, perfect, with more than 10 file to download, it's still runing without reboot...



and MiniDLNA, wow.... it's runing smooth, without "MEDIAPLAY" Error in My Samsung TV anymore...
Playing Anime for 6 six hour, i dont get MEDIAPLAY error... before... with r33288, Eko.one.pl Backfire and Barrier Breaker r34122 i still have MEDIAPLAY error... soemtimes after 30 menitus, or 1 hour....
I have test playing music with my Samsung TV too, it last for more than 6-12 hours....




About TPLink N600 and N750, after my experiment above...
I not gonna buy it....
i watch it with top, i learn, what i need is, more RAM and i think 64MB is enough...
of course more cpu power is needed, but only the first time i run  MiniDLNA, it will use all my cpu power to scan my movie, music and pictures that i share with MiniDLNA...
Even with my PC Athlon II X2 260 with 4GB DDR2 RAM, when i run MiniDLNA and Share my 500GB Anime , 20GB Music and Pictures, it will make my PC lagging because scan  proses by MiniDLNA.

When MiniDLNA and Transmission runing, it's need more RAM, mostly for Transmission.

Perhaps if, i have more time and not busy, i will try to change the RAM to 64MB...




Now about Raspberry Pi, i like the Model B , it's have onboard LAN, 2 USB, 512MB RAM, 700Mhz CPU power...
But... in my country.... the price is arround 50 dollar to 65 dollar...
And the TPLink N600 is arround 65 dollar too...
So, for me, TPLink N600 is more attractive... it have WLAN, 4 Gigabit ethernet and 1 WAN Gigabit...
and 560 MHz cpu power + 128MB RAM is enough for me...  (after saw the reslut of my experiment above)



About DLINK NAS, i have saw your thread in here https://forum.openwrt.org/viewtopic.php?id=38193
In my country, there is only D-Link ShareCenter DNS-320 with price arround 90 dollar to 100dollar

perhaps... i will try to get NAS, but after i googling, i found out, that TPLink make NAS to...
It's TPlink TL-NS210 , but the product not out yet, so i will wait for this...
I like TPLink, it's cheap and reliable...


Here screenshot of my MR3220 and some info:

My TPLink Router 3G MR3220 + TPLink ADSL Modem + WD MyBook Essential 3TB USB 3.0
http://imageshack.us/a/img35/3908/20121119110108img210346.th.jpg

http://imageshack.us/a/img849/415/20121119110155img.th.jpg


LuCi Web Interface:
http://imageshack.us/a/img826/6059/shot000014.th.jpg

http://imageshack.us/a/img31/843/shot000015h.th.jpg

http://imageshack.us/a/img341/7575/shot000016.th.jpg


This my torrent file, it's have 1 movie with 4,65GB and 12 anime series, each series arround 500gb.
http://imageshack.us/a/img840/9109/shot000020w.th.jpg


SSH info:
http://imageshack.us/a/img560/641/shot000018.th.jpg

http://imageshack.us/a/img203/9269/shot000019.th.jpg





Edit 21 Nov 2012:
===========
Here more screenshot:

My MiniDLNA Web Info, i share about 300GB+ Anime, and the rest it's pictures and mp3 anime music:
http://imageshack.us/a/img823/108/shot000023.th.jpg

Today i add more torrent file, it's 36 file torrent, and i show cpu and memory usage with top
http://imageshack.us/a/img9/3413/transmissionwith35torre.th.jpg


Here AllShare Photo:
http://imageshack.us/a/img39/7034/20121121184353img.th.jpg

http://imageshack.us/a/img18/3971/20121121184546img.th.jpg

http://imageshack.us/a/img171/2354/20121121184632img.th.jpg

http://imageshack.us/a/img28/6666/20121121184701img.th.jpg

http://imageshack.us/a/img338/7319/20121121184726img.th.jpg

http://imageshack.us/a/img26/3391/20121121184911img.th.jpg

http://imageshack.us/a/img18/7912/20121121184930img.th.jpg

http://imageshack.us/a/img109/2403/20121121185009img.th.jpg

http://imageshack.us/a/img248/2181/20121121185059img.th.jpg

http://imageshack.us/a/img38/626/20121121185407img.th.jpg


ps: sory for my bad english.
and if the image preview doesn't show up, just click it... it will show the full image.

(Last edited by sukanime on 21 Nov 2012, 13:07)

The discussion might have continued from here.