PDA

Bekijk de volledige versie : ADOS: a probable replacement for Download Master



DINI
27-02-2008, 19:14
I'm glad to present a PHP system that may be used as a full replacement of Download Master that is not compatible with Oleg's firmware.

Here are main features of my script:
Unlimited links processing (with automatic links searching in the blocks of plain text).
Multiuser mode. Administrative and user accounts are supported.
Scheduled downloads.
Different database support: SQLite (included in PHP) and popular MySQL.
Different download engines support (cURL, wget, at alias). Any engine may be selected for each download.
User directories support. File can be saved to the specified directory depending on its extension or user wish.
Authentification and redirection support. May be useful for FTP downloads and for paid accounts of different file hostings.
Total bandwidth restrictions for each user.
Real-time donwload's progress tracking.
Multilingual support (with a help of volunteers (http://wl500g.info/showpost.php?p=85261&postcount=5)).


Preparing for installation: manual (http://wl500g.info/showpost.php?p=85256&postcount=2).
Description and instructions: parts one (http://wl500g.info/showpost.php?p=85259&postcount=3) and two (http://wl500g.info/showpost.php?p=85259&postcount=3).

---------------
Current version: 1.3.9 (build 74)

Download link: http://download.dini.su/ados/stable (511 Kb)
md5: c301c8dabae7c7efee29f71cd146ba8c
Last update: September, 7th 2008 - 17:20 GMT

---------------
Attention!
Unfortunately I can not provide (http://wl500g.info/showpost.php?p=110757&postcount=61) the support any more. But the support may be provided by other people, if they want to do this. So please be patient while waiting for answers to your questions and problems and respect their desire to help you.

Also the further development of the project by myself is hardly probable. Because of this the script is now distributed under the GPL v3 (http://www.gnu.org/licenses/gpl.html) license. If anyone will decide to develop this project, he or she will not have any legal problems.
Thanks to everyone who found my script useful!

---------------
FAQ

If you can't download file from the certain link, send this link to me in the private message (http://wl500g.info/private.php?do=newpm&u=9955). Do not post links in the topic!

When describing your problem, do not forget to specify:
Script version
Name and version of used download engine
Error number (see 'Log' section)
Name and version of your browser
Also provide as many details of your actions before the error arrived as possible.

Q: How to update the script after the hotfix release?
A: Just replace files on the server with the files from the archive.

Q: Why can't I login to the system? Even if I specify correct login and password, the login page appears again and again.
A: Most likely you specified incorrect values for cookies' settings while installing the system. Try to remove cookies written by the system and reinstall it. During installation process leave fields 'cookie domain' and 'cookie path' blank if you're not absolutely sure what to specify there.

---------------
Version history

For versions prior to 1.3.2 all change descriptions available in Russian language only.

1.0.0 beta 1: first public release.
1.0.0 beta 2: changelog (http://wl500g.info/showpost.php?p=61453&postcount=195).
1.0.0 beta 3: changelog (http://wl500g.info/showpost.php?p=61683&postcount=212).
1.0.0 beta 4: changelog (http://wl500g.info/showpost.php?p=62271&postcount=278).
1.0.0 RC 1: changelog (http://wl500g.info/showpost.php?p=64563&postcount=337).
1.0.0 RC 2: changelog (http://wl500g.info/showpost.php?p=64647&postcount=345).
1.0.0 RC 3: changelog (http://wl500g.info/showpost.php?p=64796&postcount=366).
1.0.0: changelog (http://wl500g.info/showpost.php?p=65122&postcount=386).
1.0.1: changelog (http://wl500g.info/showpost.php?p=65239&postcount=403).

1.1.0 beta 1: changelog (http://wl500g.info/showpost.php?p=66085&postcount=442).
1.1.0: changelog (http://wl500g.info/showpost.php?p=66874&postcount=458).
1.1.1: changelog (http://wl500g.info/showpost.php?p=67307&postcount=479).
1.1.2: changelog (http://wl500g.info/showpost.php?p=67478&postcount=489).
1.1.3: changelog (http://wl500g.info/showpost.php?p=68038&postcount=517).
1.1.4: changelog (http://wl500g.info/showpost.php?p=68548&postcount=519).

1.2.0 beta 1: changelog (http://wl500g.info/showpost.php?p=69342&postcount=537).
1.2.0 beta 2: changelog (http://wl500g.info/showpost.php?p=69487&postcount=540).
1.2.0 beta 3: changelog (http://wl500g.info/showpost.php?p=70047&postcount=553).
1.2.0 beta 4: changelog (http://wl500g.info/showpost.php?p=70373&postcount=566).
1.2.0 beta 5: changelog (http://wl500g.info/showpost.php?p=71065&postcount=576).
1.2.0: changelog (http://wl500g.info/showpost.php?p=71780&postcount=597).
1.2.1: changelog (http://wl500g.info/showpost.php?p=73856&postcount=640).
1.2.2: changelog (http://wl500g.info/showpost.php?p=74202&postcount=642).
1.2.3: changelog (http://wl500g.info/showpost.php?p=76198&postcount=674).
1.2.4: changelog (http://wl500g.info/showpost.php?p=77258&postcount=688).

1.3.0 beta 1: changelog (http://wl500g.info/showpost.php?p=80389&postcount=759).
1.3.0 beta 2: changelog (http://wl500g.info/showpost.php?p=80943&postcount=773).
1.3.0 beta 3: changelog (http://wl500g.info/showpost.php?p=81284&postcount=787).
1.3.0 beta 4: changelog (http://wl500g.info/showpost.php?p=81453&postcount=793).
1.3.0 beta 5: changelog (http://wl500g.info/showpost.php?p=81880&postcount=803).
1.3.0: changelog (http://wl500g.info/showpost.php?p=83205&postcount=823).
1.3.1: changelog (http://wl500g.info/showpost.php?p=85253&postcount=878).
1.3.2: changelog (http://wl500g.info/showpost.php?p=85874&postcount=8).
1.3.3: changelog (http://wl500g.info/showpost.php?p=87414&postcount=9).
1.3.4: changelog (http://wl500g.info/showpost.php?p=88406&postcount=17).
1.3.5: changelog (http://wl500g.info/showpost.php?p=90177&postcount=21).
1.3.6: changelog (http://wl500g.info/showpost.php?p=91974&postcount=22).
1.3.7: changelog (http://wl500g.info/showpost.php?p=94238&postcount=31).
1.3.8: changelog (http://wl500g.info/showpost.php?p=94459&postcount=37).
1.3.9: changelog (http://wl500g.info/showpost.php?p=110758&postcount=62).


P.S. The name of the script is Automatic DOwnloading System (ADOS). Maybe it is not original or clever, but I think it's also not so bad :)
P.P.S. English is not my native language (Russian is), so I apologize for misspelling and grammar mistakes.

DINI
27-02-2008, 19:15
In this post you can find instructions for preparing your system for ADOS installation.
Below you will find out how to configure:
IPKG system
lighttpd server
PHP
cron

These instructions were originally written (http://wl500g.info/showpost.php?p=59637&postcount=42) by Reyter. Down there is only English translation with minor changes.

---------------
Step 1. Configuring IPKG system.

First of all check which repository your IPKG uses. We will need an alternative repository (http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/).
So if you used other one here is a list of commands, which will help you easily migrate to the new repository (all packages will be uninstalled and then installed again, but configuration files (if there are any) will remain unchanged):

echo "src unslung http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable" > /opt/etc/ipkg.conf
echo "dest root /" >> /opt/etc/ipkg.conf
ipkg update && ipkg install uclibc-opt && awk '/^Package:/{system("ipkg install -force-reinstall -force-defaults " $2)}' /opt/lib/ipkg/status

If your IPKG is already configured for using an alternative repository, just skip everything above.

Step 2. Installing packages.

We will need these packages: cron, lighttpd, sqlite and php-fcgi.
Also we will need download engines that will be used by ADOS: cURL and Wget.
And these packages are optional but recommended: php-gd and php-mbstring.

The installation is very simple. Just execute this code in terminal:

ipkg update
ipkg install cron
ipkg install lighttpd
ipkg install sqlite
ipkg install php-fcgi
ipkg install libcurl
ipkg install wget
ipkg install php-gd
ipkg install php-mbstring

---------------
Step 3. Configuring lighttpd web server.

Now let’s edit configuration file of lighttpd.
Open /opt/etc/lighttpd/lighttpd.conf and uncomment (remove ‘#’ at the beginning) these strings:

"mod_access",
"mod_fastcgi",
"mod_cgi",
"mod_accesslog"

Set root directory (change value inside double quotes to written below):

server.document-root = "/opt/share/www/"

Assign port (you can choose any value that you prefer):

server.port = 8080

And finally set up fast-cgi (uncomment and edit strings as written below):

fastcgi.server = ( ".php" =>
( "localhost" =>
(
"min-procs" => 1,
"max-procs" => 1,
"max-load-per-proc" => 4,
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/opt/bin/php-fcgi"
)
)
)

Save changes and close file.

---------------
Step 4. Configuring PHP.

We must enable some important extensions.
To do this, open file /opt/etc/php.ini and uncomment present strings and add missed ones:

extension=pdo.so
extension=sqlite.so
extension=pdo_sqlite.so

Save changes and close file.

---------------
Step 5. Configuring cron.

Open file /opt/etc/crontab and insert there these strings (if they are not already present):

SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=""
HOME=/
# ---------- ---------- Default is Empty ---------- ---------- #
*/1 * * * * admin /opt/bin/run-parts /opt/etc/cron.1min
*/5 * * * * admin /opt/bin/run-parts /opt/etc/cron.5mins
01 * * * * admin /opt/bin/run-parts /opt/etc/cron.hourly
02 4 * * * admin /opt/bin/run-parts /opt/etc/cron.daily
22 4 * * 0 admin /opt/bin/run-parts /opt/etc/cron.weekly
42 4 1 * * admin /opt/bin/run-parts /opt/etc/cron.monthly

Note: Replace admin here with your login, if you changed the default one.

Save changes and close file.

Step 6. Making script to run cron tasks.

Make new file named /opt/bin/run-parts and insert there this code:

#!/bin/sh
#
# runparts.sh by macsat@macsat.com
# intended for use with cron
#
# based on rc.unslung by unslung guys :-)
#
if [ -z "$1" ]
then
echo "Usage : $0 "
fi

RUNDIR=$1"/*"

for i in $RUNDIR ;do

# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue

case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done

Save and close file.

Now, make it executable. In the terminal execute command:

chmod +x /opt/bin/run-parts

Step 7. Making directories for cron scripts.

Now, we must make some new directories. Execute these commands in the terminal:

mkdir /opt/etc/cron.1min
mkdir /opt/etc/cron.5mins
mkdir /opt/etc/cron.hourly
mkdir /opt/etc/cron.daily
mkdir /opt/etc/cron.weekly
mkdir /opt/etc/cron.monthly

Scripts from directory /opt/etc/cron.1min will be executed every minute; scripts from directory /opt/etc/cron.5mins will be executed once in every 5 minutes; and so on. Just note this when you’ll be installing ADOS.

---------------
Step 8. [Optional] Running server and cron automatically after hard disk mounting.

If you want cron and lighttpd to start automatically just after you connect a USB cable, you must add these strings to your /usr/local/sbin/post-mount file:

#!/bin/sh
/opt/etc/init.d/S10cron
/opt/etc/init.d/S80lighttpd start
Note: Do not add the first string if it is already present in the file!

Save this file to flash and commit changes:

flashfs save && flashfs commit && flashfs enable

---------------
Congratulations, everything is done!

Now, let’s restart lighttpd to apply new configuration:

/opt/etc/init.d/S80lighttpd restart

That’s all. Now all packages should work fine and you’re ready to install ADOS.

DINI
27-02-2008, 19:16
Instructions for installing and configuring listed below software you can find in the previous post.

System requirements (for 1.3.x):
Web server that supports POST method for forms and cookies (I use lighttpd).
PHP 5.1.3 and higher.
crontab.
SQLite 2.x and higher (supported by PHP) or MySQL 4.x and higher (installed and configured by yourself).
At least one of these download engines: cURL (recommended), Wget, axel (http://wl500g.info/showpost.php?p=8540&postcount=3).
GD library for PHP to generate graphical progress bars (optional).
mbstring library for PHP to parse non-Latin characters in the links (optional).
Browser with JavaScript support.
The script works perfect in Firefox 2.0 and higher. Most of the functions were tested and should work in IE 6.0 and higher, Opera 9.0 and higher and Safari 3.0.4 and higher. Work is not guaranteed but is most likely possible in Firefox 1.x, IE 5.x and Opera 8.x.

Installing:
Install and configure all software to conform to system requirements listed above (see previous post).
Extract files from the installation archive to the directory you wish install the system to.
Open the index file in this directory in your browser. For example, if you configured your server to work on port 8080 and the installation directory is the root directory for this server, you must enter in the address bar of your browser http://my.router:8080.
Then just follow the instructions of the installation script.


Note: It is better to specify a separate directory where the files will be saved to. For example you can make directory /opt/ados and specify this path. Downloaded files will be saved to subdirectories of this directory depending on the user which initiated the download and the category that this user chose.
For example if I will select category video to save the file, then file will be saved to /opt/ados/dini/video.
Thus you can configure your FTP server’s permissions the way so users will have their root directories equal to their subdirectories according to system settings. So they won’t have ability to access directories and downloaded files of other users.
Also, three default directories will be made during installation process:
_tmp — for storing temporary files during downloading
_log — for storing logs of CRON tasks and logs of the download module. In case of successful download the log will be deleted due to its quite big size.
_all — for storing shared files.

Configuring the system:
Directly after the end of the installation and logging in to the system open “Settings” tab and carefully look through all the settings located there. Choose the options which will mostly suit your desires.

Note 1: Unfortunately SQLite 2.x has a poor Unicode support, thus it is impossible to store there non-Latin characters. However it is possible to encode strings to base64 and store to the database encoded strings. Exactly this will happen if you enable checking for non-Latin characters option. But the encoded strings are 33% longer than the original ones. And also a little more system resources are needed to perform encoding and further decoding. Therefore if it is critical for you to use non-Latin symbols in file descriptions or anywhere else, you can turn this option on.
Because SQLite 3.x and MySQL databases have full Unicode support, this option will not be available for these databases.

Note 2: By now only actions performed by downloading, files and cron classes are logged. Thus enable logging is suitable only in case you have problems with downloading files or with performing cron tasks, but it won’t be helpful if you have problems with scheduled events or user accounts.
Support of logging actions of other classes will hopefully be added in future versions.

Note 3: I don’t recommend you to set a big number of simultaneous downloads. Everything will work fine, but, for instance, axel makes many processes if using multithreading downloading. Thus too many processes will be created for downloading large number of files. It can result in lack of memory. You can use swap to solve this problem.
Nevertheless I have no problems with combination of 10 threads for axel and 3 simultaneous downloads.

Note 4: The more files are in the list, the more time is needed for system to parse all the information about these files.
The most number of resources is needed to parse information about downloading files, because the script must parse all logs for these files to show you info about downloading status: time left, percent of downloaded amount and so on.
Therefore in spite of it is possible to use real-time automatic refreshing of download info, it is not recommended to turn on this option, especially because you most likely will use the script for the router, and it has got not very big amount of resources. So even if you prefer to use automatic refreshing I suggest setting up it to run not more frequent, then once in 30 seconds. Or you can refresh info by yourself using the “Refresh download list” button located in the menu over the files list.

Note 5: I did not completely test working of the script when using non-administrative accounts. So at the time I cannot guarantee that all restrictions for such accounts will work perfectly. Thus I will appreciate testing these accounts by you.

DINI
27-02-2008, 19:16
Login-password pair authentication:
If you have premium accounts of hosters like RapidShare or FileFactory or it is needed to be authenticated by the FTP server, then you can add a list of authentication parameters in the “Settings” tab.
Domain in this list is an address template that will be used to bypass authentication.
For instance: httš://*.rapidsahre.com. Authentication will be performed at all subdomains of domain rapidshare.com.
Another example: httš://rs200.rapidsahre.*. Authentication will be performed only at subdomain rs200, but regardless of the domain zone (de, ru, com.ua).
If you wish to share authentication parameters with non-administrative users, then put a flag into the “Shared” column.

How to download a single file or a list of files:
Open “Downloads” tab.
Press “Add links” button (the first left over the files list).
Enter one or more links that you want to download. You can just paste a text containing necessary links. There is only one condition: links must be separated from each other by a space, tab character or by a line feed.
If the link contains spaces or if it is needed to clearly indicate the link, then this link must be included into the tag [url]...[/ url] (closing tag must be without space).
If you want to add a description for the link, then put this description after the necessary link and inside the tag ....
If you have only one link, continue to the next step.
If you have many links, then you will be asked to confirm its addresses and to select the ones that must be downloaded. Also at this step you can choose priority of downloading for each link and more easily add descriptions for them. Descriptions added at the previous step will be already viewed.
Set the necessary parameters:
- enter the name for the file;
- choose the category;
- specify save path, if needed;
- enter the description (if you did not already, but still wish to do so);
- choose the module for downloading (cURL is recommended);
- attach the download to one of the upcoming scheduled events, if needed.
If only one link was added, it is possible to start downloading by pushing the corresponded button. Or you can push the “Apply settings” button at the bottom of the form to save all parameters.
If many links were added, then the specified parameters (category, save path, module and event attach) could be applied for all links. In this case file names will be received from the remote servers and for each link will be used description, specified at the previous steps (if it was done).


Downloads management:
Management means changing download state to one of the following:
- download (perform the download action)
- pause (cancel the download, but keep downloaded information to have an ability to continue download later, if such ability is supported by the downloading module)
- stop (cancel the download and delete all downloaded information)
- cancel (stop the download and remove all information about it from the DB)

Select downloads you want to manage (just click on the rows in the files list; to select several links, press Ctrl button and without releasing it click on the first row and move the cursor down to select following rows).
If only one row is selected, then the “Download properties” button can be pressed to perform the management in the dialog box.
If several links are selected, then you must use the first block of management buttons (icons with one paper list at the background).
To manage all selected links at one time, use the second block of buttons (icons with two paper lists at the background).
Note: some time may be necessary to change downloadings’ state. It depends on the amount of the files list (see previous post).

Generally, that’s it.
I’m sorry, but at the time you must examine working with schedule, categories, user management and downloading modules by yourself because there is no detailed manual for it and I have too little time to write such manual (help is very appreciated). I hope I’ll do it later, but I can’t tell you the exact time.

Internet Explorer 6 users (and users of previous versions of IE):
The browser incorrectly parsers PNG files with alpha channel (transparent areas). Exactly these kind of images the script uses.
Nevertheless, there is a special algorithm included in the script, which helps to correct alpha channel parsing. The disadvantage of this algorithm is that the correction is performing at a real-time after each reload of the page. And the more elements must be parsed, the more time it will take.

To disable the algorithm, open in any text editor with UTF-8 support file index.php from the root directory of the script and find there this string:

define( 'PARSE_PNG' , TRUE );Replace there "TRUE" with "FALSE" (without quotes) and save the file.

Epilogue
You can post in this thread (and hopefully later in project’s own website) messages with bugs and errors descriptions, but due to the lack of free time, that I spend for working on this script, I can’t guarantee that I will fix these bugs as soon as you and I want.

I also don’t know if I will add more functions to the script and optimize it, but I hope so.
By the way, your donations can make a great influence on it ;)

Hope, you’ll like my script and it will help you to download and manage files easily.

DINI
27-02-2008, 19:17
Dear current and future ADOS users!

Following your requests I made a translation of all the instructions for my script. The result you can see in previous posts.
I also translated the license agreement, so now you can familiarize with it. But note that any translation of this agreement has no legal effect. Only Russian edition of the agreement has such effect.
I don't even think that these translations are an excellent one, but I did the best of mine.

I very appreciate help of platinum_sn and JluMoHka in translating system's language files to English. I didn't do it by myself due to the lack of time; you know it (see previous post).
However I neither think that this translation is the ideal one.

Therefore I will be glad if somebody will correct all (or some) the translations so they will be grammatically correct and clear for understanding.

I’ll also appreciate any help with translating these instructions and (or) script’s language files to languages, other than English.
To make a translation of the files, open them in any text editor with UTF-8 support. You will see language strings that are made by this template:

['string_key'] => "The string for translation";
You must translate only strings at the right side of the arrow, without removing quotes or any special symbols inside them (i.e. \n or <desc>). Also, do not use double quotes in these strings. Use the single ones instead or escape double quotes with a backslash: \”.

Feel free to contact me by the e-mail: ados [at] dini [dot] su.
You can also send to this address all the translations you’ll make.

Thanks in advance.

DINI
27-02-2008, 19:17
Unfortunately I don’t have enough knowledge to write browser plugins by myself, so I have to ask for your help.

You can notice that you must open ADOS web page on your router every time you want to add new link you wish to download. I understand that this action will become boring after a week of using the system (or even earlier).
However I have an idea of how to simplify the process of adding links to ADOS. The goal is to make a plugin for browser that will send ADOS a simple GET or POST request with something like this:

httš://my.router:8080/ados/?user_name=root&user_pass=12345&link=http://example.com/file.txtThis request will be automatically parsed by ADOS and the link specified there will be automatically added to the download queue.
So the user will need only to select necessary link, or a block of text containing links he or she wishes to download, and with a context or a standard browser’s menu select the corresponded item to send this link to ADOS through a plugin.

If you have an ability to write more complex plugin, I will be glad to share with you some more ideas for improving ADOS functionality that I have.

For any questions and suggestions please contact me by an e-mail: ados [at] dini [dot] su.

Thank you.

DINI
27-02-2008, 21:23
A few screenshots of the interface:

DINI
02-03-2008, 11:24
Attention: version 1.3.2 (build 64) is available.
See download link in the firs post (http://wl500g.info/showpost.php?p=85255&postcount=1) of the topic.

To make an update replace files at the server with files from the downloaded archive (it is necessary to copy update directory) and then run the script from the browser. You will be redirected to the update page.

Added:
Ability to automatically delete lock files — thanks to Nomad13 for advice.
Ability to set default language in the list of installed system languages.

Updated:
Button 'Log' in the upper menu was moved to the right and is now located near the 'Settings' button. I think that menu's structure is now more accurate.

Fixed:
In the authorization menu now system's default language is used (earlier in this menu, if the system has been installed with multilingual support, English laguage was used regardless of the specified default language) — thanks to Zyxmon for report.
Correct detection of the server port (earlier port could be unidentified) — thanks to timoha for report.

Hotfixes:

(02.03.2008 13:35 GMT — build 65)

Fixed errors in some MySQL queries — thanks to sarlacc for report.

(02.03.2008 18:55 GMT — build 66)

Fixed problem with system logout (earlier the logout could not be proceeded due to an error with cookies) — thanks to PupsDRVR, Zyxmon and AlexVx for report.

Note: After the update process it is necessary to update your browser's cache, as well. To do this, simply press Ctrl+R when viewing one of the system's pages.
Note: After update to build 66, please delete all cookies associated with the script!

DINI
10-03-2008, 20:31
Attention: version 1.3.3 (build 67) is available.
See download link in the firs post (http://wl500g.info/showpost.php?p=85255&postcount=1) of the topic.

To make an update replace files at the server with files from the downloaded archive (it is necessary to copy update directory) and then run the script from the browser. You will be redirected to the update page.

Added:
Ability to use secure connection (HTTPS).

Fixed:
System events deleting (erarlier the error "No events with such ID" appeared when deleting events of the specified type).

katos
15-03-2008, 21:25
I have installed ADOS version 1.3.3 and sqlite3 ....
on WL500W and last oleg firmware
and there is problem with downloading

in log files is

b6d88bb3f6d679156cd993bc873c906d.log
/opt/bin/run-parts: /opt/etc/cron.1min/ados_b6d88bb3f6d679156cd993bc873c906d.sh: 3: /opt/bin: Permission denied


cron_end_download.log
Fatal error: Database query execution error
Query UPDATE categories_files SET file_state='error',file_error='Can\'t get information about current download state.',file_dl_stop='1205613067' WHERE file_id='1'
Answer near "t": syntax error


and in ADOS LOG
Event time 15.03.2008 22:16
Code EMC_006
Short message Can't recieve information about the download
Description Can't get information about current download state.
Probable reason The module can not parse information about download's state from its log file.
Solution * Check if the download's log file exists and the system has rights to read it.

Miscellaneous
File ID 1
Filename apache-manual_2.2.8-1_mipsel.ipk
Download ID b6d88bb3f6d679156cd993bc873c906d



Can you help?

Thank you Katos

DINI
16-03-2008, 13:16
"Permission denied" error most likely occurs because of incorrect cron configuration. Check CHMOD for /opt/etc/cron.1min directory (execution must be allowed). Also check that php has necessary rights to run sh files.

As to DB error, I'll try to reproduce it and if I'll get the same result, I will fix the error in the next build of ADOS.

katos
16-03-2008, 14:27
"Permission denied" error most likely occurs because of incorrect cron configuration. Check CHMOD for /opt/etc/cron.1min directory (execution must be allowed). Also check that php has necessary rights to run sh files.

As to DB error, I'll try to reproduce it and if I'll get the same result, I will fix the error in the next build of ADOS.


chmod for /opt/etc/cron.1min is drwxr-xr-x (755)
sorry, where or how can i checkthat php has necessary rights?
after


$ php ados.sh
rm /opt/etc/cron.1min/ados_976e1c8310e9197af7d98793b4515495.sh
/opt/bin http://ftp.osuosl.org/pub/nslu2/feeds/optware/oleg/cross/stable/apache-manual_2.2.8-1_mipsel.ipk -o /tmp/harddisk/downloads/_tmp/1_1_976e1c8310e9197af7d98793b4515495.ados --limit-rate 16384 > /tmp/harddisk/downloads/_log/976e1c8310e9197af7d98793b4515495.log 2>&1
echo >> /opt/share/www/ados/cron.lock
/opt/bin/php /opt/share/www/ados/classes/class_cron.php >> /tmp/harddisk/downloads/_log/cron_end_download.log
$



Thanks Katos

DINI
16-03-2008, 14:53
chmod for /opt/etc/cron.1min is drwxr-xr-x (755)
sorry, where or how can i checkthat php has necessary rights?
afterPlease refer to cron manual. Cron executes sh scripts with rights that you've set in cron configuration file.

katos
16-03-2008, 15:03
Please refer to cron manual. Cron executes sh scripts with rights that you've set in cron configuration file.

my crontab
"
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/bin:/opt/sbin:/opt/usr/bin:/opt/usr/sbin
MAILTO=""
HOME=/
# ---------- ---------- Default is Empty ---------- ---------- #
*/1 * * * * root /opt/bin/run-parts /opt/etc/cron.1min
*/5 * * * * root /opt/bin/run-parts /opt/etc/cron.5mins
01 * * * * root /opt/bin/run-parts /opt/etc/cron.hourly
02 4 * * * root /opt/bin/run-parts /opt/etc/cron.daily
22 4 * * 0 root /opt/bin/run-parts /opt/etc/cron.weekly
42 4 1 * * root /opt/bin/run-parts /opt/etc/cron.monthly

*/30 * * * * root nice /opt/sbin/transmission_watchdog
"
I'm logged as root.
When the "downloading" have started, ADOS created the ados#########. sh file in /opt/etc/cron.1min, and after moment is deleted.

Katos

al37919
16-03-2008, 15:27
I'd recommend you to set 600 permissions for /opt/etc/crontab itself (see man cron), and 700 for the scripts in cron.* dirs (the latter I'd recommend to be on the safe side --- I mean from the point of view of fulfillment of the cron requirements).

finally, check that something like this: /opt/bin/run-parts /opt/etc/cron.1min executes something when started manually.

PS nice /opt/sbin/transmission_watchdog has unclear meaning without setting of the nice level.

katos
16-03-2008, 15:46
I'd recommend you to set 600 permissions for /opt/etc/crontab itself (see man cron), and 700 for the scripts in cron.* dirs (the latter I'd recommend to be on the safe side --- I mean from the point of view of fulfillment of the cron requirements).

finally, check that something like this: /opt/bin/run-parts /opt/etc/cron.1min executes something when started manually.

PS nice /opt/sbin/transmission_watchdog has unclear meaning without setting of the nice level.


/opt/etc/crontab permissions are set to -rw------- (0600)
all cron.* dirs are (0777)
When ADOS create file it has (0755)

---------------------
test file is ados.sh

[root@ root]$ run-parts opt/etc/cron.1min/ados.sh
[root@ root]$

everything works fine.
----------------------


Thanks
I don't know where is the problem.
Katos

DINI
16-03-2008, 16:25
Attention: version 1.3.4 (build 68) is available.
See download link in the firs post (http://wl500g.info/showpost.php?p=85255&postcount=1) of the topic.

To make an update replace files at the server with files from the downloaded archive (it is necessary to copy update directory) and then run the script from the browser. You will be redirected to the update page.

Fixed:
Escaping query strings for SQLite DB — thanks to katos for report.

katos
16-03-2008, 20:07
Attention: version 1.3.4 (build 68) is available.
See download link in the firs post (http://wl500g.info/showpost.php?p=85255&postcount=1) of the topic.

To make an update replace files at the server with files from the downloaded archive (it is necessary to copy update directory) and then run the script from the browser. You will be redirected to the update page.

Fixed:
Escaping query strings for SQLite DB — thanks to katos for report.


Thank you for new version, SQLite work fine.

I found the problem:

In the module settings is written: Program working directory (Absolute path to the executable file.)

but if I used "/opt/bin" - it means only directory,

script in .sh file was :

#!/bin/sh
rm /opt/etc/cron.1min/ados_3722bfb391a3c3471df20904cb6fc27b.sh
/opt/bin http://ftp.osuosl.org/pub/nslu2/feeds/optware/oleg/cross/stable/apache-manual_2.2.8-1_mipsel.ipk -o /tmp/harddisk/downloads/_tmp/1_1_3722bfb391a3c3471df20904cb6fc27b.ados --limit-rate 16384 > /tmp/harddisk/downloads/_log/3722bfb391a3c3471df20904cb6fc27b.log 2>&1
echo >> /opt/share/www/ados/cron.lock
/opt/bin/php /opt/share/www/ados/classes/class_cron.php >> /tmp/harddisk/downloads/_log/cron_end_download.log

you can see that missing name of the downloader in 2nd line /opt/bin ?????
there is problem.

I had to add in module settings names of the downloaders.

THANK YOU DINI for Hard Works,

Katos

DINI
16-03-2008, 20:21
you can see that missing name of the downloader in 2nd line /opt/bin ?????
there is problem.In module's settings you must specify absolute path to the executable file of that module including name of the file (for example, /opt/bin/curl for cURL module).

katos
16-03-2008, 20:25
In module's settings you must specify absolute path to the executable file of that module including name of the file (for example, /opt/bin/curl for cURL module).


NOW, I know it :)
Thanks

DINI
26-03-2008, 18:22
Attention: version 1.3.5 (build 69) is available.
See download link in the firs post (http://wl500g.info/showpost.php?p=85255&postcount=1) of the topic.

To make an update replace files at the server with files from the downloaded archive (it is necessary to copy update directory) and then run the script from the browser. You will be redirected to the update page.

Fixed:
Adding subcategories to root categories (earlier it was not possible to create a subcategory in the root category) — thanks to bocman for report.
Absolute path to the file 'none.gif' in CSS was changed to relative — thanks to Ńhemist for report.

DINI
05-04-2008, 20:09
Attention: version 1.3.6 (build 70) is available.
See download link in the firs post (http://wl500g.info/showpost.php?p=85255&postcount=1) of the topic.

To make an update replace files at the server with files from the downloaded archive (it is necessary to copy update directory) and then run the script from the browser. You will be redirected to the update page.

Fixed:
Not specifiying the password for MySQL database during installation process is not an error any more — thanks to PyKaB for report.
Fixed pathes to files 'pease_wait.gif' and 'favicon.ico' in the templates — thanks to PyKaB for report.
Query to the database while checking files' queue during cron task — thanks to sarlacc for report.

Hotfixes:

(15.04.2008 17:55 GMT — build 71)
Fields for cookies' settings during installation process now will be blank by default. Fill them only if you know what to specify in these fields.

raas
15-04-2008, 18:38
Hi Dini,

1st of all, very promising product, judging by the looks of it.. nice.

I have installed ados (ados_1.3.6_build_70.tar.tar) and selected mysql database to run it (first created a database 'ados') The installation went fine, and when I start the website it askes me to login.

If I login with the correct login/pass combination it does a post-back returning me the same page but with the login and password field blanked.

If I login with the incorrect password for admin it tells me that the password isn't correct.

If I login with another user which doesn't exist it tells me that the user does not exist..

So, somehow it checks my login/pass combination and judges it's ok. But it doesn't send me to the right page I suppose.

Any clue what might be wrong.

Many thanks,

Raas

DINI
15-04-2008, 18:43
Any clue what might be wrong.Most likely you incorrectly specified values for cookies' settings during installation process.

Now you must delete all cookies written by the system and reinstall the system. But be very careful when configuring cookies' settings during installation process. If you are not absolutely sure what to specify, just leave both fields 'cookie domain' and 'cookie path' blank.

sarlacc
15-04-2008, 18:43
Try remove install directory and upgrade directory after installation

raas
16-04-2008, 18:44
@DINI,

thanks.. the cookie domain did the trick.. I was able to login now.. going to play with the system for a bit.. thanks.


@sarlacc.. indeed. . i did remove the install directory, but not the update directory..

Well.. I'm glad it's working now..

thanks all.

raas
21-04-2008, 19:35
Hi DINI,
me again.

I've succesfully downloaded a lot of files using ADOS through cURL. works like a charm.

I do have a problem with the accessibility of the webpages.
If I'm on my internal network. works like a dream. i have lighttpd configured to run at port 8082.
my modem has a port forwarding from external port 80 to internal port 8082 on asus ip-address.

Now. when I want to access the website from outside the network (eg. my work) I get the login pag of ADOS.
I then login, but see in the statusbar of the browser that it wants to go to http://my.external.ip:8082/ados......
so it somehow reverts back to the portnumber the webserver is running on.
Needless to say this won't work.

any idea on how to solve this in ADOS ? I don't have the problem with other webapplications running on the asus/mysql/lighttpd

TIA.

wpte
21-04-2008, 20:01
I'm getting a big fat internal server error spashing on my screen after it wrote the first 14 rows in the mysql server.
It's working on a php-thttpd server tough:rolleyes:
any ideas? maybe it also fixes my other webpackages:)

DINI
21-04-2008, 20:46
it somehow reverts back to the portnumber the webserver is running on.
Needless to say this won't work.

any idea on how to solve this in ADOS ? I don't have the problem with other webapplications running on the asus/mysql/lighttpdThe script uses variables $_SERVER['HTTP_HOST'] and $_SERVER['SERVER_PORT'] to make a basic url, that is used throughout the script. These variables are submitted in headers of the request by the browser.

Unfortunately I have no ability to test port forwarding on my own router, but I'll try to do some tests a few weeks later. I'm sorry, but I think that I won't resolve this problem earlier.

raas
22-04-2008, 09:27
Hi DINI,

Thanks for your answer. Don't hurry yourself on this.

You've given me enough hints to take a look myself.
If I'm able to create a solution I will post it here.

DINI
22-04-2008, 17:33
Attention: version 1.3.7 (build 72) is available.
See download link in the firs post (http://wl500g.info/showpost.php?p=85255&postcount=1) of the topic.

To make an update replace files at the server with files from the downloaded archive (it is necessary to copy update directory) and then run the script from the browser. You will be redirected to the update page.

Fixed:
Added processing of commas and vertical bars in the links — thanks to AiSt for report.

raas
23-04-2008, 13:20
Hi DINI,

I think I've found a solution for my problem (ados_1.3.6_build_70.tar.tar)
(have to update to the newer version tonight)

I can't tell if this solution is desirable through the whole ADOS application, I let you decide, but this change allows me to use ADOS while using port-forwarding.

in file: /ADOS/classes/class_engine.php
at line: 226
I replaced the following code:

$this->base_url = strtolower( strtok( $_SERVER['SERVER_PROTOCOL'], '/' ) ).'://'.$_SERVER['HTTP_HOST'].$_SERVER['SCRIPT_NAME'];

with this:

$this->base_url = $_SERVER['SCRIPT_NAME'];

This works for me, but, like I said, you've to decide if this is suitable for ADOS as I suppose you've programmed that logic for a reason.

Anyway, just wanted to mention this.

DINI
23-04-2008, 18:37
Anyway, just wanted to mention this.Variable $_SERVER['SCRIPT_NAME'] contains only path to the script and cannot be used to identify domain name and port used to connect to the server.
Therefore your solution cannot be used as universal one, but I'm glad that this solution is useful for you.

raas
23-04-2008, 20:27
Hi DINI,

I see/understand.

But would this not only be the case when posting the contents of a page to an other domain?

Using only the 'relative' path to the script on the same domain works, hence why it's working for me.

(I'm a MS developer myself and do not fully understand the php syntax, so part of it is guessing for me.)
Anyway. If someone stumbles upon the same problem as me, this might be a solution.

Last, keep up the developing of this nice application.
I'm very, very, very satisfied with it's functionality.
(at work, the firewall blocks litterally all file downloads (not pages), due to virus/policy settings. I have an ftp-connection to my home ip. So I copy the link of the file I want to download. open the ados page on my router. paste the link. let ados download. once it's downloaded, I open ftp-connection to home ip and I can then download the file. cumbersome, but it works.!.)

DINI
23-04-2008, 20:50
raas, I'm very glad to see that you found my script useful!
As for the problem with domains (actually with port forwarding), I think that I have an idea how to solve it. I'll try to add a solution in the next build today or tomorrow.

raas
23-04-2008, 21:53
@DINI,

PM send.

DINI
24-04-2008, 09:21
Attention: version 1.3.8 (build 73) is available.
See download link in the firs post (http://wl500g.info/showpost.php?p=85255&postcount=1) of the topic.

To make an update replace files at the server with files from the downloaded archive (it is necessary to copy update directory) and then run the script from the browser. You will be redirected to the update page.

Added:
Ability to specify port number at the authorization screen (this function will be useful when using port forwarding) — thanks to raas for help.

fulcsa
07-08-2008, 07:53
Hi!
Sorry to bother you, but I have a problem. It can't start the download, but the file size is correct in the add dialog! :confused:
Can anybody help me?
Here is the screen from the log: http://kepfeltoltes.hu/080807/ados-err_www.kepfeltoltes.hu_.jpg
Thank you!

holla
23-08-2008, 03:21
how the hell do I install ados?

i got everything working fine (i think) up until "Installing and configuring ADOS"

where do i get this?


* Web server that supports POST method for forms and cookies (I use lighttpd).
* PHP 5.1.3 and higher.
* crontab.
* SQLite 2.x and higher (supported by PHP) or MySQL 4.x and higher (installed and configured by yourself).
* At least one of these download engines: cURL (recommended), Wget, axel.
* GD library for PHP to generate graphical progress bars (optional).
* mbstring library for PHP to parse non-Latin characters in the links (optional).
* Browser with JavaScript support.
The script works perfect in Firefox 2.0 and higher. Most of the functions were tested and should work in IE 6.0 and higher, Opera 9.0 and higher and Safari 3.0.4 and higher. Work is not guaranteed but is most likely possible in Firefox 1.x, IE 5.x and Opera 8.x.


how do I isntall ados?

Explain it to me as if i was a really really dummn guy.

its coz I'm stuck here for a while

raas
23-08-2008, 10:36
Hi Holla,

ADOS is a webapplication which relies on a webserver and cron.

If you have a webserver installed (like lighttpd) you can download the ados package and extract this to your webroot. (eg /ados)
Then .
if extracted go to http://ip.address.of.asus:webserverport/ados

if you've php installed, it should work.

holla
23-08-2008, 20:19
thanks very much for ur answer but how do I extract that file???

i done
wget http://download.dini.su/ados/stable
and then I tried
tar xvzf ados_1.3.8_build_73.tar.gz and
tar -xf ados_1.3.8_build_73.tar.gz


but none of this worked :S

proabably it's easy to do this but I need ur help again :)

I done this all http://wl500g.info/showpost.php?p=85256&postcount=2..

and now I'm stuck here http://wl500g.info/showpost.php?p=85259&postcount=3

holla
23-08-2008, 21:11
hi
thanks.
and how to I get it and extract it?

regards

raas
23-08-2008, 21:42
hi
thanks.
and how to I get it and extract it?

regards

Hi,

this is the actual install thread. first 4-5 post are how to install it.

holla
24-08-2008, 01:36
hmm ok then.

Now I'm getting an error "tar: Invalid tar magic" when trying to "tar -xzvf" ados file.

I supose I have to do that before trying this "http://my.router:8080" (when I try it I only get "lighttpd server is running").


I installed this and configured like the post says. But now I need do download ados and unzip it right??????




ipkg update
ipkg install cron
ipkg install lighttpd
ipkg install sqlite
ipkg install php-fcgi
ipkg install libcurl
ipkg install wget
ipkg install php-gd
ipkg install php-mbstring

Thanks again for ur help.
I really apreciate it

HEEELPPP :D

holla
25-08-2008, 00:42
I made it.

I unpacked all the stuff and zipped it and hosted it at my server.

Installed ipkg unrar

cd to /opt/share/www and wget myserver.com/ados.zip

and tried 192.168.1.1/8080/install/index.php and then I finally got some image :D

Now I'm going to explore a little bit and if I have questions I'll post them.

best regards

mark_q4xprt
25-08-2008, 04:26
i`ve followed the steps and now im encountering problems

[admin@WL-500G root]$ /opt/etc/init.d/S10cron
/opt/etc/init.d/S10cron: /opt/etc/init.d/S10cron: 8: /opt/sbin/cron: not found
--------------------------------------------------------
[admin@WL-500G root]$ /opt/etc/init.d/S80lighttpd start
Starting web server: lighttpd
/opt/etc/init.d/S80lighttpd: /opt/etc/init.d/S80lighttpd: 40: /opt/sbin/lighttpd: not found
-------------------------------------------------------

here are the steps i took

Configuring IPKG system.
echo "src unslung http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable" > /opt/etc/ipkg.conf
echo "dest root /" >> /opt/etc/ipkg.conf
ipkg update && ipkg install uclibc-opt && awk '/^Package:/{system("ipkg install -force-reinstall -force-defaults " $2)}' /opt/lib/ipkg/status

ipkg update
ipkg install cron
ipkg install lighttpd
ipkg install sqlite
ipkg install php-fcgi
ipkg install libcurl
ipkg install wget
ipkg install php-gd
ipkg install php-mbstring

nano /opt/etc/lighttpd/lighttpd.conf and uncomment (remove ‘#’ at the beginning) these strings: "mod_access",
"mod_fastcgi",
"mod_cgi",
"mod_accesslog"

server.document-root = "/opt/share/www/"

server.port = 8080

fastcgi.server = ( ".php" =>
( "localhost" =>
(
"min-procs" => 1,
"max-procs" => 1,
"max-load-per-proc" => 4,
"socket" => "/tmp/php-fastcgi.socket",
"bin-path" => "/opt/bin/php-fcgi"
)
)
)

Save changes and closed file

nano /opt/etc/php.ini
extension=pdo.so
extension=sqlite.so
extension=pdo_sqlite.so

nano /opt/etc/crontab
SHELL=/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/opt/sbin:/opt/bin
MAILTO=""
HOME=/
# ---------- ---------- Default is Empty ---------- ---------- #
*/1 * * * * admin /opt/bin/run-parts /opt/etc/cron.1min
*/5 * * * * admin /opt/bin/run-parts /opt/etc/cron.5mins
01 * * * * admin /opt/bin/run-parts /opt/etc/cron.hourly
02 4 * * * admin /opt/bin/run-parts /opt/etc/cron.daily
22 4 * * 0 admin /opt/bin/run-parts /opt/etc/cron.weekly
42 4 1 * * admin /opt/bin/run-parts /opt/etc/cron.monthly

nano /opt/bin/run-parts
#!/bin/sh
#
# runparts.sh by macsat@macsat.com
# intended for use with cron
#
# based on rc.unslung by unslung guys :-)
#
if [ -z "$1" ]
then
echo "Usage : $0 "
fi

RUNDIR=$1"/*"

for i in $RUNDIR ;do

# Ignore dangling symlinks (if any).
[ ! -f "$i" ] && continue

case "$i" in
*.sh)
# Source shell script for speed.
(
trap - INT QUIT TSTP
set start
. $i
)
;;
*)
# No sh extension, so fork subprocess.
$i start
;;
esac
done

chmod +x /opt/bin/run-parts

mkdir /opt/etc/cron.1min
mkdir /opt/etc/cron.5mins
mkdir /opt/etc/cron.hourly
mkdir /opt/etc/cron.daily
mkdir /opt/etc/cron.weekly
mkdir /opt/etc/cron.monthly

flashfs save && flashfs commit && flashfs enable

and thats it, i experienced the problem



[admin@WL-500G root]$ /opt/etc/init.d/S10cron
/opt/etc/init.d/S10cron: /opt/etc/init.d/S10cron: 8: /opt/sbin/cron: not found
--------------------------------------------------------
[admin@WL-500G root]$ /opt/etc/init.d/S80lighttpd start
Starting web server: lighttpd
/opt/etc/init.d/S80lighttpd: /opt/etc/init.d/S80lighttpd: 40: /opt/sbin/lighttpd: not found

mark_q4xprt
25-08-2008, 05:37
i tried to reformat and heres my new problem

[admin@WL-500G root]$ /opt/etc/init.d/S80lighttpd restart
Starting web server: lighttpd
Duplicate config variable in conditional 0 global: fastcgi.server
2008-08-25 12:34:49: (configfile.c.885) source: cat /opt/etc/lighttpd/conf.d/*onf line: 15 pos: 1 parser failed somehow near here: (EOL)

holla
25-08-2008, 14:44
i tried to reformat and heres my new problem

[admin@WL-500G root]$ /opt/etc/init.d/S80lighttpd restart
Starting web server: lighttpd
Duplicate config variable in conditional 0 global: fastcgi.server
2008-08-25 12:34:49: (configfile.c.885) source: cat /opt/etc/lighttpd/conf.d/*onf line: 15 pos: 1 parser failed somehow near here: (EOL)

do this


rm /opt/etc/lighttpd/conf.d/*

mark_q4xprt
25-08-2008, 15:34
do this


rm /opt/etc/lighttpd/conf.d/*



thanks, after that whats the next step?

ive typed 192.168.0.1:8080 but it sed "The webpage cannot be displayed"

mark_q4xprt
25-08-2008, 15:47
ive extracted the ados to the www folder


No path to the executable file was specified for module 'Axel 1.1.5'.
No path to the executable file was specified for module 'Curl 1.1.5'.
No path to the executable file was specified for module 'Wget 1.1.5'.

holla
25-08-2008, 15:59
/opt/share/www/install/

I think thats it

mark_q4xprt
25-08-2008, 16:06
it seems i cant find axel

for curl ive set
/opt/bin/curl

for wget
/opt/bin/wget


which one will i use?

im just testing it to download this

http://download.nullsoft.com/winamp/client/winamp5541_full_emusic-7plus_en-us.exe

but its just on idle :confused:

mark_q4xprt
25-08-2008, 16:34
it doesnt want to download from microsoft site?

http://www.microsoft.com/downloads/info.aspx?na=90&p=&SrcDisplayLang=en&SrcCategoryId=&SrcFamilyId=9ae91ebe-3385-447c-8a30-081805b2f90b&u=http:%2f%2fdownload.microsoft.com%2fdownload%2f3 %2f8%2f8%2f38889dc1-848c-4bf2-8335-86c573ad86d9%2fIE7-WindowsXP-x86-enu.exe

why?

holla
25-08-2008, 16:41
same problem here....

downloads aren't accomplished... it says that they are downloading, but it doesn't download anything

mark_q4xprt
25-08-2008, 16:51
Event time 25.08.2008 23:43
Code ECD_007
Short message File's download is impossible
Description User has not enough disk space to save file.
Probable reason The user has exhausted the space on a disk, assigned him for saving downloaded files.
Solution Delete some downloaded files from your directories or ask administrator to increase disk space.

Miscellaneous
File ID 4
Filename cpuz_146.zip
File size, bytes 571781


i stamble upon the log and saw this,

but ive already set it to none limit or blank or 999999999 but its thesame error, i know i have a lot of space coz im using a newly bought 160g wd passport on this

holla
25-08-2008, 21:54
maybe its the swap memory.

try

df
or

free

mark_q4xprt
26-08-2008, 02:20
[admin@WL-500G root]$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/root 3008 3008 0 100% /
/dev/discs/disc0/part1 145138968 378316 137388024 0% /opt
[admin@WL-500G root]$ free
total used free shared buffers
Mem: 30172 25416 4756 0 5464
Swap: 524276 4464 519812
Total: 554448 29880 524568



is there something wrong from what i did in the partition?
the hdd is 160g, what is the correct partition for this?


fdisk /dev/discs/disc0/disc
d
n
p
2
< enter >
+151G
n < enter >
p < enter >
1 < enter >
< enter >
< enter >
t < enter >
2 < enter >
82 < enter >
w < enter >
mke2fs -j /dev/discs/disc0/part1
mkswap /dev/discs/disc0/part2
reboot
mount /dev/discs/disc0/part1 /opt
swapon /dev/discs/disc0/part2

holla
26-08-2008, 11:49
no fekin idea...

try saving downloads to
/dev/discs/disc0/part1

or to
/opt/share/www/

and you'r using an extra space which may be the difference here
mount /dev/discs/disc0/part1 /opt

mark_q4xprt
27-08-2008, 14:21
the probelm was fixed after i entered 1.4E+6 in the disk quota

now the only problem left is the dyndns

http://wl500g.info/showthread.php?t=15801&highlight=problem+oleg

holla
27-08-2008, 16:19
I'm getting this error


Code ECD_015
Short message File's download is impossible
Description Can't open for writing file in the CRON directory.
Probable reason The system has no rights to write to the specified directory or file.
Solution * Make sure that the system has necessary write rights.


How can I solve this problem?

Kenny
28-08-2008, 00:46
I cannot download anything, files are in download tab forever. Please help!

EDIT: Solved, anyway downloads are a bit sluggish

DINI
07-09-2008, 18:48
Hello!

I apologize for not replying for a log time. The reason is simple: lack of time.

Unfortunately because of this reason I will not provide any support of my script. It is also unlikely that I will further develop this project.

Nevertheless the latest version is distributed under GPL v3 license. Therefore anyone now have an ability to add new features and fix bugs and use the source code of my script.

By the start of this day the script was downloaded 2636 times, and from the time the first beta have been released the script was downloaded more than 6000 times. I hope that my script was useful for everyone who have downloaded it. Of course it is not perfect and I wanted to make it better and more easy in use, but unfortunately not every dream comes true.

I hope that it is not the end of the project and somebody will develop it.

DINI
07-09-2008, 18:49
Attention: version 1.3.9 (build 74) is available.
See download link in the firs post (http://wl500g.info/showpost.php?p=85255&postcount=1) of the topic.

To make an update replace files at the server with files from the downloaded archive (it is necessary to copy update directory) and then run the script from the browser. You will be redirected to the update page.

Added:
Starting from this version the script is distrubuted under GNU GPL v3 license.

Fixed:
Generating links when using secure connection with non-standard port (earlier secure connection was used only with standard 443 port) — thanks to many people for report.

raas
08-09-2008, 11:37
Dini,

Sorry to hear you're not maintaining this beautifull software package. But if time becomes an issue, one has got to decide

otoh, very nice you're 'donating' the source to the public. Many Thanks!!!

As I use ADOS every day, I will certainly take a look a the last released version.

Thanks again for writing and supporting this software

Trubkyn
15-09-2008, 09:58
Hi Guys,
anyone knows how to solve this problem:
Executable file of module 'Curl 1.1.5' is missing or its verion is unsupported. :confused:
Executable file of module 'Wget 1.1.5' is missing or its verion is unsupported. :confused:
?
Have installed these:
curl 7.19.0 (mipsel-unknown-linux-gnu) libcurl/7.19.0 OpenSSL/0.9.7m zlib/1.2.3
Protocols: tftp ftp http file https ftps
Features: IPv6 Largefile NTLM SSL libz

GNU Wget 1.11.4

Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Currently maintained by Micah Cowan <micah@cowan.name>.

Thanks a lot!

Trubkyn
16-09-2008, 14:44
Hi Guys,
anyone knows how to solve this problem:
Executable file of module 'Curl 1.1.5' is missing or its verion is unsupported. :confused:
Executable file of module 'Wget 1.1.5' is missing or its verion is unsupported. :confused:
?
Have installed these:
curl 7.19.0 (mipsel-unknown-linux-gnu) libcurl/7.19.0 OpenSSL/0.9.7m zlib/1.2.3
Protocols: tftp ftp http file https ftps
Features: IPv6 Largefile NTLM SSL libz

GNU Wget 1.11.4

Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Currently maintained by Micah Cowan <micah@cowan.name>.

Thanks a lot!
Problem solved :)
This looks great! Thanks DINI

qseb
29-09-2008, 15:27
just to say thank you for ADOS, Dini!
Nice work :)

lordu
02-10-2008, 14:20
Hi Gays

Can anybody help me with these:
1) error message:
"Link field can't be blank."
I've tryed to insert this link:
ftp://cosma78.mine.nu/Torrenti%20utorrent/WinAmp.Pro.v5.52.Multilanguage.Incl.KeyGen-ELYSiUM/


2)how can i access the lighttpd server on port 80 (without to specify the port - 8080, 8082, etc) and to keep firewall on ? I need this to host a small internet page



Thank you in advance!

holla
16-10-2008, 20:31
how can I configure my ados to download everyday on my happy hours???

from 2-7 every day

How do I schedule?? I tried many things but none worked

ebabinski
21-10-2008, 22:56
I cannot download anything, files are in download tab forever. Please help!

EDIT: Solved, anyway downloads are a bit sluggish

How did you solve this problem? I just installed it using raas' headstart. Unfortunately, it doesn't start to download.

miz012
24-10-2008, 11:37
Login-password pair authentication:
If you have premium accounts of hosters like RapidShare or FileFactory or it is needed to be authenticated by the FTP server, then you can add a list of authentication parameters in the “Settings” tab.
Domain in this list is an address template that will be used to bypass authentication.
For instance: httš://*.rapidsahre.com. Authentication will be performed at all subdomains of domain rapidshare.com.
Another example: httš://rs200.rapidsahre.*. Authentication will be performed only at subdomain rs200, but regardless of the domain zone (de, ru, com.ua).
If you wish to share authentication parameters with non-administrative users, then put a flag into the “Shared” column.

Hello everybody :)

I need to help with my little problem... Can you help me how to download from rapidshare with premium account? I have made everything from help above (I have rapaired httš://*.rapidsahre.com for http://*.rapidshare.com) I have insert correct user name and pass but ADOS everytime downloads only about 17 kB file (some shortcut or something like that).

Can you help me please?

thx

Andym

PS: How it works with downloading torrents?

miz012
24-10-2008, 11:38
Login-password pair authentication:
If you have premium accounts of hosters like RapidShare or FileFactory or it is needed to be authenticated by the FTP server, then you can add a list of authentication parameters in the “Settings” tab.
Domain in this list is an address template that will be used to bypass authentication.
For instance: httš://*.rapidsahre.com. Authentication will be performed at all subdomains of domain rapidshare.com.
Another example: httš://rs200.rapidsahre.*. Authentication will be performed only at subdomain rs200, but regardless of the domain zone (de, ru, com.ua).
If you wish to share authentication parameters with non-administrative users, then put a flag into the “Shared” column.

Hello everybody :)

I need to help with my little problem... Can you help me how to download from rapidshare with premium account? I have made everything from help above (I have rapaired httš://*.rapidsahre.com for http://*.rapidshare.com) I have insert correct user name and pass but ADOS everytime downloads only about 17 kB file (some shortcut or something like that).

Can you help me please?

thx

Andym

PS: How it works with downloading torrents?

holla
09-11-2008, 03:25
how can I configure my ados to download everyday on my happy hours???

from 2-7 every day

How do I schedule?? I tried many things but none worked

no one????????

kslack
09-11-2008, 22:01
Hello i have a problem with downloading. It not startet. In the log screen is error ECD_005 & ECD_012. In the lighhtp log file is nothing. In the directory cron.1min is
only ados.sh. Ados can't make sh script for downloading in this directory. I'm agonized. :(

holla
10-11-2008, 20:18
probalby u can't write on the disk... try it and tell us sth

kslack
11-11-2008, 10:16
I have write permition 777 to the directory cron.1min and to the download directory.

kslack
11-11-2008, 21:53
Must please user defined in the ADOS for downloading the same as user in the asus system? I have in the asus system only one user admin. And in the ADOS program have i different user martin.

metamorphose
01-12-2008, 21:16
Hi Everybody,


could anybody help me why I receive this error message above. For more details see attached file.

metamorphose
19-12-2008, 22:16
I can eliminate error message, but downloading still not work.

Should I open a special port on firewall?

I do not understand: log files of ADOS (in _log directory) are empty, I cannot find any error message.

Kenny
22-12-2008, 17:11
I'm getting this during setup: Fatal error: Class 'PDO' not found in /opt/share/www/ados/install/index.php on line 457

edit: nevermind, solved

pistata
27-12-2008, 22:09
I'm getting this during setup: Fatal error: Class 'PDO' not found in /opt/share/www/ados/install/index.php on line 457

edit: nevermind, solved

I had the same problem. Look to this post http://wl500g.info/showpost.php?p=112888&postcount=1232 (mainly to the php.ini extension setup part). Probably during php upgrade the php.ini file was rewritten.

katos
10-01-2009, 21:01
Please, Can you tell me How did you solve this problem?

Thanks Katos


Hi Guys,
anyone knows how to solve this problem:
Executable file of module 'Curl 1.1.5' is missing or its verion is unsupported. :confused:
Executable file of module 'Wget 1.1.5' is missing or its verion is unsupported. :confused:
?
Have installed these:
curl 7.19.0 (mipsel-unknown-linux-gnu) libcurl/7.19.0 OpenSSL/0.9.7m zlib/1.2.3
Protocols: tftp ftp http file https ftps
Features: IPv6 Largefile NTLM SSL libz

GNU Wget 1.11.4

Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://www.gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Originally written by Hrvoje Niksic <hniksic@xemacs.org>.
Currently maintained by Micah Cowan <micah@cowan.name>.

Thanks a lot!

vangelm
17-03-2009, 01:35
I cannot download anything, files are in download tab forever. Please help!

EDIT: Solved, anyway downloads are a bit sluggish

Hello, please, tell me, how you solved this? I installed ADOS and I trying to download, it shows me file size, but dowdloading is still on 0%.

Please help me someone

Grejzen
30-06-2009, 01:35
When I want install ADOS I get this error:

Fatal error: This system requires PHP 5.1.3 or over. Your PHP version is.

I have installed PHP 5.2.10.

When I remove lines 139-145 from install/index.php I have only a white page.

I wanted force installation using link with parameters

http://192.168.1.1:81/ados/install/?db_engine=sqlite3&execute=yes&lang=en&step=2
but it's the same story :(

Any ideas?

Grejzen
30-06-2009, 11:06
I "solved" this problem

In install/index.php in line 141 I changed "<" to ">"

before

if( strcmp( $phpver[1], "5.1.3" ) < 0 )
after

if( strcmp( $phpver[1], "5.1.3" ) > 0 )

bauerj
16-07-2009, 17:13
When I try to download anything it always show me that download is idle but it's still on 0% after hours.
It seems that mark_q4xprt had the same problem and he wrote this:


the probelm was fixed after i entered 1.4E+6 in the disk quota

now the only problem left is the dyndns
What does he mean with this? (My English isn't very well):confused:

in log section is this: http://img263.imageshack.us/img263/6748/unbenanntv.png

kemo
28-11-2009, 14:41
My internet provider allow me downloading only between 00:00 and 6:00 hours. Any solution for this problem???? :/
Thanx....
(sorry for my bad english)

TobRieper
26-07-2010, 20:07
Hi folks,

Ive just installed ADOS (headstart package actually). I want to use it for downloading from rapidshare in happy hours.
If I start download manually it seems to be working fine but I need help with setting up schedule. I dont really get those options or they doesnt work in my setup ;)
Ive used "Schedule properities for users" -> Alternate restrictions -> admin (my username) -> allow -> day -> time from : to. But it doesnt start download, actually if I leave this active and try to start download manually it creates an error (doesnt start). Should this work the way I thought or am I missing something? Can you please point me to some solution.
Thx for help and thx for this peace of software

alls20003
17-09-2010, 21:34
Hello people.

I Installed last day ADOS Downloader in another router with TOMATO 1.27 USB.
But in this new install, my ADOS show me wrong size of file in downloading. See the picture with problem. The file has 200MB of size but ADOS show me 51KB. Help me please. :(:(:(:(:(:(:(:(:(:(:(

7058

TobRieper
24-02-2011, 19:09
Hi, Im using ADOS 139 installed with Headstart package. Im using it for downloading files from rapidshare at night. But from monday (im not sure) it looks like it stopped working.
It doesnt show filesize (0 KB). And if I start download it logs an error (ECD_012,File's download is impossible,Can't connect to FTP server.,Can't establish connection to the remote server.).
But if I try to download anything else it seems to be working. Any tips where to start searching a problem?

TobRieper
27-02-2011, 08:51
Hi, Im using ADOS 139 installed with Headstart package. Im using it for downloading files from rapidshare at night. But from monday (im not sure) it looks like it stopped working.
It doesnt show filesize (0 KB). And if I start download it logs an error (ECD_012,File's download is impossible,Can't connect to FTP server.,Can't establish connection to the remote server.).
But if I try to download anything else it seems to be working. Any tips where to start searching a problem?

Solved by adding line


$link=str_replace("https", "http", $link);

after


function _check_link( $link, $depth=1 )
{

in \ados\classes\class_downloader.php
.
Probably it wont for httpS only downloads.

expert_vision
12-06-2011, 12:26
ADOS is not compatible with php-fcgi 5.2.17-1 or the new version has bugs. I had to replace /opt/bin/php-fcgi with the one in this (http://files.wl500g.info/asus/custom/raas/v10/opt.tar.gz) archive mentioned in here (http://wl500g.info/showthread.php?t=23684), which is version 5.2.6-1. And now it works. The error was one mentioned earlier:

Fatal error: This system requires PHP 5.1.3 or over. Your PHP version is.
and others.

asriphet
18-10-2011, 14:51
ADOS is not compatible with php-fcgi 5.2.17-1 or the new version has bugs. I had to replace /opt/bin/php-fcgi with the one in this (http://files.wl500g.info/asus/custom/raas/v10/opt.tar.gz) archive mentioned in here (http://wl500g.info/showthread.php?t=23684), which is version 5.2.6-1. And now it works. The error was one mentioned earlier:

Fatal error: This system requires PHP 5.1.3 or over. Your PHP version is.
and others.

Try to edit php version check in /install/index.php with comment symbols.
function __class_construct()
.
.
// if( strcmp( $phpver[1], "5.1.3" ) <0>engine->fatal_error( "This system requires PHP 5.1.3 or over. Your PHP version is {$phpver[1]}." );
// }
.
.

Good luck

expert_vision
18-10-2011, 15:59
This will solve only the initial error message, but then installation will fail .. I don't remember exactly where, but after you choose some options and click next installation hangs. Anyway I solved all of the problems by replacing php-fcgi with the one mentioned in my previous post.

Thanks for reply!

asriphet
28-10-2011, 20:39
Hi all,

I'm create an aria2 module for ados.
Download link: http://www.mediafire.com/?19ye0xjsf1t9643

About aria2: http://aria2.sourceforge.net/