Image 01

Archive for the ‘Debian’ Category

Password Safe

Friday, July 29th, 2005

I replaced today KeePass running on Wine on Linux, by MyPasswordSafe, using the Debian package. It is nice because it is a clone of PasswordSafe (initally developed by Bruce Schneier). It reads the PasswordSafe database, so I have a multiplatform password manager. KeePass is really nice, but I was annoyed to run it on Wine.

It was easy to export from KeePass to Password Safe. Just by exporting to text from KeePass, and importing in Password Safe (Import From… KeePass). After that, copying the database file is enough. MyPasswordSafe reads the version 2 database format without problem

SpamBayes on Debian

Wednesday, March 23rd, 2005

the bayesian filter integrated into Thunderbird sucks. After some time, it seems to accept most of the mails, like if it was forgetting what it learned.
So I decided to install SpamBayes. It is an official Debian package. Now the question is: how to install it.
Had a look in /usr/share/doc/spambayes, the README.txt.gz.
Firest thing to do : start the pop3 proxy server. It is /usr/bin/sb_server.py.
After that, start http://localhost:8880/ and configure the POP server.
Then, train from the Thunderbird mailboxes. Imported the junk mailbox as spam, the inbox mailbox as ham (=real messages)

Finally, just changed the POP server in Thunderbird to localhost

next, from blog.bartholomew.id.au

# Then from the “Tools“ menu select “Message Filters“ and click “New…“.
# Enter “SpamBayes“ as the “Filter name“.
# From the first dropdown list (defaults to “Subject“) select “Customize“.
# Enter “X-Spambayes-Classification“ as the “New message header“ then click “Add“ and then “OK“.
# Select the “X-Spambayes-Classification“ option from the first dropdown list.
# Select “is“ from the second dropdown list.
# Type “spam“ in the final text box.
# Under “Perform these actions“:

1. Check “Move to folder“ and select your “Junk“ folder from the dropdown list.
2. Check “Set junk status to“ and select “Junk“ from the dropdown list.

# Click “OK“.
# Repeat steps 4 – 12 entering “unsure“ instead of “spam“ in step 10. You may want to specify a different folder in step 11.1 as this is the classification that SpamBayes will give to mail it isn’t sure is spam.

To run the SpamBayes server as a deamon :
copied the script found at http://spambayes.sourceforge.net/unix.html to /etc/init.d/spambayes.
chmod a+x /etc/init.d/spambayes
update-rc.d spambayes defaults

Ok, understood that the hard way: I need to make in /root a .spambayesrc config file, with at least those lines :

[Storage]
persistent_use_database=True
persistent_storage_file=/etc/hammie.db

Otherwise my config, and all the training data, will live only for the duration of the session…

reconfigure a Debian package

Thursday, March 17th, 2005

Since the command line of Vim, when maximized, seems to go a bit under the bottom of the desktop, and show an annoying half-line, I was wondering if it was not the result of my debian package upgrade of xfree, where I enabled framebuffer kernel usage. So I searched how to reconfigure a package. The answer is to use dpkg-reconfigure
I did a
dpkg-reconfigure xserver-xfree86

some Linux and Debian tips and commands

Wednesday, January 19th, 2005

search in a serie of filenames
find . *.php | grep fetchAssoc -

to see states of acpi (battery, thermal infos)
acpi -V

acpi processor infos :
http://acpi.sourceforge.net/documentation/processor.html

Search in Debian packages
apt-cache search kernel-source-2.6 --names-only