Create 512MB swap. Partition (recomended) or file (tryout resort).
Code:dd if=/dev/zero of=/tmp/harddisk/swap count=1024000
mkswap /tmp/harddisk/swap
swapon /tmp/harddisk/swap
Printable View
I am getting:
/opt/bin/gnuplot: can't load library 'libuClibc++.so.0'
And under status
.status not found for /tmp/harddisk/torrent/work/kubuntu-6.10-dvd-i386.iso/kubuntu-6.10-dvd-i386.iso.torrent Start: 27 Dec 18:10
But the torrent file is there.
:( :confused:Code:[admin@SkupniDisk work]$cd /tmp/harddisk/torrent/work/kubuntu-6.10-dvd-i386.iso
[admin@SkupniDisk kubuntu-6.10-dvd-i386.iso]$ ls
kubuntu-6.10-dvd-i386.iso.torrent
[admin@SkupniDisk kubuntu-6.10-dvd-i386.iso]$
gnuplot 4.2rc2 needs libuclibc++ package!
I do not recommend the latest gnuplot 4.2 as it has some strange problems.
Please downgrade with the following commands.
Code:ipkg remove -force-depends gnuplot
cd /tmp/harddisk
wget http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/gnuplot_4.0.0-1_mipsel.ipk
ipkg install gnuplot_4.0.0-1_mipsel.ipk
If you are using ipkg-opt package then one can use
Code:ipkg install -force-downgrade gnuplot_4.0.0-1_mipsel.ipk
If you do not get .status files then pres Update and see what happens.
calebz promissed _noob_ wiki page how to prepare Optware for X-Wrt.org firmware and how to install Transmssion.
I am confirming Oleo's post. The downgraded version of gnuplot solved the problems I had with drawing the graph.
gnuplot_4.2.rc2-2_mipsel.ipk solves problem with graphing.
Hi oleo,
I had some trouble to make the script work with transmission, because it seems that (at least here) transmissiond only seems to work in the background if called with the "-v" switch. So I changed the script to call transmissiond in a screen session:
I also changed the _fetch() function, because some download URLs have nothing to do with the torrent to download and even crash transmissiond, if special characters are in the name. I now extract the name of the download from the torrent and change some characters.Code:/opt/bin/screen -d -m transmissiond -v 1 -p ${LISTENING_PORT} \
-w ${WATCHDOG} \
-u ${UPLOAD_SPEED} \
-d ${DOWNLOAD_SPEED} \
-i ${PIDFILE} ${ACTIVE}
It's only a hack, but if somebody likes it...Code:_fetch()
{
TORRENT=$(echo "${FETCH}" | sed 's|%20| |g;s|%3A|:|g;s|%2F|/|g;s|%3F|?|g;s|%3D|=|g;s|%26|\&|g;s|%5B|\[|g;s|%5D|\]|g;s|%28|(|g;s|%29|)|g;s|%7B|{|g;s|%7D|}|g;s|%25|%|g')
# echo "<p>Fetching ${TORRENT}</p>"
echo "Source: " ${SOURCE}
# wget --quiet -P ${SOURCE} "${TORRENT}" || echo "<p>wget ${TORRENT} failed</p>"
wget --quiet -O /opt/tmp/dl.torrent "${TORRENT}" || echo "<p>wget ${TORRENT} failed</p>"
# DLTARG=`btcheck /opt/tmp/dl.torrent | awk '{if($0~/cacheopen/) print substr($0,11,index($0,".")-11)".torrent"}'|sed -e 'y/\\//-/'`
DLTARG=`btlist /opt/tmp/dl.torrent | awk '{if($0~/name/)name=sprintf("%s",substr($0,index($0,":")+2))}END{print name}' | sed -e 'y/./_/' -e 'y/\\//\_/'`
echo "DLTARG=" ${DLTARG}
cp /opt/tmp/dl.torrent "${SOURCE}/${DLTARG}.torrent"
rm -f /opt/tmp/dl.torrent
}
BTW: If I don't want to put my torrent directory into /opt/share/www, how can I access it via the web interface? And for what exactly are the directories "source" and "target"? Everything that I download, suspend or remove is in the "work" directory.
Darkstar.
@Hellish I have running 4.2rc2 but autobuild machine produced broken package. I have tried to resolve this, without a luck. Problem is with generatigh dynamic executable. Next week we are rebuilding the whole repository from scratch and I am hoping that this will succesfully built gnuplot. If building bug will not be spoted then I will downgrade.
@darkstar The problem with you is known if you are running wl500g feed and not oleg. See README.daemon for solution. Fetch is somehow useless command. It could be used for fetching file that you previously saved with web client on some web server. I am considering to disable it.
Thanx Oleo for ur reply. I will be awaiting new version. I had ipkg update;ipkg upgrade in a cron script wich updated my ipkg pakages regularly. I had to suspend that until your next build.
But thanx for your work anyway. The transmission pakage is much better than the old torrenet package.
with regards,
Hell!sh
I looks like http://trac.nslu2-linux.org/optware/changeset/5097 finally solved gnuplot problems.
Some updated info for installing Transmission on Xwrt (OpenWRT) is found here
Hi, try this instead of your hack :-)
Code:[wl-500gp]# FETCH="%2FfolderScreen%3FsessionId%3D%26welcome%3D1"
[wl-500gp]# TORRENT=`echo $FETCH |sed 's/%/\\\\x/g'`
[wl-500gp]# TORRENT=`echo -e "$TORRENT"`
[wl-500gp]# echo $TORRENT
/folderScreen?sessionId=&welcome=1
Included this escaping in latest source. Tnx for hint.
I don't understood this. Row 224 contains only "sleep 5". :confused:Code:[maros@wl-500gp tmp]$ sh -x /opt/share/www//cgi-bin/transmission.cgi
+ . /opt/etc/transmission.conf
+ SOURCE=/tmp/harddisk/torrent/source
+ WORK=/tmp/harddisk/torrent/work
+ TARGET=/tmp/harddisk/torrent/target
+ MAILOPT=-smail.somedomain.com -f
+ USER=nobody
+ GROUP=root
+ DATE_FORMAT=%d %h %H:%M
+ PIDFILE=/opt/var/run/transmission.pid
+ ACTIVE=/tmp/harddisk/torrent/active-torrents.txt
+ HOME=/tmp/harddisk/torrent
+ WATCHDOG=300
+ LISTENING_PORT=65534
+ UPLOAD_SPEED=40
+ DOWNLOAD_SPEED=-1
+ SYSLOG=/opt/var/log/messages
+ AUTOSEED=YES
+ GNUPLOT=/opt/bin/gnuplot
+ GNUPLOT_COMMAND=/tmp/harddisk/torrent/work/transfer.gnuplot
+ GNUPLOT_DATA=/tmp/harddisk/torrent/work/transfer.data
+ GNUPLOT_OUTPUT=/opt/share/www/transfer.png
+ HTTP_IMG_LOCATION=../transfer.png
+ TIMEZONE_OFFSET=+3600
+ GREEN=\033[32;1m
+ NORMAL=\033[0m
+ WARN=\033[33;1m
+ BAD=\033[31;1m
+ BOLD=\033[1m
+ GOOD=\033[32;1m
+ PATH=/bin:/sbin:/usr/bin:/opt/sbin:/opt/bin:/usr/sbin
+ export PATH
/opt/share/www//cgi-bin/transmission.cgi: /opt/share/www//cgi-bin/transmission.cgi: 224: Syntax error: redirection unexpected