Search Results: "spa"

28 July 2006

Piotr Roszatycki: VSTi on Linux

I've just installed dssi-vst. I tried to use Linux as music instrument one year ago, but it failed. It was not so hard just now. I googled and found very usable site about VST on Linux. I did not receive the USB-MIDI connector yet, that I bought on Allegro , so I used the vkeybd. It was pretty cool. The first instrument that I tested was SUPERWAVE. I started the jack-dssi-host dssi-vst.so:SUPERWAVEP8.dll and the instrument appeared as another MIDI and audio client in JACK Audio Connection dialog. Now I'm missing FL Studio on Linux badly...

Joerg Jaspert: Little changes

Today aj applied two patches to the dak code running on ftp-master i supplied. One got the part in dak that processes NEW up to reality for non-free (well, non-main) debian-installer components, they are now able to go in. The other, more interesting one, affects the mails people receive when a NEW package is accepted. Those now contain an added paragraph, basically looking like the following:
   Override entries for your package:
   foo.deb - optional devel
   bar.udeb - extra admin
   foo2.0-1.dsc - source interpreters
That means you can now directly see if you have a different opinion of the override entries and change your package, avoiding a “Override disparity” mail with your next upload. And just because it was a nice rainy (and cold!) day today, I also went and rejected those two old packages we had in the queue. rte, real time encoder, was the first, and looks like it wont ever get included in Debian, containing non-free code. The other, more flame-attached package, is mplayer - which may get into the archive in the future, but needs a lot of work before that can actually get true. Now - people only need to stop uploading NEW packages, and we are all fine. :)

Lars Wirzenius: Debian: Project Ummikko

How good is Linux as a tool for the uninitiated, really? When journalists review Linux, they usually concentrate on the initial installation experience. Given their deadlines, that's logical: they don't often have time to spend months on using it, so installation is all they have time for. I wanted to know how good Linux, or more specifically Debian with GNOME, is for the uninitiated, or more specifically, for someone who has been using Windows for a number of years, and switches to Linux. I'm specifically uninterested in the installation experience. To see what it is like, I recruited a friend of mine, and gave her my old laptop with Linux pre-installed and pre-configured. She has agreed to try switching all her computer use to Linux, and tell me about any problems she has. We'll do this for several months, to make it realistic. Anyone can suffer through a week in a new computer environment. She's now used Linux for a bit over a week. The initial session, when she tried out the new computer at my home, went pretty well, with only a couple of real problems. Here's an edited version of the notes I made:
Bringing up the network (the laptop is configured to use NetworkManager): She found the networking subfolder of the computer folder in GNOME: "Why does it say 'Windows Network'? And why is that empty?". Later: "Why does 'Network tools' not configure the network?". She doesn't know if configuring network in Windows would be as bewildering, never having done it. She can't find anything useful about network configuration in the GNOME help system. Eventually I point out the Network Manager icon in the notification area. She selects a wireless network to connect to and enters the WPA password I give her. She then gets the GNOME Keyring dialog and doesn't understand what it is, wondering why she needs to give the WPA password a second time. She then proceeds to open some windows. "Minimization works, good." She is happy that there is a task bar at the bottom of the screen, and happens to find the "Show desktop" button there as well: "Oh, you can hide all the windows here if you have many." She finds mplayer and thinks it looks OK. She comments that she doesn't really care what player she uses, she uses several under Windows, too, and all of them have quirks. XChat has too many networks to choose from at startup. She's never had to choose an IRC network before, IRCnet being the default for Mirc (or the Mirc installation she has, anyway). She wonders why XChat didn't ask for a server to connect to after selecting the right network (XChat has a lot of servers configured for each network and chose one of them). She continues to configure XChat: "Oh Lord, NO spell checking." She finds the color selector in XChat (the GNOME or GTK+ default one) to be very confusing. The "Nicks not to highlight on" setting is bewildering, does it mean that XChat highlights by default all nicknames, even for other users? She'd like "shut up completely" setting for XChat sounds. Giving ops from a popup is intuitive. XChat in general seems intuitive to her. Next, Bittorrent, using the GNOME torrent downloader. The .torrent file is saved directly to the desktop, which is good. The downloaded file goes there too, which is good, too. Seems intuitive enough, but doesn't seem to have very many settings: it would be nice to be able to prioritize different parts of a multi-file download. She also can't get it to continue a download after restarting the client (possibly related to multi-file torrents). Next, OpenOffice.org. The Windows version doesn't split up into Base, Writer, Impress, etc, but finding the interesting one (Writer) is no problem. That Abiword was installed, too, was a bit confusing. Totem: space doesn't play/pause (except in full screen mode). Sound volume control is a bit confusing, since it has to be done using multiple slidebars (master, pcm, etc) in the GNOME sound control dialog, and also in Totem. After maximizing Totem, quitting it, restarting it, the window is now as big as the whole desktop (minus top and bottom panels), so maximizing and un-maximizing doesn't seem to have much effect, which is weird.
Other problems have surfaced since. The big one was that I had configured a simple firewall for her that didn't let anyone connect to her laptop, meaning that torrenting was not working very well. I use the same firewall settings on my own laptop, but since I mostly torrent for Debian's ISO images, and those have really fast seeders, I've never noticed that I don't torrent outward. Ah well. She also doesn't like the GNOME torrent client very much. It lacks ways of monitoring and controlling the torrenting process that she cares about: seeder and peer counts especially, or (but less importantly) changing the order in which parts of a multi-file torrent are downloaded. We tried installing Azureus, but the version in Debian etch at the time seems quite broken. Firefox seems to occasionally also work very badly for her, taking tens of seconds to load pages, but this seems to be a known bug that will be fixed in the next upstream version. We'll upgrade when we can, and hope that fixes it. Firefox's default font size was too small. Same for the default window size. And sometimes, maximizing the window still doesn't make the contents become bigger (but it works under the Windows version of Firefox). I haven't seen this myself yet, but if I do and can replicate it, I'll file bugs. Another problem that was due to my bad installation: I had forgotten to install acpid, so every time she booted, she got an error message saying "Can't access ACPI events in var/run/acpid.socket". Her exact words when reporting this were: "I don't want to know. Really, I don't. But, just in case you do." That's it for now. I may write an updated report later, if there's any interest. (For the curious, I'm intentionally not naming her, to let her try the experiment in peace, rather than getting her mailbox full of well-intentioned advice on things to try or do.)

Michael Janssen: Serendipity plugin for LiveJournal markup

Serendipity is my blogging software of choice lately, but in the past I was a happy user of LiveJournal. Fortunately, now my friends at LJ can keep up to date with my current blog, because of a great event plugin which mirrors posts here on LiveJournal (configurable of course). On LJ people use markup like [lj user="jamuraa"] in order to make a handy link to the page of the livejournal user in question. I was missing that feature, so I coded up a small plugin for s9y which converts that into [info]jamuraa. This is version 0.1, which only does the user tag. It also works in comments if you enable it. In the future, I hope to add code to detect the user type correctly (on LiveJournal there are other icons for different user types). I also probably should not hotlink to the .gifs on the livejournal servers.

To install, just unzip into the plugins/ directory of your s9y installation.

Download the LJ Markup Plugin 0.1 for Serendipity

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.

Uwe Hermann: HOWTO: Install Windows XP in Debian using QEMU

This is more or less a reminder for me, most of you will probably already know how to do it...
  1. Install QEMU:
    apt-get install qemu
  2. Create a (resizable) image which will hold Windows XP. The installer chokes if the image is smaller than 1.2 GB or so, but that's not too much of a problem; the "qcow" image format will only take up as much space as is really needed, so the image will be very small in the beginning (not 1.2 GB big!).
    qemu-img create -f qcow /path/to/xp.cow 1300M
  3. Insert the install CD, and install Windows in the QEMU image:
    qemu -hda /path/to/xp.cow -boot d -cdrom /dev/cdrom -m 384 -localtime
  4. Wait.
  5. After the install has finished, shut down the QEMU/Windows; from now on you can boot it (without having to insert the CD anymore) with:
    qemu -hda /path/to/xp.cow -boot c -m 384 -localtime -k de -usb
Type "qemu -h" for more options.

Meike Reichle: What life's been like

It's been quite a while since my last post, so this will mainly be an update on what I've been up to the last weeks or even months. Overall the past time has mainly been pretty busy. It was the end of the semester, a time that always brings a lot of work, and in this case it was the end of my last semester, which adds a little extra pressure to the whole business, since I didn't only have to take care of the usual stuff, but also had to arrange for an appropriate topic for my upcoming thesis, which is always a kind of a "balancing act". Things are however looking good now and I am quite confident that I'll be able to spend the six months I have for my thesis on a subject that actually interests me, my tutors, complies with the official guidelines, has some purpose beyond getting me a Master of Arts AND EVEN has a realistic chance of actually working out! Yay academia! Apart from university work I've been kept additionally busy by my jobs, which unfortunately also both had a kind of peak during the last weeks. The problem about this is, that actually both of them were intended to be "only-jobs" since they both provided me with enough money and consumed just as much time as I could spare during the semester. But then I got accepted for both of them and absolutely couldn't decide which one to chose (one was at the university as a teaching assistant, the other at a pretty cool IT security consultant's) so I did both and have been juggling those two, my studies and actually getting to sleep/eat every now and then during the last weeks. This has been pretty exhausting, but on the bright side, I have a little spare money now to spend while the holidays. (Luckily both bosses are on a 3-4 week trip in August :)) One thing that suffered rather greatly from my very tight schedule this semester (apart from my horribly neglected sweetie of course) was my Debian/Free Software work that got almost entirely stalled ever since I returned from DC6. So I hope to be using the more quiet summer months to spend some time on this, maybe write a nice new talk and package some things I've had my eyes on for quite a while already. Oh, and I'll sleep. A LOT! PS: Last night, to celebrate the end of the semester, we went to see the Pirates of the Caribbean double feature. Hilarious!! Go see it!

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.

Felipe Augusto van de Wiel: 27 Jul 2006

Things ready to change again :o)

[Debian]
Keeping you up-to-date about my NM process, I have some good news since last time I wrote here. I was approved in the P&P! And I just sent the answers to T&S Part 1, by far, this was the most time intensive part of the NM until now. I had to fix RC-bugs, write shell script, write manpages and answer another round of questions. It is a hard part of the NM, IMHO, not because of the questions but because of the time required to prepare everything as good as possible. There is always something new to learn about Debian, how the project works, where to find information, how to help, it is really amazing. Extremadura i18n meeting is pretty close and we have a proposal to work in the debian-installer language packs (or something like that) trying to add more languages (and trying to save space or using another approach to load the languages).

Talking quickly about Brazil, August is almost there, our Debian User Group already find a place to celebrate Debian Anniversary, which is great and will allow us to prepare everything in the best way possible to have a very nice event. Translation work is a little bit delayed because CVS pserver is offline and translators without ssh access (non Debian Developers) can't work directly, we are routing our files and patches do debian-www, a huge thanks for all people helping us to get the files commited!


[Random stuff]
University classes are about to begin. Next week (August 31st), let's go for another round. I got visit from my cousing from Sao Paulo and also from my cousins from Netherlands, busy weekend (which delayed a little bit my NM answers, but it was all fun). :-)

I'm trying to get involved with DebConf Organization, we are in the middle of lots of changes. I'm working to get my packages uploaded to get them in "etch" and "in time". I'm also waiting for the new point release of Sarge (r3) so we can update Debian-BR-CDD (r1). Speaking about Debian-BR-CDD, we are ready to migrate to RT which will help to keep the tasks (DebConf Teams also use it).
Hmmm, I would like to write more about lots of things. Not right know, but certainly pretty soon. And by the way, if you don't know, the idea is to get Debian GNU/Linux 4.0, codename "etch", in time for Christmas. :-)

Michael Janssen: On the Varied Use of Free Time

Three things which I do with my free time which will have some impact or change this week: Gaming, Sleeping, Watching TV.
In gaming, I discovered a list of games which are available on computer and have AI opponents. This will probably kill some productivity as it means I discovered San Juan, a card game which I simply must buy a real life copy of. The game dynamics are perfect and it's in the "learn once, play forever" category. Hope to play this at the next board gaming night. In sleep, I am attempting to change my sleeping patterns so that I am an early riser. Generally I'm a late sleeper and late riser, but as I get older, I am finding that it is better to wake up early and get things done in the morning. I feel much more productive at the end of the day. To this end I am now sleeping at 10-11pm. [info]ceilingsarecool also appreciates the new schedule because it lines up with hers much better. In TV, I have concocted a plan to lessen the amount of TV that I watch per week. I have dubbed it the TiVo TV diet, and details are after the fold.
Continue reading "On the Varied Use of Free Time"

Adam Rosi-Kessel: That&#8217;s Not a Fan!

I’ve been doing some overdue hardware upgrades on my little server/community ISP. 500GB drives have dropped to the $200 range, and while they’re not necessarily the cheapest per gigabyte storage, it’s a so much more efficient use of space and electricity that it seems a waste to buy a smaller capacity drive. So I bought two internal 500GB drives and one external 500GB so I can have a backup some place other than the backup server in my basement, in case the house burns down or someone decides to break in and steal all the computers (note to thieves: please don’t do this). Since I’ve been burning through hard drives (literally!) at a rate of about one every six months, I decided to do something about the temperature in the case. The CPU has been hovering dangerously around 60 degrees celcius for a long while, and the drives well into the 50’s — except the one drive with its own personal fan, which is happy to hang out in the 30’s. (I’ve got three more hard drive fans en route). In any event, I’ve never bought a CPU fan before, so I just picked out a random one that seemed better than what I had. Little did I know what I was getting. When I took the new fan and heatsink out of the box, I was reminded of Crocodile Dundee: That’s not a CPU fan, mate. This is a CPU fan. Pictured below is the TITAN TTC-NK15TB/SC(RB) I bought for the low price of $31. Although this image doesn’t show the Japanese anime decoration on the top, it captures the size. The old fan/heatsink combination was about 20% the size of this one, and not nearly as shiny. I realize for all you case-modder/overclocker/slashdot/gamer types, this is probably a puny cooling apparatus, but for me it was pretty exciting. Now my hands are apparently permanently covered with blue thermal grease, and my CPU is running at a cool 40 degrees. Oh, well, here is the top view: Of course, no one ever sees that, except the person installing it.

Joey Hess: trompe-l&#39;oeil

This might just be artifacts of staring at a screen too much, but: Hmm, it may be time to write my second ever X program. Exporting random "dead" pixels to an open $DISPLAY would be so Evil.

26 July 2006

Evan Prodromou: 8 Thermidor CCXIV

Yesterday was such an insanely long day -- we woke up in a tent, had breakfast over a Treo, then released a lot of software and went to sleep in the middle of the night. It seemed like 4 days, not 1. And this morning I had to take our new mini-SUV into the shop for its first maintenance checkup. For the last 6 years, I've driven a beautiful old wp:Citro n DS station wagon, but around the time Amita June was born I decided I wanted her to learn to drive on it. Maj and I decided that that meant it had to be taken care of a little better, so I put it in storage and we bought at 2005 Hyundai Tucson. (The Hyundai people here in Quebec pronounce it like "Tux-awn", to our endless amusement.) It's weird having a new car -- like, newer than 1972. Parts are not only plentiful but inexpensive. There is a selection of multiple mechanics in my major metropolitan area that can service the vehicle. And people don't point and wave when you're driving, or stop you on the street to tell you stories about how their grandfather used to drive one on their family farm. We'll be driving the car to wt:Boston next week for Wikimania 2006, so I'm glad it went to the shop. It should be in good shape for the drive -- I hope the rest of us are. tags:

Slides Speaking of Wikimania -- I'm nowhere near ready for my presentation. Jeez, how'd it get to be almost-August already? Thankfully, no one else I've talked to is really ready to talk, either... so at least I'm not the last one to get my homework done. tags:

Software The OpenID software I did for MediaWiki went out yesterday, and I got a lot of good feedback on it. OpenID requires that some state data is stored between participating servers, and the code I wrote uses the memcached client built into MediaWiki to store it. Not optimal but it works. Well, better today than yesterday, that is. There were some pretty gruesome bugs in the implementation that were only showing up for some exceptional circumstances. So I adapted the JanRain unit tests for the other storage classes to my Memcached class, and that helped a whole hell of a lot for debugging. Yay, unit testing! Some people are still having problems with the software, though. The main thing I've found is that the key-value pair output required by OpenID for its inter-server communications is sensitive to extra whitespace thrown in. Why would there be extra whitespace? I've found that a lot of PHP libraries have bits of whitespace at the end, after the closing ?>, and that will show up in the output. Whether it matters depends on how sensitive the output format is to whitespace. In the case of OpenID, the answer is: pretty sensitive. But I'm looking forward to having some more people try the OpenID MediaWiki extension out. tags:

Wikipedia's 25th of July Spot-on satire from The Onion: Wikipedia Celebrates 750 Years Of American Independence. I quote:
  • "On July 25, 1256, delegates gathered at Comerica Park to sign the Declaration Of Independence, which rejected the rule of the British over its 15 coastal North American colonies," reads an excerpt from the entry. "Little did such founding fathers as George Washington, George Jefferson, and ***ERIC IS A FAG*** know that their small, querulous republic would later become the most powerful and prosperous nation in history, the Unified States Of America."
Does the fact that I find an Onion article funny say more about my declining humor standards, or about their recent improvements? I don't know. tags:

Four ideas I was very interested to see Tim O'Reilly's Four Big Ideas About Open Source. I think that there are some fascinating developments over the last few years that have fallen under the rubric of wp:Web 2.0, and I think they affect those of us who put our hearts and minds into Open Source software. I think this was part of his keynote at OSCON 2006, which, y'know, I'm not techically at or anything. It briefly crossed my mind, but I've got too much to do for Thermidor and Fructidor to flit off to yet another conference -- this one only tangentially involved with what I do for a living. Still, it's interesting that Open Source software and Web services are crossing paths. FLOSS has been critical for making Web services possible, but taking that up to the meta-level and seeking the same freedoms from Web apps that you expect from "regular" software... that's a Moebius strip of rights right up in there. tags:

My life as a toolbar So, sometime in the last year I started installing Firefox toolbars. The main one that's useful to me is Chris Pederick's excellent Web Developer Extension, jam-packed with little tools that make my job as a developer that much easier. But I also install, well, pernicious toolbars. Judgemental toolbars. Toolbars that make me forget what really matters and turn the Web into a horserace or a highschool popularity contest. They're horrible, and they're addicting, and I can't stop using them. The Google Toolbar has some diddly little useless gadgets that I don't give a shit about, like searching my Gmail account for the given search terms (whoopee). What I loooove, though, is the wp:PageRank indicator. PageRank, of course, is the patented algorithm developed by Google founder Larry Page to estimate the importance of a page on the Web. It's incredibly accurate and valuable and though no longer the only criteria Google uses for ranking pages, it's still critical as a measure of the intrinsic value of a page. So, there's this little wp:progress bar on the Google Toolbar that shows the PageRank of any page you're looking at. It's an apparently logarithmic scale from 1-10, with the number showing up in a popup tooltip. Creative Commons? 9/10. Ted's story about the great worldwide race? 2/10. Technorati home page? 8/10. Male Secretary? 6/10. Wikitravel's France discussion? 3/10. And so on and so on. Even worse is the A9 Toolbar, which (again) has a whole bunch of bogus boring features, but also shows the Alexa ranking of any site you're looking at. Alexa ranking isn't some egghead hooty-tooty algorithm about the importance of a page -- it's a ranking on the Big Board of who's the most visited site in the world and who doesn't matter in the slightest. So, I can see that Flickr is ranked #41 today, le Sans Fil is #347,296, and wikiHow is #2248. Alexa is a lot more coarse-grained than Google's toolbar -- it measures the traffic to a given second-level-domain, not a particular URL. So any LiveJournal or Blogger site gets LJ's entire Alexa ranking -- not very useful. Still, I've taken to thinking almost entirely in terms of PageRank and Alexa rank. It's unreasonable. Every site I go to, my eye drifts up to my toolbars to confirm my idea about it. Do I really like Achewood? Sure, but it's only got an Alexa rank around 20,000... Doc Searls's blog has a PageRank of 8, which is really impressive; but... my page for 22 Prairial (Journal/22 Prairial CCXIV) apparently has the same PageRank. Holy moly! Why could that be? (I think it has something to do with the wp:Law of 22 Prairial, but I could be wrong.) Really, putting these numbers on everything is ruining the Web for me. It's turning me into a total jerk, too. I kinda want to go back to the time when I just found stuff on the Web and didn't think, "How do I measure up?" Thankfully the Yahoo Toolbar doesn't include anything remotely like rankings... just as well. Of course, that's the reason I uninstalled it, too. I can find my way to Yahoo! Canada Greetings just fine on my own if I need to. tags:

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]

Benjamin Seidenberg: Quoted in the paper

One of my former teachers told a reporter from the local paper that I had just gotten back from Israel and he called me to set up an interview to get my views on the recent conflict. I met with him monday, and the story is now in print. I haven’t seen where in the physical paper it is, but it’s position on the webpage suggests it’s a front-page story. It’s available online here: The Pilot: War Zone: Local Residents Flee Mideast.

Erich Schubert: Fun with spam

Sometimes, spam can be entertaining:
latest .linux kernel involves
HALVES HIV/AIDS
location
Literally. From my "spammy" folder, with mails that score between 2 and 4 in my Spamassassin. Thats where most of my spam goes to. Another spam that would most likely have been blocked by greylisting - but it was forwarded via another mail box not being protected by greylisting. :-( Btw, I think greylisting could help reducing the load on master.debian.org, since it's really cheap on the CPU and disk. On my server it cut down email numbers to be handled by a huge amount. I don't have numbers on how well it works for larger mail servers though. I guess a pure sender-IP greylisting won't be too helpful, but a senderIP+destination greylisting (maybe just first 8 chars of destination, that should handle any +extensions etc.) should still work well.

David Pashley: Use Atom

Andreas, use atom rather than RSS. It has a <updated/> element for the last time the entry was updated and a <published/> element for the date the entry was published. If you want to stick with RSS, you can use the <dcterms:issued/> element for the initial published date and one of <pubdate/>, <dc:date/> or <dcterms:modified/>. Don't forget to include the xml namespace for dc and dcterms.

Jaldhar Vyas: You're Out of Touch; I'm Out of Time

John Goerzen professes not to understand the apparent inconsistencies in the Presidents positions on life issues. While I can't speak for him, I am as near to a "typical Republican" as you are likely to get around these parts and although I'm busy with other things I feel compelled to explain how they are in fact consistent.

The foundation is a belief in the innate dignity and right to life of Man simply by virtue of being a member of the human species. Therefore the default position in any case should be to protect against the unnecessary taking of life whenever there is a choice in the matter. Therefore abortion is wrong precisely it is as its defenders say a "choice." Stem cell research is also wrong on these grounds but as a clump of cells is not clearly a human being you can agree to disagree on that. Those who do think it is wrong should not be forced to participate in murder which is why the government is against Federal funding of embryonic stem cell research not against the practice altogether. (Also remember there are other sources of stem cells.)

The innate dignity of a person can be made forfeit by an act of will on the part of that person. Thus a murderer has no right to life, by his personal actions he has surrendered it. If fetuses started leaping out of vaginas and attacking people, they would forfeit their right to life too but they don't.

What John conspicuously fails to mention concerning the 30,000 Iraq civilian deaths is how they died and who killed them. In the vast majority of the cases it is at the hands of those who putatively were on their own side. So how is Bush or America morally culpable? In the few cases where Americans have deliberately caused civilian deaths, they have been punished for it. But where is the outrage when terrorists do not wear uniforms and deliberately hide amongst civilians and in religious sites? (May I note that such behavior is against the Geneva convention and UN resolutions though I'm aware such things only apply to Israel.) It is the Baath party and Al-Qaeda have right to life issues concerning the war in Iraq not the US.

You can disagree with any of these positions--even from a conservative or Republican point of view but my point is they are consistent. And I daresay being easier to understand, they resonate more strongly with the electorate than the muddled messages of the Democrats.

Hall and Oates in '08!

25 July 2006

Benjamin Seidenberg: New Box

So I’m planning a new box for college, and have come up with a tentative parts list. I am soliciting any advice and comments that people would be willing to offer. CPU: AMD Athlon 64 X2 3800+ Manchester 2000MHz HT 2 x 512KB L2 Cache Socket 939 Dual Core Processor - Retail
http://www.newegg.com/Product/Product.asp?Item=N82E16819103562
$169 (This was $289 2 days ago when I was pricing it - sweet) Motherboard: ASUS A8N5X Socket 939 NVIDIA nForce4 ATX AMD Motherboard - Retail
http://www.newegg.com/Product/Product.asp?Item=N82E16813131569
$84.99 RAM: CORSAIR XMS 2GB (2 x 1GB) 184-Pin DDR SDRAM Unbuffered DDR 400 (PC 3200) Dual Channel Kit System Memory - Retail
http://www.newegg.com/Product/Product.asp?Item=N82E16820145587
$207.00 Video: eVGA 256-P2-N553-AX Geforce 7600GT CO 256MB 128-bit GDDR3 PCI Express x16 Video Card - Retail
http://www.newegg.com/Product/Product.asp?Item=N82E16814130283
$169.99 (Before $30 mail-in rebate) Hard Drives: I was originally planning on doing 3 Western Digital Caviar SE16 WD2500KS 250GB 7200 RPM 16MB Cache SATA 3.0Gb/s Hard Drive - OEM (http://www.newegg.com/Product/Product.asp?Item=N82E16822144701, $82.99) in a RAID-5 (software) configuration but there is currently a sale on the Seagate Barracuda 7200.10 ST3320620AS (Perpendicular Recording Technology) 320GB 7200 RPM 16MB Cache SATA 3.0Gb/s Hard Drive - OEM (http://www.newegg.com/Product/Product.asp?Item=N82E16822148140) for $99.99 and I might just order three today. Enclosure/Power: Antec LifeStyle SONATA II Piano Black Steel ATX Mid Tower Computer Case 450Watt SmartPower 2.0 ATX 12V V2.0 for AMD & Intel systems Power Supply - Retail
http://www.newegg.com/Product/Product.asp?Item=N82E16811129155
$104.99 (But that’s a one-day sale price, I think it’s like $109.99 normally, though this is the 2nd day in a row it’s had a one-day sale. Both before $15 mail-in rebate). Optical Drive: Reusing my Sony DVD Burner from my current box. Not including shipping or rebates, the total price comes out as: $1035.94 Advice, comments, etc. are most definitely welcome as I don’t follow the hardware market.

Evan Prodromou: 7 Thermidor CCXIV

We had a great trip out to Park de la Yamaska and Mount Orford this weekend. Sure, it rained a couple of hours each night, so we had some wet mornings, but if you have a good tent and some half-decent rain clothes it's really not that big a deal. Park de la Yamaska is one of the closest Quebec parks to Montreal, and it borders a reservoir, so we thought it would be kind of boring. Not at all -- nice big beach, huge pine forests, lots of space for camping and a lot of trails. It was a contrast to the Fraser sector of Mount Orford that we slept at last night -- much smaller, denser deciduous forest, and the lake's beach, although really nice, was a long walk from our camp. Amita June, it turns out, is one great camper. She loves the trees and the flowers and going in the lakes. She's been really good about sleeping on the big air mattress we have, and playing in her playpen, and riding in the car. Probably going to the beach 2-3 times a day is sufficiently tiring that she doesn't have time to fuss, but I have to admit that eating pasta with her next to a campfire last night really impressed me. She's a real outdoors girl. We woke up to rain this morning, so we packed the car in a hurry and ran off to wt:Magog for breakfast instead of cooking for ourselves. As soon as we got in cell-phone range, I started getting alerts about Wikitravel -- messages from admins and notifications from the servers. Turns out our /var/ device got too full and the monitoring tool didn't detect it, so no PHP sessions were getting created. Maj and Amita June were really tolerant of my Treo-hacking over breakfast at Restaurant Jack-o -- the admins at IB and I were able to identify and correct the problem pretty quickly once we realized what was going on. It kind of put me off ever going camping again, though... I think our servers have put some sort of GPS tracking device on my person, and go kablooie as soon as they see I'm out of cell range. tags:

OpenID extension released So, I got around to checking in the OpenID extension for MediaWiki that I've been working on. It's in the extensions section of the MW Subversion repository; the code's visible here for Web-viewing pleasure. tags:

Wikimania is a-comin' Maj, Amita June and I are heading down to wt:Cambridge (Massachusetts) next week for Wikimania 2006. Wikimania is the world-wide Wikimedia conference, but it's also become a real magnet for ideas and projects that are related, like other wiki projects, open content, and community collaboration. As a member of the MediaWiki dev team, I'd probably go anyways, but I think it's a good opportunity to meet people and talk about wikis and travel, too. I'll be doing a lot of hacking at the Hacking Days pre-event, which I think will be pretty fun. From what I hear, there are a lot of cool features coming down the pike for MW over the next few months, and people really want to unveil them at Hacking Days. I'll have the OpenID extension under my arm, but I'll be curious to see what else is coming up. I'll be giving a talk about Wiki and open content travel guides: past, present, future, in a session with Jack Herrick of WikiHow. Jack's a great guy and WikiHow is an exceptional project -- I think it should be a lot of fun. Mostly I hope we get our Cambridge travel guide in shape for the conference. I think it'll be a great resource for wiki people going to the event. tags:

Next.

Previous.