Bayes Filters

11/01/02 | by david2 [mail] | Categories: Geek
Bayes needs perl module: DB_File:

1) Berkeley DB must be installed -- it installs in BerkeleyDB.x.x in /usr/local
2) when compiling DB_File -- you must edit config.in and enter the version of Berkeley you're using for LIBS and INC.
3) perl Makefile.PL ; make ; make install
4) for Bayesian filter, a directory called Bayesian includes process.pm needs to be in the @INC path of perl -- I put it in /usr/local/bin/Bayespam and did a ln -s to /usr/local/lib/perl5/site_perl (or something similar)

5) create the database:
bayes_process_email.pl \\
--good /export/home/vpopmail/domains/graves.com/dgraves/Maildir/cur \\
--spam /export/home/vpopmail/domains/graves.com/dgraves/Maildir/.spam/cur \\
-o /export/home/dgraves/bayes_rating.db

6) edit and install the .qmail file for whatever mailbox you want this to work on

symbols

11/01/02 | by david2 [mail] | Categories: Geek
® alt 0174
© alt 0169
™ alt 0153

pkginfo

10/31/02 | by david2 [mail] | Categories: Geek
pkginfo will give info on an installed package
pkgchk -l will give info on the installed pieces of a package

ipfilter

10/31/02 | by david2 [mail] | Categories: Geek
ipfilter --
allow in tcp/udp from any to any port = 22 keep state flags S allows a syn in, and everything else in that session, even with a
block quick in all
block quick out all right behind it.

Theory

10/31/02 | by david2 [mail] | Categories: General
In theory there is no difference between practice and theory but in practice there is.

32 or 64 bit sparc

10/30/02 | by david2 [mail] | Categories: Geek
isainfo -v will tell you which your architecture is

DNSQ -- djb's dns query

10/30/02 | by david2 [mail] | Categories: Geek
dnsq by default does not request a recursive query -- so it's only good for testing authoritative servers -- just an fyi

How to use Rsync

10/30/02 | by david2 [mail] | Categories: Geek
What a cool program

Copying directory foo and its contents from here to there :

rsync -avz /dir/foo remote:/dir/bar < -- you end up with a directory /dir/bar/foo

rsync -avz /dir/foo/ remote:/dir/bar < -- you end up with foo's files in /dir/bar

to use ssh as transport: export RSYNC_RSH=/path/to/ssh

prng not seeded

10/30/02 | by david2 [mail] | Categories: Geek
On Solaris 8, you have 3 choices
1) run prngd
2) run egd
3) use the builtin function with openssh and openssl < --- need to find out about this -- it has to do with /usr/local/etc/ssh_prng_cmds, but how to configure -- i think i need to compile rather than snarfing from sunfreeware.com.

Ok -- the deal is that if /dev/random doesn't exist, the configure script on openssh will detect this.

So -- if you're running Solaris 8, and you don't want to load prngd or egd, you can't use the openssh package. So, you install openssl via pkg if you want, and then compile openssh.


http://sunsolve.sun.com/pub-cgi/retrieve.pl?doc=fsrdb%2F27606&zone_32=%2Fdev%2-%3Cbr%20/%3EFrandom

http://bucc.buu.ac.th/~jim/sysadmin/openssh.html

http://www.sunmanagers.org/pipermail/summaries/2001-March/000365.html

http://www.unixguide.net/sun/ssh_installation.shtml

http://www.computing.net/solaris/wwwboard/forum/2335.html

ftp://ftp.ca.openbsd.org/pub/OpenBSD/OpenSSH/portable/INSTALL

Fun Dietary Facts

10/29/02 | by david2 [mail] | Categories: General
Alcohol is 7 calories per proof per ounce.

10 calories / pound of weight / day = maintenance amount of caloric consumption

Pages: << 1 ... 134 135 136 137 138 139 140 141 142 143 144 >>

January 2020
Sun Mon Tue Wed Thu Fri Sat
 << <   > >>
      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  

Search

The requested Blog doesn't exist any more!

XML Feeds

powered by b2evolution free blog software