autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

Questions regarding modifying the torrent engine or download station may go here.
Forum rules
Please note the disclaimer before modifying your Synology Product.

Re: autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

Postby laser21 » Sat Apr 17, 2010 10:12 pm

sourceforge was down today, plus if you change into a folder with "cd" you just enter "install.sh" not the whole path!

Try now, or tomorrow!
laser21
Rookie
Rookie
 
Posts: 38
Joined: Mon Feb 01, 2010 9:57 pm

Re: autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

Postby Gemni » Mon Dec 27, 2010 11:35 pm

Hello everyone,

I hope someone can help me but im getting the below error on the webui.
[27.12.2010 14:34:34] WebUI started.
[27.12.2010 14:34:34] 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.

Can some one tell me how to check or change this? Sorry dont know how to edit a file on putty. Any steps would be great. Thank in advance.
Gemni
Beginner
Beginner
 
Posts: 22
Joined: Thu Dec 09, 2010 5:57 am

Re: autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

Postby laser21 » Tue Dec 28, 2010 2:21 pm

Hi gemni,
you need to set the ports to the same value in config.php of rutorrent (should be in /opt/share/www/rutorrent/conf/config.php)
$scgi_port = 5050;
$scgi_host = "127.0.0.1"

and in lighttpd.conf (should be in /opt/etc/lighttpd/lighttpd.conf)

scgi.server = ("/RPC2" =>
( "127.0.0.1" =>
( "host" => "127.0.0.1",
"check-local" => "disable",
"port" => 5050,


for editing - use command

vi config.php

when you see the text in the file locate where you want to edit, press "a" and you can edit the text. after you did, press "del" and after that "shift+ZZ" That saves and exits the file.
laser21
Rookie
Rookie
 
Posts: 38
Joined: Mon Feb 01, 2010 9:57 pm

Re: autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

Postby Gemni » Wed Dec 29, 2010 1:50 am

Hey Laser. I got tired of trying to figure what i did so i took out the harddrive put another one in and start fresh. Now i tried to do the install piece but it went really fast. Below is what i got. Looks like the install failed and it didnt install at all. Is there something wrong with the files on net?
Am i supposed to install boot strap on the device again or did i miss a step somewhere?

DS110> cd /volume1/public
DS110> dir
drwxrwxrwx 3 root root 4096 Dec 28 16:38 .
drwxrwxrwx 6 root root 4096 Dec 28 16:39 ..
drwx------ 2 root users 4096 Dec 28 16:38 @eaDir
-rwxrwxrwx 1 admin users 2901 Dec 27 14:24 install.sh
DS110> sh install.sh
: not found line 2:
: not found line 5:
install.sh: cd: line 7: can't cd to /volume1/@tmp/
: not found line 8:
Installing IPKG
--16:46:29-- http://ipkg.nslu2-linux.org/feeds/optwa ... arm.xsh%0D
=> `syno-mvkw-bootstrap_1.2-7_arm.xsh%0D'
Resolving ipkg.nslu2-linux.org... 140.211.169.169
Connecting to ipkg.nslu2-linux.org|140.211.169.169|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
16:46:29 ERROR 404: Not Found.

: not found line 12:
'leep: invalid number '20
install.sh: line 14: ipkg: not found
: not found line 15:
Installing Lighttpd
sh: can't open 'syno-mvkw-bootstrap_1.2-7_arm.xsh'
install.sh: line 18: ipkg: not found
: nonexistent directoryn't create /opt/etc/lighttpd/lighttpd.conf
: nonexistent directoryn't create /opt/etc/lighttpd/lighttpd.conf
: nonexistent directoryn't create /opt/etc/lighttpd/lighttpd.conf
: not found line 30:
Installing RTorrent
install.sh: line 33: ipkg: not found
install.sh: line 34: ipkg: not found
: nonexistent directoryn't create /opt/etc/rtorrent.conf
: nonexistent directoryn't create /opt/etc/init.d/S99rtorrent
: not found line 77:
Installing xmlrpc-c
install.sh: line 80: ipkg: not found
install.sh: line 81: svn: not found
install.sh: cd: line 82: can't cd to xmlrpc-c
install.sh: line 83: ./configure: not found
install.sh: line 84: make: not found
install.sh: line 85: make: not found
: not found line 86:
Installing ruTorrent
install.sh: cd: line 89: can't cd to /opt/share/www
install.sh: line 90: svn: not found
install.sh: cd: line 91: can't cd to rutorrent
': No such file or directory
install.sh: line 93: svn: not found
install.sh: cd: line 94: can't cd to plugins
rm: can't remove 'darkpal': No such file or directory
': No such file or directory
install.sh: cd: line 96: can't cd to ..
: No such file or directory
: not found line 98:
Autoinstall complete
Gemni
Beginner
Beginner
 
Posts: 22
Joined: Thu Dec 09, 2010 5:57 am

Re: autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

Postby laser21 » Wed Dec 29, 2010 12:35 pm

command line linux can be very frustrating at the beginning, dont give up!

Try making it step by step.

Do a fresh DSM 3.0 format.
Then try to follow this guide - http://forum.synology.com/wiki/index.ph ... rent_HowTo
its not with rutorrent, but once you got wtorrent running, rutorrent is simple.

Also take a look here viewtopic.php?t=6437 Important is step 4 - install the CORRECT bootstrap for your Box.

Ill be out of town for 4 days, Ill be happy to help you when I come back.

Its all about trying :-)
laser21
Rookie
Rookie
 
Posts: 38
Joined: Mon Feb 01, 2010 9:57 pm

rutorrent wiki

Postby Paktas » Wed Dec 29, 2010 3:52 pm

There's similar full step-by-step wiki for rutorrent - http://forum.synology.com/wiki/index.ph ... rent_HowTo
Synology DS409 + 4 x WD CAVIAR GREEN 2TB
Paktas
Experienced
Experienced
 
Posts: 113
Joined: Wed Feb 17, 2010 10:45 pm
Location: Vilnius, Lithuania

Re: autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

Postby Gemni » Wed Dec 29, 2010 10:27 pm

Thx for the support guys. Question i have is once i do a fresh install of DSM 3.0. Do i have to reinstall the bootstrap? Even though i have done it before on the old install? I just did a brand new fresh install on my synology ds110j. Do i just run the provided scripts on this form or do i install bootstrap and then the script? Trying to avoid the step by step piece as i sux at ssh haha.. I finally learned how to edit with vi and save but still had no luck i guess. Please let me know which would be first step. Bootstrap or just script. Thx in advance. Please keep in min that i dont know crap about ssh haha..
Gemni
Beginner
Beginner
 
Posts: 22
Joined: Thu Dec 09, 2010 5:57 am

Re: autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

Postby laser21 » Thu Dec 30, 2010 12:11 am

After DSM 3 youre starting fresh - so yes, bootstrap and so on...
laser21
Rookie
Rookie
 
Posts: 38
Joined: Mon Feb 01, 2010 9:57 pm

Re: autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

Postby Gemni » Thu Dec 30, 2010 1:33 am

Ok so i isntalled the correct bootstrap and that went in fine then i ran the script and it went fine and rebooted my box.
Now when i go to myip:8081 it shows lighttpd server is running, but when i go to myip:8081/rutorrent it shows 404 - Not Found
Dang it what in the heck is going on lol.

This is what it shows when it installed. Did Rutorrent no get installed?
/include/xmlrpc-c/client.h
/include/xmlrpc-c/string_int.h
/include/xmlrpc-c/packetsocket.hpp
/include/xmlrpc-c/abyss.h
/include/xmlrpc-c/sleep_int.h
/include/xmlrpc-c/base64.hpp
/include/xmlrpc-c/base_int.h
/include/xmlrpc-c/timeout.hpp
/include/xmlrpc-c/util_int.h
/include/xmlrpc-c/server_cgi.hpp
/include/xmlrpc-c/client_int.h
/include/xmlrpc-c/select_int.h
/include/xmlrpc-c/girerr.hpp
/include/xmlrpc-c/client_transport.hpp
/include/xmlrpc-c/client_global.h
/include/xmlrpc-c/xml.hpp
/include/xmlrpc-c/server_w32httpsys.h
/include/xmlrpc-c/abyss_unixsock.h
/include/xmlrpc-c/abyss_opensslsock.h
/include/xmlrpc-c/oldxmlrpc.h
/include/xmlrpc-c/server.h
/include/xmlrpc-c/server_abyss.h
/include/xmlrpc-c/time_int.h
/include/xmlrpc-c/registry.hpp
/include/xmlrpc-c/base.hpp
/include/xmlrpc-c/xmlparser.h
/include/xmlrpc-c/abyss_winsock.h
/include/xmlrpc-c/client.hpp
/include/xmlrpc-c/inttypes.h
/include/xmlrpc-c/c_util.h
/include/xmlrpc-c/girmem.hpp
/include/xmlrpc-c/oldcppwrapper.hpp
/include/xmlrpc-c/client_simple.hpp
/include/xmlrpc-c/server_cgi.h
/include/Makefile
/unix-common.make
/configure.in
/GNUmakefilec
/Windowsrpc-c
/Windows/xmlparse.dsp
/Windows/CleanAll.bat
/Windows/gennmtab.dsp
/Windows/xmlrpc_sample_add_server_w32httpsys.dsp
/Windows/delsln.bat
/Windows/xmlrpc_sample_add_server.dsp
/Windows/xmlrpc_sample_add_sync_client.dsp
/Windows/ReadMeWin32.txt
/Windows/xmltok.dsp
/Windows/abyss.dsp
/Windows/curllink.h
/Windows/ReadMeOld.txt
/Windows/UsingProxyDSP.txt
/Windows/updcfg.bat
/Windows/xmlhttpsys.dsp
/Windows/transport_config_win32.h
/Windows/xmlrpc.dsp
/Windows/xmlrpccpp.dsp
/Windows/mkvers1.bat
/Windows/diffcfg.bat
/Windows/xmlrpc_cpp_proxy.dsp
/Windows/xmlrpc.dsw
/Windows/xmlrpc_win32_config.h
/Windows/UsingCURLinWin32.txt
/Windows/xmlrpc_misc.dsp
/Windows/xmlrpc_sample_add_asynch_client.dsp
/Windows/cpptest.dsp
/Windows/ConfigureWin32.bat
/Windows/rpctest.dsp
/Windows/CleanWin32.bat
/Windows/xmlrpc_sample_auth_client.dsp
/Windows/mkvers.bat
/Windows/win32_config.h
/Windows/configwin32.dsp
/READMElrpc-c
/transport_config.make
/common.mkc-c
/srcdir.mk.in
/xmlrpc_amconfig.h.in
/autom4te.cache
/autom4te.cache/traces.0
/autom4te.cache/requests
/autom4te.cache/output.0
/dylib-common.make
/missingrpc-c
/aclocal.m4-c
/install-sh-c
/examplespc-c
/examples/xmlrpc_sample_add_server_w32httpsys.c
/examples/auth_client.c
/examples/cpp
/examples/cpp/sample_add_client_complex.cpp
/examples/cpp/xmlrpc_inetd_server.cpp
/examples/cpp/asynch_client.cpp
/examples/cpp/pstream_inetd_server.cpp
/examples/cpp/xmlrpc_loop_server.cpp
/examples/cpp/xmlrpc_sample_add_server.cpp
/examples/cpp/xmlrpc_sample_add_server_cgi.cpp
/examples/cpp/pstream_client.cpp
/examples/cpp/Makefile
/examples/cpp/xmlrpc_sample_add_client.cpp
/examples/gen_sample_add_xml.c
/examples/xmlrpc_socket_server.c
/examples/interrupted_client.c
/examples/xmlrpc_sample_add_server.c
/examples/xmlrpc_asynch_client.c
/examples/xmlrpc_server_validatee.c
/examples/README
/examples/xmlrpc_sample_add_client.c
/examples/xmlrpc_inetd_server.c
/examples/synch_client.c
/examples/xmlrpc_loop_server.c
/examples/xmlrpc_sample_add_server_cgi.c
/examples/interrupted_server.c
/examples/Makefile
U xmlrpc-c
Checked out revision 2065.
checking for a BSD-compatible install... /opt/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal... missing
checking for working autoconf... found
checking for working automake... missing
checking for working autoheader... found
checking for working makeinfo... missing
checking build system type... armv5tel-unknown-linux-gnu
checking host system type... armv5tel-unknown-linux-gnu
checking for wininet-config... no
configure: You don't appear to have Wininet installed (no working wininet-config in your command search path), so we will not build the Wininet client XML transport
checking whether to build Wininet client XML transport module... no
checking for curl-config... yes
checking whether to build Curl client XML transport module... yes
checking for libwww-config... no
configure: You don't appear to have Libwww installed (no working libwww-config in your command search path), so we will not build the Libwww client XML transport
checking whether to build Libwww client XML transport module... no
checking whether to build Abyss server module... yes
checking whether to build CGI server module... yes
checking whether to build C++ wrappers and tools... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for socket... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking sys/filio.h usability... no
checking sys/filio.h presence... no
checking for sys/filio.h... no
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for size_t... yes
checking whether va_list is an array... no
checking whether compiler has __attribute__... yes
checking for vsnprintf... yes
checking for wcsncmp... yes
checking for setgroups... yes
checking for asprintf... yes
checking for setenv... yes
checking for pselect... yes
checking for gettimeofday... yes
checking for localtime_r... yes
checking for gmtime_r... yes
checking for strcasecmp... yes
checking for stricmp... no
checking for _stricmp... no
checking whether to use Abyss pthread function... yes
checking for curl-xmlrpc-config... no
checking for curl-config... /opt/bin/curl-config
checking for curl library directory... /opt/lib
checking whether to use SSL with libwww... no
checking whether to build the libxml2 backend... no
configure: creating ./config.status
config.status: creating srcdir.mk
config.status: creating config.mk
config.status: creating xmlrpc_config.h
config.status: creating xmlrpc_amconfig.h
config.status: executing default-1 commands
GNUmakefile:39: /volume1/public/xmlrpc-c/common.mk: No such file or directory
make: *** No rule to make target `/volume1/public/xmlrpc-c/common.mk'. Stop.
GNUmakefile:39: /volume1/public/xmlrpc-c/common.mk: No such file or directory
make: *** No rule to make target `/volume1/public/xmlrpc-c/common.mk'. Stop.
: not found line 86:
Installing ruTorrent
install.sh: cd: line 89: can't cd to /opt/share/www
' is malformed or the scheme or host or path is missingorrent/
install.sh: cd: line 91: can't cd to rutorrent
rm: cannot remove `plugins\r': No such file or directory
' is malformed or the scheme or host or path is missinggins/
install.sh: cd: line 94: can't cd to plugins
rm: cannot remove `darkpal': No such file or directory
rm: cannot remove `rpc\r': No such file or directory
install.sh: cd: line 96: can't cd to ..
: No such file or directory.php
: not found line 98:
Autoinstall complete
Gemni
Beginner
Beginner
 
Posts: 22
Joined: Thu Dec 09, 2010 5:57 am

Re: autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

Postby laser21 » Thu Dec 30, 2010 9:29 am

no, it didnt install rutorrent, but it also skipped rtorrent...

I wouldnt use scripts, its just too many variables that can go wrong and looking for an error is always more difficult...
laser21
Rookie
Rookie
 
Posts: 38
Joined: Mon Feb 01, 2010 9:57 pm

Re: autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

Postby macair317 » Fri Feb 18, 2011 5:26 am

I'm having the same problem with my install. I don't know much about it but my payroll software is messed up now. I know that I probably shouldn't be messing with this stuff at work but I don't want to have to do a whole new reinstall.
macair317
Trainee
Trainee
 
Posts: 14
Joined: Mon Jan 31, 2011 6:33 pm

Re: autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

Postby Mojo the Monkey » Sat Feb 19, 2011 12:46 am

arbitrabbit wrote:I have put a quick hack in my /opt/etc/init.d/S80lighthttpd. My stop section now looks like

Code: Select all
    stop)
        if [ -n "`ps aux |awk '/\/opt\/sbin\/lighttpd/ {print $1}'`" ]; then
            echo "Stopping web server: $NAME"
            kill -5 "`ps aux |awk '/\/opt\/sbin\/lighttpd/ {print $1}'`"
        fi
        ;;


This takes care of the problem I mentioned in the post above and only kills the right instance of lighttpd
I still can't get lighttpd to automatically start though. Seems that somehow starting two instances conflicts with the other instance of lighttpd run by the Media server. Any solution to that?


I am having the same problem described and fixed here, but when I modify my "S80lighthttpd" file and copy it back to the dir it seems to just kill lighttpd. It takes the removal of lighttpd and reinstallation again to recover.

I copy the S80lighthttpd file to my Windows machine, add in the text above and then copy it back to the init.d folder but this doesn't work, can anyone help me at all?

Cheers,

Mojo
Mojo the Monkey
I'm New!
I'm New!
 
Posts: 2
Joined: Fri Jan 07, 2011 7:24 pm

Re: autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

Postby Jorgge » Fri Sep 02, 2011 10:37 am

Mojo the Monkey wrote:
arbitrabbit wrote:I have put a quick hack in my /opt/etc/init.d/S80lighthttpd. My stop section now looks like

Code: Select all
    stop)
        if [ -n "`ps aux |awk '/\/opt\/sbin\/lighttpd/ {print $1}'`" ]; then
            echo "Stopping web server: $NAME"
            kill -5 "`ps aux |awk '/\/opt\/sbin\/lighttpd/ {print $1}'`"
        fi
        ;;


This takes care of the problem I mentioned in the post above and only kills the right instance of lighttpd
I still can't get lighttpd to automatically start though. Seems that somehow starting two instances conflicts with the other instance of lighttpd run by the Media server. Any solution to that?


I am having the same problem described and fixed here, but when I modify my "S80lighthttpd" file and copy it back to the dir it seems to just kill lighttpd. It takes the removal of lighttpd and reinstallation again to recover.

I copy the S80lighthttpd file to my Windows machine, add in the text above and then copy it back to the init.d folder but this doesn't work, can anyone help me at all?

Cheers,

Mojo

Hi, Mojo, view the following topic of this forum forum.synology.com/enu/viewtopic.php?f=38&t=22656&start=135. Regards.
Jorgge
I'm New!
I'm New!
 
Posts: 1
Joined: Thu Sep 01, 2011 9:20 am

Previous

Return to Torrent Engines/Download Station Mods

Who is online

Users browsing this forum: capetuso and 2 guests