Hello,
i'm new here and have the great program transmission running on my NSLU2 with unslung 6.10 beta software, i have found the json file to set the preferences but i am struggling with two thinks.
1. When files finished downloading and seeding i remove them from the
list out of transmission. but all files and folders in the download
map have numeric value 755, so i cannot remove or cut them from the
download location, changing chmod or rm -R in telnet will remove
files and folders. Can i change the numeric value standard of the files and folders so i can remove it via mounts.
2. Is there a script to automaticly start transmission when i reboot
the slug, i now have to manually start the service. i've tried the
autostart in http://www.nslu2-linux.org/wiki/Optware/Transmission but i
don't know how to get it working!
Hoping for anwsers.
Chmod files & autostart
-
- Posts: 12
- Joined: Wed Jan 14, 2009 6:39 pm
Re: Chmod files & autostart
This is what http://www.nslu2-linux.org/wiki/Optware/Transmission discribes
Adjusted transmission.cgi
This file can be copied from /opt/share/www/cgi-bin to /home/httpd/html/cgi-bin (you need to create the directory cgi-bin). You can call the webinterface in your webbrowser by something like: http://192.168.123.192/cgi-bin/transmission.cgi (use your slugs-ip-adress instead of 192.168.123.192!). The file-contents of transmission.cgi can be changed to (I've removed al the comments, as this wiki transforms the #'s into numbers):
in transission.cgi ther are lines like:
_enqueue()
{
TORRENTNAME="${TORRENT%.torrent}"
TORRENTNAME="${TORRENTNAME##*/}"
mkdir -p "$WORK/$TORRENTNAME"
chmod 777 "$WORK/$TORRENTNAME"
mv "${TORRENT}" "$WORK/$TORRENTNAME"
TORRENT="$WORK/$TORRENTNAME/${TORRENTNAME}.torrent"
_write_info
_start_torrent "${TORRENT}"
but i cannot find this file on my nslu2 with Transmission 1.42 and unslung 6.10 beta.
Is this the place were i can change chmod 777 "$WORK/$TORRENTNAME" the numeric value of the file/ folder?
does anyone know where transmission.cgi is or what else i can do?????
thanks
Adjusted transmission.cgi
This file can be copied from /opt/share/www/cgi-bin to /home/httpd/html/cgi-bin (you need to create the directory cgi-bin). You can call the webinterface in your webbrowser by something like: http://192.168.123.192/cgi-bin/transmission.cgi (use your slugs-ip-adress instead of 192.168.123.192!). The file-contents of transmission.cgi can be changed to (I've removed al the comments, as this wiki transforms the #'s into numbers):
in transission.cgi ther are lines like:
_enqueue()
{
TORRENTNAME="${TORRENT%.torrent}"
TORRENTNAME="${TORRENTNAME##*/}"
mkdir -p "$WORK/$TORRENTNAME"
chmod 777 "$WORK/$TORRENTNAME"
mv "${TORRENT}" "$WORK/$TORRENTNAME"
TORRENT="$WORK/$TORRENTNAME/${TORRENTNAME}.torrent"
_write_info
_start_torrent "${TORRENT}"
but i cannot find this file on my nslu2 with Transmission 1.42 and unslung 6.10 beta.
Is this the place were i can change chmod 777 "$WORK/$TORRENTNAME" the numeric value of the file/ folder?
does anyone know where transmission.cgi is or what else i can do?????
thanks
-
- Posts: 12
- Joined: Wed Jan 14, 2009 6:39 pm
Re: Chmod files & autostart
when i start my ftp server is see the files are created with chmod 644, so the owner can delete or cut files and folders.
how can i be the owner of that files, is it the way i logon or do i have to create a useraccount, if yes how do i do that?
hope someone can help me with this problem.
how can i be the owner of that files, is it the way i logon or do i have to create a useraccount, if yes how do i do that?
hope someone can help me with this problem.
-
- Posts: 12
- Joined: Wed Jan 14, 2009 6:39 pm
Re: Chmod files & autostart
i am sertain this is a user problem, only the owner can delete the files, i can do whatever i want with the files in telnet but from my pc or with my ftp client i can do nothing....
It's not very handy how i'm doing it right now, hope someone got an idea....
It's not very handy how i'm doing it right now, hope someone got an idea....
Re: Chmod files & autostart
Hi bramschats,
I have no problems with deleting old seeded files.
At the beginning I've created my download folder, then I used
chmod -R 777 /share/hdd/data/public/torrent/downloads
for my download folder.
And in settings.json I've put user name and password ( Example : username = myUsr, password = myPass,)
- my username is not root !
- be careful with a blank password - it puts strange characters instead !
I connect to a web interface like this : NSLU's IP address + port number.
Something like 192.168.0.15:9091
I copy ready torrent files though ftp : network-> NSLU2 -> disk1 -> torrent ->downloads
Than I delete it through the web interface : right click on the torrent -> delete torrent files and data (or something)
I check through the ftp if the torrent folder is deleted: and it works - the folder is gone.
As for autostarting the transmission daemon, I'm looking for an answer too !
If you got some information about it, please forward it to me.
I have no problems with deleting old seeded files.
At the beginning I've created my download folder, then I used
chmod -R 777 /share/hdd/data/public/torrent/downloads
for my download folder.
And in settings.json I've put user name and password ( Example : username = myUsr, password = myPass,)
- my username is not root !
- be careful with a blank password - it puts strange characters instead !
I connect to a web interface like this : NSLU's IP address + port number.
Something like 192.168.0.15:9091
I copy ready torrent files though ftp : network-> NSLU2 -> disk1 -> torrent ->downloads
Than I delete it through the web interface : right click on the torrent -> delete torrent files and data (or something)
I check through the ftp if the torrent folder is deleted: and it works - the folder is gone.
As for autostarting the transmission daemon, I'm looking for an answer too !
If you got some information about it, please forward it to me.