Skip to main content


new google calendar week number

Display week number in the new Google Calendar For several Google accounts, Google has enabled the new calendar interface.
They are globally nice, but they do not enable the week number display.
This is not trivial to enable, but here we are:
Go to the "Settings"Go to "Browse Calendars of interest"At the very bottom, check "Week numbers"

The week number will be displayed in the
"Month view": at each start of the month"Week view": under "Monday" It wont be displayed for
"Day view""Year view"

Recent posts

ArchLinux Installation EFI

Installing ArchLinux with UEFI

The official ArchLinux installation page is very good, but obviously cannot cover all installation scenario.

I had to install with EFI and steps are not straight copy/paste of that page.

I will make the log story short but just pasting the commands and indicate what is needed and not in the guide.

ping timedatectl set-ntp true Use parted instead of fdisk
parted /dev/sda Print existing partitions and clear them all:
(parted) print (parted) rm 1 (parted) rm 2 (parted) rm ... Create the EFI partition and fill the remaining
(parted) mklabel gpt (parted) mkpart ESP fat32 1MiB 513MiB (parted) set 1 boot on (parted) mkpart primary btrfs 513MiB 100% (parted) print (parted) quit Note that in "parted", "quit" also saves (in "fdisk", "quit" does not)

Format and mount created partitions
mkfs.fat -F32 /dev/sda1 mkfs.btrfs /dev/sda2 mount /dev/sda2 /mnt mkdir -pv /mnt/boot/efi mount /dev/sda1 /mnt/boot/efi Here is just a…

tc classid range

TC minimum and maximum "classid" and "flowid"
Playing a lot with TC on Linux, I one time wondered what is the min and max value of the "classid" and "flowid".

Looking to the man page, I found:
IDs consist of a major number and a minor number, separated by a
colon - major:minor. Both major and minor are hexadecimal numbersand are limited to 16 bits. There are two special values: root is
signified by major and minor of all ones, and unspecified is all
Well, to get more precise, I also put here what is the relationship between hexadecimal and bits:
Hexadecimal numerals are widely used by computer system designers and programmers. As each hexadecimal digit represents four binary digits (bits), it allows a more human-friendly representation of binary-coded values. One hexadecimal digit represents a nibble (4 bits), which is half of an octet or byte (8 bits) I hope this helped to understand several details we sometimes skip when in a rush.

vmware libz libfontconfig libexpat

Archlinux - Kernel 4.11 - VMWare workstation 12.5.7 With this combination, when I launch "vmware", despite the fact I already "export VMWARE_USE_SHIPPED_LIBS=force", I get those lines:

Unable to load /usr/lib/vmware/lib/ version `ZLIB_1.2.9' not found (required by /usr/lib/ Unable to load from /usr/lib/vmware/lib/ cannot open shared object file: No such file or directory Unable to load dependencies for /usr/lib/vmware/lib/
In order to workaround, I decided to get the things to the maximum: Add all shipped libraries in the LD_LIBRARY_PATH.

So I created my custom launcher of "vmware" and this is the content:

LD_LIBRARY_PATH=$( find /usr/lib/vmware/lib/ -maxdepth 1 -mindepth 1 -type d | awk 'BEGIN{p=&quo…

linux nvidia fonts session

Fonts in desktop environment always change across reboots On my Archlinux, I installed proprietary nVidia drivers because of the presence of an nVidia card.
Unfortunately, each time I reboot, I have to set the fonts through the desktop environment in order to have the correct font size.

It's a DPI detection problem According to some community posts, it has to do with DPI detection Hard seting the DPI The solution I choosed is to edit "/etc/X11/xorg.conf" and add
Option "DPI" "96 x 96" in the "Monitor" section.
The "Monitor" section becomes: Section "Monitor" Identifier "Monitor0" VendorName "Unknown" Mo…

path to lines

Convert PATH to lines in order to grep I want to regexp check if a path is in my PATH environment variable.
There are many ways to achieve this, but this one is the one I want to show you today:
# echo $PATH | awk '{gsub(":","\n",$0); print $0;}' /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin /var/cfengine/bin
I can then "grep" what I want from this.

exim all mail catcher

All mail catcher with Exim 4, on Debian 8 We have un bunch of "development" VM that has the feature of sending a mail via a relay, or MTA. 
We usually achieve this by setting the "mail host" setting in the used framework or CMS.
But for development purpose, there is no need to really send the message over the Internet: if the "mail host" catches it all and delivers it to a mailbox, the work is done.
Here is how to setup an Exim 4 on Debian 8 in order to make it catched all mail for all destination and always deliver it to a single local mailbox. That signel local mailbox can then be accessed via IMAP so that the development team can check if the message has been sent by the application. Configuring with "debconf" The first stage of configuration is done with debconf
# dpkg-reconfigure exim4-config
Then choose the following answers:

Internet site; mail is sent and received directly using SMTPSystem mail name: (put the FQDN of this machine)IP-addr…