spacer.png, 0 kB
  May 22, 2013, 16:17:55

 
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: URD on a router?  (Read 3142 times)
skynetbbs

Posts: 4


View Profile Email
« on: August 19, 2009, 14:10:13 »

It would be kewl if URD were to be ported to an openwrt router like the Fonera 2 (it has usb support)
Examples of how they got torrents running using Transmission can be found on www.fonosfera.org

they also created a firefox plugin so you can click on eg a nzb,torrent, ftp,http file and it will be send to the fonera to start downloading...

rapidshare/megadownload is also allready supported

only NZB & E2DK not yet Sad
Logged
spearhead
Administrator
*
Posts: 1038


View Profile WWW
« Reply #1 on: August 19, 2009, 18:38:49 »

It would be kewl if URD were to be ported to an openwrt router like the Fonera 2 (it has usb support)
Examples of how they got torrents running using Transmission can be found on www.fonosfera.org

they also created a firefox plugin so you can click on eg a nzb,torrent, ftp,http file and it will be send to the fonera to start downloading...

rapidshare/megadownload is also allready supported

only NZB & E2DK not yet Sad


If you can make the router run mysql, php + all its required modules, it should actually run just fine. Although, indexing maybe a bit heavy (not needed for just nzbs) and par2/unrar may be too much for the processor.
Logged
skynetbbs

Posts: 4


View Profile Email
« Reply #2 on: August 19, 2009, 21:13:19 »

php/mysql should be possible; they exist for openwrt;
but everyone will tell you to not use it since those libraries are huge...and whatever you want to do can be done in luci/lua in only a few kilobytes of code ...

no idea about unpar performance...not even sure if it's needed?
Logged
Styck
Administrator
*
Posts: 125


View Profile
« Reply #3 on: August 19, 2009, 22:23:43 »

So you're saying it would be nice if we completely rewrote URD to a relatively obscure programming language so it can run on OpenWRT routers Tongue

It would be nice indeed but I don't see this ever happening. We are aiming at maximum compatibility by using a universally used webscripting language (PHP), together with the most commonly used database system (mySQL) and tools (unrar etc).

Yes, it is bloated if you consider it as a whole, but the supported modules are also the upside: Adding new features is relatively easy because you only need to add in an existing module and use it. If you go for uber lean and mean, you would have to write everything yourself.

Ofcourse we're willing to make some tweaks that will allow URD to run on more systems, but you're talking about rewriting 80% of the code which will take months and will only support one extra type of device. We'd be more likely to rewrite everything in C++ Tongue
Logged
skynetbbs

Posts: 4


View Profile Email
« Reply #4 on: August 19, 2009, 22:41:17 »

perhaps urdland works when I install this:
php5 - 5.0.5-1 -
php5-cgi - 5.0.5-1 -
php5-mod-gd - 5.0.5-1 -
php5-mod-mysql - 5.0.5-1 -
php5-mod-sqlite - 5.0.5-1 -
lighttpd - 1.4.11-1 -
lighttpd-mod-cgi - 1.4.11-1 --

any experience with eg sqlite?
is gd a required library?

its's not 1 device;
openwrt is used by most "linux" based routers
linksys wrt54, dlink Dir-..., as well :-)

Logged
spearhead
Administrator
*
Posts: 1038


View Profile WWW
« Reply #5 on: August 19, 2009, 23:23:24 »

These are the modules I check for at startup (* are optional)

curl
openssl *
pcntl
pcre
posix
sockets
SPL
xmlrpc*

I don't think gd is a requirement. but you do need php 5.2.1 or better.

I'd like to support sqllite3, but php does not support it yet in the commonly used versions (5.2.x). I'd like to switch to php 5.3.0 or even 6.0.0 but currently it isn't in most repositories... and sqllite doesn't work with urd... I tried that.

par2 and unrar are not really required, but then you've to verify and unrar everything by hand.

lighttpd should not be a problem... never tested it tho.
Logged
skynetbbs

Posts: 4


View Profile Email
« Reply #6 on: August 19, 2009, 23:32:33 »

php5-cgi_5.2.6-1_mips.ipk   06-Dec-2008 02:57    851K
php5-mod-curl_5.2.6-1_mips.ipk   06-Dec-2008 02:57     19K
php5-mod-mysql_5.2.6-1_mips.ipk   06-Dec-2008 02:57     16K
php5-mod-openssl_5.2.6-1_mips.ipk   06-Dec-2008 02:57    29K
php5-mod-pcre_5.2.6-1_mips.ipk   06-Dec-2008 02:57       
php5-mod-sockets_5.2.6-1_mips.ipk   06-Dec-2008 02:57     12K
curl_7.17.1-1_mips.ipk   06-Dec-2008 00:42     29K
libcurl_7.17.1-1_mips.ipk   06-Dec-2008 00:42     92K
libopenssl_0.9.8h-1_mips.ipk   05-Dec-2008 04:00    477K
libpcre_7.6-2_mips.ipk   05-Dec-2008 14:07     54K

luaposix_5.1.3-1_mips.ipk   05-Dec-2008 17:22     11K

pcntl ? not found...
SPL not found...
Logged
spearhead
Administrator
*
Posts: 1038


View Profile WWW
« Reply #7 on: August 20, 2009, 09:27:03 »

they may be compiled in to php ... run php -m to see all modules
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Amigri by Fakdordes
spacer.png, 0 kB
spacer.png, 0 kB
spacer.png, 0 kB