It ain t what you don t know that gets you into trouble. It s what you know for sure that just ain t soThere is a lot that I don t know about what goes on in my organization. This isn t only because I can t observe everything, or because it s too complex, or because I make mistakes. These are all true, of course, but they re also obvious. Much more devious is the way the flow of information to me is distorted. It s distorted by me, and by the people around me, whether any of us are aware of it or not. This is most apparent in considering how people feel about their managers: this is why I have a deeply flawed view of what it s really like to work for me. My theory is that power bends information like gravity bends light. The effect is more pronounced with people of greater mass (more authority), and lessened with distance (less direct influence). The more directly you influence someone else s fate, the more it is in their self-interest to be guarded around you. This means that the people closest to you, who you receive the most information from, may have the most difficulty being open with you, especially if it s bad news. It also means that the higher your standing in the corporate hierarchy, the more influence you wield, the more people are affected by this. Pretty scary, right? Some managers respond to this terrifying reality by trying to collect more information. They ll quietly cross-check what people are telling them, asking people in different levels of the organization, routing around managers, hoping to get the real story . This usually backfires, because it signals distrust to the people involved and makes the distortion worse. Another common response is to check in constantly, trying to monitor and control the work as closely as possible (so-called micro-management). This is even worse; not only does it signal distrust, but managers who do this become more personally attached to outcomes, and lose perspective on progress and quality due to information overload, self-enhancement bias, and neglect of managerial work. The more it becomes your work rather than the team s, the harder it is to see it objectively. So what s a better way to respond to this phenomenon? Here s what I try to do:
attributed to Mark Twain
dmesg, look
into X logs, possibly run X inside gdb and see where it breaks
(because glibc s backtrace isn t exactly an excellent tool to
get the idea of what s going on and that s the tool used in X to
print a backtrace in the log through a signal handler).netconsole. As far as limitations are
concerned, one shall note that it s UDP only, and over Ethernet (in
other words: no wireless). The good news is that it can usually make
the last crucial lines available.
Let s call the crashy machine a patient and the logging machine a
doctor.
One should keep in mind that if something goes wrong while configuring
the netconsole module, it can be unloaded at anytime through:
sudo modprobe -r netconsole
Easy case: on a local network
Here s an example: Patient s IP is 192.168.0.1, doctor's IP is
192.168.0.2.
Doctor setup
What one needs on the receiving side: only netcat. A tiny warning,
there are several implementations. Here s the appropriate syntax:
# netcat-traditional:
nc -l -u -p 6666 tee ~/netconsole.log
# netcat-openbsd:
nc -l -u 6666 tee ~/netconsole.log
The nc command is handled through the alternatives system, one can
use update-alternative --config nc to pick the appropriate one if
several netcat-* packages are installed. To list the current one, an
easy way is readlink -f $(which nc).
Using tee means that incoming messages are going to be printed, both
to the standard output and to the specified file.
Running as non-privileged user is sufficient.
Patient setup
Now, to have the patient send stuff to the doctor, a simple modprobe
is needed:
sudo modprobe netconsole netconsole=@/,6666@192.168.0.2/
What happens here? One requests the netconsole module to be loaded,
and one specifies the parameters. Details can be read in the Linux
kernel documentation (Documentation/networking/netconsole.txt), but
concentrating on the points of interest here:
[2920549.188090] console [netcon0] enabled
[2920549.188102] netconsole: network logging started
Slightly harder case: over internet
Because one might not have a second machine handy, it s also possible
to go through a router and send stuff across the internet.
Here s an example: Patient s IP is 192.168.0.1, connecting to
internet through a router, which IP is 192.168.0.254. The doctor,
available over the internet, is 192.0.32.10.
Doctor setup
Exactly the same as in the previous case. The main issue one can run
into is firewalls at this point. That s why one may want to switch
from the default 6666 port to another one which wouldn t be
filtered. One can think of 53 (DNS), but that means running nc as
root since it s a privileged port (below 1024).
Patient setup
Routing is also possible, but that requires an extra parameter: the
MAC address of the router. To obtain it, one can use the arp
command:
/usr/sbin/arp 192.168.0.254
Supposing it returned the 01:02:03:04:05:06 address, loading the
module becomes:
sudo modprobe netconsole netconsole=@/,6666@192.0.32.10/01:02:03:04:05:06
Now, if you re running into firewall-related issues, you can change
the source for the UDP packets. The default is 6665, but assuming you
want to send from an unfiltered 1234 port, that becomes:
sudo modprobe netconsole netconsole=1234@/,6666@192.0.32.10/01:02:03:04:05:06
I would tell you about the phone call I had with a company where the CEO acknowledged that they were behaving in criminal activity in multiple jurisdictions but promised that they'd probably stop in a few weeks and so I shouldn't worry, but it seems that in the modern Internet I'm not allowed to because there were no independent witnesses and I haven't called the police, and also if I wanted people to respect my copyright I shouldn't have put my software on the internet where I'm just begging for it to be taken advantage of. Also, in future I won't be fixing any bugs unless they happen to me because you might just be making them up make my code look bad, and also you shouldn't accept any patches from me because I might by lying about things just to inflate my patch count and make myself look better at the expense of competing companies.
Last week, I worked on my Google Maps for Emacs extension. I've introduced a
new format handling for locations which include the longitude and latitude.
The initial format was just a string describing the location, which was
obviously too limited.
It now prints coordinates of the different elements when the mouse is over
the map, with other information.
It also center the map on M-x google-maps and set a default zoom level. This
is something which was not set because it's not a good idea to set center
coordinates in order to see all points on the map automatically. But you can
still remove the centering by pressing "C". On the other hand, setting it
automatically allows to move the map easily, and I think that what most
users want to do.
I've also added a "place my home on the map" feature, accessible by pressing
"h" on any map. That adds a marker according to the location set in Emacs
using the calendar- variables.
This feature is also available under Org by pressing C-u C-c M-l, which
shows the location of your appointment with your home on the map too.
Finally, you also get caching so it does not request images you already
seen, which makes the moving nicer and faster to use, and prompt history.
You re probably manipulating Debian packages everyday, but do you know what those files are? This article will show you their bowels Surely they are more than file archives otherwise we would just use TAR archives (you know those files ending with .tar.gz). Let s have a look!
1. It s two TAR file archives in an AR file archive!
A .deb file is actually an archive using the AR format, you can manipulate it with the ar command. This archive contains 3 files, you can check it yourself, download any .deb file and run ar t on it:
$ ar t gwibber_2.31.91-1_all.deb debian-binary control.tar.gz data.tar.gz
debian-binary is a text file indicating the version of the format of the .deb file, the current version is 2.0 .
$ ar p gwibber_2.31.91-1_all.deb debian-binary 2.0
data.tar.gz contains the real files of the package, the content of that archive gets installed in your root directory when you run dpkg --unpack .
But the most interesting part which truly makes .deb files more than a file archive is the last file. control.tar.gz contains meta-information used by the package manager. What are they?
$ ar p gwibber_2.31.91-1_all.deb control.tar.gz tar tzf - ./ ./postinst ./prerm ./preinst ./postrm ./conffiles ./md5sums ./control2. It contains meta-information defining the package and its relationships The
control file within the control.tar.gz archive is the most fundamental file. It contains basic information about the package like its name, its version, its description, the architecture it runs on, who is maintaining it and so on. It also contains dependency fields so that the package manager can ensure that everything needed by the package is installed before-hand. If you want to learn more about those fields, you can check Binary control files in the Debian Policy.
Those information end up in /var/lib/dpkg/status once the package is installed.
3. It contains maintainer scripts so that everything can just work out of the box
At various steps of the installation/upgrade/removal process, dpkg is executing the maintainer scripts provided by the package:
postinst: after installation preinst: before installationpostrm: after removalprerm: before removalconffiles file provided by control.tar.gz. That way dpkg will deal with them in a special way.
5. You can always add new meta-information
And in fact many tools already exploit the possibility to provide supplementary files in control.tar.gz:
md5sums file to ensure no files were accidentally modifiedshlibs and symbols files to generate dependencies on librariesconfig scripts to collect configuration information from the user/var/lib/dpkg/info/package.* along with maintainer scripts.
If you want to read more articles like this one, click here to subscribe to my free newsletter. You can also follow me on Identi.ca, Twitter and Facebook.
Hello World.
I am very pleased to announce apt-offline, version 1.0.
This release adds a Graphical User Interace to apt-offline.



I've always loathed cheap particle board and peg bookcases, and when I
broke one while reorgaising the living room at the Hollow today, I finally
found a good use for them. They're great fun to chop up with an axe, and
make for a very hot fire in the stove later.
I released git-annex 0.03 today. The main
improvements are being able to configure the backend to use on a per-extension
basis in .gitattributes, a fsck subcommand that will find dangling annexed
content, and bugfixes, including massive memory use savings. The big feature
under development next is an idea Josh Triplett and I batted around; a way to
checkout annexed files to edit their contents.
Today I also got the radio working well here. Set up a car radio with a 40
foot wire for an antenna, and I finally got it almost static free. Pity
that running a nslu2 on the same power circuit causes interference, so I am
not able to use that to feed in music via the radio's AUX jack yet, which
is the eventual plan. And the radio's powered USB outlet is wasted, I had
hoped to run the nslu2 from that. Seems I can run the radio for 9 hours and
still have plenty of solar power, even this time of year.
Wish it were colder..
At LCA in Wellington -- immediately after a trip to Japan where I
saw sumo for the first time -- a number of us created a game we
called "monopedal sumo." Basically, the rules are those of sumo
wrestling. Push your opponent either down or out of a ring before
they do so to you. Unlike normal sumo, in our game you do so standing
only one one leg. If your second leg touches the ground. That also
counts as a loss.
It's surprisingly entertaining. Try it!
Security is more than bug fixing. Security fixing/updating, the thing most people are exposed to, is reactive security . However, a large area of security work is proactive where defensive abilities are put in place to try and catch problems before they happen, or make classes of vulnerabilities unexploitable. This kind of security is what a lot of people don t understand, and I think it s important to point out so the distinction can be clearly seen.
In the Linux kernel, there s yet another distinction: userspace proactive security and kernel proactive security. Most of the effort in kernel code has been protecting userspace from itself (things like Address Space Layout Randomization), but less attention has been given to protecting the kernel from userspace (currently if a serious enough flaw is found in the kernel, it is usually very easy to exploit it).
One project has taken great strides with proactive security for the Linux kernel: PaX and grsecurity. There hasn t been a concerted effort to get its pieces upstream and it s long overdue. People are starting to take proactive kernel security more seriously, though there is still plenty of debate.
While I did my best to push some userspace protections upstream earlier in the year, now it s time for kernel protections. What to help? Here is the initial list of things to do.
Dan Rosenberg has started the information leaks discussion, and I ve started the read-only memory discussion. Hopefully this will go somewhere good.
Last week I was on my first Ubuntu Developer Summit (UDS-N), I wanted to attended this summit for couple of reasons:
1. Developer, I m part of Debian Java, working on Eclipse IDE, and as you re developing Debian, you re automatically developing Ubuntu, no?
2. DebConf11 main organizer, I really wanted to see how it s all done on corporate level, for instance we re going with hotels instead of student dorms and so on.
3. Migration to Linux infrastructure, make contacts and have some talks on this topic, because after DebConf11 in Bosnia a lot of institution will most probably open doors to open solutions such as Linux.
I went to this summit without any expectations or plans, just said I ll play it by ear. This years UDS was held in Orlando, Florida before Orlando I was planning to stay in NYC for couple of days, therefor my whole plan was to get to NYC, then Orlando then head back home
I
NYC
I spent couple of days here with my cousins and friends, as always NYC never fails to surprise me, and I ll always stop by even if it s only for couple of days
I wanted to meet up with couple of Debian people as well, but unfortunately my schedule was too tight so
Caribe Royale, Orlando
Please note that this whole trip was crazy (in a good way) starting from Sarajevo; on my flight from NYC to Orlando I see a guy that s sitting in front of me is wearing Canonical Landscape tshirt, I approach him and it turns he was Jamu Kakar working on Landscape. Since my luggage was late we had conversations from Debian over Ubuntu to Java to everything pretty much. While we were still at the airport, we bump into two more people going to UDS.
As we got to hotel, same moment we walked out of cab there he was Jorge Castro, was he there just to smoke a cigarette or whatever doesn t even matter, what matters is that even before walking into hotel building I knew where reception, my tower and bar was, everything I needed to know at that moment
Hotel where everything was held was Caribe Royale and even though I looked at their website I thought there was no way it s all going to be that nice, to my delight it was exact replica. Place is All-Suite Hotel and Convention Center , which meant that both accomodation, venue and everything else was in one place which is
Ubuntu Developer Summit (UDS-N)
Ubuntu, Debian, DebConf, differences?
Even though I said I ll play it by ear, from very beginning I thought I d be complete outsider, being part of Debian and all. Quite contrary, I was everything but outsider, and even more there was plenty of Debian people there, including current DPL Stefano Zacchiroli, Colin Watson, Riku Voipio just to name few. There was also a Debian Healt Check plenary.
But overall, there are differences between DebConf and UDS. One of the things is that you can attend UDS remotely I m not sure how much is this doable on DebConf, but then again vast differences are that UDS is filled with BOF s (as we would call it in Debian) meetings of different teams, I attended a lot of these, and most of them end with some kind of conclusion. While each day there was (only?) an hour of lectures on various topics, which on DebConf we would characterize maybe even as speed talks .
However, everything was high paced, and it all ended up on You think that s a problem? How do you think we could solve it? . I had a feeling even if I didn t say something out loud that someone would hear me and approach me to discuss it. Everything was straight forward, all in goal to resolve certain issue or a problem, which I absolutely loved.
Fun
It wasn t all work, even though Orlando doesn t seem to be my kind of city from what I saw, it s way too magical for my taste
There was a lot of places where you could go to enjoy yourself. Good people at Canonical even offered me free ticket to Disney World, there was a lot of destinations to visit and transpiration was also organized by Canonical. Unfortunately I missed the notorious UDS party on Friday because I had to head home early, but possibly I ll make it next year
Even though, hotel was that great and to be honest you didn t have to leave to look for party.
My favorite was Universal City Walk, one night I decided to go to see Blue Man Group, best part of it was that I got pulled up on stage by one of the members and was part of one of the acts!
This is definitely something everyone should see during his life, one moment you re laughing like a lunatic, while other moment you re just having goose bumps from the performance itself. Amazing stuff.
After all I wrote here along with the pictures, is there even anything else I need to say?
I believe that even if I didn t play it by ear, this whole trip would exceed all my expectations in every possible sense. Because that s really what happened, those three reasons I was going to UDS for? Far more happened than that.
All I can say in the end is that I ll move closer to having a part in Ubuntu development, and yea, I ll try to be regular on UDS from now on
See you in Budapest?
If all these photos weren t enough, you can find official group photo as well as personal set of photos can be found on: UDS-N photos by 2010 Sean Sosik-Hamor
Google Code-in, Google s contest to introduce pre-university students of ages between 13 and 18, to the many kinds of contributions that make open source software development possible, is starting on November 22, 2010 and Debian is one of the 20 organizations selected to take part.
If you are student interested in contributing to Debian, you can find more information in the wiki page http://wiki.debian.org/GoogleCodeIn2010.
A list of tasks is available at http://wiki.debian.org/GoogleCodeIn2010/Tasks and if you a Debian Developer, you still can add tasks by filling the template provided in the top of that wiki page.
You can join the IRC channel #debian-soc (on irc.debian.org) and the Debian GSOC mailing list to talk about your ideas and applications or if you have any question.
My recent experience with Mozilla ThuderBird, IceDove.
With KDE 4.x, the KDE team took a radical step of ripping apart most of the stuff and rethinking many of the designs. Quite a bold move. Many people appreciated KDE's efforts to start afresh while others moved away from KDE. For some reasons, I decided to stick to KDE. Maybe it was because of the awesome flexibility KDE provided provides to customize the DE to one's personal taste. Or maybe because I was too used to the KDE way of doing things. I stayed with KDE while 4.0 was released and stayed with it up till very recently.
I started to lose my patience with the PIM Suite. I know the PIM team is also going to some very radical changes which will bring very innovative stuff later. But, at the moment, the KDE PIM suite is very broken. Broken not in the first impress, but broken when you regularly use it. It leaks memory like anything and keeps doing lots and lots of I/O. I hope some day the KDE team decides that they do need a core team, a core team that could take care of important tasks, making sure that the imporatant tasks are Continuously Usable. It takes time to earn the reputation but it takes a lot lesser time to lose it.
Anyways, having been a KDE (PIM) user for long, I had been bearing the PIM torments up until, I recently saw a colleague using IceDove. There was a time when the Mozilla suite was in itself terribly slow. But things seem to have changed a lot. Both, the browser and the PIM suite, have improved a lot lot in terms of functionality and performance. Performance is very important. What good is a feature if its performance is terrible and it hinders the usability. Some of the things that really impressed me were:
Tomorrow I won't have to deal with it getting dark at a soul-crushing 5:30
pm. Nor will I have to wake up blearily an hour early in the spring.
Instead I will be enjoying my new, custom time zone. It's "JEST", for "Joey's
Eastern (non)Standard Time", and in JEST, there is no spring forward or
fall back stress.
The folly of daylight savings time (Ben Franlin's best prank ever) really
becomes apparent when you have solar power. It's bad enough that the sun is
setting at 6:30 without compounding that by an hour. By keeping my clock
set so the sun sets in midwinter at 6 pm, I will maximise what little light
there is, and minimise time spent using batteries in the dark.
Of course, it helps that I'm my own boss, and that most of the people I
work with are probably not in a nearby timezone anyway, and that most
things are done asynchronously. Since JEST is an hour ahead of local time
here in the winter, I will, at worst, tend to be running early.
So I only have to change my clocks one time -- and by "change", I mean
create a custom timezone in Linux. Here's how to do that.
~/.zoneinfo
zic JEST.zone -d ~/.zoneinfoTZ=JEST+4
Result:
date: Sat Oct 30 21:43:39 JEST 2010
date -R: Sat, 30 Oct 2010 21:43:39 -0400
Previously:
My wife has been pestering me for months to get a replacement for our dead Epson inkjet printer (which didn t last long, mind you). To avoid the nightmare of printer support, which, unless you buy a high-end professional printer which does everything plus the coffee, is usually somewhere between disaster and works sometimes , we spent a long time on manufacturers websites to choose wisely the model.
We chose the HP Laserjet P1102, which, according to HP, has a full support level and is even part of their recommended models.
Yet, after plugging it in, it took me quite some time to understand why it would behave as a brick instead of a printer. First, I thought it was a bug in hplip. Then, I soon discovered that the printer advertised itself as a storage device instead of a printer. What, a buggy firmware?
Thanks to a random question on Launchpad I discovered it s not a bug, it s a feature. It s named HP Smart Install and it turns out it s yet another stupid idea to support OSes that are too dumb to detect your printers automatically: the printer advertises itself as a CD drive, until you install the driver that will make it switch back to being a printer.
What happens to those who don t want this feature that turns your printer into a 10 kg, read-only USB drive? Well, HP has a solution in the Smart Install FAQ:
25. Can I turn HP Smart Install off or on?Bunch of idiots. If I buy a 100 printer, it s not so that I have to buy a 100 operating system just to activate it.
Yes. You can use the HP Smart Install utility to disable/enable HP Smart Install. The utility is stored on the software CD, in the UTIL folder. SIUtility.exe is for 32-bit operating systems and SIUtility64.exe is for 64-bit operating systems.
This might save someone a good deal of sifting through ancient posts on
obscure forums: if you wonder why your SunBlade 1000 workstation refuses
to boot off a freshly burned DVD, keep in mind that the standard-issue DVD
drive in those machines (typically Toshiba SD-M1401) is pretty picky about
the DVD media type used. Trying to boot off DVD-R discs invariably failed
for me with a "read failed" error, while the same image burned onto a DVD+R
blank worked like a charm.
Next.