Chmod files & autostart

Ask for help and report issues not specific to either the Mac OS X or GTK+ versions of Transmission
Post Reply
bramschats
Posts: 12
Joined: Wed Jan 14, 2009 6:39 pm

Chmod files & autostart

Post by bramschats »

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.
bramschats
Posts: 12
Joined: Wed Jan 14, 2009 6:39 pm

Re: Chmod files & autostart

Post by bramschats »

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
bramschats
Posts: 12
Joined: Wed Jan 14, 2009 6:39 pm

Re: Chmod files & autostart

Post by bramschats »

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.
bramschats
Posts: 12
Joined: Wed Jan 14, 2009 6:39 pm

Re: Chmod files & autostart

Post by bramschats »

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....
pyclan5
Posts: 2
Joined: Tue Jun 16, 2009 11:03 am

Re: Chmod files & autostart

Post by pyclan5 »

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.
Post Reply