Off-Topic > Off-Topic - Tiny Core Lounge
Anyone interested in testing an aria2 webUI?
AbNoRMiS:
i made the following
--- Code: ---sudo cp -f /usr/local/share/a2web/a2web.conf.sample /usr/local/share/a2web/cgi-bin/a2web.conf
sudo cp -f /usr/local/share/a2web/a2web /usr/local/share/a2web/cgi-bin
sudo sed -i "5,6s/^# //" /usr/local/share/a2web/cgi-bin/a2web.conf
su ${TCUSER=`cat /etc/sysconfig/tcuser`} -c "aria2c --enable-rpc"
sudo /usr/local/httpd/sbin/httpd -f -p 8080 -h /usr/local/share/a2web -u $TCUSER:staff
--- End code ---
as result i get 404
--- Code: ---firefox http://localhost:8080
--- End code ---
http://pastehtml.com/view/c6xeioq1o.html
or desired a2web but without theming
--- Code: ---firefox http://localhost:8080/cgi-bin/a2web.cgi
--- End code ---
i again did something wrong?
curaga:
Sorry, I occasionally assume too much. Here's a step by step, for the busybox httpd extension. Note the config file editing is not necessary for other web servers.
Pre-step: Run aria2 --enable-rpc, maybe from a boot script.
1. tce-load -wi a2web busybox-httpd
2. cd /usr/local/share/a2web/cgi-bin
3. sudo cp ../a2web.conf.sample a2web.conf
4. Uncomment the themedir path and add a / (just like in the first post, /a2web/crystal)
5. firefox localhost:8080/cgi-bin/a2web.cgi
edit: Your current setup only misses making the theme path absolute, ie add a / to the theme path's start.
AbNoRMiS:
here i wrote daemon a2webd for a2web
--- Code: ---Usage: a2webd [start|status|reload|restart|stop]
--- End code ---
this script examines configuration files
a2webd.conf, aria2.conf (if exists)
and a2web.conf (or creates it if does not exist)
then starts aria2 if not running another instance
and starts busybox httpd with a2web.cgi
if can't find already running a2web.cgi
on another already configured http server
more details as it works is specified in comments
a2webd has configuration file a2webd.conf
which created with default options
at first start if did not exist before
--- Code: ---# a2web.conf
# path = /path/to/a2web.cgi
path = /usr/local/share/a2web/cgi-bin/a2web.cgi
# uri = [http://][[password:]user@]server[:port]/path-to/a2web.cgi
uri = http://localhost:8080/cgi-bin/a2web.cgi
--- End code ---
options should be changed on your own
(such as user and password for http auth)
to launch busybox httpd with a2web.cgi
or according to already running on other server
i tested and seems it work well
maybe you look how it works
and consider its inclusion to extension a2web.tcz
or maybe also to a2web distribution if it can be applied
curaga:
a2web.tcz, a2web - sure, I can add it.
I see that you check the aria2 conf file for the dir option, and pass it on the command line too. Why? Is there some bug in aria2 that prevents the dir option in the config file from working?
AbNoRMiS:
indeed most likely that there i'm reinsured :)
i think that aria2 has no such error
i'll check this and most likely this can be removed
and when i rode to home then i thought
that not very well written search for path to busybox httpd
if this will applied for different linux distributions
i'll work with all this tonight and upload corrected version
i also thought how would better
automatically define prefix variable
rather than set it tough...
also i still can't imagine universal method
to user determining for different linux distributions
and if nothing will come to mind then so far leave it as is
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version