Сервер загрузки, http, ftp, торрент...
#270
Скрипт установки ruTorrent на DS210+ с нуля (на чистую машину,без IPKG)

за основу взята статья: autoinstall ipkg+lighttpd+rtorrent+xmlrpc-c+rutorrent

делаем все по аналогии со статьей Автоматическая установка lighttpd+rtorrent+rutorren DS209+

[syntax="bash"]
#!/bin/sh

LIGHTTPDCONF=/opt/etc/lighttpd/lighttpd.conf
RTORRENTCONF=/opt/etc/rtorrent.conf

mkdir -p /volume1/@tmp
cd /volume1/@tmp/

# IPKG
echo -e "\033[1mInstalling IPKG\033[0m"
wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh
sh syno-mvkw-bootstrap_1.2-7_arm.xsh &
sleep 20
ipkg update

# Lighttpd
echo -e "\033[1mInstalling Lighttpd\033[0m"
ipkg install lighttpd php-fcgi
echo 'server.event-handler = "poll"' >> ${LIGHTTPDCONF}
echo 'server.modules += ("mod_auth","mod_cgi","mod_scgi")' >> ${LIGHTTPDCONF}
echo '
scgi.server = ("/RPC2" =>
("127.0.0.1" =>
("host" => "127.0.0.1",
"port" => 5050,
"check-local" => "disable")
)
)
' >> ${LIGHTTPDCONF}

# rtorrent
echo -e "\033[1mInstalling RTorrent\033[0m"
ipkg install rtorrent screen
ipkg remove xmlrpc-c
mkdir -p /opt/share/torrent/session/
echo 'scgi_port = 127.0.0.1:5050' >> ${RTORRENTCONF}
echo '#!/bin/sh

NAME=rtorrent
CONFIG=/opt/etc/rtorrent.conf
LOGFILE=/opt/var/log/rtorrentInit.log
TORRENTFILE=/opt/bin/rtorrent
OPTIONS="-n -o import=$CONFIG"

getsession() {
session=`sed -n "/session\s*=/s/^\s*session\s*=\s*//p" $CONFIG`
echo $session
}

case "$1" in
start)
screen -list|grep -sq $NAME && exit 0
session=`getsession`
[ -e $session/rtorrent.lock ] && rm -rf $session/rtorrent.lock
/opt/bin/screen -dmS $NAME $TORRENTFILE $OPTIONS 2>$LOGFILE
;;
stop)
session=`getsession`
! [ -e $session/rtorrent.lock ] && exit 0
pid=`sed "s/[^0-9]//g" $session/rtorrent.lock`
ps|grep -v grep|grep -sq $pid.*rtorrent && kill $pid
;;
restart)
$0 stop
sleep 2
$0 start
;;
status)
screen -list|grep -s $NAME
;;
*)
echo $"Usage: \$0 {start|stop|status|restart}"
exit 1
esac
exit 0
' > /opt/etc/init.d/S99rtorrent

# xmlrpc-c
echo -e "\033[1mInstalling xmlrpc-c\033[0m"
ipkg install gcc binutils optware-devel libcurl-dev
svn co http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
cd xmlrpc-c
./configure --prefix=/opt
make ARCH=arm
make install

# ruTorrent 3.0
echo -e "\033[1mInstalling ruTorrent\033[0m"
cd /opt/share/www
svn co http://rutorrent.googlecode.com/svn/trunk/rutorrent/
cd rutorrent
rm -r plugins
svn co http://rutorrent.googlecode.com/svn/trunk/plugins/
cd plugins
rm -r darkpal rpc
cd ..
sed -i 's/scgi_port\s*=\s*5000/scgi_port = 5050/' conf/config.php

echo -e "\033[1mAutoinstall complete\033[0m"
reboot
[/syntax]

у кого какие косяки - отписывайтесь...

PS прикручиваем пароль на доступ к странице (простой способ)

так же вы можете использовать удобный гаджет RuTrntUpt от Scratch
#293
Попробовал закомментировать строки с установкой IPKG и запустить скрипт:
Код: Выделить всё#  IPKG
# echo -e "\033[1mInstalling IPKG\033[0m"
# wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh
# sh syno-mvkw-bootstrap_1.2-7_arm.xsh &
# sleep 20
ipkg update


Последнюю строчку специально не закомментировал, как здесь советовали неоднократно.

Всё прошло с переменным успехом:
 
Last login: Sat Jul 17 15:11:21 on console

XpaHuJIKa login: root
Password:

BusyBox v1.1.0 (2010.06.18-10:22+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

XpaHuJIKa> cd /volume1/public/
XpaHuJIKa> sh install.sh
: not found install.sh: 2:
: not found install.sh: 5:
install.sh: cd: 7: can't cd to /volume1/@tmp/
: not found install.sh: 8:
ipkg: unknown sub-command update
ipkg version 0.99.163
usage: ipkg [options...] sub-command [arguments...]
where sub-command is one of:

Package Manipulation:
update Update list of available packages
upgrade Upgrade all installed packages to latest version
install <pkg> Download and install <pkg> (and dependencies)
install <file.ipk> Install package <file.ipk>
configure [<pkg>] Configure unpacked packages
remove <pkg|regexp> Remove package <pkg|packages following regexp>
flag <flag> <pkg> ... Flag package(s) <pkg>
<flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)

Informational Commands:
list List available packages and descriptions
list_installed List all and only the installed packages and description
files <pkg> List all files belonging to <pkg>
search <file|regexp> Search for a package providing <file>
info [pkg|regexp] Display all info for <pkg>
status [pkg|regexp] Display all status for <pkg>
download <pkg> Download <pkg> to current directory.
compare_versions <v1> <op> <v2>
compare versions using <= < > >= = << >>
print_architecture prints the architecture.
print_installation_architecture
whatdepends [-A] [pkgname|pat]+
whatdependsrec [-A] [pkgname|pat]+
whatprovides [-A] [pkgname|pat]+
whatconflicts [-A] [pkgname|pat]+
whatreplaces [-A] [pkgname|pat]+
prints the installation architecture.

Options:
-A Query all packages with whatdepends, whatprovides, whatreplaces, whatconflicts
-V <level> Set verbosity level to <level>. If no value is
--verbosity <level> provided increase verbosity by one. Verbosity levels:
0 errors only
1 normal messages (default)
2 informative messages
3 debug output
-f <conf_file> Use <conf_file> as the ipkg configuration file
-conf <conf_file> Default configuration file location
is /opt/etc/ipkg.conf
-d <dest_name> Use <dest_name> as the the root directory for
-dest <dest_name> package installation, removal, upgrading.
<dest_name> should be a defined dest name from
the configuration file, (but can also be a
directory name in a pinch).
-o <offline_root> Use <offline_root> as the root directory for
-offline <offline_root> offline installation of packages.
-verbose_wget more wget messages
Force Options (use when ipkg is too smart for its own good):
-force-depends Make dependency checks warnings instead of errors
Install/remove package in spite of failed dependences
-force-defaults Use default options for questions asked by ipkg.
(no prompts). Note that this will not prevent
package installation scripts from prompting.
-force-reinstall Allow ipkg to reinstall a package.
-force-overwrite Allow ipkg to overwrite files from another package during an install.
-force-downgrade Allow ipkg to downgrade packages.
-force_space Install even if there does not seem to be enough space.
-noaction No action -- test only
-nodeps Do not follow dependences
-force-removal-of-dependent-packages
-recursive Allow ipkg to remove package and all that depend on it.
-test No action -- test only
-t Specify tmp-dir.
--tmp-dir Specify tmp-dir.

regexp could be something like 'pkgname*' '*file*' or similar
eg: ipkg info 'libstd*' or ipkg search '*libop*' or ipkg remove 'libncur*'
: not found install.sh: 15:
Installing Lighttpd
Package lighttpd (1.4.26-1) installed in root is up to date.
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
.annot find package php-fcgi
Check the spelling or perhaps run 'ipkg update'
: not found install.sh: 30:
Installing RTorrent
Package rtorrent (0.8.6-1) installed in root is up to date.
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
.annot find package screen
Check the spelling or perhaps run 'ipkg update'
No packages removed.
Nothing to be done
Successfully terminated.
: not found install.sh: 77:
Installing xmlrpc-c
Package gcc (4.2.3-1) installed in root is up to date.
Package binutils (2.19.1-1) installed in root is up to date.
Installing optware-devel (6.8-10) to root...
Downloading http://ipkg.nslu2-linux.org/feeds/optwa ... 10_arm.ipk
Installing wget-ssl (1.12-2) to root...
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
ERROR: The following packages conflict with wget-ssl:
wget
.annot find package libcurl-dev
Check the spelling or perhaps run 'ipkg update'
/config.mk.in
/configurec-c
/xmlrpc_config.h.in
/src xmlrpc-c
/src/xmlrpc_libxml2.c
/src/trace.cc
/src/xmlrpc_parse.c
/src/cpprpc-c
/src/cpp/test
/src/cpp/test/testclient.cpp
/src/cpp/test/test.cpp
/src/cpp/test/tools.cpp
/src/cpp/test/server_pstream.cpp
/src/cpp/test/testclient.hpp
/src/cpp/test/tools.hpp
/src/cpp/test/server_pstream.hpp
/src/cpp/test/server_abyss.cpp
/src/cpp/test/registry.cpp
/src/cpp/test/testclient_dummy.cpp
/src/cpp/test/Makefile
/src/cpp/test/server_abyss.hpp
/src/cpp/test/registry.hpp
/src/cpp/xml.cpp
/src/cpp/server_pstream.cpp
/src/cpp/curl.cpp
/src/cpp/server_abyss.cpp
/src/cpp/registry.cpp
/src/cpp/XmlRpcCpp.cpp
/src/cpp/fault.cpp
/src/cpp/libwww.cpp
/src/cpp/outcome.cpp
/src/cpp/pstream.cpp
/src/cpp/value.cpp
/src/cpp/wininet.cpp
/src/cpp/client.cpp
/src/cpp/girmem.cpp
/src/cpp/packetsocket.cpp
/src/cpp/env_wrap.cpp
/src/cpp/base64.cpp
/src/cpp/env_wrap.hpp
/src/cpp/client_simple.cpp
/src/cpp/server_cgi.cpp
/src/cpp/girerr.cpp
/src/cpp/param_list.cpp
/src/cpp/Makefile
/src/xmlrpc_decompose.c
/src/xmlrpc_client.c
/src/xmlrpc_server_info.c
/src/parse_value.c
/src/registry.c
/src/parse_value.h
/src/registry.h
/src/method.c
/src/xmlrpc_build.c
/src/system_method.c
/src/method.h
/src/resource.c
/src/system_method.h
/src/Makefile
/src/xmlrpc_server_abyss.c
/src/testpc-c
/src/test/xml_data.h
/src/test/parse_xml.h
/src/test/cgi.c
/src/test/req_no_params.xml
/src/test/server_abyss.c
/src/test/cgi.h
/src/test/method_registry.c
/src/test/value.c
/src/test/server_abyss.h
/src/test/method_registry.h
/src/test/client.c
/src/test/test.c
/src/test/value.h
/src/test/abyss.c
/src/test/eftest_wrapper.sh
/src/test/client.h
/src/test/cgitest1.c
/src/test/serialize_value.c
/src/test/test.h
/src/test/abyss.h
/src/test/serialize.c
/src/test/http-req-simple.txt
/src/test/data
/src/test/data/req_value_name.xml
/src/test/data/sample_add_call.xml
/src/test/data/req_no_params.xml
/src/test/data/req_out_of_order.xml
/src/test/serialize_value.h
/src/test/value_datetime.c
/src/test/client_dummy.c
/src/test/xml_data.c
/src/test/parse_xml.c
/src/test/Makefile
/src/test/serialize.h
/src/test/value_datetime.h
/src/xmlrpc_data.c
/src/xmlrpc_array.c
/src/xmlrpc_expat.c
/src/xmlrpc_struct.c
/src/xmlrpc_base64.c
/src/double.c
/src/xmlrpc_serialize.c
/src/xmlrpc_server_cgi.c
/src/double.h
/src/xmlrpc_authcookie.c
/src/xmlrpc_datetime.c
/src/xmlrpc_client_global.c
/src/version.c
/src/xmlrpc_server_w32httpsys.c
/src/xmlrpc_string.c
/xmlrpc-c-config.test.main
/config.guess
/version.mk-c
/config.sub-c
/toolsmlrpc-c
/tools/xmlrpc_pstream
/tools/xmlrpc_pstream/test
/tools/xmlrpc_pstream/xmlrpc_pstream.cpp
/tools/xmlrpc_pstream/xmlrpc_pstream.html
/tools/xmlrpc_pstream/Makefile
/tools/xmlrpc_transport
/tools/xmlrpc_transport/xmlrpc_transport.c
/tools/xmlrpc_transport/xmlrpc_transport.html
/tools/xmlrpc_transport/Makefile
/tools/perl_packetsocket
/tools/perl_packetsocket/PacketSocket.pm
/tools/binmode-rpc-kit
/tools/binmode-rpc-kit/oct2bin
/tools/binmode-rpc-kit/binmode-rpc2xml-rpc
/tools/binmode-rpc-kit/binmode-rpc-rfc.txt
/tools/binmode-rpc-kit/COPYING
/tools/binmode-rpc-kit/Makefile
/tools/binmode-rpc-kit/README
/tools/binmode-rpc-kit/examples
/tools/binmode-rpc-kit/examples/good-1.xml
/tools/binmode-rpc-kit/examples/good-2.xml
/tools/binmode-rpc-kit/examples/good-3.xml
/tools/binmode-rpc-kit/examples/good-4.xml
/tools/binmode-rpc-kit/examples/good-5.xml
/tools/binmode-rpc-kit/examples/good-6.xml
/tools/binmode-rpc-kit/examples/invalid-1.binmode
/tools/binmode-rpc-kit/examples/invalid-2.binmode
/tools/binmode-rpc-kit/examples/good-1.binmode
/tools/binmode-rpc-kit/examples/invalid-3.binmode
/tools/binmode-rpc-kit/examples/good-2.binmode
/tools/binmode-rpc-kit/examples/invalid-4.binmode
/tools/binmode-rpc-kit/examples/invalid-5.binmode
/tools/binmode-rpc-kit/examples/good-3.binmode
/tools/binmode-rpc-kit/examples/good-4.binmode
/tools/binmode-rpc-kit/examples/good-5.binmode
/tools/binmode-rpc-kit/examples/good-6.binmode
/tools/interop-server
/tools/interop-server/interop-cgi.c
/tools/xmlrpc
/tools/xmlrpc/xmlrpc.c
/tools/xmlrpc/xmlrpc.html
/tools/xmlrpc/Makefile
/tools/libc-c
/tools/lib/dumpvalue.c
/tools/lib/include
/tools/lib/include/dumpvalue.h
/tools/lib/Makefile
/tools/turbocharger
/tools/turbocharger/mod_gzip.c.diff
/tools/turbocharger/mod_gzip.c
/tools/turbocharger/Makefile
/tools/turbocharger/README
/tools/xmlrpc_cpp_proxy
/tools/xmlrpc_cpp_proxy/systemProxy.cpp
/tools/xmlrpc_cpp_proxy/xmlrpcMethod.cpp
/tools/xmlrpc_cpp_proxy/proxyClass.cpp
/tools/xmlrpc_cpp_proxy/xmlrpcType.cpp
/tools/xmlrpc_cpp_proxy/xmlrpc_cpp_proxy.cpp
/tools/xmlrpc_cpp_proxy/systemProxy.hpp
/tools/xmlrpc_cpp_proxy/xmlrpcMethod.hpp
/tools/xmlrpc_cpp_proxy/Makefile
/tools/xmlrpc_cpp_proxy/proxyClass.hpp
/tools/xmlrpc_cpp_proxy/xmlrpcType.hpp
/tools/xml-rpc-api2txt.1
/tools/xml-rpc-api2txt
/tools/Makefile
/tools/common.mk
/tools/xml-rpc-api2cpp
/tools/xml-rpc-api2cpp/xml-rpc-api2cpp.cpp
/tools/xml-rpc-api2cpp/DataType.hpp
/tools/xml-rpc-api2cpp/XmlRpcClass.hpp
/tools/xml-rpc-api2cpp/XmlRpcFunction.hpp
/tools/xml-rpc-api2cpp/SystemProxy.cpp
/tools/xml-rpc-api2cpp/DataType.cpp
/tools/xml-rpc-api2cpp/SystemProxy.hpp
/tools/xml-rpc-api2cpp/XmlRpcClass.cpp
/tools/xml-rpc-api2cpp/XmlRpcFunction.cpp
/tools/xml-rpc-api2cpp/Makefile
/tools/xml-rpc-api2cpp/xml-rpc-api2cpp.1
/doc xmlrpc-c
/doc/HISTORYc
/doc/TODOpc-c
/doc/INSTALLc
/doc/configure_doc
/doc/SECURITY
/doc/COPYINGc
/doc/DEVELOPING
/doc/CREDITSc
/doc/TESTINGc
/lib xmlrpc-c
/lib/abyssc-c
/lib/abyss/license.txt
/lib/abyss/HISTORY
/lib/abyss/conf
/lib/abyss/conf/abyss.conf
/lib/abyss/conf/mime.types
/lib/abyss/src
/lib/abyss/src/trace.c
/lib/abyss/src/socket_unix.h
/lib/abyss/src/abyss_info.h
/lib/abyss/src/init.c
/lib/abyss/src/trace.h
/lib/abyss/src/channel.c
/lib/abyss/src/channel.h
/lib/abyss/src/http.c
/lib/abyss/src/http.h
/lib/abyss/src/conf.c
/lib/abyss/src/socket_openssl.c
/lib/abyss/src/chanswitch.c
/lib/abyss/src/Makefile
/lib/abyss/src/conn.c
/lib/abyss/src/response.c
/lib/abyss/src/chanswitch.h
/lib/abyss/src/conn.h
/lib/abyss/src/socket_win.c
/lib/abyss/src/server.c
/lib/abyss/src/data.c
/lib/abyss/src/socket_win.h
/lib/abyss/src/server.h
/lib/abyss/src/thread.h
/lib/abyss/src/handler.c
/lib/abyss/src/date.c
/lib/abyss/src/thread_pthread.c
/lib/abyss/src/data.h
/lib/abyss/src/file.c
/lib/abyss/src/token.c
/lib/abyss/src/thread_windows.c
/lib/abyss/src/date.h
/lib/abyss/src/handler.h
/lib/abyss/src/session.c
/lib/abyss/src/main.c
/lib/abyss/src/file.h
/lib/abyss/src/token.h
/lib/abyss/src/socket.c
/lib/abyss/src/session.h
/lib/abyss/src/thread_fork.c
/lib/abyss/src/socket_unix.c
/lib/abyss/src/socket.h
/lib/abyss/example
/lib/abyss/example/htdocs
/lib/abyss/example/htdocs/index.htm
/lib/abyss/example/htdocs/pwrabyss.gif
/lib/abyss/example/conf
/lib/abyss/example/conf/abyss.conf
/lib/abyss/example/conf/mime.types
/lib/abyss/Makefile
/lib/abyss/README
/lib/curl_transport
/lib/curl_transport/lock_pthread.c
/lib/curl_transport/curlmulti.c
/lib/curl_transport/curltransaction.h
/lib/curl_transport/curlversion.h
/lib/curl_transport/lock_pthread.h
/lib/curl_transport/curlmulti.h
/lib/curl_transport/xmlrpc_curl_transport.c
/lib/curl_transport/curltransaction.c
/lib/curl_transport/Makefile
/lib/curl_transport/lock.h
/lib/expatc-c
/lib/expat/expat.html
/lib/expat/gennmtab
/lib/expat/gennmtab/gennmtab.c
/lib/expat/gennmtab/Makefile
/lib/expat/xmlparse
/lib/expat/xmlparse/xmlparse.h
/lib/expat/xmlparse/xmlparse.c
/lib/expat/xmlparse/Makefile
/lib/expat/Makefile
/lib/expat/xmlwf
/lib/expat/xmlwf/win32filemap.c
/lib/expat/xmlwf/xmlfile.c
/lib/expat/xmlwf/Makefile.in
/lib/expat/xmlwf/unixfilemap.c
/lib/expat/xmlwf/xmlwf.dsp
/lib/expat/xmlwf/filemap.h
/lib/expat/xmlwf/xmlfile.h
/lib/expat/xmlwf/codepage.c
/lib/expat/xmlwf/xmltchar.h
/lib/expat/xmlwf/readfilemap.c
/lib/expat/xmlwf/codepage.h
/lib/expat/xmlwf/xmlwf.c
/lib/expat/xmltok
/lib/expat/xmltok/xmltok.c
/lib/expat/xmltok/xmltok_ns.c
/lib/expat/xmltok/xmltok_impl.c
/lib/expat/xmltok/dllmain.c
/lib/expat/xmltok/utf8tab.h
/lib/expat/xmltok/xmlrole.c
/lib/expat/xmltok/xmltok.h
/lib/expat/xmltok/asciitab.h
/lib/expat/xmltok/latin1tab.h
/lib/expat/xmltok/xmldef.h
/lib/expat/xmltok/xmltok_impl.h
/lib/expat/xmltok/xmlrole.h
/lib/expat/xmltok/Makefile
/lib/expat/xmltok/ascii.h
/lib/expat/xmltok/iasciitab.h
/lib/libutilc
/lib/libutil/time.c
/lib/libutil/select.c
/lib/libutil/asprintf.c
/lib/libutil/utf8.c
/lib/libutil/sleep.c
/lib/libutil/error.c
/lib/libutil/memblock.c
/lib/libutil/Makefile
/lib/libutil/make_printable.c
/lib/libwww_transport
/lib/libwww_transport/Makefile
/lib/libwww_transport/xmlrpc_libwww_transport.c
/lib/wininet_transport
/lib/wininet_transport/xmlrpc_wininet_transport.c
/lib/wininet_transport/Makefile
/lib/Makefile
/lib/utilpc-c
/lib/util/getoptx.h
/lib/util/pthreadx_win32.c
/lib/util/include
/lib/util/include/assertx.hpp
/lib/util/include/casprintf.h
/lib/util/include/linklist.h
/lib/util/include/int.h
/lib/util/include/bool.h
/lib/util/include/girmath.h
/lib/util/include/unistdx.h
/lib/util/include/girstring.h
/lib/util/include/stdargx.h
/lib/util/include/inline.h
/lib/util/include/c_util.h
/lib/util/include/pthreadx.h
/lib/util/include/mallocvar.h
/lib/util/include/string_parser.h
/lib/util/include/cmdline_parser.h
/lib/util/include/cmdline_parser.hpp
/lib/util/string_parser.c
/lib/util/stripcaseeq.c
/lib/util/cmdline_parser.c
/lib/util/casprintf.c
/lib/util/cmdline_parser_cpp.cpp
/lib/util/getoptx.c
/lib/util/Makefile
/xmlrpc-c-config.main
/irix-common.make
/Makefilepc-c
/dll-common.make
/stamp-h.in-c
/mkinstalldirs
/includerpc-c
/include/xmlrpc-c
/include/xmlrpc-c/transport.h
/include/xmlrpc-c/server_pstream.hpp
/include/xmlrpc-c/server_abyss.hpp
/include/xmlrpc-c/base.h
/include/xmlrpc-c/util.h
/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 1963.
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... found
checking for working autoconf... found
checking for working automake... found
checking for working autoheader... found
checking for working makeinfo... missing
checking build system type... armv5tejl-unknown-linux-gnu
checking host system type... armv5tejl-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 install.sh: 86:
Installing ruTorrent
install.sh: cd: 89: can't cd to /opt/share/www
' is not properly URI-encodedoglecode.com/svn/trunk/rutorrent/
install.sh: cd: 91: can't cd to rutorrent
rm: cannot remove `plugins\r': No such file or directory
' is not properly URI-encodedoglecode.com/svn/trunk/plugins/
install.sh: cd: 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: 96: can't cd to ..
: No such file or directory.php
: not found install.sh: 98:
Autoinstall complete


ruTorrent по адресу http://DiskStation:8081 не обнаружен (нет такой страницы, говорит браузер).

Что не так?
#984
вышло следующие

Код: Выделить всё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
--00:05:22--  http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_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
00:05:23 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
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
sh: can't open 'syno-mvkw-bootstrap_1.2-7_arm.xsh'
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
: not found line 100: reboot
#989
первое что бросается в глаза:
Код: Выделить всё: not found line 2:
: not found line 5:


ругается на переносы windows... ;)

ну и соответственно дальше из-за этого пошли косяки...

Код: Выделить всёhttp://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_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
00:05:23 ERROR 404: Not Found.


не смог скачать файл syno-mvkw-bootstrap_1.2-7_arm.xsh%0D

%0D - из-за виндового переноса...

в общем так:
  1. первое решение скачать тот скрипт через ссылку "Скачать"
    скачать.png


  2. скачать по этой ссылке:
    (1.14 КБ) 395 скачиваний
#993
Axl писал(а):первое что бросается в глаза:
Код: Выделить всё: not found line 2:
: not found line 5:


ругается на переносы windows... ;)

ну и соответственно дальше из-за этого пошли косяки...

Код: Выделить всёhttp://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_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
00:05:23 ERROR 404: Not Found.


не смог скачать файл syno-mvkw-bootstrap_1.2-7_arm.xsh%0D

%0D - из-за виндового переноса...

в общем так:
  1. первое решение скачать тот скрипт через ссылку "Скачать"
    скачать.png


  2. скачать по этой ссылке:
    install.zip

не поверишь, и так и так делал :D

а родной DS сука опять глюканул на ровном месте. и все 20 раздач ушли в ошибку :(
#995
Mik писал(а):не поверишь, и так и так делал :D

а родной DS сука опять глюканул на ровном месте. и все 20 раздач ушли в ошибку :(


ну тогда руками:

  1. Создаем и переходим темповую папку
    mkdir -p /volume1/@tmp
    cd /volume1/@tmp/

  2. Устанавливаем IPKG (если стоит пропускаем)
    wget http://ipkg.nslu2-linux.org/feeds/optware/cs08q1armel/cross/unstable/syno-mvkw-bootstrap_1.2-7_arm.xsh
    sh syno-mvkw-bootstrap_1.2-7_arm.xsh

  3. Устанавливаем Lighttpd

    ipkg update
    ipkg install lighttpd php-fcgi

  4. Конфигурируем Lighttpd
    в файл
    Код: Выделить всё/opt/etc/lighttpd/lighttpd.conf

    дописываем
    Код: Выделить всёserver.event-handler = "poll"
    server.modules += ("mod_auth","mod_cgi","mod_scgi")
    scgi.server = ("/RPC2" =>
      ("127.0.0.1" =>
        ("host" => "127.0.0.1",
         "port" => 5050,
         "check-local" => "disable")
        )
    )

  5. Устанавливаем RTorrent
    ipkg install rtorrent screen
    ipkg remove xmlrpc-c
    mkdir -p /opt/share/torrent/session/

  6. Конфигурируем RTorrent
    в конфиг
    Код: Выделить всё/opt/etc/rtorrent.conf

    добавляем
    Код: Выделить всёscgi_port = 127.0.0.1:5050

  7. Создаем скрипт запуска RTorrent
    создаем файл
    Код: Выделить всё/opt/etc/init.d/S99rtorrent

    вставляем в него
    Код: Выделить всё#!/bin/sh

    NAME=rtorrent
    CONFIG=/opt/etc/rtorrent.conf
    LOGFILE=/opt/var/log/rtorrentInit.log
    TORRENTFILE=/opt/bin/rtorrent
    OPTIONS="-n -o import=$CONFIG"

    getsession() {
        session=`sed -n "/session\s*=/s/^\s*session\s*=\s*//p" $CONFIG`
        echo $session
    }

    case "$1" in
      start)
        screen -list|grep -sq $NAME && exit 0
        session=`getsession`
        [ -e $session/rtorrent.lock ] && rm -rf $session/rtorrent.lock
        /opt/bin/screen -dmS $NAME $TORRENTFILE $OPTIONS 2>$LOGFILE
    ;;
      stop)
        session=`getsession`
        ! [ -e $session/rtorrent.lock ] && exit 0
        pid=`sed "s/[^0-9]//g" $session/rtorrent.lock`
        ps|grep -v grep|grep -sq $pid.*rtorrent && kill $pid
    ;;
      restart)
        $0 stop
        sleep 2
        $0 start
    ;;
      status)
        screen -list|grep -s $NAME
    ;;
      *)
        echo $"Usage: \$0 {start|stop|status|restart}"
        exit 1
    esac
    exit 0

    опять же без переносов windows
  8. Устанавливаем xmlrpc-c
    ipkg install gcc binutils optware-devel libcurl-dev
    svn co http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/stable xmlrpc-c
    cd xmlrpc-c


    конфигурируем для компиляции
    ./configure --prefix=/opt


    курим...

    компилируем
    make ARCH=arm


    курим...

    инсталлируем
    make install

  9. Устанавливаем ruTorrent
    cd /opt/share/www
    svn co http://rutorrent.googlecode.com/svn/trunk/rutorrent/
    cd rutorrent
    rm -r plugins
    svn co http://rutorrent.googlecode.com/svn/trunk/plugins/
    cd plugins
    cd ..
    sed -i 's/scgi_port\s*=\s*5000/scgi_port = 5050/' conf/config.php

  10. Все! перегружаемся
    reboot
#1015
в очередной 51 раз получил:

[28.11.2010 20:01:07] WebUI started.
[28.11.2010 20:01:08] Нет связи с rTorrent. Проверьте, запущен ли он. Проверьте, что параметры $scgi_port и $scgi_host в файле config.php совпадают со значением переменной scgi_port в файле конфигурации rTorrent.
[28.11.2010 20:01:08] rssurlrewrite: Плагин не будет работать. Требуется наличие плагин(ов) rss
:twisted: :wall: :wall: :wall:
#1016
Arh> /opt/etc/init.d/S99rtorrent start
: not foundit.d/S99rtorrent: line 2:
: not foundit.d/S99rtorrent: line 8:
: No such file or directoryorrent.conf

: not foundit.d/S99rtorrent: line 12: }
: not foundit.d/S99rtorrent: line 13:
/opt/etc/init.d/S99rtorrent: line 14: syntax error: unexpected word (expecting "in")