How to download files from Rapidshare
I recently bought a DS207.
I've been searching around the forums/wiki for any info on where to place the global wgetrc so I can add my RS credentials to allow DL station software (which actually uses wget for http/ftp downloads).
Tried to put it in /root/.wgetrc (user wget prefs) but didn't work for downloads queued by the DL station web or redirector s/w.
Then tried a lot of places (like /usr/syno/etc, /etc ...) no luck!
UPD: wget runs under the “nobody” credentials and since it has no proper $HOME only the the global /usr/local/etc/wgetrc seems to be working
Then I applied a simple, yet effective, workaround:
moved the original wget to wg
DS-207>mv /usr/syno/bin/wget /usr/syno/bin/wg
created a shell script named wget in the same dir of the original wget with the following code:
Edit: quotes around $@ added because semicolons in wget's arguments (e.g., user agent) can cause issues otherwise
#!/bin/sh if echo "$@" 2>/dev/null | egrep -e rapidshare.com > /dev/null then WGETRC=/usr/syno/etc/wgetrc export WGETRC fi /usr/syno/bin/wg "$@"
made the new `wget' an executable:
DS-207>chmod 755 /usr/syno/bin/wget
created my `wgetrc' file in /usr/syno/etc/ with the following contents:
http-user=my_rs_username http-passwd=my_rs_pass header=Cookie:user=my_rs_cookie_value
Add a rapidshare download to your Download Manager or Redirector and enjoy.
An easy way to add User Information to Rapidshare links if you are using Firefox is the use of Synoload, the Firefox Add-on. See https://addons.mozilla.org/de/firefox/addon/11189 for details.
Another useful Firefox add-on for sending downloads from Firefox to your NAS (that doesn't add user information) is SynoExt. See https://addons.mozilla.org/en-US/firefox/addon/14042 for details.