Maximilian Attems: klibc 1.5.22 release
This release has several ipconfig (klibc dhclient) enhancements, arm porting fixes and usual cleanups: For details see klibc 1.5.22 release announcements or klibc git.
This release has several ipconfig (klibc dhclient) enhancements, arm porting fixes and usual cleanups: For details see klibc 1.5.22 release announcements or klibc git.
Welcome to my new blog, visitors and followers of the Debian planet!
I have nothing very interesting to say right now, but I shall publish some thoughts about Debian and self-hosting. See you!
The fundamental problem with projects requiring copyright assignment is that there's an economic cost involved in me letting a competitor sell a closed version of my code without letting me sell a closed version of their code. If this cost is perceived as larger than the cost of maintaining my code outside the upstream tree, it's cheaper for me to fork than it is to sign over my rights. So if I have my own engineering resources, what rational benefit is there to me assigning my copyright?
Sometimes people will tell you what you should do. Sometimes they will even shout at you for simply asking a question on why they want something done because it isn't clear just from itself. And others likes to jump the boat and join in just for the fun of it...
Gladly, this is MY life, and I choose how much abuse I'm willing to take, especially for a voluntary work that I didn't even enroll for but got put into. Sometimes through my dedication to getting quality into things and seeing that others simply neglect these areas, but they need to get addressed anyway, no matter how little respect is shown for people investing in these boring areas.
The topic of It's MY Life is an old one and thus it is no surprise that a fair amount of songs surrounding it popped up over time. In my previous blog entry I wrote about different interpretations, some responses seem to hint that I wasn't clear enough about that I really meant different interpretations of the same lyrics, not just regular cover versions.
The following set of songs is special in a different sense: It is about the same song title and thus does also cover different bands.
Like always, enjoy! And think about how you interact with others. I know that I'm sometimes crossing a line myself too, no one is perfect. What though makes the difference is the willingness to learn, and especially: To excuse. But in the end: It's MY life!
This week I lost some time playing with Python's sets. After digging into Python source code, I finally discovered there is what seems to be little bug. Anyway, it has been "fixed" in Python 3, fortunately. I did not find if it was reported somewhere, but since it's fixed, it's not a big deal.
Python 2.7.1+ (default, Apr 20 2011, 10:53:33) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> class A(object): ... def __eq__(self, other): ... return True ... >>> A() == A() True >>> [A()] == [A()] True >>> set([A()]) == set([A()]) FalseThis clearly did not make any sense to me. I've then tested under Python 3.2:
Python 3.2.1a0 (default, May 4 2011, 19:59:25) [GCC 4.6.1 20110428 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> class A(object): ... def __eq__(self, other): ... return True ... >>> set([A()]) == set([A()]) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: unhashable type: 'A'At least, raising an error is saner. It actually helped me to understand what I needed to do to have my sets working correctly with Python 2:
Python 2.7.1+ (default, Apr 20 2011, 10:53:33) [GCC 4.5.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> class A(object): ... def __eq__(self, other): ... return True ... def __hash__(self): ... return 123456789 ... >>> set([A()]) == set([A()]) True
Imagine you have a old postgresql database. Further imagine it has
it's encoding set to something like LATIN-1 but some PHP web
application has put in UTF-8 strings. Now what would you do if you
have some python application actually respecting the encoding and
recoding the db content from latin-1 to UTF-8 giving you
garbage. Seems you can easily trick postgresql to now believe it is
UTF-8:
UPDATE pg_database SET encoding = 6 WHERE datname = 'foo';
For a summary of these magic numbers the
PostgreSQL Manual
is usefull.
This has been several months since I didn t use much my laptop, an
Asus S5N: it was crippled by a short battery life and was hit by
several bugs, most of them targeting the i855GME graphic chipset
thanks to the use of GEM and KMS in the latest Xorg. I did
not want to invest too much in a laptop and I have found
a rebate from Lenovo for Thinkpad Edge series. Voil , I have a
Thinkpad Edge 11 .
Here is the configuration that I bought:
1 | # dd if=debian-testing-amd64-netinst.iso of=/dev/sdb |
/usr
in the root partition since having a separate /usr is less and less
supported, especially with piece of software like udev.
The partitioning tool in Debian installer do not allow to resize
volumes, you need to destroy them and recreate them as well as their
content. However, this is still faster than writing a patch for this.
When the installation is finished, the laptop boots on a 2.6.38
kernel, asks for the passphrase to decrypt the LUKS volume and display
the login prompt a few seconds later.
/etc/apt/sources.list to get unstable:
deb http://ftp.fr.debian.org/debian/ unstable main deb-src http://ftp.fr.debian.org/debian/ unstable main deb http://ftp.fr.debian.org/debian/ experimental main contrib non-free
/etc/apt/preferences.d/experimental:
Package: * Pin: release experimental Pin-Priority: 101
zsh, my favourite shell with my hand-made maturating
configuration. I should put it on
GitHub one day.mg, is the editor that I use to quickly edit a configuration
file. I don t like vi. I have used jed for a long time but its
default configuration can be cumbersome and it misses some emacs keybinding.emacs, my work environment. I use it as a text editor and mail
reader (with Gnus). I don t use it as a
browser nor as a terminal. As for zsh, I have my configuration
files ready to be copied anywhere.fvwm, my window manager since quite some time. I use
fvwm-crystal on top of it. My configuration is
described in another post. I also use conky.rxvt-unicode, a terminal. It has a very good terminal emulation
and some fancy features like transparency (using compositing or
not). It is light and fast and allows to search in the
backbuffer. It can use a client/server system that will close all
your windows when the server crashes. This almost never happens.unison, a synchronisation tool that allows me to keep the same
files on my different computers.gdm3 is the only display manager that is able to talk correctly
to ConsoleKit and get the rights set correctly without adding
yourself to a lot of groups.rpcbind and nfs-common. I use ferm to setup a simple
firewall. Here is my ferm.conf:
domain (ip ip6) table filter chain INPUT policy DROP; mod state state INVALID DROP; mod state state (ESTABLISHED RELATED) ACCEPT; interface lo ACCEPT; proto tcp dport ssh ACCEPT; chain OUTPUT policy ACCEPT; mod state state (ESTABLISHED RELATED) ACCEPT; chain FORWARD policy DROP;
unison will then sync my configuration files and my documents. After
this step, my environment is ready.
lspci and lsusb, everything seems pretty easy to get supported.
Here is lspci output:
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 02) 00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 02) 00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06) 00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06) 00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06) 00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06) 00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 06) 00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6) 00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06) 00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 06) 00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06) 00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06) 03:00.0 Network controller: Intel Corporation Centrino Wireless-N 1000 09:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03) ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02) ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02) ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02) ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02) ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02) ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
lsusb output (I disabled the broadband modem in the BIOS and
therefore, it does not appear here):
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 003: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader Bus 001 Device 004: ID 0a5c:217f Broadcom Corp. Bluetooth Controller Bus 002 Device 003: ID 5986:01a7 Acer, Inc Lenovo Integrated Webcam
thinkpad_acpi will handle most of the
perks under the hood.
I do not use a complete desktop like Gnome. I usually prefer to use
command line tools and put them in .xsession for persistence. There
is usually some graphical utility to do the same thing. There are
however some configuration steps that are now far easier to do with a
graphical tool. Since I use X all the time, I just rely on those tools
when necessary.
lshw output, I see that I already have the latest BIOS
available. No need to update then. In case you need to update, yours,
ThinkWiki has a documentation to upgrade. You can find
memdisk image in syslinux package.
A very recent Linux distribution with kernel 2.6.33 and Intel Xorg driver 2.11 or newer is recommended. Note that XVideo (Xv) playback at certain frame sizes does not work properly unless you have at least version 2.12 of the Intel Xorg driver.With Debian Wheezy, you get version 2.15. Therefore, configuring the graphic card is just a matter of installing
xserver-xorg-video-intel
and that s all. No /etc/X11/xorg.conf needed.
HDMI and VGA outputs are detected without configuring anything. They
can be enabled with xrandr. I did not try if it was possible to use
both of them at the same time.
Screen 0: minimum 320 x 200, current 1366 x 768, maximum 8192 x 8192 LVDS1 connected 1366x768+0+0 (normal left inverted right x axis y axis) 256mm x 144mm 1366x768 60.0*+ 50.0 1360x768 59.8 60.0 1024x768 60.0 800x600 60.3 56.2 640x480 59.9 VGA1 disconnected (normal left inverted right x axis y axis) HDMI1 disconnected (normal left inverted right x axis y axis) DP1 disconnected (normal left inverted right x axis y axis)
i965-va-driver
package. Here is the output of vainfo:
libva: libva version 0.32.0 libva: va_getDriverName() returns 0 libva: Trying to open /usr/lib/dri/i965_drv_video.so libva: va_openDriver() returns 0 vainfo: VA API version: 0.32 vainfo: Driver version: i965 Driver 0.1 vainfo: Supported profile and entrypoints VAProfileMPEG2Simple : VAEntrypointVLD VAProfileMPEG2Main : VAEntrypointVLD VAProfileH264Baseline : VAEntrypointVLD VAProfileH264Main : VAEntrypointVLD VAProfileH264High : VAEntrypointVLD
ffmpeg-hw=1
in your ~/.config/vlc/vlcrc. We are then greeted by this:
[0x2629040] avcodec decoder: Using VA API version 0.32 for hardware decoding.
xinput
command. Here is the output of xinput list:
Virtual core pointer id=2 [master pointer (3)] Virtual core XTEST pointer id=4 [slave pointer (2)] SynPS/2 Synaptics TouchPad id=11 [slave pointer (2)] TPPS/2 IBM TrackPoint id=12 [slave pointer (2)] Virtual core keyboard id=3 [master keyboard (2)] Virtual core XTEST keyboard id=5 [slave keyboard (3)] Power Button id=6 [slave keyboard (3)] Video Bus id=7 [slave keyboard (3)] Power Button id=8 [slave keyboard (3)] Integrated Camera id=9 [slave keyboard (3)] AT Translated Set 2 keyboard id=10 [slave keyboard (3)] ThinkPad Extra Buttons id=13 [slave keyboard (3)]
xinput list-props will give you additional information
on each input device listed above. You can then configure any settings
using xinput set-prop. For example, if you want to enable scrolling
by using the edges of the touchpad and enable palm detection, you can
use the following commands:
1 2 | $ xinput set-int-prop "SynPS/2 Synaptics TouchPad" 'Synaptics Edge Scrolling' 8 1 1 0 $ xinput set-int-prop "SynPS/2 Synaptics TouchPad" 'Synaptics Palm Detection' 8 1 |
1 | $ xinput set-int-prop "SynPS/2 Synaptics TouchPad" 'Synaptics Off' 8 1 |
man 4 synaptics. The same applies
for the trackpoint but the correct manual page is man 4 evdev. For
example, if you want to enable scrolling using the middle button, use:
1 2 | $ xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation" 8 1 $ xinput set-int-prop "TPPS/2 IBM TrackPoint" "Evdev Wheel Emulation Button" 8 2 |
~/.xsession.
xinput list. Therefore, your window manager or any other application
can intercept them and act upon. You can use evtest to check which
key triggers which event on which keyboard.
The acpid daemon listen on those keyboards and can also trigger some
actions. For example, it will run ibm-wireless.sh when you hit the
wireless toggle. By default, this will enable or disable your wireless
card. But you can configure the script to use a multistate toggle and
disable or enable the bluetooth card as well.
~/.asoundrc:
pcm.!default type pulse ctl.!default type pulse
firmware-iwlwifi package. Then, iwlagn module needs to be
loaded. You can check with rfkill list that the wireless card has
not been disabled. iw list will then give the status:
Wiphy phy0 Band 1: Capabilities: 0x872 HT20/HT40 Static SM Power Save RX Greenfield RX HT20 SGI RX HT40 SGI No RX STBC Max AMSDU length: 3839 bytes No DSSS/CCK HT40 Maximum RX AMPDU length 65535 bytes (exponent: 0x003) Minimum RX AMPDU time spacing: 4 usec (0x05) HT RX MCS rate indexes supported: 0-15, 32 TX unequal modulation not supported HT TX Max spatial streams: 1 HT TX MCS rate indexes supported may differ Frequencies: * 2412 MHz [1] (14.0 dBm) * 2417 MHz [2] (14.0 dBm) * 2422 MHz [3] (14.0 dBm) * 2427 MHz [4] (14.0 dBm) * 2432 MHz [5] (14.0 dBm) * 2437 MHz [6] (14.0 dBm) * 2442 MHz [7] (14.0 dBm) * 2447 MHz [8] (14.0 dBm) * 2452 MHz [9] (14.0 dBm) * 2457 MHz [10] (14.0 dBm) * 2462 MHz [11] (14.0 dBm) * 2467 MHz [12] (14.0 dBm) (passive scanning, no IBSS) * 2472 MHz [13] (14.0 dBm) (passive scanning, no IBSS) Bitrates (non-HT): * 1.0 Mbps * 2.0 Mbps (short preamble supported) * 5.5 Mbps (short preamble supported) * 11.0 Mbps (short preamble supported) * 6.0 Mbps * 9.0 Mbps * 12.0 Mbps * 18.0 Mbps * 24.0 Mbps * 36.0 Mbps * 48.0 Mbps * 54.0 Mbps max # scan SSIDs: 20 Supported interface modes: * IBSS * managed * monitor
iwlagn 0000:03:00.0: Detected Intel(R) Centrino(R) Wireless-N 1000 BGN, REV=0x6C iwlagn 0000:03:00.0: device EEPROM VER=0x15d, CALIB=0x6 iwlagn 0000:03:00.0: Device SKU: 0X9 iwlagn 0000:03:00.0: Valid Tx ant: 0X1, Valid Rx ant: 0X3 iwlagn 0000:03:00.0: Tunable channels: 13 802.11bg, 0 802.11a channels iwlagn 0000:03:00.0: irq 44 for MSI/MSI-X iwlagn 0000:03:00.0: loaded firmware version 128.50.3.1 build 13488
ifup and ifdown commands,
even for servers. It seems that this is not something impossible and
therefore, I think it has become flexible enough to ensure most of the
configuration tasks I need.
hci_usb module will
take care of it. It supports AD2P and can be used to listen to music
with a compatible headset. hciconfig will tell us if the chipset is working.
Again, bluetooth is easier to configure with a graphical
tool. BlueZ, the bluetooth stack in Linux, uses DBus to
communicate with other applications. The command line tools have been
deprecated and therefore, you need to fight with some DBus binding to
pair your computer to your headset.
gnome-bluetooth package comes with an applet which allows you to
quickly pair to any device. If you install
pulseaudio-module-bluetooth package, any bluetooth headset should
work out of the box.
msiexec as instructed (I did have to
execute the installation program first, otherwise, msiexec tells
that the file is invalid). I choosed the default firmware since my
laptop is unlocked. ThinkWiki page explains which firmware to
choose in which situation.
The package gobi-loader needs to be installed. The firmware files
amss.mbn, apps.mbn and UQCN.mbn should be placed in
/lib/firmware/gobi. They will be loaded by udev. To avoid to
reboot, I used this command:
1 | # /lib/udev/gobi_loader -2000 /dev/ttyUSB0 /lib/firmware/gobi
|
rfkill list that your WWAN card is not blocked. I did
not test the GPS part that needs to be enabled on Windows.
uvcvideo module is correctly loaded and you should have something
like this in your dmesg:
uvcvideo: Found UVC 1.00 device Integrated Camera (5986:01a7)
cheese is a small application that can be used to check if the
webcam operates as expected.
uswsusp package which will also pull pm-utils. You
will get pm-suspend and pm-hibernate commands.
pm-suspend will enable suspend to memory. On resume, the system
takes a whole minute to become operational. I get the following message:
r8169 0000:09:00.0: eth0: unable to apply firmware patch PM: resume of devices complete after 60786.035 msecs PM: Finishing wakeup.
firmware-realtek package solves this issue. It should
also be solved by a future kernel. I also have this message when I
come back from sleep:
[drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed... render ring idle [waiting on 9297, at 9297], missed IRQ?
i915.semaphores=1 as a kernel parameter but the X server is still
slow. It seems that running powertop restores the original
speed. This is a known problem.
On sleep, the battery loses 2% every 6 hours. This allows you to keep
your laptop on sleep for several days if needed.
pm-hibernate enable suspend to disk. The suspend part works well but
on resume, the kernel freezes after reading back the image into
memory. There are some documentation to debug this problem
but I prefer to wait for 2.6.39 which may just solves this issue.
cpufrequtils
package will slow down the processor when it is not used by using the
ondemand governor. The frequency will drop from 1.33 GHz to 666 MHz.
Several tools are then available:
pm-utils package comes with scripts to enable some powersaving
features. Those scripts are run on ACPI events (for example, when
you unplug the AC adapater). There is no way to put the laptop to
sleep after two hours of inactivity for example. You need something
like sleepd to handle this part. I have found nothing that could
dim the screen on inactivity.laptop-mode-tools is also a set of script to be run on ACPI
events. It is therefore somewhat superseded by pm-utils.gnome-power-manager is a daemon that makes use of
upowerd. Despite its name, you can run it outside of the Gnome
environment. It will put your laptop to sleep on inactivity and
will dim the screen when needed. All other functionalities are
handled to upowerd. This seems the way to go on today Linux desktops.upowerd will call at some point pm-powersave
from pm-utils. This allows to run scripts when unplugging the AC
adapter. There are some scripts shipped in
/usr/lib/pm-utils/power.d. You can add your own in
/etc/pm/power.d. Some scripts are configurable. For example, if you
create /etc/pm/config.d/local and put SATA_ALPM_ENABLE=true in it,
this will enable SATA ALPM mode on battery.
You can check what needs to be done with powertop or go to a website
like Less Watts to get some tips on what to configure to
get a better battery life.
Without adding any script, I get 5 hours of battery life with the
laptop doing almost nothing. Lenovo tells that you should get 6 hours
of battery life. I think that on moderate workloads, you should get 4 hours.
As previously announced in Ganneff s blog and Debian News, a special funding for DebConf11 is available for Debian Developers and Debian Maintainers who have either never attended a DebConf before, or who have not been to a DebConf since DebConf7 (in Scotland).
How to apply
Email the DebConf Newbies Team (newbies@debconf.org) providing the following information:
Connectivity can be a force for autonomy and freedom, or it can be
used for control and subjugation.
The Nintendo 3DS is an example of the latter.
Okay, yeah, I just said a cute video game console is a threat to personal freedom. Hear me out. If you haven't read the highlights of Nintendo's Terms of Service for
the 3DS yet, you should do that.
On one hand, it's "just" a games console. On the other hand, it's a
computer, marketed to children, which monitors your location (based on
proximity to wifi access points), uploads your photos and messages to
Nintendo's servers (giving them a license to re-use that information
in various ways), and tracks your activity. Now that's entertainment.
If you wanted your Nintendo computer to stop doing those things, you
could try to install some 3rd-party "homebrew" software on it. Except
then, according to the Terms, Nintendo would "brick" your device
render it inoperable, when the modified software is detected. Would
you accept Ford disabling your car because you had a mechanic friend
fix a problem using some aftermarket parts? Microsoft breaking your
computer hardware because you installed Firefox?
The ability to stop your electronics from spying on you is an
important freedom to defend, even if you don't ever plan on purchasing
a Nintendo device. Such terms, and the Digital Restrictions Management
software that enforces them, are a problem in all areas of digital
life. It's the same fundamental strategy as Apple controlling what you
can install on the iPhone or iPad, or Sony sending police officers to
a programmer's house because he showed other people how to modify
their own computers to make them able to run non-Sony-approved
software.
If we don't set a strong precedent against this behavior, it will
become more prevalent. If we lose the ability to install what we like
on our computers, then we lose the ability to use those computers in
any way that isn't pre-approved by a corporation. We lose it not only
because we ourselves can't install some software maybe we hate
changing anything on our computers at all but because the people
who write the software we rely on lose that freedom, which ends up
impacting even the most non-technical of computer users.
Companies like to portray anyone arguing for this freedom as criminals just wanting to illegally copy software. But that's obviously not true -- a person who follows all laws, even the most absurd, might still want to install something to stop Nintendo from receiving copies of her photos or reporting on her location. Companies use the threat of illegal copying to justify massive infringements on real personal freedoms.
People often say, "well, just don't buy it then". I agree don't buy
it. But don't think this is merely a consumer issue. Terms like
Nintendo's are backed by the force of criminal law the Digital
Millennium Copyright Act in the US for example which can put you in
jail for helping people to modify their own computers. So this is more
than a mere preference issue, it's also one of law and
ethics. It's not a free market when one side has coercive state
resources in play to prop up its arbitrary business model.
To help send this message, I just donated to send 5 bricks to
Nintendo. I hope you'll send one or five too. The campaign has a goal
of sending 200 bricks by the end of today (Monday, May 16th). Nintendo
clearly wants to get into the brick-making business, so surely they'll
appreciate the extra inventory.
(Disclosure: While I do work for the Free Software Foundation and am
paid partly to run the Defective by Design campaign, I really did
donate, and support this campaign personally.)
My previous blog entry
about Test Driven Distro Development (TDDD) was
rather rambling. Here is the condensed version,
plus some further thoughts.
I would like to automatically determine whether "testing" is minimally
ready to be released, at any given point in time.
To implement this,
I would like to see Debian get tools that would allow us to define
specific minimal functionality that should work in a Debian release,
and automatically verify that
it does. I would like us to use these tools to determine whether
a release is ready for release, with manual override from the release
team. Ideally, we would use the tools to prevent breakages from moving
into "testing", so that it gets closer to always being releasable.
Getting test coverage sufficiently high that we can replace the release
team's judgement abour releasablity will never happen: Debian is
rather too large and and complex for that. However, we can reap much
benefit from even relatively small coverage.
Here is my initial suggestion for the minimal criteria that
should be satisfied, at all times, in "testing". They are aimed
at making sure that even if something else breaks, at least the
basic stuff works well enough that one can log in and fix things.
Hi, been offline for a while and now after my mid-term exams I m glad to tell that I ll be working on this year s GSoC project called: Compute Clusters Integration for Debian Development and Building . The main idea for this project is to give Debian developers and downstream developers a set of tools for helping them to leverage the power of a cloud-based infrastructure for their development duties. This is specially targeted to porters, multi-arch and cross-development, So I ll ask such teams for feedback on the subject over the next days.
People at Eucalyptus has been very helpful and willing to cooperate with us to make this project a success. We expect to get them involved on the packaging and probably as Debian contributors, if not developers, also. Next week is the official coding phase start, but I ve been talking and working together with my mentor Steffen and the Eucalyptus people already. We ll be starting working on the qemu ARM images, reusing and resuming the job did by Dominique Belhachemi in the past GSoC.
Of course I welcome as much feedback as you might find useful. I plan to post a project update every two weeks.
I was hosting my projects on several
Trac instances on a dedicated
server. However, since several months, spam was pourring.
README files to use the markdown markup and
avoid the use of wiki pages when possible.
I have also put some URL redirections with the help of nginx.
In conclusion, even if maintaining Trac instances was not a lot of
work, one thing that I do not have to do anymore. And no spam on
GitHub, I assume.
Images Moved
So I've retired my old picture hosting sub-domain, and moved all the files which were hosted by the dynamic system into a large web-root. This means no more uploads are possible, but each link continues to work. For example: Happily the system generated "random" links, and it was just a matter of moving each uploaded file into that static location, then removing the CGI application. The code for the new site has now been made public, although I suspect there will need to be some email-pong if anybody wishes to use it. Comments welcome.MySQL replacements?
Lets pretend I work for a company which has dealings with many MySQL users. Lets pretend that, even though it is true, such that I don't have to get into specifics. Let us pretend that we have many many hundreds of users who are very happy with MySQL, but that we have a few users who have "issues". That might be:PS. MySQL I still mostly love you, but my two most recent applications were written to use redis instead. Just a coincidence... I swear. No, put down that axe. Please can't we just talk about it?/p> ObQoote: "I've calculated your chance of survival, but I don't think you'll like it. " - Hitchhikers Film.To compound this problem some of these installations may or may not be running Etch. let us pretend they are not, just to simplify things. (They mostly arent' these days, but I'm sure I could think of one or two if I tried) So, in this hypothetical situation what would you recommend? I know there are new forks aplenty of MySQL. Drizzle et al. I suspect most of the forks will be short-lived - lots of this stuff is hard and non-sexy. I suspect the long-lived forks are probably concentrating on edge-cases we've not hit (yet), or on sexy exciting things like new storage engines and going nosql like all the cool kids. Realistically going down the postgresql road is liable to lead to wholly different sets of problems, and a significant re-engineering of several sites, applications and tools with no proof of stability. Without wanting to jump ship entirely, what, if any, are our options?
- mysqld segfaulting every few months, with no real idea why.
- Transactions are involved. So are stored proceedures.
- MySQL paid support might have been perfect, or it might have lead to "yup, its a bug. good luck rebuilding with this patch. let us know how it turns out kthxbai."
- Alternatively it might not have been re-producable.
- Master-Master and Master-Slave setups being "unreliable" such that data inconsistencies arise despite MySQL regarding them as being in sync.
- Good luck resolving that when you have two almost-identical "mysqldump" outputs which are 6Gb each and which cause "diff" to exit with "out of memory" even on a 64Gb host.
- Is it possible to view differences in table-data, via the binary records? That'd be a fun project .. for a masochist.
- Poor usage of resources.
- Heavy concurrancy caused by poorly developed applications in a load-balanced environment, leading to stalling queries. (Wordpress + Poor wordpress plugins I'm looking at you; you're next on my killfile).
A while ago, MusicBrainz used a technique called
TRM for associating
audio fingerprints with tracks. This relied on a
proprietary, non-free database controlled by a for-profit
company.
Your choices were to either use it and have music
fingerprinting, or to not have the ability to
fingerprint, since no one who knew how to develop
a free database was doing so.
After some time with TRMs, MusicBrainz underwent
a transition to PUIDs,
and after running in parallel for some time, TRMs
were dropped. PUIDs rely on a proprietary,
non-free database controlled by a for-profit company.
Amazingly, things have changed. Now you can use
free software
to contribute to a publicly-available
database.
If you have a music collection cleanly and
properly tagged with MusicBrainz
IDs, I urge you to participate in this project.
I played around some with with vmdebootstrap,
my little toy to generate a disk image with a pre-installed Debian system.
I added some more features, and to show them off, created a simplistic,
proof-of-concept image to demostrate what
FreedomBox might do.
The image includes Apache and an SSH server, and a pre-configured
user. You can use SFTP to put files on the server, and HTTP to access
them. An instant file-sharing appliance.
A real FreedomBox should, of course, do all sorts of other things,
and this filesharing should probably be done differently, too. This
is not a demonstration of the FreedomBox. It's a demonstration of
vmdebootstrap.
The following command builds the image. Passwords are fixed, so you'll
want to not run the image on a public network.
sudo vmdebootstrap \
--log fboxlite.log \
--log-level debug \
--image fboxlite.img \
--hostname fboxlite \
--size 1G \
--verbose \
--enable-dhcp \
--package ssh \
--package apache2 \
--mirror http://mirror.lan/debian/ \
--customize=./fboxlite-customize \
--root-password=password1
You'll need the following customization script as well:
#!/usr/bin/python
import crypt
import os
import subprocess
import sys
def runcmd(argv, stdin='', ignore_fail=False, **kwargs):
p = subprocess.Popen(argv, stdin=subprocess.PIPE,
stdout=subprocess.PIPE, stderr=subprocess.PIPE,
**kwargs)
out, err = p.communicate(stdin)
if p.returncode != 0:
msg = 'command failed: %s\n%s\n%s' % (argv, out, err)
if not ignore_fail:
raise Exception(msg)
return out
print 'Customizing fboxlite'
rootdir = sys.argv[1]
# Create a fboxlite account.
runcmd(['chroot', rootdir, 'adduser', '--gecos', 'Freedombox Lite',
'--disabled-password', 'fboxlite'])
encrypted = crypt.crypt('password1', '..')
runcmd(['chroot', rootdir, 'usermod', '-p', encrypted, 'fboxlite'])
# Create /srv/shared for holding shared files.
shared = os.path.join(rootdir, 'srv', 'shared')
os.mkdir(shared)
runcmd(['chroot', rootdir, 'chown', 'fboxlite:fboxlite', 'srv/shared'])
os.chmod(shared, 0775)
# Configure Apache to serve /srv/shared as /shared.
conf = os.path.join(rootdir, 'etc', 'apache2', 'sites-available', 'default')
text = open(conf, 'r').read()
lines = text.splitlines()
new_lines = [
'Alias /shared "/srv/shared"',
'<Directory "/srv/shared/">',
'Options Indexes',
'</Directory>',
]
lines = lines[:-1] + new_lines + lines[-1:]
text = ''.join('%s\n' % line for line in lines)
open(conf, 'w').write(text)
If you're using libvirt with KVM, you can then use the following command
to deploy the disk image:
virt-install --connect qemu:///system -n fboxlite -r 512 \
--os-type linux --os-variant debiansqueeze \
--disk $(pwd)/fboxlite.img --vnc --import
Log in via the emulated console, and run ip addr to see what
the IP address of the virtual machine is (and if you can find a way
to query libvirt what the address is, please tell me). Then you can
use the following URLs (in, for example, Nautilus):
sftp://fboxlite@192.168.122.133/srv/shared/
http://192.168.122.133/shared/
Replace the correct IP address in the above URLs and off you go.
That was a damn busy week.
It was mostly centered about attending SambaXP, the annual Samba user and
developers conference, in G ttingen, Germany. The only free software
conference I attend with expenses paid by my employer, Onera. This year was the 10th edition and, as last
year, to the "who was there for the nth edition" game, I won by
staying alone as they asked who attended all editions of the
conference. :-)
That was a great week, with time spent with people as interesting as
Andrew Tridgell, Jeremy Allison, John Terpstra, Volker Lendecke, Kai
Blin, to name a few. A good opportunity, again, to get input from our
packaging work for that big piece of software, as well as getting
visibility about the future of Samba. I also had a great, even if
short talk, with the kind Karolin Seeger, the release manager of Samba
for 3 years now. We talked about....children, as she's now a mother
since last year (with a non negligible impact on her professionnal
life, as often in Germany). Great meeting, too, with Brad Kuhn, from
the Software Freedom Conservacy, who had a keynote about GPL licence
enforcment activities.
It becomes more and more sure that Samba3 and Samba4 will reconverge
together after the Samba Team releases Samba 3.6. It brings plans for
our packaging work: I think we'll stick with having samba 3.6 in
wheezy while the brand new shiny Samba4 probably stays separate in
some way. Our users (and /me first) clearly need stability in the file
and print services first.
Of course, I did some packaging work there: samba 3.6.0pre3 was
uploaded to experimental, about 10 days after its official
announcement. I also worked on the samba *binary* package bugs,
triaging them as usual. We now have 51 bugs opened against the samba
binary package: 18 unclassified, 11 moreinfo (several likely to be
closed as unreproducible or user error), 1 wontfix, 8 with a pending
patch and 13 forwarded upstream.
I'm also thinking about a possible way to ask about SMB2 support in
samba: it won't be activated by default in 3.6 (mostly because us, distros,
requested for that and, by "us", I mean Debian, RHEL, SuSe and their
derivatives, so quite a large consensus). Still, it would be good to
put some light on SMB2 support and a debconf question about it could
be a solution (not shown by default and defaulting to no SMB2).
I also worked quite extensively on packages maintained by No l K the,
Ralf Treinen and me, aka "the pkg-running team". I did setup a git
repo for my new "garmin-ant-downloader" package, that allows
downloading track files from Garmin Forerunner 405 GPS watches (guess what
is the brand and model of mine!). My first packaging git repository!
Thanks to Ralf for his advice and help in this.
I triaged bugs in the other two packages we maintain: pytrainer (more
bugs forwarded upstream) and garmin-forerunner-tools (which was later
uploaded by Ralf). I also setup a team mailign list so, now, we're a
real team...:-)
Few activity on the l10n front: a few Smith reviews are in progress
and I completed 1 or 2 French translations, and reviewed some
others. Regular activity, then. The only specific stuff is that I'm
now pushing harder for the French DDTP effort, doing many reviews and
translations there. We try to reach 100% in the "popcon500"
packages. Later, we'll try to head at reaching the hieghts reached by
the Italian and German teams, who are, on this l10n activity, way
ahead from us.
Finally, during the SambaXP conference, and as usual (except last year
because of too heavy work duties), I visited my German friends, living
"close to" G ttingen, accomppanied by Luk Claes and his friend and
colleague Ivo, who were also attending SambaXP. Great barbecue at
Andreas and Kathrin Tille's place, facing the Wernigerode castle at
sunset. And the best sp tzle ever at Meike and Alex Reichle's place in
Hildesheim, with a french touch on the salad's dressing as well as
great Chilean wine brought by Meike's coworker Wolfram. Always a great
time to see these good friends even if that means driving a few hours
(and being flashed....twice!...by german speed cameras on the way to
and back Andreas place!)
To complete the week, I ran a 34km/800m+ trail today in the Rambouillet
forest, completing it in 3h31. I'll probably blog separately about
running updates as it is now quite some time that I didn't.
Guess what? I'll be sleeping well tonight...
Processor : ARMv6-compatible processor rev 6 (v6l)
BogoMIPS : 132.71
Features : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 6
Cache type : write-back
Cache clean : cp15 c7 ops
Cache lockdown : format C
Cache format : Harvard
I size : 16384
I assoc : 4
I line length : 32
I sets : 128
D size : 16384
D assoc : 4
D line length : 32
D sets : 128
Hardware : SMDK6410
Revision : 0000
So Blogger had a hiccough, and I've seen people in blogs I read being
confused about why their posts and comments to posts seemed to vanish.
I wish that people had more autonomy over their data and didn't just
feel it could vanish like that when someone messes up. Giving nontechnical
people that autonomy is hard, things have to be made quite simple,
and they have to be educated to want it.
Liw and I are trying to take preservation of user data
beyond backups at Branchable.
Coincidentially[1], while Blogger was down I was working on
automating_git_pushes_from_Branchable.
So every change made to a site is committed to git and pushed right
offsite to GitHub or Gitorious, or a personal server.
The only hard part of this for the user is the ssh key distribution,
which is currently a cut and paste affair. Monkeysphere, I've got my
eye on you..
By the way, I was stunned to see that GitHub does not support automatic
git pushes out of GitHub. Although it can notify a million CIA-type
services, the actual data is thus very subtly encouraged to be siloed.
This feature seems to have been requested since at least 2009. Can't
be that hard can it? (I didn't see a way to make Gitorious do it either.)
Next.