jd:/dev/blog

Aller au contenu | Aller au menu | Aller à la recherche

jeudi, juillet 9 2009

Upgrading to dovecot 1.2: hello Sieve!

Last year, I told you I wanted to use Sieve to filter my mail. I did not switch, because of the lacking implementation of some Sieve features inside Dovecot, my preferred IMAP server.

After that disapointement, I kept my 8 years old mail setup, being fetchmail running on my workstation and throwing the mails in procmail, then using mutt locally to read the maildirs. But that's over.

As I told you yesterday, I got a laptop to replace my workstation. It was not possible to continue using such a mail setup, since my laptop can be offline, and so would be my mails.

So I decided to upgrade Dovecot to 1.2. I used the dovecot-1.2-work Subversion branch of our lovely Debian maintainers, and built a Debian package for Lenny. The upgrade from 1.1 was almost painless, since the configuration file did not change heavily.

Then I started to write my little Sieve script. Sieve is a very nice language. Almost user friendly. So in 20 lines I rewrote all my procmail stuff, matching things like List-Id with regex to put the mails automagically in the right folder. I reconfigured mutt to use IMAP, and it works fine. I even reimported my old Maildir via IMAP using mutt too.

I am now a happy IMAP user.

For people wondering why I wanted to switch away from procmail to Sieve: the reason is that Sieve script can be uploaded remotely via managesieve. This means you do not need FTP/SSH/whatever access to put your script. You can, for example, use connect-sieve or the Sieve plugin for Thunderbird/Icedove.

mercredi, juillet 8 2009

New laptop: Lenovo Ideapad U330

After some though, I decided to switch from my big dual screen workstation (called abydos) to a laptop system. I used this workstation for more than 8 years now (with 2 massive hardware changes) on a desk. But my flat not being that big (you know, Paris, it's expensive to rent), I decided to remove my desktop in favor of my guitar setup. Anyway, doing geek stuff all the day at work, I was not sitting at my desk very often.

I've bought a Lenovo Ideapad U330, which is a really nice machine. It's not like a real ThinkPad (ThinkPad are more expensive) but it's still very nice. It has almost everything a good laptop would have, dual core, 4 GB RAM, 320 GB hard drive, WiFi up to 802.11n, DVD writer, webcam, HDMI, etc. And a not-too-small-not-too-big 13.3" LCD display. It's quite light with only 1.9 Kg, but IMHO, I still think it's a bit heavy. YMMV.

I've installed Debian on it (of course) and everything works like a charm. There's only a little bug with the webcam, since the image is upside down. But I'm pretty sure this is already fixed in kernel > 2.6.30. It has been named keller (Stargate fans will know why).

For now I really recommend this laptop. :-)

samedi, avril 4 2009

Still working!

Well, I'm not dead buddies. I was overbooked.

Last weeks have been a bit busy for me. I've also been on holidays, so I gave up on computers stuff a bit.

awesome

Big news: awesome 3.2 has been released some weeks ago, and seems to be a success so far. We're working on the new 3.3 release, which will have some new sexy feature you'll love. More on that later.

Debian

I've uploaded a new awesome-extra package with third party modules such as shifty or wicked.

startup-notification

I just managed to be added in the startup-notification group at Freedesktop. I moved the CVS repository to git and merged my set of XCB patches.

vendredi, décembre 12 2008

Using a Bluetooth headset under Linux

… is a no.

It just does not work. I mean, it does work if you want to listen to music using mplayer in 8 KHz quality, but don't even think to use it to phone using SIP.

I've first tested with bluez 3 which is part of Debian. It roughly work, but sometimes it stops working and you have to restart hcid, or to clean its cache. Not very stable.

I've then tried using bluez 4, compiled from scratch. It works much better, i.e. I can run mplayer a thousand of times without having it stopping to work, but I'm totally unable to use it with twinkle or ekiga.

And I don't even talk about ekiga still unable to set a custom ALSA output. I even try to hack it via gconf-editor!

That's really a shame.

mardi, octobre 21 2008

Debian bug sprint

I want cookies.

lundi, août 18 2008

Unexpected VARMon new release

This has been 4 years since I released a new upstream release of VARMon, the DAC960 administration tool.

There was a bug first discovered in #401236. It has been fixed in Debian with an ugly fix, which did not work finally for a long time. Recently #491505 got opened too, which was the same as the previous one. But this time I got access to hardware, thanks to Christoph! And I finally fixed the bug. I've even be able to test the fixes I wrote years ago for all of the compilation warnings.

That's a shame that the problem was caused by dead code from the previous upstream, and that I did not realize that sooner. Kids, do not let dead debug code in your program at home.

So I've finally been able to release a new 1.2.1 version which maybe the last release for the next decade! ;-)

mercredi, août 13 2008

Save power, aka easy CPU frequency scaling

Recently I came with the idea that my big computer is just useless. I know I was not using its entire CPU power, so I decided to take a look at CPU frequency scaling.

Last time I tried, it was a PITA, required something like a daemon, and just did not work. With recent hardware and/or kernels, it's just easy as Debian.

etch

  • Look at /proc/cpuinfo to determine your CPU and the cpufreq module. If it's a Pentium, you can try p4-clockmod, powernow-k7 for AMD, or acpi-cpufreq for both. Well, if none loads, let it go, it won't work unless you get newer hardware or maybe newer kernel.
  • Add this module in /etc/modules to get it loaded at boot time.
  • Run apt-get install cpufrequtils
  • Edit /etc/default/cpufrequtils to enable it at boot time, and specify the governor if you want. I usually use ondemande, which is just fine.
  • Run /etc/init.d/cpufrequtils start
  • Play with cpufreq-info and cpufreq-set as you wish.

lenny

  • Run apt-get install cpufrequtils
  • Edit /etc/default/cpufrequtils to enable it at boot time, and specify the governor if you want. I usually use ondemande, which is just fine.
  • Run /etc/init.d/loadcpufreq start
  • Run /etc/init.d/cpufrequtils start
  • Play with cpufreq-info and cpufreq-set as you wish.

On my box, the 3 GHz CPUs (Core 2 Duo) are running at 2 GHz (the lower value) at 99.13% of the time. That's almost a bit less power wasted.

mardi, août 12 2008

xulrunner hacking

I've discovered a tiny bug in Iceweasel yesterday, and I decided to fix it myself. So I'm proud to have opened bug #494694 against xulrunner with a patch!

That bring me to the tip of the day: if you are bored, I suggest you compile xulrunner and keep looking at the build log while it's building. There's so much gcc warnings that you'll get enthousiastic thinking:

« Argh, it'll fail… Oh no! That was just a bunch of warnings! Ahah this time it'll fail! Shit, just 764 warnings again in a row. Not so bad… ».

mercredi, août 6 2008

The nochange-log

Saw in base-files changelog:

base-files (4.0.5) unstable; urgency=low
[…]
* It's still soon to change /etc/debian_version. Please be patient.

-- Santiago Vila <sanvila@debian.org>  Tue,  5 Aug 2008 18:06:06 +0200

Applause.

lundi, août 4 2008

awesome 3 in experimental

I've just uploaded awesome 3.0-rc1 to experimental. For people who can't wait, the git repository is on Alioth.

awesome 3 should stay in experimental until it gets fully released. I plan to rename current awesome 2.x package to awesome2 and get awesome 3 as the new default awesome package. So Debian will still provide awesome 2 for people who don't want to upgrade.

jeudi, juillet 31 2008

ATL1E support in 2.6.26-1

Ben Armstrong opened an ITP for the ATL1E NIC driver, which is found on some Asus EeePC laptops. So, as suggested by Maximilian Attems, I provided a clean patch for this driver, made from a cherry-pick from the linux-netdev 2.6.27 tree. It has been commited into the 2.6.26-1 Debian kernel, which will be furnished with Lenny.

What's fun, is that in the mean time, I got a new computer at work. Wait, it's not fun yet. Because what I did not know is that it's made of an Asus P5Q motherboard which runs a NIC needing the ATL1E driver (and now you see it's fun).

So I've just upgraded to 2.6.26-1-amd64 and I'm glad that my own work is useful to me (and will be probably be to others as well). :-)

mardi, juin 24 2008

Debian maintenance team are great

A few months ago, I decided to move my libcgi-session-perl package to the pkg-perl project. This seemed the right thing to do since I just do not do Perl anymore, anyway.

And now that's the second time that I notice someone has uploaded a new upstream release in my back. WTF, this guy did my job!

That's awesome. :-)

jeudi, juin 12 2008

One step further for XCB into Debian

I've take some time this morning to work on xcb-util packaging. I've mainly urge that work because Sebastian Dröge, the sweet cairo maintainer, agreed to enable the cairo XCB backend (#474353), which requires xcb-util.

The first upload I've made was built from the latest upstream release which is old (i.e. more than one year old). So I've put a git repository in place this morning and packaged the latest git upstream version, with some good patches from Arnaud (upstream+patches branch), that the upstream XCB developers are still reviewing since several weeks: that is the cost to pay for good code quality؟

Thanks to Sebastian, the new xcb-util targeted for unstable was just arrived in incoming that he already uploaded a new version of the Debian cairo package with XCB backend enabled.

Well, that's a very good day for me since it means that building awesome 3 is no more a PITA (hi MadCoder!) since every dependency is available in the Debian archive.

vendredi, avril 18 2008

Updating my .plan

I've been on holidays for one week now, breaking my usual workflow. Well, that allowed me to rest and to think about what I'd like to do and things I need to handle during next weeks.

The urgent things this next days will be my primary server replacement. It is currently dying, and I already had to change its power supply twice in a month. Unfortunately, I'm now at a point where I do not have any spare piece so if things go wrong again, I'm screwed. I need to collect some money and buy a new server, or maybe get a server if someone have an old or spare one to give me, I do not know yet.

On the awesome front, I'm about to release awesome 2.3, which will be the final minor release of the major branch 2. This will lead me to work on awesome 3 at a slower rate and a cooler pace.

Then, the thing I do not have to hurry for is awesome 3. There's no big problems in awesome 2, and the xcb-util stuff are not stabilized yet. After my gentle yelling on XCB mailing list, it seems that things will move but will slowly. So I do have time to make things right and do what I want on that branch, making bugfix release on awesome 2 if needed. You can read more about futur on my last post about awesome.

All this should give me some more spare time to work on the upcoming Debian release, lenny, which I'd like to work on. Two years ago (my god, time flies), we've done good work with the french cabal squashing critical bugs and I'd like to go back on this and squash asses again.

mardi, février 26 2008

Back from holidays

After 10 days of nice holidays, I'm back. I was totally offline, so I had to read some hundred of mails first, which is done now.

For a good restart, I've fixed a bunch of bugs in awesome and released 2.2-rc2 version. I've also migrated apt-build repository on Alioth from Subversion to git. I've uploaded a new version of this one with some patches, and a also put in the archive a new version of the mp32ogg package.

Next step will be to move my packages repositories which are in my global home Subversion repository, to my own git repositories on Alioth.

mardi, février 12 2008

Testing out GRUB 2

After reading Jordi post about GRUB 2, I decided to give it a try on my EeePC.

I've just installed the grub-pc package, answered the questions, and that was it. I tested it with the chainload method from GRUB legacy, and it worked. I just had to rerun grub-install to replace the legacy with the new one. And I've a nice Debian background in the menu now!

What seems amazing is that GRUB now see my... LVM logical volumes! So this seems to be really cool, because this means no more /boot-without-lvm-ext3-formatted partitions because my-boot-loader-sucks-a-bit.

lundi, février 11 2008

Holidays and projects

Long story short: I'm busy.

These days are quite busy. I'm working (you know, I need to eat so I've a job), to the point that I have many vacation days to take. So I'll be in holidays and offline from friday for 10 days.

I'm still working on awesome developement. Code base is quite good now, so I don't do 30 commits/day anymore, and update are less frequent. It's very nice that the users base is increasing every day, without polluting the mailing list and the BTS with bug reports and request for documentation. That means we at least achieve to do a not-so-bad code with a not-so-bad documentation. The feature requests list is still a bit long, but I think it will decrease in the next weeks.

On a human side, that's the biggest project I ever managed and it's very pleasant to have so many users and contributors.

I've some more project I'd like to work too. I plan to write a small git stats generator in Python when I'll have some more spare time. I'd also like to do some developement work around LDAP and Python for my servers, but I did not find the courage to do it neither the good library to handle LDAP object correctly (a DB_Object way would be good).

I'm always following Debian developement with one eye, so I'm not totally out. I really hope I could to some bug squashing like I did with several Debian buddies 2 years ago for the etch release.

Stay tuned.

lundi, janvier 21 2008

New laptop: EeePC!

This morning, the snail mail brought me a new toy! A brand new EeePC!

Kawoosh!

It's a very very nice device. I did not test the Xandros system more than 5 minutes, but it looks fine for dummy users. I've plugged an USB key into it, booted on the Debian installer (provided on the Debian wiki) and installed it in a few minutes.

The hardest part was adding wifi support, since I needed to grab madwifi svn version, added a patch, and compiled it. It was not so hard after all, just don't expect to use Debian packages for now.

It even boot in less than one minute! The hardest part is to type on a such tiny keyboard.

Keyboard Plectrum as reference size

mardi, décembre 4 2007

rebuildd demo

I've set up a quick rebuildd demo. It may allow you to rebuild one of your package on etch/lenny/sid and for amd64/i386 as you wish. You will get build log by email.

I've just wrote the PHP page in 2 hours. I just hate Web interfaces and PHP is crap, seriously. For the record, I've tried to use DataGrid, and after having lost 1h to get it work with no PHP/PEAR error printed or available, I managed to have it working with a big pear upgrade-all. OMFG.

lundi, décembre 3 2007

rebuildd 0.3.0 released

Everything seems to work, so just releasing it. I think it's becoming an amazing tool to do archive rebuild.

It just misses a good Web interface. :-(

- page 1 de 8