The difference between stupidity and genius is that genius has its limits
Verwijderd
Hiermee kan je in de rc5-dns.cache IP adressen aan Namen koppelen.
The difference between stupidity and genius is that genius has its limits
De oude crew... helemaal zo slecht niet.
Maar ik kan het niet compileren zeker?
En hoe krijg ik die pproxy aan? heb half got al afgezocht maar het zijn allemaal oude topics.
The difference between stupidity and genius is that genius has its limits
Maar bij mij doet die niks. moet ik het in een opstart script zetten o.i.d?
The difference between stupidity and genius is that genius has its limits
./pproxy daarmee kan je de proxy opstartenvanderwal schreef op maandag 18 juli 2005 @ 22:28:
Ja daar had ik ook al gekeken, maar hoe krijg ik die proxy opgestart in linux, normaal als ik een programma start dan is het meestal programmanaam start.
Maar bij mij doet die niks. moet ik het in een opstart script zetten o.i.d?
met -hide kan je hem ook nog hidden draaien dacht ik.
Stomme howto's is altijd voor windows.
[ Voor 17% gewijzigd door MeneerKrab op 18-07-2005 23:09 ]
(bij elkaar geschraapte scripts, ook niet van mezelf
Ik heb het start/stop-script /etc/init.d/proxyper:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
| #!/bin/sh
#
# proxyper This shell script takes care of starting and stopping
# rc5des personal proxy.
#
# chkconfig: 2345 86 25
# description: This starts and stops the rc5des personal proxy
# processname: proxyper
# config: /usr/bin/distributed.net/proxy/proxyper
# pidfile: /usr/bin/distributed.net/proxy/proxyper.pid
proxyper="/usr/bin/proxyper/proxyper"
pidfile="/usr/bin/proxyper/proxyper.pid"
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
. /etc/sysconfig/network
# Source proxyper configureation.
if [ -f /etc/sysconfig/proxyper ] ; then
. /etc/sysconfig/proxyper
fi
# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0
[ -x "$proxyper" ] || exit 0
RETVAL=0
prog="proxyper"
start() {
# Start daemons.
echo -n $"Starting $prog: "
if [ -f "$pidfile" ]; then
proxyper_pid=$(cat "$pidfile" )
kill -15 $proxyper_pid
fi
daemon --user "$runas" "$proxyper" -detach
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$prog
return $RETVAL
}
stop() {
# Stop daemons.
echo -n $"Shutting down $prog: "
killproc $prog
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$prog
return $RETVAL
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
stop
start
RETVAL=$?
;;
condrestart)
if [ -f /var/lock/subsys/$prog ]; then
stop
start
RETVAL=$?
fi
;;
status)
status $prog
RETVAL=$?
;;
*)
echo $"Usage: $0 {start|stop|restart|condrestart|status}"
exit 1
esac
exit $RETVAL |
En het volgende script om de softlinks naar /etc/rc.d/rc0.d t/m /etc/rc.d/rc6.d te maken:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| #!/bin/sh
#
# For the 0, 1 and 6 runlevels (halt, single-user and reboot respectively):
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc0.d/K10proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc1.d/K10proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc6.d/K10proxyper
# For the 2, 3, 4 and 5 runlevels: (runlevels 7, 8 and 9 are also valid, but not many unix variants have them)
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc2.d/S90proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc3.d/S90proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc4.d/S90proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc5.d/S90proxyper
# end! |
NB:
de proxy staat bij mij in /usr/bin/proxyper/proxyper
Dus nu volstaat een /etc/init.d/proxyper stop of /etc/init.d/proxyper start
of gewoon ./proxyper
[ Voor 13% gewijzigd door Loco-Motiv op 18-07-2005 23:22 ]
debianserver:/etc/dnet# ./proxyper
-bash: ./proxyper: Toegang geweigerd
debianserver:/etc/dnet#
Ik heb al chown root proxyper gedaan, maar dit helpt niet.
Zit dit in de rechten of is mijn ini file niet meer goed?
The difference between stupidity and genius is that genius has its limits
Voor zover mijn kennis gaat...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| #!/bin/sh
#
# For the 0, 1 and 6 runlevels (halt, single-user and reboot respectively):
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc0.d/K10proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc1.d/K10proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc6.d/K10proxyper
# For the 2, 3, 4 and 5 runlevels: (runlevels 7, 8 and 9 are also valid, but not many unix variants have them)
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc2.d/S90proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc3.d/S90proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc4.d/S90proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc5.d/S90proxyper
# end! |
- debianserver:~# /etc/init.d/proxyper start -bash: /etc/init.d/proxyper: Toegang geweigerd debianserver:~#
Ik draai debian, moet ik dat dan in RC zetten want ik heb verder geen andere RC bestanden in /etc/init.d
- debianserver:~# /etc/init.d/proxyper start
- -bash: /etc/dnet/proxyper: command not found
- debianserver:~#
Heb jij ook nog iets met rechten gedaan?
[ Voor 24% gewijzigd door vanderwal op 18-07-2005 23:49 ]
The difference between stupidity and genius is that genius has its limits
Maar dat opstart script dat heb ik in nano geplakt en opgeslagen als /etc/init.d/proxyper
dan heb ik nog dat stukje van:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| #!/bin/sh
#
# For the 0, 1 and 6 runlevels (halt, single-user and reboot respectively):
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc0.d/K10proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc1.d/K10proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc6.d/K10proxyper
# For the 2, 3, 4 and 5 runlevels: (runlevels 7, 8 and 9 are also valid, but not many unix variants have them)
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc2.d/S90proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc3.d/S90proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc4.d/S90proxyper
ln -s /etc/rc.d/init.d/proxyper /etc/rc.d/rc5.d/S90proxyper
# end! |
Waar moet ik dat opslaan?? ik draai debian stable
de proxyper staat hier:
/usr/bin/proxyper/proxyper
en het opstart script staat hier:
/etc/init.d/proxyper
en moet er misschien ook nog code gewijzigt worden in dat opstart script?
[ Voor 6% gewijzigd door vanderwal op 19-07-2005 14:05 ]
The difference between stupidity and genius is that genius has its limits
Maar nu heb ik geprobeerd de stats aan de praat te krijgen en krijg ik het volgende:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
| debianserver:/etc/ppstats# perl -w ppstats-rc5-7.1.pl -debug Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 1294. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 1306. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 1328. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 1344. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 1637. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 1679. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 1754. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 2610. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 2674. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 2749. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 2777. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 2858. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 2888. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 2967. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 2997. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 3084. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 3293. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 3344. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 3457. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 3522. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 3534. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 3538. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 3556. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 3662. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 3992. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 4043. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 4154. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 4219. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 4231. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 4235. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 4253. Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 4357. Personal Proxy Statistics v7.1 Debug is enabled. Runtime information will be sent to STDERR. debug: Entering init() ... debug: Reading initialization file ppstats-rc5.ini ... debug: team=University of Southern Maine Computer Users Group debug: teamhome=http://usmcug.usm.maine.edu/rc5/ debug: teamid=263 debug: uselogo=1 debug: logdir=/usr/bin/proxyper/ debug: logpre=pproxyrc5pkey debug: logsuf=log debug: processziplogs=1 debug: logzipsuf=log.gz debug: logtmpsuf=log.tmp debug: logdecompressor=gzip -d -c debug: maxdays=365 debug: htmldir=/var/www/apache2-default/ debug: icondir=icons/ debug: htmlteam=index.html debug: htmlexec=exec.html debug: htmlmail=byemail.html debug: htmlhost=byhost.html debug: htmlos=byos.html debug: htmlcpu=bycpu.html debug: htmlver=byver.html debug: htmlfull=byfull.html debug: htmldomain=bydomain.html debug: htmlhour=byhour.html debug: htmldate=bydate.html debug: htmlweek=byweek.html debug: htmlmonth=bymonth.html debug: htmlyear=byyear.html debug: htmldayofweek=bydaywk.html debug: htmlindvemail=index.html debug: htmlemailhist=emailhist.html debug: htmlhostsbyemail=emailhosts.html debug: htmlindvhost=index.html debug: htmlhosthist=hosthist.html debug: htmlemailsbyhost=hostemails.html debug: css=ppstats.css debug: cachefile=rc5-dns.cache debug: cachedays=30 debug: gnuplot=/home/rc5/proxy/gnuplot debug: gnuplotconfig=gnuplot.ini debug: gnuplotdata=plot.data debug: gnuplotoutput=plot.gif debug: usecounter=1 debug: counter=/cgi-bin/Count.cgi?ft=0|tr=1|trgb=000000|srgb=00FF00|prgb=993333|md=8|dd=D|comma=T|df=rc5.dat debug: showbyhost=1 debug: chartlinestyle=2 debug: chartwidth=520 debug: chartheight=400 debug: dayaverage=21 debug: movementdays=7 debug: maxrows=100 debug: dayshist=6 debug: blockhistory=21 debug: useheaderbanner=0 debug: usefooterbanner=1 debug: conshosts=1 debug: colorlastseen=1 debug: lastseenwarningtime=86400 debug: lastseencriticaltime=604800 debug: lastseenwarningcolor=888800 debug: lastseencriticalcolor=BB0000 debug: moveupcolor=009900 debug: movedowncolor=990000 debug: usemetarefresh=1 debug: metarefreshperiod=900 debug: backgroundcolor=FFFFFF debug: linkbarcolor=EEEEEE debug: linkbartitlefontcolor=000000 debug: sectiontitlebarcolor=770000 debug: sectiontitlefontcolor=FFFFFF debug: sectionlowlightcolor=EEEEEE debug: sectionhighlightcolor=FFFFEE debug: sectionnotefontcolor=000000 debug: historycolor=770000 debug: avehistorycolor=333399 debug: ndayhistorycolor=3333FF debug: textcolor=000000 debug: linkcolor=993333 debug: visitedlinkcolor=333399 debug: activelinkcolor=999999 debug: fontstyle=Arial, Verdana, Helvetica debug: Exiting init() ... debug: Entering collect_data() ... debug: Entering resolve_hosts() ... debug: Entering read_host_cache() ... debug: No DNS cache file found, this could take several minutes ... debug: Writing DNS cache file rc5-dns.cache ... debug: Wrote 0 host cache entries ... debug: Exiting read_host_cache() ... debug: Reading domain consolidation file rc5-domain.cons ... debug: Read 13 domain consolidation entries ... debug: Reading IP consolidation file rc5-ip.cons ... debug: Read 3 IP consolidation entries ... debug: Resolving Email to Host and Host to Email participation ... debug: Exiting resolve_hosts() ... debug: Entering lookup_rank() ... debug: Exiting lookup_rank() ... debug: Exiting collect_data() ... debug: Entering write_css() ... debug: Exiting write_css() ... debug: Entering write_index() ... Can't exec "/home/rc5/proxy/gnuplot": Onbekend bestand of map at ppstats-rc5-7.1.pl line 4523. Personal Proxy Statistics : Cannot execute /home/rc5/proxy/gnuplot /var/www/apache2-default/gnuplot.ini (-1) |
het met apt-get install gnuplot gnuplot geinstalleerd. Maar hij maakt ook geen stats aan, dat zal wel door deze melding komen
1
| Unrecognized escape \k passed through at ppstats-rc5-7.1.pl line 1294. |
The difference between stupidity and genius is that genius has its limits
(locate gnuplot | more)
"The trouble with quotes from the Internet is that you can never know if they are genuine." - Elvis Presley | Niet met me eens ? DM ME
Can't exec "/home/rc5/proxy/gnuplot": Onbekend bestand of map at ppstats-rc5-7.1.pl line 4523.
Personal Proxy Statistics : Cannot execute /home/rc5/proxy/gnuplot /var/www/apache2-default/gnuplot.ini (-1)
je hebt hier nog niets aangewijzigt als ik de foutmelding zo zie.
1
2
3
4
5
| gnuplot> set terminal gif transparent interlace size 520,400 xFFFFFF x000000 x000000 x770000 x333399 x3333FF
^
"/var/www/apache2-default/gnuplot.ini", line 13: unknown or ambiguous terminal type; type just 'set terminal' for a list
Personal Proxy Statistics : Cannot execute /usr/bin/gnuplot /var/www/apache2-default/gnuplot.ini (256) |
Wie heeft hier eigenlijks allemaal pproxy met ppstats draaien onder linux (debian)?
The difference between stupidity and genius is that genius has its limits
en staat gnuplot in /usr/bin?
[ Voor 15% gewijzigd door MeneerKrab op 20-07-2005 23:18 ]
Verwijderd
ik heb het commando whereis gnuplot gebruikt
met de volgende resultaten
[/quote]
debianserver:/var/www/apache2-default# whereis gnuplot
gnuplot: /usr/bin/gnuplot /usr/lib/gnuplot /usr/share/gnuplot /usr/share/man/man1/gnuplot.1.gz
debianserver:/var/www/apache2-default#
[quote]
Ik denk dat dit niet juist is omdat hij nog steeds niks opstarten kan.
maar ik heb als die andere opties ook geprobeerd en dit werkt ook niet
Verwijderd
dit is de code waneer ik ppstats script uitvoer
1
2
3
4
5
| gnuplot> set terminal png small color
^
"/var/www/apache2-default/gnuplot.ini", line 15: invalid color spec, must be xRRGGBB
Personal Proxy Statistics : Cannot execute /usr/bin/gnuplot /var/www/apache2-default/gnuplot.ini (256) |
het lijkt wel of er iets mis is met gnuplot maar ik kan er niet achter komen wat