purko Posted December 17, 2009 Share Posted December 17, 2009 ======================================================== Edit: withdrawn due to some incompatibilities. No plans for a new version at this time. ======================================================== Link to comment
Joe L. Posted December 17, 2009 Share Posted December 17, 2009 I present to you unRUtorrent: a torrent server for unRAID + a nice web interface for it. Just a quick note. First, nice work... Second, port 89 is the same port used by unRAID-Web, which also uses lighttppd. Might need to ensure you don't clobber each other's installations. http://lime-technology.com/wiki/index.php?title=UnRAID_Add_Ons#UnRAID-Web Joe L. Link to comment
purko Posted December 17, 2009 Author Share Posted December 17, 2009 Second, port 89 is the same port used by unRAID-Web, which also uses lighttppd. Might need to ensure you don't clobber each other's installations. http://lime-technology.com/wiki/index.php?title=UnRAID_Add_Ons#UnRAID-Web Joe L. You can edit the port setting in /boot/custom/lighttppd/lighttpd.conf.include $SERVER["socket"] == "0.0.0.0:N" { server.document-root = "/var/www/htdocs/rtorrent" accesslog.filename = "/var/log/lighttpd/rtorrent-access.log" } where N is the port number you desire. Edit: The problem was fixed in the new version. UnTorrent now hooks up to port 8089. Link to comment
Joe L. Posted December 17, 2009 Share Posted December 17, 2009 Second, port 89 is the same port used by unRAID-Web, which also uses lighttppd. Might need to ensure you don't clobber each other's installations. http://lime-technology.com/wiki/index.php?title=UnRAID_Add_Ons#UnRAID-Web Joe L. Good point. If you put your own version of lighttppd.conf in /boot/conf/lighttppd/ then unRUtorrent will not touch any settings. Just add the following to your own lighttppd.conf: $SERVER["socket"] == "0.0.0.0:N" { server.document-root = "/var/www/htdocs/rtorrent" accesslog.filename = "/var/log/lighttpd/rtorrent-access.log" } where N is the port number you desire. In the next rewrite I will make unRUtorrent to just add itself to the existing lighttppd installation, if one is found. Good idea, as we expect the unRAID itself might be migrating its own web-interface to use lighttpd. (Only a guess, but we know it is evolving in 5.0 unRAID, and we know user-add-on pages will be possible, so reading between the lines, lighttpd is a logical choice since it is already proven to be small and capable. For now it is perfect for people who only want to run a torrent, and don't really need UnRAID-Web for that. Edit: Besides, people who want unRAID-Web, they have a different howto guide they can follow: http://lime-technology.com/forum/index.php?topic=4827.0 True, just wanted you to know, the port you choose was already in use by some. Joe L. Link to comment
purko Posted December 17, 2009 Author Share Posted December 17, 2009 Ideally, there should be a standard place where we keep the configs which we want to be persistent. A logical choice for this would be /boot/config. Another way to do it is to have a /boot/install/ folder which is the "root" of a whole directory structure, and upon server boot, whatever things are found in /boot/install/ are put in their respective places in the real rootfs. For example: /boot/install/usr/bin/preclear_disk.sh will be soft-linked to /usr/bin/preclear_disk.sh at boot time... You get the idea. I guess we have to wait and see what Tom has in mind for version 5. Purko Link to comment
prostuff1 Posted December 17, 2009 Share Posted December 17, 2009 Ideally, there should be a standard place where we keep the configs which we want to be persistent. A logical choice for this would be /boot/config. Another way to do it is to have a /boot/install/ folder which is the "root" of a whole directory structure, and upon server boot, whatever things are found in /boot/install/ are put in their respective places in the real rootfs. For example: /boot/install/usr/bin/preclear_disk.sh will be copied to /usr/bin/preclear_disk.sh at boot time... You get the idea. I guess we have to wait and see what Tom has in mind for version 5. Purko It would be great to get some input on things like this from Tom. So that we at least know in what direction he might be heading. I know it has been discussed in the forums before and one of the things that came from that was the Third Party Boot Flash Plugin Architecture. I use this for all my needs and it has worked well enough for me. Link to comment
ClunkClunk Posted December 17, 2009 Share Posted December 17, 2009 I just tried it. No success. Dropped the file in /boot/packages. Installed from command line - installpkg. root@Tower:~# installpkg /boot/packages/unRUtorrent-2.8.0.full-i486-1pur.tgz Verifying package unRUtorrent-2.8.0.full-i486-1pur.tgz. gzip: stdin: not in gzip format Installing package unRUtorrent-2.8.0.full-i486-1pur.tgz: PACKAGE DESCRIPTION: WARNING: Package has not been created with 'makepkg' Package unRUtorrent-2.8.0.full-i486-1pur.tgz installed. root@Tower:~# Nothing is running on port 89, and there doesn't appear to be any rutorrent processes running. Link to comment
purko Posted December 17, 2009 Author Share Posted December 17, 2009 I just tried it. No success. Dropped the file in /boot/packages. Installed from command line - installpkg. ClunkClunk, Which version of unRAID are you running? What other packages have you installed? What happens when you type: screen -ls What happens when you type: lighttpd -v What happens when you type: php -v What happens when you type: rtorrent Link to comment
prostuff1 Posted December 17, 2009 Share Posted December 17, 2009 you could also fire off a "ps -ef" on the command line to see if am rtorrent and or lighttpd process is running. Link to comment
ClunkClunk Posted December 17, 2009 Share Posted December 17, 2009 Which version of unRAID are you running? 4.5 final What other packages have you installed? nano, sabnzbd, powerdown, handbrake, screen, perl, cache_dirs, apcupsd Is there anything called lighttpd in the config folder of your flash key? Is thre a unRUtorrent.log in it? No lighttpd folder or file in config What happens when you type: screen -ls - No Sockets found in /root/.screen. What happens when you type: lighttppd -v - I assume you meant lighttpd: command not found What happens when you type: php -v - command not found What happens when you type: rtorrent - command not found Neither rtorrent nor lighttpd are running when I grep the output of ps -ef Link to comment
purko Posted December 17, 2009 Author Share Posted December 17, 2009 Which version of unRAID are you running? 4.5 final What other packages have you installed? nano, sabnzbd, powerdown, handbrake, screen, perl, cache_dirs, apcupsd ClunkClunk, I am not familiar with sabnzbd or handbrake, so let's do this: Disable HALF of ALL your extra packages, and reboot. Then try installing UnTorrent. -- if it works, enable half of the packages you just disabled, reboot, install UnTorrent... -- Or, if it doesn't work, then disable the other half of your packages, reboot, ...etc Thus we'll be able to isolate which package is the culprit. Once we do that, I'll familiarize myself with that package and try to fix your problem. And also, could you please type: cat `which installpkg` | grep 2009 and tell me what it shows? Purko Link to comment
kapperz Posted December 17, 2009 Share Posted December 17, 2009 Ah very nice work. No fuss install. Thanks for the hard work. Link to comment
btlupin Posted December 17, 2009 Share Posted December 17, 2009 Thank you. Very convenient to install and run. I run from my cache drive. Link to comment
purko Posted December 18, 2009 Author Share Posted December 18, 2009 Just a quick note. First, nice work... Second, port 89 is the same port used by unRAID-Web, which also uses lighttppd. Might need to ensure you don't clobber each other's installations. Joe L. Fixed! New version uploaded. Now UnTorrent lives nicely on port 8089, side by side with unRAID-Web. Thanks for the hint. Purko Link to comment
kapperz Posted December 18, 2009 Share Posted December 18, 2009 You have to think about protection. I have been using PeerGuardian for years (windows), but I haven't had the time to look into its Linux brother. It would be great if this was incorporated into unRUtorrent. http://phoenixlabs.org/pglinux/ Link to comment
btlupin Posted December 18, 2009 Share Posted December 18, 2009 I am getting an error with some trackers: Tracker: [Peer certificate cannot be authenticated with known CA certificates]. I saw some info regarding creating a certificate, but wonder if this can be done on unraid. Link to comment
purko Posted December 18, 2009 Author Share Posted December 18, 2009 You have to think about protection. I have been using PeerGuardian for years (windows), but I haven't had the time to look into its Linux brother. It would be great if this was incorporated into unRUtorrent. Well, my unRAID server is behind a NAT which is itself behind a NAT. So, personally I don't worry about things like that. But if you are thinking about opening your unRAID server to be accessible from the outside world, that would be a really bad idea. Everything on unRAID runs as root, and it has no proterctions whatsoever. unRAID was designed for serving your home network. Purko Link to comment
purko Posted December 18, 2009 Author Share Posted December 18, 2009 I am getting an error with some trackers: Tracker: [Peer certificate cannot be authenticated with known CA certificates]. Looks like you are trying to do HTTPS with your tracker. To do that, first you need to get the SSL certificate from your tracker. Append that certificate to your /etc/ssl/certs/ca-certificates.crt Telnet to your unRAID box and type this: wget ftp://ftp.slackware.com/pub/slackware/slackware-current/slackware/n/openssl-0.9.8l-i486-1.txz installpkg openssl-0.9.8l-i486-1.txz openssl s_client -connect your.tracker.com:443 </dev/null 2>/dev/null | sed -n '/BEGIN CERTIFICATE/,/END CERTIFICATE/p' >> /boot/ca-certificates.crt ln -sf /boot/ca-certificates.crt /etc/ssl/certs/ Of course, replace "your.tracker.com" (the third line above) with the name of your tracker. To make your certificates file survive server reboots, add that last line from above to your "GO" script: ln -sf /boot/ca-certificates.crt /etc/ssl/certs/ Let me know how it goes. Purko Link to comment
claude Posted December 19, 2009 Share Posted December 19, 2009 first, excuse me for my aproximative english language but I'm french and completely noob in linux (it makes a lot!!! >) unfortunately, with your first package unRUtorrent-2.8.0.full-i486-1pur.tgz (if I remember) everything worked perfectly, since I installed unRUtorrent-2.8.2.full-i486-1pur.tgz; rtorrent no longer starts when I point to http://tower:8089/ , window opens in firefox but I have an error in the bottom of the window [19.12.2009 11:39:36] WebUI started. [19.12.2009 11:39:36] Bad link to rTorrent. Check if it is really running. Check $scgi_port and $scgi_host settings in config.php and scgi_port in rTorrent configuration file. [19.12.2009 11:39:37] Bad response: (500) <?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>500 - Internal Server Error</title> </head> <body> <h1>500 - Internal Server Error</h1> </body> </html> if I look into shares in the main page of Unraid , I no longer have the "Torrent" shares as he have been created with the previous package I'm on Unraid 4.5 pro the unRUtorrent package is directly installed by the go script what's the problem and /or is it possible to retrieve the ancient package ? thank's Link to comment
jimiAces Posted December 19, 2009 Share Posted December 19, 2009 Is it possible to install plugins such as RSS manager and Scheduler? I was using bubbaraid but wanted the latest ver of unraid so thought i would try installing everything manually. my old rutorrent was in a wwwdocs folder on disk one. to install a plugin i just put it in the plugins folder. i cant do this anymore help Link to comment
PhoenixNZ Posted December 20, 2009 Share Posted December 20, 2009 Gidday purko OK, so I got a chance to try your package, so copied the 2.8.2 version into /boot/packages/unrtorrent then telnet into tower and pasted: installpkg /boot/packages/unrtorrent/* got this in the telnet session root@Tower:~# installpkg /boot/packages/unrtorrent/* Installing package unRUtorrent-2.8.2.full-i486-1pur... PACKAGE DESCRIPTION: unRUtorrent: unRUtorrent-2.8.2.full rtorrent+utorrent for unRAID unRUtorrent: unRUtorrent: http://lime-technology.com/forum/index.php?topic=4900.0 unRUtorrent: unRUtorrent: This is the all-in-one full version. unRUtorrent: unRUtorrent: Point your web browser to http://Tower:8089 unRUtorrent: unRUtorrent: Packaged By: Purko Balkanski unRUtorrent: Executing install script for unRUtorrent-2.8.2.full-i486-1pur... Installing package curl-7.19.6-i486-1_slack12.2... PACKAGE DESCRIPTION: curl: curl (command line URL data transfer tool) curl: curl: Curl is a command line tool for transferring data specified with URL curl: syntax. The command is designed to work without user interaction or curl: any kind of interactivity. Curl offers a busload of useful tricks curl: like proxy support, user authentication, ftp upload, HTTP post, SSL curl: (https:) connections, cookies, file transfer resume and more. curl: curl: libcurl is a library that Curl uses to do its job. It is readily curl: available to be used by your software, too. curl: Executing install script for curl-7.19.6-i486-1_slack12.2... Cannot install /tmp/unRUtorrent/gamin-0.1.10-i486-2.txz: package does not end in .tgz Installing package libidn-1.5-i486-1... PACKAGE DESCRIPTION: libidn: libidn (GNU Internationalized Domain Name library) libidn: libidn: GNU Libidn is an implementation of the Stringprep, Punycode and IDNA libidn: specifications defined by the IETF Internationalized Domain Names libidn: (IDN) working group, used for internationalized domain names. libidn: Executing install script for libidn-1.5-i486-1... Cannot install /tmp/unRUtorrent/libsigc++-2.2.4-i486-1as.txz: package does not e nd in .tgz Installing package libtorrent-0.12.6-i486-1... PACKAGE DESCRIPTION: libtorrent: libtorrent (C++ torrent library) libtorrent: libtorrent: LibTorrent is a BitTorrent library written in C++ for *nix libtorrent: with a focus on high performance and good code. libtorrent: libtorrent: Homepage: http://libtorrent.rakshasa.no/ libtorrent: Executing install script for libtorrent-0.12.6-i486-1... Cannot install /tmp/unRUtorrent/libxml2-2.7.3-i486-3.txz: package does not end i n .tgz Installing package lighttpd-1.4.19-i486-1mad... PACKAGE DESCRIPTION: lighttpd: lighttpd 1.4.19 a light web server lighttpd: lighttpd: lighttpd is a secure, fast, compliant, and very flexible lighttpd: web-server that has been optimized for high-performance lighttpd: environments. It has a very low memory footprint lighttpd: compared to other webservers and takes care of cpu-load. lighttpd: lighttpd: Package Created By: Miguel De Anda Executing install script for lighttpd-1.4.19-i486-1mad... either create user/group lighttpd/lighttpd or edit /etc/lighttpd/lighttpd.conf root www directory is in /var/www/htdocs Installing package php-5.2.8-i486-1... PACKAGE DESCRIPTION: php: php (HTML-embedded scripting language) php: php: PHP is an HTML-embedded scripting language. It shares syntax php: characteristics with C, Java, and Perl. The primary objective behind php: this language is to make a fast and easy-to-use scripting language php: for dynamic web sites. php: php: More information can be found online at http://www.php.net/ php: Executing install script for php-5.2.8-i486-1... Installing package rtorrent-0.8.6-i486-1... PACKAGE DESCRIPTION: rtorrent: rtorrent (command-line torrent client) rtorrent: rtorrent: rtorrent is a BitTorrent client for ncurses rtorrent: which uses the libtorrent library. rtorrent: rtorrent: Homepage: http://rtorrent.rakshasa.no/ rtorrent: Installing package screen-4.0.3-i486-1... PACKAGE DESCRIPTION: screen: screen (screen manager with VT100/ANSI terminal emulation) screen: screen: Screen is a full-screen window manager that multiplexes a physical screen: terminal between several processes (typically interactive shells). screen: Each virtual terminal provides the functions of a DEC VT100 terminal screen: and several control functions from the ISO 6492 (ECMA 48, ANSI X3.64) screen: and ISO 2022 standards (e.g. insert/delete line and support for screen: multiple character sets). There is a scrollback history buffer for screen: each virtual terminal and a copy-and-paste mechanism that allows screen: moving text regions between windows. screen: Executing install script for screen-4.0.3-i486-1... Installing package utempter-1.1.4-i486-1... PACKAGE DESCRIPTION: utempter: utempter (utmp updating library and utility) utempter: utempter: The utempter package provides a utility and shared library that utempter: allows terminal applications such as xterm and screen to update utempter: /var/run/utmp and /var/log/wtmp without requiring root privileges. utempter: Executing install script for utempter-1.1.4-i486-1... Installing package xmlrpc-c-1.11.00-i486-1... PACKAGE DESCRIPTION: Executing install script for xmlrpc-c-1.11.00-i486-1... /usr/sbin/lighttpd: error while loading shared libraries: libfam.so.0: cannot op en shared object file: No such file or directory Point your web browser to http://Tower:8089 a couple of files with ending .txz won't install. So thought, ok, will try and start manually with /etc/rc.d/rc.lighttpd start and got /usr/sbin/lighttpd: error while loading shared libraries: libfam.so.0: cannot op en shared object file: No such file or directory So, um, what's wrong? What am I doing wrong? PS: backdated to unraid 4.4.2 as some weird stuff started happening, system lockup and such. and Yes, ran memtest for 11 hrs, it made 8 passes, no errors. Total Ram 768Mb. Also done HDD diagnostics, everythings fine. System Specs: AMD Athlon 1800, Shuttle AK39 MBoard with latest (last) bios. Dlink Gigabit DGE- 530 Rev-A1 Unraid 4.4.2 installed on an old fujitsu 3.2G HD, partition to 1.2GB formatted to FAT and labelled 'UNRAID' Seagate 40G Hard Drive as disk1. Link to comment
BRiT Posted December 20, 2009 Share Posted December 20, 2009 If you can't install .txz files, you're on an older version of unRAID. The 4.5 final (and later beta series) has the upgraded package-utils which knows how to deal with txz. Try upgrading your package utils first. Link to comment
PhoenixNZ Posted December 20, 2009 Share Posted December 20, 2009 If you can't install .txz files, you're on an older version of unRAID. The 4.5 final (and later beta series) has the upgraded package-utils which knows how to deal with txz. Try upgrading your package utils first. Got it from purko's first post, that this would work with 4.4.2 unRUtorrent was tested to work with the following unRAID versions: 4.4.2, 4.5-beta6, 4.5-beta11, and 4.5.0. I am reasonably sure that it will work nicely on other builds too. As mentioned, I had issues with 4.5beta12 and final, so thought if this was working with 4.4.2, I'd back-date to last good final, and use that for now. Can purko confirm unRUtorrent-2.8.2.full-i486-1pur.tgz is backwards compatible to 4.4.2. Link to comment
purko Posted December 20, 2009 Author Share Posted December 20, 2009 UnTorrent 2.8.3 coming today. It will address all the problems above.... Link to comment
LVLAaron Posted December 20, 2009 Share Posted December 20, 2009 Install is nice and easy. Good job! I'm having 2 issues. 1. Some torrents finish downloading and just go to a state of "pausing" but stay in the downloading queue and everything goes to zero percent. See attached screenshot. They ARE in fact completed. Some torrents actually move into the "completed" section. 2. The folder naming is a bit of a mess. Why is it creating a folder called "a_torrent" and putting everything in there? \\tower\torrents\complete\a_torrent\ <--- my finished downloads are in this folder.... why? Link to comment
Recommended Posts