6:23:respawn:/sbin/getty -L -n -l /usr/local/sbin/autologin
This will respawn everything if it dies, stop respawning if it
dies all the time, avoid starting it in single user mode, and not
ask for a username.
/usr/local/sbin/autologin contains:
#!/bin/sh
/bin/login -f root MAINAPP=true
This will autologin as root, setting an extra env variable.
Then comes root's ~/.bash_profile, that just starts
X if we are doing autologin:
if [ "$MAINAPP" = "true" ]
then
startx
logout
fi
If the application was running as a special user, we could have
made things simpler and just used startx as the shell
for that user; however, we still want root to have
bash as the shell, and the above hack does it.
Finally, root's ~/.xsession:
#!/bin/sh
matchbox-window-manager &
# If the touch screen is not calibrated, run the calibration
while [ ! -f /etc/touchscreen-calibration ]
do
calibrate-touchscreen
done
# Run the main application: if it ends, the session ends
main-application
And there we go, no dependencies at all.
Why not using a display manager
gdm and kdm seem to do autologin, but
their dependency list is not acceptable for something that should
just respawn an X server in an industrial system that must be kept
simple.
xdm on the other hand has a small set of
dependencies, but its developers seem to have decided that
autologin is a ""glitz",
and there is no need for it in such a bare-bones display
manager".
Dict for "glitz" gives "tasteless showiness". What one has to
bear...
wdm seems however even more disconcerting, as it
"doesn't actually support autologin but you can set the default
user and default password in /etc/X11/wdm/wdm-config. Now, [...]
you only need to press Enter twice [...] to login".
Figure how this would look in the manual: "After powering up the
unit, attach a USB keyboard and press enter twice to start the
system".
And this is why we are not using a display manager.
# Don't put duplicate lines in the history
export HISTCONTROL=ignoredups
# When you use history expansion (the !something), allows to edit the
# expanded line before executing it
shopt -s histverify
# Correct spelling mistakes when using 'cd'
shopt -s cdspell
# Do not attempt completion on an empty line
shopt -s no_empty_cmd_completion
A few useful keystrokes:
!$ at the cursor position.*.jpg exept maybe a few of them? Ctrl + Alt +
e does full expansion on the current line, and Alt
+ ^ does history expansion only. If the expansion is too
big, use Ctrl+x then Ctrl+e, which loads the
current command in an editor and runs when you exit the
editor.man bash, look for
"Commands for Manipulating the History" and read down from
there.
Knowing many people in the Debian community, I knew others would be there
too. And Gunnar
confirmed it yesterday via
Planet Debian. Yes, I participated
in the World Naked Bike Ride,
although at the time I didn't know about the campaign, I thought people were
doing it just because we can mostly.
So, after being invited to the ride the week before, 5 of our colla
were in the old T ria's river bed, near the Fira Alternativa's
scenary at the scheduled time. Not having done anything like this before, we
were a bit expectant to see how many people would actually do it, before
deciding to join them. After a while, more and more people seemed to gather,
and it finally took off. Pants off, and there we go!
The insane amount of photographing and filming that was going on around us
at the beginning was a bit uncomfortable, but after a while we had mostly
forgotten we were riding our bikes naked through the commercial arteries of
Val ncia. The ride was too long for my taste, covering the whole
Fira, Pla a d'Am rica, carrer Colom just in front of El Corte
Ingl s (I wonder how many known people saw me there), X tiva, Russafa, back
to X tiva, Town Hall, Ciutat Vella, river margin and Blasco Ib ez.
Even if it was a sunny day, the chilly wind made me feel really cold, but
overall it was quite fun, and an interesting experience I might or might not
repeat. I'm certainly not becoming a naturism activist or anything like this.
I do think we have way too many taboos, and every time I get rid of one, I
feel a lot better. :)


This weekend will see the second Bug Squashing Party hosted in Utrecht, this time to help get Debian Lenny released. Stichting NLnet has generously provided funding for the cost of food and drink. For all details see the wiki page.
I've been experimenting with Gandi's virtual hosting service recently. In fact, this blog is now hosted on it.
Gandi have created by far the easiest hosting service I've used. The web interface allows you to buy credit, create pre-installed virtual machines and log in, all in under 15 minutes. Add the ease of Ubuntu to the mix (just one of the preinstalled images you can choose from), and commissioning times for new services are low indeed.
The hosting service is based on Xen, and allows you to dynamically change the resources your VMs can access (CPU/memory/disk), on a scheduled basis if required. It has an API which provides enough functionality for you to white-label hosting as part of your own web app.

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.
In a perfect world, when we design some aspect of our infrastructure,
we'd get it right the first time, and would never have to change our design
once it had been deployed.
Back in this world, however, we regularly have to change things as we
expand our infrastructure. Sometimes we made a mistake originally, other
times new requirements pop up. In either case we will end up doing things
differently in the future than how it was done in the past.
The danger here is that if you only create your new machines or services
differently, you've got effectively two separate and different systems to
maintain. This may not sound like much, until it happens again... and
again... and again... and then suddenly you've got 18 different ways of
setting up backups, depending on how long ago you set it up and (if you're
really unlucky) who did it and what the phase of the moon was at the time.
If you've been here before, you probably remember the pain of having some
disaster happen and needing to fix it NOW NOW NOW, only to wade into the
setup and realise that it's been done in a way that (you thought) died out
six months ago -- and so you don't really remember how it works, and yeah,
the documentation's been updated so many times since then that it doesn't
mention the old way of doing things, and here comes your boss to ask how
long it's going to be until it's all working again...
If you haven't had this experience (yet?), you'll have to trust me when I
say that it's no fun to hit an older, out-of-date system. It's especially
painful because the most common reason you change things is because the
old way sucked. So you turn up at a critical moment to fix something in
a poorly documented and sub-optimally configured system.
Fun, fun, funnity fun.
There are only two ways to avoid this problem: never change the way you do
anything, or else plan your changes so that retrofitting is part
of the plan every time you're modifying an existing service.
Assuming that never changing anything isn't an option, you need to plan to
retrofit. When you're putting together the design for your system change
(you do design your changes, right?) you need to audit what's out
there, determine what's needed to bring it all up to date, and put
together a plan to make that happen. It's like documentation and testing
-- if you don't make an explicit effort to make it happen, it'll never get
done.
That sounds like a lot of work, and it is. Luckily, if you're already
working in a well-maintained infrastructure you should only really have one
existing config to upgrade, which shouldn't be too painful. However, if
you've got a lot of machines to change there's no way around the fact that
they've all got to be changed, and that can take time.
If you accept that you don't want configuration skew, you can start to
think about how to engineer your systems and processes to make it less of
a hassle to keep everything up to date. Putting some extra thought into
how you set things up in the first place so that it's easier to update is
at the heart of this. Automating deployment is an easy way to take some
of the pain away from rolling out new configs, but there's also plenty of
smaller decisions that help with updating configs: putting everything in
revision control, making extensive use of templating and pulling out
common config fragments, and making sure that you've got good notes and
records of what has been done where.
The more you automate your deployment and maintenance, the less pain you
feel when you need to retrofit. With something like Puppet, you can
eliminate a lot of the pain because you're describing what you want done
for all the relevant machines, and then the machines themselves work out
what needs to be done to bring themselves up to date.
With an advanced automation system in place, you can say "I want all my
mail servers to have setting X turned on" and off they go and set the
option. Or you might want to have some of your mail servers to have a
different config setting, triggered based on a config setting or class of
machine.
Of course, you might not already have that config setting or class
defined, so you'll need to add it. Don't forget to retrofit that
new config setting or class to your existing machines. That might involve
finding the config for all the existing machines and modifying them.
Yep, no matter how much automation you've got you can't get away from the
need to retrofit, but given the choice between editing a bunch of config
files on my local machine (with all the power of my text editor to back me
up) or logging into dozens of machines all over the globe to edit their
configs and restart services (with all the risks of making a mistake) I
know which one I'd choose...
Yes, Manu Chao was really home yesterday in Paris Bercy. And he was obviously feeling like being home.
The concert began at 21:30 and ended up at 00:30. Yes...that makes 3 full hours concert. All that for 25 euros.
The crowd support, dance, participation was *amazing*. I often go to concerts in the Bercy arena and never saw the crowd in the upper rows being stood up all concert long.
Radio Bemba played their usual tracks first. As usual, the very Manu way to mix songs, themes from all his carreer and mix them up, distord them and make new songs from old ones. This is what always made Mano Negra, then Manu Chao oncerts unique experiences. Just imagine 20,000 people singing Clandestino a capella, most of us not knowing any damn word of Spanish...
After about 2 hours of magic without any stop, the very special moments came in. Manu, Gambit, Majiv (what a guitarist when playing rumbas de Barcelona!), Julio (de Barcelona!)...and all others were just feeling like being home with a few friends. So the encores lasted...and lasted...and lasted. They just didn't want to stop (Manu probably said about 3 or 4 times "c'est fini").
Then, they did something I never ever saw in a big 20,000 people concert since my first one back in....long time ago. Manu asked "do you have 5 more minutes?". So, they stopped for 5 minutes to get the guitars re-accorded(sp?)....the crowd just...waited...and the gig re-started again with songs from "Si Sib rie m' tait cont e", the special book-album he made with friends, inspired by the sad winters he spent in Paris in his early years. Soooooo special and, believe me, that *was* special. Seeing all roadies, crew, friends just dancing backstage and partying clearly showed this was not to always happen (this will probably happen again on today's concert).
He was just feeling like home. And so were we. Not wanting to leave and shut down the light.
Finally, at 00:30, all of us were dead tired and we just hugged around with Manu and left. Just like old friends.
I don't know if that will happen everywhere in the upcoming tour (some dates in France, some in Europe, a few in USA....nothing unfortunately in South America as of now)....but if you have the opportunity to go to Radio Bemba concerts, just do it.
And (IRC reference), really, Erinn, this was not about "ethnic music
for white people" (really wondering where you got this idea...or if
you were just kidding me). I dunno what Manu ever did to kill your
ears, but just try again and, even more important, go to the gig in
your fair city on August 22nd. Radio Bemba concerts will be cheap,
about half the price of regular bug size concerts....just use that
opportunity.
I’ve been on the road a lot lately with no time to blog (or sleep). Following are a couple items to keep this space from going completely dead.
A wild turkey stopped by our backyard (in Boston):
I called city animal control, and they said these guys are everywhere. Apparently there is no more wild left for the wildlife.
In other news, Gears is finally available for Firefox 3! For me, at least, this is a big deal, since I frequently depend on offline mode for Google Reader and have otherwise fully migrated to FF 3 for the speed benefits. Since RC2, it’s mostly stopped crashing as well.
Technorati Tags: Wild Turkey, Wildlife, Gears, Boston, Firefox
(this is an english repost from the original french one, for
planet debian)
Ok, this is just a procedure, which worked for me, for french taxes declaration. The
french governement only allows on Linux configurations with i386
architectures, and firefox.
This solutions works (at the date of the post) on a Debian Sid
amd64, but should work on every x86/amd64 Debian, because we use a
clean i386 chroot.
Let's go:
# get the packages
corsac@hidalgo: sudo aptitude -R install cdebootstrap chroot
# create the i386 chroot:
corsac@hidalgo: sudo cdebootstrap -a i386 sid chroot
http://ftp.fr.debian.org/debian
# bind-mount /tmp for Xorg in the chroot:
corsac@hidalgo: sudo mount -o bind /tmp debian/chroot/tmp
# Entering chroot:
corsac@hidalgo: sudo chroot debian/chroot /bin/bash
# configure apt:
root: echo "deb http://ftp.fr.debian.org/debian/ sid main contrib
non-free" > /etc/apt/sources.list
root: aptitude update
# installing packages:
root: aptitude -R install iceweasel sun-java5-plugin
# no need to run iceweasel as root:
root: adduser corsac
# done for inside the chroot
We now need two things in the chroot:
corsac@hidalgo: cp ~/.Xauthority debian/chroot/home/corsac/ Time to re-enter the chroot:
corsac@hidalgo: sudo chroot debian/chroot
/bin/bash
root: su - corsac
# we export the DISPLAY to use host X
corsac: export DISPLAY=:0.0
# ready to go
corsac: iceweasel
Now you should be able to go to the website and declare. No need
for symbolic link or LD_LIBRARY_PATH hack. I failed to use
sun-java6-plugin.
Don't hesitate to purge your chroot and restart from a clean
one. You can also clean the folder where the shared lib is stored,
in ~/.TaoUSign.
Hope that helps.

Several people have approached me (or I've stumbled upon their sites) asking me about something called Debian 5.0 Beta 2.Kill
time expired due to a mysterious modem problem. According to the
documentation simple faxalter calls should be sufficient.
This turned out to become more fun than originally thought, however. The
time to send the fax need to be altered as well as the kill time. Also,
it may be required to use the ADMIN user of HylaFAX instead of the regular
root user. faxalter will ask for the password
which needs to be configured in the global configuration file.
To make life more interesting the order of command line arguments is
significant for the faxalter program. The ordering below did
work:
faxalter -A -a now -k now+5hours -v -r IDmore
After thinking it over a couple of times, I did it. I told you here about the World Naked Bike Ride. Thousands of bikers, in over 130 cities around the world, voiced their concerns about the lack of caution drivers have towards us, about the abuse of fossil fuels for urban transportation, about the easy we are not to be seen. Many among us have been run over by careless drivers (in my case, no consequences except a broken helmet - And yes, MJ: although the impact was on the flat surface of the road and not on the kerb, the strength of the impact still amazes me). We feel naked against the motorized traffic. So, the WNBR decides to show it by taking the streets of our many cities - Naked.
My mobile phone has a 206 area code (Seattle). People sometimes ask
me why I don't have a 617 number (Boston/Cambridge). In fact, I had
a Massachusetts number in college but switched to a 206 several years
ago on a trip back home in order to get a "permanent" Seattle number.
With a move to mobiles phones, the idiosyncratic fact that US mobiles
remain tied to geographic area codes, and the effective elimination of
domestic roaming and long-distance, an area code in the United States is
increasingly not about where you are but about where you are from. Or,
perhaps more accurately, about where you want people to think you are
from.
I maintain a number of web shops for
our webmaster cooperative
and one of our main challenges is to
encourage people who put things into
their basket/cart to actually buy them.
How to avoid shopping cart abandonment by Graham Jones
makes some points that I've identified as
possible reasons for people not buying
in the past: comparisons,
robots and not trusting the site enough to
give payment details.
There's not much we can do about robots or
people comparison-shopping at a technical
level, but
we try to build some trust by publishing
the shop owner's geographic address and
telephone number (which I think is required
by law in England for most web shops now),
making sure the SSL certificate and domain
registration details are correct,
using reputable payment
providers and being clear about
delivery charges and terms.
The point about the
slickness of the checkout process is a good
one and one that we've only recently started
to work on. We've had pretty good
results from making the checkout slicker
on one site. It looks like two-thirds of
people who click the checkout button now
continue to buy, putting it comfortably ahead of
current UK averages
but I need to tweak our stats calculator to
make the report directly comparable.
Nevertheless, I think those improvements
will be added to our other shops as soon as
possible.
I share Graham's low opinion of the oft-quoted
Amazon.
We've also been looking at other web shop
software besides
OSCommerce
for a new project, so now would be
a good time to change to something new if
it improves the checkout a lot.
We've made OSCommerce's checkout a lot
smoother, but it's still essentially OSC.
Is there a good checkout which you'd want
to use as an example?
The other challenge is getting visitors onto
the site in the first place.
How To Build Links By Patrick Altoft
explains the basics as well as I've seen
recently.
Next.