Search Results: "mt"

30 July 2006

Andreas Metzler: switched to postgrey

As greylistd does not seem to be developed anymore and I wanted to have --auto-whitelist-clients I have switched to postgrey. I am using postgrey-integration into exim4 written by Guy Antony Halse with some minor changes to minimize the differences to my greylistd setup. - I greylist on /27 instead of /24 networks and will immediately reject invalid recipients instead of greylisting them. postgrey runs with --unix=/var/run/postgrey/socket --retry-window=4 --lookup-by-host --auto-whitelist-clients=10 --exim.
  defer
    log_message = greylisted host $sender_host_address
    !senders = : postmaster@*
    domains = +local_domains : +relay_to_domains
    !hosts = /etc/exim4/no-greylist-hosts
    !authenticated = *
    verify = recipient/callout=20s,use_sender,defer_ok
    set acl_m3 = request=smtpd_access_policy\nprotocol_state=RCPT\n\
                 protocol_name=$ uc:$received_protocol \n\
                 helo_name=$sender_helo_name\n\
                 client_address=$ substr_-3:$ mask:$sender_host_address/27 \n\
                 client_name=$sender_host_name\n\
                 sender=$sender_address\n\
                 recipient=$local_part@$domain\n\n
    set acl_m3 = $ sg \
                     $ readsocket /var/run/postgrey/socket $acl_m3 \
                            5s action=DUNNO \
                      action= 
    message = $ sg $acl_m3 ^\\w+\\s* 
    condition = $ if eq $ uc:$ substr 0 5 $acl_m3 DEFER true false 
  # add "greylisted by ..seconds" header to mail which has successfully
  # passed the greylisting.
  warn
    !senders = : postmaster@*
    domains = +local_domains : +relay_to_domains
    !hosts = /etc/exim4/no-greylist-hosts
    !authenticated = *
    message = $ sg $acl_m3 ^\\w+\\s* 
    condition = $ if eq $ uc:$ substr_0_7:$acl_m3 PREPEND true false 

Andreas Metzler: switched to postgrey

As greylistd does not seem to be developed anymore and I wanted to have --auto-whitelist-clients I have switched to postgrey. I am using postgrey-integration into exim4 written by Guy Antony Halse with some minor changes to minimize the differences to my greylistd setup. - I greylist on /27 instead of /24 networks and will immediately reject invalid recipients instead of greylisting them. postgrey runs with --unix=/var/run/postgrey/socket --retry-window=4 --lookup-by-host --auto-whitelist-clients=10 --exim.
  defer
    log_message = greylisted host $sender_host_address
    !senders = : postmaster@*
    domains = +local_domains : +relay_to_domains
    !hosts = /etc/exim4/no-greylist-hosts
    !authenticated = *
    verify = recipient/callout=20s,use_sender,defer_ok
    set acl_m3 = request=smtpd_access_policy\nprotocol_state=RCPT\n\
                 protocol_name=$ uc:$received_protocol \n\
                 helo_name=$sender_helo_name\n\
                 client_address=$ substr_-3:$ mask:$sender_host_address/27 \n\
                 client_name=$sender_host_name\n\
                 sender=$sender_address\n\
                 recipient=$local_part@$domain\n\n
    set acl_m3 = $ sg \
                     $ readsocket /var/run/postgrey/socket $acl_m3 \
                            5s action=DUNNO \
                      action= 
    message = $ sg $acl_m3 ^\\w+\\s* 
    condition = $ if eq $ uc:$ substr 0 5 $acl_m3 DEFER true false 
  # add "greylisted by ..seconds" header to mail which has successfully
  # passed the greylisting.
  warn
    !senders = : postmaster@*
    domains = +local_domains : +relay_to_domains
    !hosts = /etc/exim4/no-greylist-hosts
    !authenticated = *
    message = $ sg $acl_m3 ^\\w+\\s* 
    condition = $ if eq $ uc:$ substr_0_7:$acl_m3 PREPEND true false 

Evan Prodromou: 12 Thermidor CCXIV

I agree with Destiny -- this letter from wp:Steely Dan to wp:Luke Wilson is just excellent. If only all creative property disputes were handled this way. tags:

Hot in the City tonight It's been a hot last couple of days in Montreal -- I mean, not hot like wt:California or wt:Europe but hot enough that it feels pretty bad. According to Sacr Blues -- one of my favorite books about wt:Quebec -- Montreal has the highest variation in temperature of any inhabited place on earth -- from highs of 40C in the summer to lows of -40C in the winter. We're at the high part now. Yesterday was my Primary Caregiver ("PCG") day, so I took the opportunity to take the baby for a long walk in Parc La Fontaine, under the gigantic poplars, where it's always cool and fresh. We also went for a nice dip in the baby pool. That kept things pretty nice. Amita in the park

Bonne F te Speaking of hotness, last night was the 30th birthday party for my friend Niko Ritoux. Maj and I took the opportunity to do our first evening out as a couple without the baby -- our great babysitter Julia came by with her boyfriend Antoine and took Amita June to a jazz concert at the Theatre de Verdure in Parc La Fontaine. How great is that? Anyways, we had a good night with Niko. We went to Le 2, the teensy but uber-cool bistro-bar our friend Daran co-owns. It's in possibly the most valuable real estate in all Montreal -- the corner of St. Laurent and Sherbrooke -- but it's unassuming and doesn't have that Lower Main clubbed-out fake tan feel. We had a great dinner of "international tapas" -- the little appetizers that remind me a lot of Toqu -style gourmet micro-meals -- and lots of liquor and good fun. I saw a lot of people I hadn't seen in a while -- P.E. and his girlfriend Ode, who were living in Taiwan for a long time; Fred; Daran and his new friend Annie; Joannie; and our own lovely Italian princess the Other Annie. Daran J.F. P.E. and Joannie Niko After dinner (11:30PM!) we hustled up to Bily Kun on Mont Royal and then Plan B across the street. Nicely, for a Friday night, everything was open and airy -- Montreal bars can get so damn crowded, but in the summer everyone's in Cottage Country and there's plenty of room for dedicated barflies. I'm not sure when I got home, but I think Niko had a good time. tags:

And more time Today I spent my time creating data feeds of Wikitravel content for researchers at the University of Zurich who are doing some sort of work on the reliability and development of online travel information. I can't wait to find out how their research comes out. Maj, Amita June and I went up on the Pont Jacques-Cartier tonight to watch the last event in the International des feux at La Ronde. One of the great things about being in Mtl for the summer is this months-long fireworks festival, in which national teams compete every Saturday and Wednesday night. This is the first time I've been on the bridge for the event, and it was amazing -- much louder and bigger than when we've watched from home. Amita June, of course, was dumbfounded by the fireworks -- she gawked open-mouthed through the whole thing. I thought she'd be scared by the lights and noise and the crowd, but she loved it -- reached out and pointed for each explosion, and even said ooooooooh for the big finale. She conked out on the 8-block walk home, which gave Mama and Papa a little extra rest. tags:

GPLv3 and license compatibility According to this article on Linuxworld.com, compatibility with other licenses like the Apache 2.0 is going to be a major focus of the GPLv3 development process. I say huzzah to that. Trivial differences between licenses are a shameful waste of time and energy for hackers who have better things to do. The world needs too much good Open Source software for us to waste time with license incompatibilities. Hopefully this same philosophy will bleed over into the FDL. Creative Commons made an overture for unilateral compatibility between the Attribution and Attribution-ShareAlike licenses and the FDL, which got stony silence from the FSF. It's time to start thinking of the users and playing nice with each other. tags:

Put one foot in front of the other I nearly forgot to mention: Amita June took her first step today. She's been "cruising" (walking around holding onto furniture) for about 6-8 weeks now, and she loves walking around holding onto Mama or Papa's fingers. And she's been spending longer and longer periods standing on her own -- up to about 20-30 seconds. Today, she was standing up, and she wanted to walk so I held out my finger just a little out of her reach. She extended her arm for it, then took two little steps to get to me. Ta-da! Maj and I took turns getting her to stand up on her own then walk to us. She's only got about 3-4 steps in her right now before she freaks out and sits down, but it's still pretty amazing. tags:

27 July 2006

Enrico Zini: Tenth day in Addis

Procedure to check if all the services of Dream University are up and running If a machine blocks pings, use arping instead.
  1. Test DHCP:

    $ sudo ifdown eth0
    $ sudo ifup eth0
    $ ifconfig
    
  2. Test the DNS:

    # See if the DNS machine is on
    # The network
    $ ping -n 192.168.0.1
    # See if the DNS resolves names
    $ host www.dream.edu.et
    
  3. Test the gateway:

    # Ping the gateway
    $ ping gateway
    # Ping an outside host
    $ ping -n 10.4.15.6
    
  4. Test the proxy:

    # Ping the proxy
    $ ping proxy
    # Open a web page and see if it displays
    # See if it caches
    http_proxy=http://proxy.dream.edu.et:3030/ wget -S -O/dev/null http://www.enricozini.org  2>&1   grep X-Cache
    
  5. Test the mail server:

    $ ping smtp
    $ nmap smtp -p 25  grep 25/tcp
    $ if nmap gateway -p 25  grep 25/tcp   grep -q open ; then echo "It works"; fi
    $ send a mail and see if you receive it
    
To do more advanced network and service monitoring, try nagios:
New useful tools seen today:
wget - The non-interactive network downloader.
Special devices:
  • /dev/null:
    • On read, there is no data.
    • On write, discards data.
  • /dev/zero:
    • On read, reads an infininte amount of zero bits.
    • On write, discards data.
  • /dev/random, /dev/urandom
    • On read, reads random bits.
    • On write, discards data.
    • Difference: /dev/random is cryptographically secure, but it can hang waiting for system events
Example uses:
wget -O/dev/null http://www.example.org
dd if=/dev/zero of=testdisk bs=1M count=50
mke2fs testdisk
sudo mount -o loop testdisk  /mnt
Tiny little commands:
  • true - do nothing, successfully
  • false - do nothing, unsuccessfully
  • yes - output a string repeatedly until killed
Example uses:
while /bin/true; do echo ciao; done
Using /bin/false as a shell
yes   boring-tool-that-asks-lots-of-silly-questions
Some more shell syntax:
  • 2>&1 Redirects the standard error in the standard output
  • 2> Redirects the standard error instead of the standard output
Some people run commands ignoring the standard error:
command 2> /dev/null
This causes unexpected error messages to go unnoticed: please do not do it. What to check if a machine is very slow:
  • See if the ram is full:

    $ free
    
    If it is, you see what are the fattest programs using top, pressing M to sort by memory usage.
  • See if there are lots of programs competing for CPU:

    $ top
    
  • Check if you have I/O bottlenecks:

    $ vmstat
    
    (but I don't know how to read it)
  • For a desktop on older hardware, you can try xubuntu instead of ubuntu

More VIM command mode Command mode allows to perform various text editing functions. You work by performing operations on selected blocks of text. Some common operations:
  • y: copy ("yank")
  • p: paste
  • P: paste before
  • d: cut ("delete")
  • c: change
  • i: insert
  • a: append
  • .: repeat last operation
Some common blocks:
  • w: word
  • : paragraph
  • left and right arrow: one character left or right
  • up and down arrow: this line and the one on top or below
  • f letter: from the cursor until the given letter
  • v: selection
  • V: line selection
  • ^V: block selection
Examples:
  • yw: copy word
  • dw: cut word
  • yy: copy line
  • dd: cut line
  • V (select lines) y: copy a selection of lines
  • V (select lines) d: cut a selection of lines
  • p: paste
The best way to learn more vim is always to run vimtutor.
Installing squirrelmail To install squirrelmail:
  1. apt-get install squirrelmail

  2. /usr/sbin/squirrelmail-config and configure IMAP and SMTP. In our case, since we use IMAPS, the IMAP server is imap.dream.edu.et, port 993, secure IMAP enabled and SMTP is smtp.dream.edu.et.

  3. Read /usr/share/doc/squirrelmail/README.Debian.gz (with zless) for how to proceed with setup. A short summary:

    • link /etc/squirrelmail/apache.conf into the apache conf.d directory
    • customise /etc/squirrelmail/apache.conf for example setting up the virtual hosts, or running it only on SSL
To have different virtual hosts over HTTPS, you need to have a different IP for every virtual host: name based virtual hosts do not work on HTTPS. You can configure multiple IP addresses on the same computer: use network interfaces named: eth0:1, eth0:2, eth0:3... These are called interface aliases. You cannot setup interface aliases using the graphical network configuration and you need to add them in /etc/network/interfaces:
iface eth0:1 inet static
      address 192.168.0.201
      netmask 255.255.255.0
      gateway 192.168.0.3
auto eth0:1
This is the trick commonly used to put different virtual HTTPS hosts on the same computer.

Enrico Zini: Ninth day in Addis

SSH To enable remote logins with ssh:
apt-get install openssh-server
Then you can login with:
$ ssh efossnet@proxy.dream.edu.et
To verify the host key fingerprint of a machine:
$ ssh-keygen -l -f /etc/ssh/ssh_host_rsa_key.pub
Note: you need to verify it before logging in! More information at http://www.securityfocus.com/infocus/1806 Example ssh usages:
  • To log in:

    $ ssh efossnet@proxy
    
  • To run a command in the remote computer:

    $ ssh efossnet@proxy "cat /etc/hosts"
    
  • To copy a file to the remote computer:

    $ scp Desktop/july-18.tar.gz efossnet@proxy:
    
  • To copy a file from the remote computer:

    $ scp efossnet@proxy:july-18.tar.gz /tmp/
    
Warning about SSH: there are people who run automated scans for ssh servers and try to login using commonly used easy passwords. If you have an SSH server on the network, use strong passwords, or if you can it's even better to disable password authentication: in /etc/ssh/sshd_config, add:
PasswordAuthentication no
To log in using public/private keys:
  1. Create your key:

    ssh-keygen -t rsa
    
  2. Copy your public key to the machine where you want to log in:

    ssh-copy-id -i .ssh/id_rsa.pub efossnet@proxy
    
  3. Now you can ssh using your RSA key

If you use ssh often, read these:
proxy Problems we had today with the proxy:
  • ssl does not work. Reason: squid tries to directly connect to the ssl server, but the AAU network wants us to go through their proxy. Ideal solution: none. There is no way to tell squid to use a parent proxy for SSL connections. Solution: update the documentation for the Dream university users telling to setup a different proxy for SSL connections. Longer term solution: get the AAU network admins to enable outgoing SSL connections from the Dream university proxy. Other things that can be done:

    • report a bug on squid reporting the need and requesting the feature
    • download squid source code and implement the feature ourselves, then submit the patch to the squid people
  • Browsing normal pages returns an error of 'Connection refused'. In the logs, the line is:

    1153294204.912    887 192.168.0.200 TCP_MISS/503 1441 GET http://www.google.com.et/search? - NONE/- text/html
    
    That "/503" is one of the HTTP error codes. Explanation of the error codes:
    Reason: the other proxy is refusing connections from our proxy. Solution: none so far. Will need to get in touch with the admins of the other proxy to try to find out why it refuses connection to our proxy, and how we can fix the problem.
postfix on smtp.dream.edu.et http://www.postfix.org/basic.html Difference between mail name and smarthost:
  • The mail name is the name of the mail server you're setting up (TODO: need more details on what's it used for)
  • The smarthost is the name of the mail server that will relay mail for you.
Quick way to send test mails:
apt-get install mailx
echo ciao   mail efossnet@localhost
To configure a workstation not to do any mail delivery locally and send all mail produced locally to smtp.dream.edu.et:
  1. install postfix choosing "Satellite system"
  2. put smtp.dream.edu.et as a smarthost.
To setup a webmail: apt-get install squirrelmail (on a working apache setup). To setup mailing lists: apt-get install mailman, then follow the instructions in /usr/share/doc. Mail server issues we encountered:
  • When a mail is sent to efossnet@localhost, the system tries to send it to efossnet@yoseph.org

    Investigation:
    • "yoseph.org" does not appear anywhere in /etc or /var/spool/postfix
    • postfix configuration has been reloaded
    • postfix logs show that the mail has been 'forwarded'
    Cause: the user efossnet had forgotten that he or she had setup a .forward file in the home directory. Solution:
    rm ~efossnet/.forward
    
Apache To add a new website:
  1. cd /etc/apache2/sites-available

  2. sudo cp default course

  3. sudo vi course:

    1. Remove the first line

    2. Add a ServerName directive with the address of your server:

      ServerName course.dream.edu.et
      
    3. Customize the rest as needed: you at least want to remove the support for browsing /usr/share/doc and you want to use a different document root.

  4. sudo a2ensite course

  5. sudo /etc/init.d/apache2 reload

More VIM Undo: u (in command mode) Redo: ^R (in command mode) You can undo and redo multiple times.
To recover a lost password for root or for the ubuntu admin user Boot with a live CD, mount the system on the hard disk (the live CD usually does it automatically), then edit the file /etc/shadow, removing the password:
enrico:$1$3AJfasjJFHa234dfh230:13343:0:99999:7:::
becomes:
enrico::13343:0:99999:7:::
You can edit the file because, in the live CD system, you can always become root. After you do this, reboot the system: you can log in without password, and set yourself a new password using the command passwd.
Installing packages not on the CDs To get a package for installing when offline:
  1. apt-get --print-uris install dnsmasq
  2. Manually download the packages at the URLs that it gives you
Otherwise, apt-get --download-only install dnsmasq will download the package for you in /var/cache/apt/archives. You can install various previously downloaded debian packages with:
dpkg -i *.deb
Backups There are various ways:
  • dump (for ext2/ext3 file systems) or xfsdump (for xfs file systems). Makes a low-level dump of the file system. It must be used for every different partition. It makes the most exact backup possible, including inode numbers. It can do full and incremental backups. To see the type of the filesystems, use 'mount' with no parameters. To restore: restore or xfsrestore.

  • tar Filesystem independent. It can work accross partitions. It correctly backups permissions and hard links. It can do full and incremental backups. Example:

    tar lzcpf backup.tar.gz /home /var /etc /usr/local
    tar lzcpf root.tar.gz /
    
    To restore:
    tar zxpf backup.tar.gz
    
  • faubackup Filesystem independent. Uses hard drive as backup storage. Always incremental. It cannot do compression. Unchanged files in new backups are just links to old backups, and do not occupy space. Any old backup can be deleted at any time without compromising the others. It can be used to provided a "yesterday's files" service to users (both locally and exported as a read-only samba share...). To restore, just copy the files from the backup area.

  • amanda apt-get install amanda-client amanda-server It is a network backup system. It can do full and incremental backups. You can have a backup server which handles the storage and various backup clients that send the files to backup to the server. It takes some studying to set up. To restore: it has its own tool.

Some data requires exporting before backing it up:
  • To save the list of installed packages and the answer to configuration questions:

    dpkg --get-selections > pkglist
    debconf-get-selections > pkgconfig
    
    To restore:
    dpkg --set-selections < list
    debconf-set-selections < pkgconfig
    apt-get dselect-upgrade
    
    If you do this, they you only need to backup /etc, /home, /usr/local, /var.
  • To save the contents of a MySQL database:

    mysqldump name-of-database   gzip > name-of-database.dump.gz
    
    To restore:
    zcat name-of-database.dump.gz   mysql
    
You can schedule these dumps to be made one hour before the time you make backups.
Scheduling tasks As a user:
crontab -e
As root: add a file in one of the /etc/cron.* directories. In cron. hourly,daily,weekly,monthly you put scripts. In the other directories you put crontab files (man 5 crontab). If the system is turned off during normal maintainance hours, you can do two things:
  1. Change /etc/crontab to use different maintanance hours
  2. Install anacron (it's installed by default in ubuntu)
For scheduling one-shot tasks, use at(1):
$ at 17:40
echo "Please tell Enrico that the lesson is finished"   mail efossnet@dream.edu.et
^D
When and how to automate
  1. First, you manage to do it yourself
  2. Then, you document it
  3. Then, you automate it
Start at step 1 and go to 2 or 3 if/when you actually need it. (credits to sto@debian.org: he's the one from which I heard it for the first time, said so well).
Interesting programs to schedule during maintanance
  • rkhunter, chkrootkit
  • checksecurity
  • debsecan
  • tiger
Important keys to know in a Unix terminal These are special keys that work on Unix terminals:
  • ^C: interrupt (sends SIGTERM)
  • ^\: interrupt (send SIGQUIT)
  • ^D: end of input
  • ^S: stop scrolling
  • ^Q: resume scrolling
Therefore, if the terminal looks like it got stuck, try hitting ^Q.
Problems we had today with postfix
  • Problem: mail to efossnet@dream.edu.et is accepted only if sent locally. Reason:

    $ host -t mx dream.edu.et
    Host dream.edu.et not found: 3(NXDOMAIN)
    
    Solution: tell dnsmasq to handle a MX record also for dream.edu.et:
    mx-host=dream.edu.et,smtp.dream.edu.et,50
    
  • The problem not solved with the previous solution. Reason: postfix was making complaints which mentioned localhost as a domain name. Solution: fixed by changing 'myhostname' in main.cf to something different than localhost. Note: solved by luck. Investigate why this happened.

Problems found yesterday and today:
  • there is no way to tell squid to use another proxy for SSL connections: it only does them directly

  • if you want to configure evolution to get mail from /var/mail/user, you need to explicitly enter the path. It would be trivially easier if evolution presented a good default, since it's easy to compute. It would also be useful if below the "Path" entry there were some text telling what path is being requested: the mail spool? the evolution mail storage?

  • In Evolution: IMAP or IMAPv4r1? What is the difference? Why should I care?

  • apt-get --print-uris doesn't print the URIs if the package is in the local cache, and there seems to be no way to have it do it.

  • in /etc/apache2/sites-available/default, is the NameVirtualHost * directive appropriate there? It gets in the way when using 'default' as a template for new sites. Otherwise, one can add a new (disabled) site that can be used as a template for new sites instead of default.

  • the default comments put by crontab -e are not that easy to read.

26 July 2006

Enrico Zini: Eight day in Addis

Useful things to keep in mind when setting up a service:
  • always take note of what you do
  • make yourself always able to explain to another person what you did
  • keep a copy of the configuration files before changing them, so that you can see what you changed
  • be always able to move the service to another computer
  • make sure that it works after reboot
Example use of vim block selection:
ESC
exits insert mode.
^V
starts block selection. Move the arrows to form a rectangle.
c
change. Type the new content for the line.
ESC
gets out of insert mode, and the change will happen in all the lines.
To change network configuration with config files, edit:
/etc/network/interfaces
To also setup DNS in /etc/network/interfaces, use dns-search and dns-nameservers (for this to work, you need to have the package resolvconf):
dns-search dream.edu.et
dns-nameservers 192.168.0.1 192.168.0.2
To make a router that connects to the internet on demand using a modem:
apt-get install diald
To see the path of network packets:
mtr 4.2.2.2
Basic NAT script:
OUT=eth2
IN=eth0
modprobe iptable_nat
iptables -t nat -A POSTROUTING -o $OUT -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
What happens at system startup:
  1. the BIOS loads and runs the boot loader
  2. the boot loader loads the kernel and the inintrd ramdisk and runs the kernel
  3. the kernel runs the script 'init' in the initrd ramdisk
  4. the script 'init' mounts the root directory
  5. the script 'init' runs the command /sbin/init in the new root directory
  6. 'init' starts the system with the configuration in /etc/inittab
To install a new startup script:
sudo ln -s /usr/local/sbin/firewall /etc/init.d
sudo update-rc.d firewall defaults 16 75
Normally you can just do:
sudo update-rc.d [servicename] defaults
To have a look at the start and stop order numbers, look at /etc/rc2.d for other start scripts and /etc/rc0.d for other stop scripts To test a proxy, low level way:
$ telnet proxy 8080
Trying 192.168.0.6...
Connected to proxy.dream.edu.et.
Escape character is '^]'.
GET http://www.google.com HTTP/1.0 [press enter twice]

24 July 2006

Joey Hess: mtn stage

Back from seeing Mountain Stage record a radio show at the Paramount. Dale Jett, Tim O'Brien, the attack mandalin and bass of the Yonder Mountain String Band, Odetta (who has a commanding presence onstage even before she speaks), and Ralph Stanley & The Clinch Mountain Boys. Great fun watching Larry Groce croud them all onstage at the end and arrange an song on the spur of the moment. First time I've been to a radio show. Got me thinking to one of the first times I remember being struck by something on the radio, when we were driving up to the tobacco warehouse one night in Abington in Silas's truck, with its noxious chaw spit can, and I heard this ethereal mountian voice coming out of the radio, sounded 50 years ago and at the same time so immediate. Could have been Ralph Stanley, come to think.. After the show, I humped a dorm-style cube fridge half an hour downhill thru the woods in the dark. But that's a different story..

Bdale Garbee: cpmtools updated

As much time as I spend harping on portability, it's kind of embarrasing when one of my own packages fails to build from source on one or more architectures. Simple thinko in my use of autotools-dev, hopefully this makes the mips* crowd happy again.

23 July 2006

Evan Prodromou: 4 Thermidor CCXIV

I finally got around to doing a kernel upgrade on this server for CVE-2006-3626, the recently-announced security vulnerability in the Linux kernel. I've been using the simple workarounds for a few days, but I got around to installing a patched kernel this morning, so I did a remote reboot to restart the server. Which, of course, hiccuped. I thought the server wasn't coming up and filed a SR with iWeb, my server host, but by the time they got to it, the server was up and running again. Sometimes it just takes time. I've got a theory that the probability of a server successfully power-cycling is inversely proportional to its physical distance from the operator. iWeb is only about 15 blocks away, so I guess I lucked out this time. tags:

WikiBios del.icio.us served up a tasty wiki treat today: WikiBios. No, it's not a project to code up a Basic Input Output System collaboratively using Wiki -- although that would be real cool. Rather, it's an effort to create biographies for every living person on Earth -- whether or not they're notable. wp:Paul Auster, in his book wp:Brooklyn Follies, described a plan for creating biographies for everyday people as a business. The idea being that people like to know about each others' lives -- their family, their friends. Memorializing someone in a biography keeps them alive and immortal in a way, yet only a tiny fraction of human beings have this privilege. I hope WikiBios takes off. It seems like a good idea. tags:

Limited single sign-on on Wikitravel So, after about a week of testing on our review site, I've rolled out a single sign-on system on Wikitravel. I'm starting with a very limited test: users of any of our language versions (English, German, French, Spanish, dot dot dot) can log in to our Wikitravel Shared repository with their account from their "home" wiki. The project uses OpenID, the URL-based SSO solution that's implemented on LiveJournal, Movable Type, Zooomr, and a few other systems. Although this trial is very limited, my hope is to allow sign-on between all the language versions of Wikitravel soon, and sign-on with external OpenID-enabled services soon after. Wikimedia, Wikia, and WikiHow admins have expressed interest in installing the [[$$vote abstain http://www.mediawiki.org/ extension that makes OpenID work on Wikitravel, so with luck we'll have some very nice Interwiki Interlogin very soon. tags:

18 July 2006

Enrico Zini: Fifth day in Addis

Setting up a mail server
Background Some terminology:
MTA
Mail Transport Agent
MUA
Mail User Agent
MDA
Mail Delivery Agent
SMTP
Simple Mail Transfer Protocol
MX
Mail eXchange
POP
Post Office Protocol
IMAP
Internet Message Access Protocol
With SMTP you connect to a server and send two things: envelope and message. The envelope looks like this:
MAIL FROM: <enrico@enricozini.org>
RCPT TO: <rms@fsf.org>
RCPT TO: <linus@linux.org>
The message looks like this:
From: <enrico@enricozini.org>
To: <rms@fsf.org>
Cc: <linus@linux.org>
Message-ID: <1234567@enricozini.org>
Subject: Test mail
Hi Richard,
this is a test mail.  I'm also writing
Linus to show how to send to more people.
Cheers,
Enrico
There is no authentication. There is no encryption. Two usual types of access control:
  1. Outbound e-mail is normally only accepted from an internal network
  2. Inbound e-mail is normally accepted from anywhere
The DNS is used to find the SMTP server to use to send a message:
$ host -t MX yahoo.com
yahoo.com MX 10 smtp1.yahoo.com
yahoo.com MX 20 smtp2.yahoo.com
yahoo.com MX 20 smtp3.yahoo.com
The process of sending an E-Mail:
  1. Enrico writes an E-Mail:

    From: Enrico Zini <enrico@enricozini.org>
    To: Richard Stallman <rms@fsf.org>
    Subject: Hello from Addis
    Hi Richard,
    Addis is a wonderful city, even if
    it rains a lot.
    Bye,  Enrico
    
  2. Enrico's MUA connects to the SMTP server (for example, port 25 of smtp.aau.edu.et):

    HELO enricozini.org
    200 OK Hello enricozini.org
    MAIL FROM: <enrico@enricozini.org>
    200 OK Mail from enrico@enricozini.org
    RCPT TO: <rms@fsf.org>
    
    Here, the SMTP server performs relay control: "do we relay mail to rms@fsf.org?":
    • Outbound e-mail is normally only accepted from an internal network
    • Inbound e-mail is normally accepted from anywhere
    A target address could be refused:
    413 ERR I don't relay for rms@fsf.org
    
    In this case, the destination is not local but the recipient is accepted because I'm inside the local network:
    200 OK Destination rms@fsf.org
    DATA
    200 OK Please send message body
    From: Enrico Zini <enrico@enricozini.org>
    To: Richard Stallman <rms@fsf.org>
    Subject: Hello from Addis
    Date: Mon, 17 Jul 2006 09:49:45 +0300
    Message-ID: <124372643@enricozini.org>
    Hi Richard,
    Addis is a wonderful city, even if
    it rains a lot.
    Bye,  Enrico
    .
    200 OK Message accepted
    QUIT
    200 OK Bye.
    
  3. The SMTP server needs to find out where to send the message, using the DNS:

    $ host -t MX fsf.org
    fsf.org MX 10 mail.fsf.org
    fsf.org MX 20 mail.gnu.org
    
  4. So the SMTP server tries the first one and connects to port 25 of mail.fsf.org:

    HELO smtp.aau.edu.et
    200 OK Hello smtp.aau.edu.et
    MAIL FROM: <enrico@enricozini.org>
    200 OK Mail from enrico@enricozini.org
    RCPT TO: <rms@fsf.org>
    
    The destination is accepted because it's for a local user:
    200 OK Destination rms@fsf.org
    DATA
    200 OK Please send message body
    From: Enrico Zini <enrico@enricozini.org>
    To: Richard Stallman <rms@fsf.org>
    Subject: Hello from Addis
    Date: Mon, 17 Jul 2006 09:49:45 +0300
    Message-ID: <124372643@enricozini.org>
    Received: by mail.aau.edu.et
      on Mon, 17 Jul 2006 09:55:53 +0300
      from 10.4.15.158
    Hi Richard,
    Addis is a wonderful city, even if
    it rains a lot.
    Bye,  Enrico
    .
    200 OK Message accepted
    QUIT
    200 OK Bye.
    
  5. Now, mail.fsf.org will invoke a MDA to write the mail in Richard Stallman's mailbox.

Example of problems with mail handling:
  • Accepting inbound connections:
    • Malicious input:
      • logic errors
      • buffer overflows
      • DoS (Denial Of Service) attacks
      • Connection floods
  • Performing outbound connections:
    • Programming errors:
      • Flooding of connections
  • Performing routing:
    • Unauthorised relays
    • Mail loops
  • Writing to the local hard drive:
    • Filling up the hard drive
    • Writing to the wrong files
  • Writing to the local hard drive as root:
    • In case of error or attack, any file in the system can potentially be compromised
RFC-822 is the original standard for E-mail. RFCs are standard Internet documents. Have a look at RFC documents released the 1st of April.
postfix Common setup: "Internet site with smarthost". More difficult to maintain: "Internet site". A smarthost is a machine that will relay e-mail for you. Questions asked with "Internet site with smarthost":
  • Mail name: aau.edu.et (name used to publicly identify the mail server)
  • Smarthost name: smtp.telecom.net.et (SMTP server that will relay our e-mail)
To test a mail server:
$ telnet localhost 25
HELO me
MAIL FROM: <a@b.c>
RCPT TO: <mail@of.a.local.user>
DATA
hi
.
QUIT
By default, you find locally delivered mail in /var/mail/username. Postfix configuration files:
/etc/postfix/master.cf
configures how all the postfix components run together (man 5 master)
/etc/postfix/main.cf
Main postfix configuration (man 5 postconf)
To rewrite addresses:
  1. In /etc/postfix/main.cf:

    canonical_maps = hash:/etc/postfix/canonical
    
  2. Then in /etc/postfix/canonical you can add the rewrite rules, like:

    enrico   enrico@enricozini.org
    
  3. When /etc/postfix/canonical is modified you need to regenerate the index:

    sudo postmap canonical
    
    (same is when you change the alias file: sudo postalias /etc/aliases)
(see file:///usr/share/doc/postfix/html/ADDRESS_REWRITING_README.html) Manipulating the message queue:
mailq - List the mail queue.
Example:
mailq
postqueue - Postfix queue control
Examples:
# Like mailq
postqueue -p
# Tries to send every message in the queue
postqueue -f
# Tries to send every message in the queue for that site
postqueue -s site
postsuper - Postfix superintendent
Examples:
# Deletes one message
sudo postsuper -d 7C4D2EC0F5D
# Deletes all messages held in the queue for later delivery
sudo postsuper -d ALL deferred
Different mail queues in postfix:
incoming
mail who just entered the system
active
mail to be delivered
deferred
mail to be delivered later because there were problems
hold
mail that should not be delivered until released from hold
Mail logs are in:
/var/log/mail.log
/var/log/mail.err
/var/log/mail.info
/var/log/mail.warn
Mail delivery Mailbox formats:
  • mbox: single file, mail separated by "From " lines
  • maildir: one directory per folder, one file per mail
  • mh: similar to maildir, but not really used
Alternate MDA: procmail: allows to filter mail automatically into different folders. Mail forwarding with ~/.forward: allows to redirect mail to a different address: just put the address you want to send to in the file ~/.forward.
POP or IMAP server Installation:
apt-get install dovecot
Configuration is in:
/etc/dovecot/dovecot.conf
The main thing that is needed is to enable the mail protocols you want:
protocols = imaps
Server monitoring To make all sorts of graphs:
apt-get install munin munin-node
Example: http://munin.ping.uio.no To compute more statistics:
  • anteater
  • isoqlog
  • mailgraph
Monitor system logs: logcheck:
  • sends you mail with abnormal log lines
  • It's important to customize what is normal and you do it with regular expressions
Filtering viruses and spam clamav - Virus scanner Virus scanning:
  • Postfix gives the mail to clamav that scans it and gives it back if it's clean.
  • Strategies for infected mail:
    • silently delete it
    • refuse the mail and send a notification to the sender
    • refuse the mail and send a notification to the receiver
    • quarantine the e-mail
    • refuse delivery with a SMTP error
    • deliver with an extra header that says that it's a virus
spamassassin - Spam filter Spam scanning:
  • Postfix gives the mail to spamd that scans it and gives it back with some spam information.
  • Strategies for spam mail:
    • silently delete it
    • refuse the mail and send a notification to the sender
    • refuse the mail and send a notification to the receiver
    • quarantine the e-mail
    • refuse delivery with a SMTP error
    • deliver with an extra header that says that it's spam
  • New techniques:
    • greylisting: when you receive a mail from a host you've never seen before, refuse it with a temporary error, and accept it the second time (after some time delay). Spammers normally don't retry, and implementing retry would increase their cost of sending e-mail.
    • crossassassin: if more than some amount of your users receive a mail with the same message ID, throw it away. Sending mails with different headers would increase the cost of sending e-mail.
Man pages and sections Man pages are divided in sections:
  • man man shows all the sections of the manpages
  • man 5 postconf shows the postconf manpage in the "configuration file" section
  • Normally manpages are referred as manpage(section) (e.g. postconf(5) )

Enrico Zini: Fifth day in Addis

Samba To get samba:
apt-get install samba samba-doc smbclient
To get the Samba Web Administration Tool:
apt-get install swat netkit-inetd
The configuration is in /etc/samba:
  • One [global] section with the general settings
  • One section per share
One could use swat at http://localhost:901/ but it does not work easily on Ubuntu. To see what is shared:
smbclient -L localhost
To access a share:
smbclient //localhost/name-of-the-share
To add a new user:
sudo smbpasswd -a username
To change the password of a user:
sudo smbpasswd username
To test accessing a share as a user:
smbclient //localhost/web -U yared
Documentation:
man smb.conf
To force the user or group used to access a share:
force user = enrico
force group = www-data
To set the unix permissions for every created file:
# For files
create mask = 0664
# For directories
directory mask = 0775
Example share configuration for a webspace:
mkdir /var/www/public
chgrp www-data /var/www/public
chmod 0775 /var/www/public
Then, in /etc/samba/smb.conf:
[web]
   comment = Webspace
   path = /var/www
   writable = yes
   public = no
   force group = www-data
   create mask = 0664
   directory mask = 0775
Example share configuration for a read only directory where only a limited group of people can write:
[documents]
   comment = Documents
   path = /home/enrico/Desktop/documents
   force user = enrico
   public = yes
   writable = no
   write list = enrico, yared
Print server (CUPS) Installation:
apt-get install cupsys
Configuration:
  • On the web (not enabled in Ubuntu):

    http://localhost:631/
    
  • On the desktop:

    System/Administration/Printing
    
Example IPP URIs:
ipp://server[:port]/printers/queue
http://server:631/printers/queue
ipp://server[:port]/...
For example:
ipp://server/printers/laserjet
"This printer uri scheme can be used to contact local or remote print services to address a particular queue on the named host in the uri. The "ipp" uri scheme is specified in the Internet Print Protocol specifications and is actually much more free form that listed above. All Solaris and CUPS based print queues will be accessed using the formats listed above. Access to print queues on other IPP based print servers requires use of the server supported ipp uri format. Generally, it will be one of the formats listed above."
GRUB The configuration file is in /boot/grub/menu.lst. The documentation can be accessed as info grub after installing the package grub-doc. Quick list of keys for info:
arrows
move around
enter
enters a section
l
goes back
u
goes up one node
q
quit
/
search
Grub trick to have a memory checker:
  1. apt-get install memtest86+

  2. Add this to /boot/grub/menu.lst:

    title Memory test
        root (hd0,5)
        kernel /boot/memtest86+.bin
    
Firewall With iptables:
man iptables
# Only allow in input the network packets
# that are going to the web server
iptables -P INPUT DROP
iptables -A INPUT --protocol tcp --destination port 80 -j ACCEPT
# To reset the input chain as the default
iptables -F INPUT
iptables -P INPUT ACCEPT
Some links:
Squid Installation:
apt-get install squid
The configuration is in /etc/squid/squid.conf. To allow the local network to use the proxy:
# Add this before "http_access deny all"
acl our_networks src 10.4.15.0/24
http_access allow our_networks
To use a parent proxy:
cache_peer proxy.aau.edu.et     parent    8080  0  proxy-only no-query
Pay attention because /var/spool/squid will grow as the cache is used. The maximum cache size is set in the directive cache_dir. Information about squid access control is at http://www.squid-cache.org/Doc/FAQ/FAQ-10.html To check that the configuration has no syntactic errors: squid -k parse. To match urls:
acl forbiddensites url_regex [-i] regexp
For info about regular expressions:
man regex
Example filtering by regular expression:
acl skype url_regex -i [^A-Za-z]skype[^A-Za-z]
http_access deny skype
Transparent proxy setup: http://www.tldp.org/HOWTO/TransparentProxy.html
Problems found today Hiccups of the day:
  • swat does not run on Ubuntu because Ubuntu does not have inetd
  • swat does not allow root login on Ubuntu because root does not have a password
  • smbpasswd -a does not seem to update the timestamp of /var/lib/samba/passwd.tdb
  • cups web admin does not work on Ubuntu
  • LDAP is still not so intuitive to set up

9 July 2006

Antti-Juhani Kaijanaho: Moved

I’ve been pretty much unable to pursue any of my hobby projects for a couple of months now. One of the reasons was my move (1, 2), which thankfully is now done! I lived in student housing for almost nine years, from September 1997 until June 2006. The first three years I lived in a three-person shared apartment, and in May 2000 I moved to a two-person apartment. All this time my flatmates were assigned by the housing foundation without consulting me. Most of them were pretty decent, and none of them was really bad, but at the end I just couldn’t take it any more. When I got my last flatmate last September, I got so stressed about it that I started getting home-phobia. It was time to start thinking about moving out. In May, I found a rather nice place. It is a studio apartment with 31 square meters of living space, and includes a full bath, a small kitchen and an alcove, with a very nice view of forest and cutting. It is located less than 200 meters from my old place, and a little higher up the hill, with a much nicer view. The rent is very nice, and in general there is little to complain about the place. Did I mention the view yet? On June 1, I got my keys and brought in my spring mattress. The old place was not packed up yet, so I spent a lot of time there, but also shopped around for stuff for the new place, including a beautiful lamp. You’ve seen this picture already, but just to remind people, this is where I slept the first three weeks: [A picture of the alcove with a mattresss and a lamp.] My father visited me for a few days in the middle of June, and between the two of us we managed to pack up most of the old place. Father also disassembled my furniture, and we moved most of the pieces over. My mother then visited me on the Juhannus weekend. Neither of us have a car, so we moved a lot of stuff by sheer muscle power. She also installed the curtains that she had brought for me from her storage, and reassembled most of the furniture. The last week of June I spent moving stuff by muscle power, but it wasn’t enough, so Mother came back on June 30, helping cleaning up the old place, and Father visited again with a car and helped move the rest of my stuff. Mother also installed more curtains: in the following picture, she is sowing the curtains to make them be of the correct length: [Image] So, thanks to my parents’ immense help, I now have a hugely nice studio apartment: [A picture of the alcove as it is now]

Evan Prodromou: 20 Messidor CCXIV

No honking today; I guess there just isn't a big German population in Montreal. But, y'know, fourth place is pretty damn good, Portugal! Nothing to sneeze at. Still ahead of Brazil, for what it's worth. Tomorrow's the big finale, of course. The Paramount Famous Players on Ste. Catherine downtown is going to have a live showing, free for the first 300 people. I dunno... I guess it could be fun, but it seems a little impersonal. I think I'll be watching from Niko's again. It's easy to walk to Little Italy, or Barouf, from there. tags:

Grillr I spent the day putting together household furniture. We stopped by Canadian Tire on Tuesday to buy lawn furniture, and we got a shipment from Ikea on Wednesday. This afternoon cleared out a lot of cardboard boxes from our house. First up was Amita June's big girl bed, which she got as a present for her month birthday. Yeah, Amita turned the big one-oh yesterday (10 months!), and although we've been doing wp:co-sleeping, we want her to start learning to sleep in her own bed. (Most co-sleeping babies want to move out after about 1 year.) She got a toddler bed, which is actually pretty cute, and fits perfectly in her room. Building Ikea furniture isn't really all that fun. First, they optimize for shipping size and storage, not for ease of building (or stability), so you get some really shaky stuff. Second, the instructions have no words -- assumably to avoid translation costs -- so you have to interpret their graphical V lapuk into some kind of reasonable instructions. Fortunately, just about the time I finished building it, Maj and Amita came home from a walk. Amita had just fallen asleep, so we put her in to see how it fit. Looks pretty good to me! [image] After that, I watered my new lawn. The grass seeds I spread on Tuesday are coming up in teensity-tinesity leaves. Huzzah! Then I turned my attention to the wt:Muskoka chairs we got from Canadian Tire. These turned out to be a lot easier, and they were made from cedar wood, so they were pleasant to work with. Maj had invited over some friends for grilling, so she went to the store to buy food while I worked on the Muskokas. The baby hung out with me outside in her playpen. The chairs turned out great, and we had a nice grill. Brenda, Parise and Tony all came over. Brenda and Tony are librarians, and Brenda and Parise grew up together in wt:Moncton. The Muskokas were a hit; here are Brenda and Amita enjoying one. [image] tags:

Fireworks I can hear right now the dull thump thump tha-thump-thump of fireworks going off down at La Ronde, the amusement park in the middle of the St. Laurent River. They're the hosts of the International Fireworks Festival, which happens every summer. It's one of the great things about living in Montreal -- fireworks every Wednesday and Saturday from early June until the end of July. The festival is a competition -- national pyrotechnics teams each provide a half-hour long show on one of the nights, and then at some point after the festival they decide on a winner (I think... I've never actually checked who "won"). The fireworks are first-class, and it's just fun to have explosions over the city all the time. Tonight's team is wt:South Africa -- it's the first time there's been an African national team. Go SA! tags:

Best show ever One of the best music shows I ever went to was a "surprise" event by Camper Van Beethoven at the now-defunct Mint Platter record store on Telegraph Avenue in wt:Berkeley, California around 1990. Probably one of the next best music shows I ever went to was a surprise (for me) when Maj took me to see CVB at the Just pour Rire Theatre in Montreal in 2004, one week after we were married. (The band had recently reformed, and that night their equipment was stolen out of their tour bus in Mtl. Such a shame.) I'm just thinking about it because so many of the shows I love are on the etree section of the Internet Archive. Secret message to every taper I crabbed out because their big boom mike was blocking my view of the stage: sorry. You were right. Thanks. And what reminded me of that? The NPR Live Concert Series, aka All Songs Considered. Man, there's a lot of good music in there. tags:

One So, has anyone offered Kyle Macdonald of One Red Paperclip a marketing job yet? Guy knows his marketing. tags:

Bignose strikes again I'll be honest -- most of the time, I totally don't understand fellow piglogger Michael Bakunin's blog. Here's an excerpt from Gasoline: FD: small short position in one US refiner, and thinking about crack spreads. Does that mean something to some species of animal? I dunno. tags:

8 July 2006

Uwe Hermann: ASCII art spam

Whoa, those spammers are getting really desperate now, aren't they? Today in my inbox:
apy8       0lyk   b8xvdtfa        glb13            0uurqjl     5xju3p0jb            1uk9z
 yhak     o3vl    tytjx4ui        m6frp           64zx9238iq   128lkxk2wh           fzqpv
 mkqj     g1tn    wgd293sv       s3mnhaq        y1vvng731dsy   f39iqddc65f         5fgnwcx
 t9ba4   wg8j1      ucq8         uviyoz6        4k2g4     fo   wz0i   q7pn         hqblemz
  pu9t   1dwr       mocp         nlihfws       mm3w0           j4zb   0fzh         o6nljyq
  0luy   to8a       ljd0        5bi8 zpfh      93ab            tbpr   hztc        foza p7sf
  5vw7t a4nce       2fjr        oxto 2t0r      37v3   mxvfq0   x6qtw1j6me         ye51 b7pt
   pwtx gg5l        mtfr       h7390 0voxg     btc8   t7vj3n   twn72qv80         92sj8 8qhuc
   4xoq 9m3u        r3i0       4dgf   2k8l     o6u8   eegabt   70vrl5ukj         6bpp   u336
    9p5tqyo         ixkj       7mkcss82ko2     6dgtj    tdei   eayi tnjgi        ujh0x073p63
    jbxotva         alrs      ubvdw9kele9rs     ed7bi   vbjz   0tlb b1svn       15xh90ojyj56u
    zzfla7m       3o1jnrrc    kvlxt74rl46l1     yy5mng2kl7dj   8bmq  793jb      qzqkjf00glzsf
     e6doi        hfcqgi2t    w8bd     vydk      elqfyxtdk7g   upqf   ippbf     ca5l     cgrm
     npnrd        dzsgo4jz   q9zo       co4g       6kabvxc     sqpy    5ds54   qhpb       krpw

6 July 2006

Christine Spang: Very Much Settled (and loving it)

So I went from this: Suburban Upstate New York To this: Urban Cambridge Massachusetts It’s not called the Halfway House for nothing. The Halfway House It’s been just a couple days over two weeks, and I’m doing awesome. Loving every minute, or close to it. I love the freedom of being out on my own, love having my own schedule, love dealing with getting my own food, even don’t mind doing my own laundry. Not to say I don’t love my friends and family too. But still. Unpacking was fun. Apparently the person I’m subletting from played a tap-dancing stormtrooper in a student-written Star Wars musical. And there were… fun things left in the closet. And I couldn’t resist, if just a little. Stormtrooper It was beautiful for the first couple days of being down here, but lately it’s been not as good - muggy, hazy, too hot, etc. Though today was better than the last couple. Here’s Boston from Cambridge, two weeks ago: A Beautiful Day in Cambridge My house isn’t air-conditioned, but the Media Lab is — so it works out okay since I spend the middle part of my day there anyhow. I’ve been thinking about getting a window AC unit, but the trouble with relying solely on bike, public transport, and foot to get around is that it’s a pain in the ass to move around large objects. I love the Debian scene down here too. There are some great people, and since the rest of my college class doesn’t arrive until August, I’ve mostly been hanging out with them. There’s this bizarre feeling of connection with other Debian people. Not to mention I’d already met some of them when I was down in April. Last Friday I went out and biked around Boston with Boston’s Critical Mass. It was pretty exhilarating and fun. (This is before; I didn’t really feel like biking and taking pictures at the same time.) Before Critical Mass Boston And afterward there was an Acetarium sushi party which involved meeting Joe “Zonker” Brockmeier, who writes for Newsforge/Linux.com/etc. Yesterday I went out to visit the Boston Harbor Islands with Mako and Mika (nobody else showed up — too early or something). Mika, Mako, and Me in Boston Harbor They were pretty damn nice, if I don’t say so myself. The weather held up as decent, and although the ferry out from Boston costs money, the inter-island shuttle is free for moochers who want to cruise from island to island around the harbor. The islands weren’t even that crowded, which was surprising considering their proximity to Boston and abundance of pretty nice beaches. Of course, come August it will probably become impossible for me to hang out with Debian people 5/7 days a week. So, gotta stock up… y’know, before they kick me out and stop feeding me awesome vegetarian food…

4 July 2006

Steve McIntyre: New toy on the way

Being around other geeks is bad, sometimes. Over the weekend I went to the UKUUG Linux conference along with a fair number of the other UK Debian gang. I had a great time, although the conference clashed with the football so I missed some talks. I also saw Wookey and Luke using their TomTom sat-nav units. I couldn't resist the temptation for long, and I've just ordered one for myself too. The 510 looks like a good choice - small, runs Linux, and is apparently compatible with OpenTom.

2 July 2006

Evan Prodromou: 13 Messidor CCXIV

Honk honk honk! honk honk honk honk! I guess Portugal just won the quarterfinals against England for the wt:World Cup 2006. We have a huge Portuguese community in Montreal, and the team's victories this year at the Cup and in 2004 for the Euro cup have been a huge source of pride. I'm not a big soccer fan, but I do love the fact that Mtl's cultural communities literally fly the colors, packing the bars and cafes and driving around honking after a win (or even a big goal). Italy, Portugal, Brazil (mostly Portuguese again), France... I even saw some cars with Ukraine flags. It's a cool part of being in such a multiculti city. tags:

Moving Day One of the things that's crazy about being in Montreal in the summer is that there's just too much to do. On any given day, there are just a billion jillion activities and things to do. Around May, the vegetation here just explodes into frenetic growth -- trying to get a full cycle of life in in our small sub-arctic growing season. Quebec's forests are as dense and overgrown as any Amazonian jungle. I think humans' social schedule during the summer is like that, too: trying to get a full year of fun into 4-5 months. Take today, for example. It may be 13 Messidor to us citoyens, but for the people of the North today is 1 July, officially wp:Canada Day. The national holiday of Canada, it's celebrated from Coast to Coast by lots of people who love Canada and want to celebrate their Canadianness. And then there's Quebec. Sure, Montreal has some nice Canada Day events, but there's something furtive about them. Even though somewhere north of 45% of Quebec's population wants to remain in the union, it's still rare to see overt Canada Day celebrations, outside the sponsored events. But for most Quebecois, July 1 is wp:Moving Day -- the day when everyone's lease is up, by government mandate, and those people who are going to move this year go to their new homes. There are moving vans in the street and people queued up at the rental places -- typical time to rent is 2-4 hours. We moved on Moving Day last year to our new, great apartment, and it's nice to be here. This may be the first Moving Day we've been here that no one's asked for help moving. That might say something about the stage of life we're in -- people are buying their own homes and settling down -- and it may say something about our reliability as friends since we had a baby. In any event, here's one Moving Day when any moving I do is on my own. tags:

Jazz There was a Canada Day parade this morning on the other side of town (where the anglophones and federalists live...), but we were too tired to go. So we instead skipped down to Place des Arts to visit the free outdoor parts of the Montreal Jazz Fest. Case in point with Montreal festivals in the summer: it was big, with tons to do, and we were totally unable to deal with doing it. We had some Molson Dry, saw some music playing and Amita June clapped along (she's a great clapper!), then we had quiche and a salmon wrap and some Molson Dry, then Amita June went and played in the kids' area, then we saw some more music, then some samba, then klesmer, then off to home. Good time, but tiring. I feel obliged to enjoy Montreal summers, but sometimes it's just too much. tags:

France Honk honk! Honk honk honk honk honk!! So I guess France just beat Brazil to get into the semi-finals. Is it actually allowed to have a World Cup without Brazil in the semi-finals? I thought it was a rule. Niko, my French Friend, was complaining last week that the French fans were just loitering around the bars on St. Laurent rather than being boisterous like other fans did when their teams won. Not today: on our way back from Jazz Fest, we saw a huge tow truck with a gigantic tricolor draped from the back trolling up and down Mont Royal. Kind of a bummer for the Brazilians -- and the rest of us who enjoy Brazil fans' antics. But I guess that's the way it goes sometimes. tags:

Fancruft I don't remember what I was looking up on Wikipedia, but there was some fancruft on the page and I ended up wasting half an hour reading Simpsons articles. I want my half hour back, Wikipedia! tags:

Marilynne Robinson When I was a freshman in college, one of my favorite instructors, Michael Near, assigned "Housekeeping" by Marilynne Robinson as an English 1B assignment. I found the story haunting and beautiful and altogether excellent. I tried digging up more of her work at the UC Berkeley main library, and all I could get was "Mother Country" -- her indictment of stratified society and nuclear energy. In it, she promised never to write fiction again. So I was stunned to read a quote by Robinson in Shannon's Livejournal. Wow. Apparently wp:Marilynne Robinson has written a book of essays in 1998 and a Pulitzer-Prize-winning novel in 2005. Incredible. Why was I not informed? I've got some reading to do. tags:

Full-text feed So I've got a full-text feed now. Hopefully it works for those folks with Planet aggregators or whatever, and especially for Joey Hess, who hates the stuff below the fold. Some corrections that I made to older posts seem to have fudged up some planets, notably Planet Debian, for which I'm kind of bummed. But I think I've fixed the problem, and this should be the only time it happens. Unfortunately, since I write a lot, it means a lot of scrolling. tags:

1 July 2006

Jeff Licquia: LSB Distro Testing

I’ve seen several requests for a simple set of instructions that test a distribution against the LSB. I wrote some Debian-specific instructions in a mailing list post back in October, and thought they’d do better as more general instructions. Before you start, you have to find out two things about the distribution you want to test: Go to the LSB download page and start downloading everything under the Runtime Tests for the LSB version and architecture you want to test. Make sure you don’t get the betas unless that’s what you want to test. You will also need the lsb-python package from the Application Battery list. Install all of these packages. Once all of the packages are installed, run the tests: Most of the tests are quick, taking less than 15 minutes usually per test. The runtime test takes somewhere in the neighborhood of six hours, and often looks like it has hung. Don’t assume the runtime test has hung until it’s run overnight. If you’re using an emulator, don’t give up on runtime until it’s run for at least 24 hours. The tests create two kinds of files: journal files, and the official runtime report (created by the runtime test). Where you ran the tests, look for files with names starting with “journal” in the current directory, or for paths like results/0001e/journal. The C++ tests create a directory called “qmtest_libstdcpp_[version]”. There’s a handy utility called tjreport in /opt/lsb/bin; run that on the journal to get a quick summary of the results. If you want to post results, use tjreport. The official runtime report (in /home/tet/test_sets/results) has some additional information: a list of FIP (Further Information Provided) results. What to do with failures: First, make sure it’s really a failure of the environment, and not a failure of the tests. The LSB publishes a list of official waivers for test failures; check that your failures aren’t on that list. For failures not on that list, Google is your best resource; most likely, someone else has experienced the same failure, and will have more information about it. If you really can’t figure it out, come over to one of the LSB’s mailing lists and ask around. On Xvfb: The Xvfb versions shipped with most distributions have bugs that can cause problems. Anything running XFree86 will likely not be able to complete the X tests, and anything running X.org may see a number of failures. Because Xvfb is not required by the LSB, you can replace Xvfb with one that doesn’t have these bugs. Recent Debian xvfb packages for etch don’t have these bugs, so Debian and derivatives can use them for testing. (The sarge backport of Xvfb can be installed on vanilla sarge without upgrading any of the other XFree86 packages; missing packages can also be pulled from the sarge backport without affecting the packages that do ship.) Please post questions, problems, criticisms, etc. in the comments. A version of this might end up on the LSB site someday, so any improvements would be appreciated.

Kenshi Muto: Taking a rest: live-f1 and boodler packages

<feeling blue> I'm bit bored and tired to fight against CUPS bugs. I've dedicated most of my free time to see reports, to try reproducing, to try solving, or to ask it to upstream.
I'm frustrated now, but not by upstream or its source quality (of course I hope it becomes more better). My frustration is that most people only nag us even they're using 'unstable' and have a skill. Though Roger, Henrique, Martin Pitt/Eric, and me are working as possible as we can, our human resource isn't enough. Investigating bugs, checking a source code, and making a patch are very helpful for us. Thanks. </feeling blue> So, I was making some packages for recreation. Because I haven't a motivation to maintain them on Debian, I won't ITP.
live-f1
I saw Newsforge's article. Although I'm not so interested in Formula-1, my friends love it. Because I built this package on Sarge, it isn't apt-get-able on unstable environment by missing libneon24. Get libneon24 from Sarge or rebuild it on unstable. You need an account on Formula-1 Web site to see.
boodler, boodler-soundlibrary
I saw another interesting article. I was looking for good background sounds, but not musics. Boodler is cool sound generator for its purpose. My favorite sound is 'frogs.Cheepers'. See details on /usr/share/doc/boodler/catalog.html.
You can get the packages from my repository.
deb http://kmuto.jp/debian/mtu unstable main contrib non-free
deb-src http://kmuto.jp/debian/mtu unstable main contrib non-free

30 June 2006

Martin F. Krafft: Dealing with SpamAssassin and users authenticating to a mail relay

This problem related to SpamAssassin and SASL-authenticated road warriors has bugged me for a while. Micah has a patch that alleviates the problem, but it's not in upstream, and even though upstream does plan to address the problem he raised, that's down the road. Today I figured out a solution, based on the smtpd_sasl_authenticated_header configuration option available in Postfix 2.3 and later, using header_checks to rewrite headers. In the following, lines are folded for readability. The regular expression needs to be on one line, with newlines and spaces at the beginning of the line removed:
/^Received: from ([-._[:alnum:]]+ \([-._[:alnum:]]+ \[[.[:digit:]] 7,15 \]\))
    [[:space:]]+\(Authenticated sender: ([^)]+)\)
    [[:space:]]+by (seamus\.madduck\.net) \(([^)]+)\)
    with (E?SMTP) id ([A-F[:digit:]]+)
    [[:space:]]+for <([^>]+)>; (.*)/
  REPLACE Received: from auth sender $2 by $3 ($4) with $5 id $6 for <$7>; $8
Note how the host name is left in to ensure that the right header is replaced. This will replace the problem-causing Received line with the following:
Received: from auth sender madduck@madduck.net by
  seamus.madduck.net (postfix) with ESMTP id B4CD640343F for
  <madduck@madduck.net>; Fri, 30 Jun 2006 17:50:02 +0200 (CEST)
Now SpamAssassin mentions UNPARSEABLE_RELAY, but apparently that's worth 0 points, and if I wanted, I could fix that too. Now I would like to be able to do the same for clients that authenticate with TLS certificates, but I cannot figure out how.

Next.

Previous.