Désert

« Il me semble que je traverse une solitude sans fin, pour aller je ne sais où, et c’est moi qui suis tout à la fois le désert, le voyageur et le chameau. » — Gustave Flaubert

Publié dans quote | Laisser un commentaire

Identifying running processes that uses deleted shared librairies

Updates:

  • 2022-11-27: The correct solution to this problem is to use the needrestart tool (available on Ubuntu/Debian/etc.)
  • 2015-03-03: Changed ps xh to ps axh to search in all processes.
  • 2015-02-11: The format of /proc/%pid/maps seems different between Ubuntu 12.04 and Ubuntu 14.04 (the « (deleted) » string occurs before or after the library name). So I updated the script to handle both cases. Also addded a one-liner version of the script.

Sometimes, when you log into your Ubuntu server, you get a message warning you that the system requires a reboot :

*** System restart required ***

This happens after a kernel upgrade, or after upgrading a shared library like openssl (libssl, libcrypto, etc.).

In the case of a kernel upgrade, it’s pretty obvious that a restart is required in order to boot on the new kernel.

But in the case of a library upgrade I don’t think such reboots are absolutely required.

Continuer la lecture

Publié dans system | 6 commentaires

OpenLDAP 2.4.x with `cn=config’ configuration

Today I upgraded an OpenLDAP 2.3.x running on an aging custom Linux distro to a brand new Ubuntu 10.04 LTS with OpenLDAP 2.4.x.

I was surprised by the lack of a `slapd.conf’ config file, which is replaced by a `cn=config’ subdir, with a bunch of .ldif files in it.

You’ll find the documentation for this new config layout there : http://www.openldap.org/doc/admin24/slapdconf2.html

This is in fact a rewrite of the usual`slapd.conf’ directives with a LDIF notation.

So here is a quick overview to create the first database.

Continuer la lecture

Publié dans system | Laisser un commentaire

Publié dans photo | Laisser un commentaire

Sharing a single Redmine code across multiple virtual hosts

Here is a quick walkthrough on setting up a single RedMine code to serve multiple vhosts/clients with their own database.

By default all uploaded files would be stored in the same `files’ subdir, so to have proper file upload isolation across the vhosts/clients you will need to install the « redmine_attachment_storage.zip » plugins that allows you to set the file storage dir per client : http://www.redmine.org/boards/2/topics/140

Continuer la lecture

Publié dans code | Laisser un commentaire

Pre-fetch packages for Debian dist-upgrade

Recently, I had to upgrade a Debian 4 (Etch) to Debian 5 (Lenny) at a client facility connected to Internet with a « slow » 2Mbps SDSL link.

The problem is that downloading the packages while doing the upgrade on-site, during working hours, would take a significant time, and I had to minimize the downtime.

Continuer la lecture

Publié dans code | Laisser un commentaire

Bonjour

Tout commence par un « bonjour », ou presque.

Publié dans regular | Laisser un commentaire

Croûte aux champignons

500 gr. champignons de couche, 0 fr. 70 ; beurre, 0 fr. 40 ; 2 œufs, 0 fr. 15 ; farine, 0 fr. 05 ; 1 croûte, 0 fr. 50.

Après avoir épluché les champignons, coupez-les, suivant leur grosseur, en deux ou en quatre ; mettez-les dans une casserole et faites-les revenir dans du beurre avec un bouquet de persil ; mouillez avec du bon bouillon, ajoutez un peu de beurre manié de farine ; assaisonnez ; faites bouillir, ralentissez, alors, le feu et faites cuire très douvement. Avant de servir, retirez le bouquet, faites une liaison de 2 jaunes d’œufs et servez sur une croûte de vol-au-vent commandée au pâtissier.

Publié dans miam | Commentaires fermés sur Croûte aux champignons

v6

Got v6 on January 6…

home:~# ping6 www.kame.net
PING www.kame.net(2001:200:dff:fff1:216:3eff:feb1:44d7) 56 data bytes
64 bytes from 2001:200:dff:fff1:216:3eff:feb1:44d7: icmp_seq=1 ttl=49 time=297 ms
^C
Publié dans network | Commentaires fermés sur v6

Ces dimanches

Comme je hais ces dimanches qui précédent ces lundis.

Publié dans regular | Commentaires fermés sur Ces dimanches