1 |
root |
1.1 |
This is a mess. There is not much structure to this code, and it is not |
2 |
|
|
ready for release ;) |
3 |
|
|
|
4 |
|
|
1. read MANIFEST |
5 |
|
|
2. copy config.pl.dist to config.pl |
6 |
|
|
3. mkdir db && mkdir logs |
7 |
|
|
4. make sure port 7262 (shell!) is firewalled |
8 |
|
|
5. perl myhttpd |
9 |
|
|
|
10 |
|
|
if you find any bugs => complain. if you don't understand the code, |
11 |
|
|
meditate, then complain. if you want to restructure it, go on, i'll do |
12 |
pcg |
1.3 |
this myself once i have time, and the current file structure likely won't |
13 |
root |
1.1 |
survive. |
14 |
|
|
|
15 |
|
|
pcg@goof.com |
16 |
root |
1.2 |
|
17 |
|
|
------------------------------------------------------------------------------ |
18 |
|
|
Random snippets that might be helpful: |
19 |
|
|
|
20 |
|
|
Yeah, and security problems. With no firewall, "telnet anime.plan9.de |
21 |
|
|
7262" would give you a very simple server shell where you can change |
22 |
|
|
things (and execute any command you like), so watch out for this ;) |
23 |
|
|
|
24 |
|
|
I often use: |
25 |
|
|
|
26 |
|
|
current rate |
27 |
|
|
cmd> p $tbf_top->{rate} |
28 |
|
|
RES = 118000 |
29 |
|
|
|
30 |
|
|
set new tbf rate |
31 |
|
|
cmd> p $tbf_top->{rate} = 118000 |
32 |
|
|
RES = 118000 |
33 |
|
|
|
34 |
|
|
set the current estimated queue to 5hrs/100MB |
35 |
|
|
cmd> p $queue_file->{avgspb} = 0.0002 |
36 |
|
|
RES = 0.0002 |
37 |
|
|
|
38 |
|
|
|