Clint Adams: Cayrin


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.

Personally, I like Friday 13th.
It's usually been
pretty good for me. But for this one,
I won't be surprised if computer abusers
are planning some big attack tomorrow.
I've just spent a big chunk of my day
upgrading and securing some of the websites
that
our free software cooperative
supports for a customer.
The number of attacks in the access logs is
surprising - and I've been fixing other
people's cracked servers for over a decade.
It makes me wonder if someone is finding and
recruiting exploitable systems for tomorrow.
If you have a website, please check that
any web applications on it are installed
correctly and the latest secure versions.
I've been seeing
a lot of attack attempts for
Joomla
and
WordPress
in particular, even on sites which don't
run them. That says something bad about
either the success rate of attacks for them,
or the stupidity of their attackers.
In our case today, the damage seems to have
been minimal (touch wood!),
with the customer merely being
banned from some networks for a while.
It could be so much worse, like this
BBC News report about Cotton Traders
Card details stolen in web hack
(which is part of why I suggest small online
shops avoid storing credit card details on
their site - leave it to the payment gateway).
Finally, there are some new scams like
Conmen abuse web address checks
on the horizon for online shops, so make
sure you've got your 3D-Secure rules set
correctly by now and be cautious about
sending goods before you're sure you've got
the money. I think all web card payment
systems are a risk, so please
try to limit your risk.
Update:
If you do get attacked, try to help track
the attackers down so we can get other results
like the
Jail sentence for botnet creator.
I wish our governments would concentrate on
toughening up blatent computer misuse law
and stop
tightening copyright law in secret.
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.
After upgrading an ubuntu LTS server at work proftpd (not my choice) would not transfer files anymore. It would die with:
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.


Things in your computer that you do not have the source code for:
Dirk often blogs about
running and generally posts his running paces as minutes/mile. Well, we're
both geeks, so numerical challenges are logical for us..:)
I follow my own 'performance' (or lack of) in terms of speed in kilometers
per hour. Which makes the conversion fairly hard.
Just to confirm that we live on different planets, this week, I tried to get a rough idea and then calculated my usual pace
(for distances ranging from 15km to 25km, as well as short distances such as
5km):
edos-debcheck.
Using it it is possible to check (incredibly quickly) whether some
package in a given distribution cannot be installed according to
its dependencies. When there are such packages it usually means
that the distro is buggy s it is shipping uninstallable packages
(there are some corner cases, but they are rare).
In fact, edos-debcheck has been run daily (as a
service maintained by Ralf) on
Debian's main suites and some derivatives for years now. The
resulting list of
uninstallable packages is linked from http://edos.debian.net and is being
used by the QA team; I've no idea if it is being used by the
Release Managers too, but it probably should be.
A cool toy built on top of edos-debcheck was the
Debian weather
(part of a more generic service called Anla, I'll blog about it
sooner or later ...). Debian weather basically used to present the
status of a given Debian-based distro in term of how many
uninstallable packages were shipped using the weather metaphor: the
fewer the uninstallable packages, the better the weather. I wrote
"used to" because Anla was stopped about 1 year ago, and is being
re-engineered these days.
In the meantime it was a pity not to have the Debian weather (as
Enrico
pointed out with me), so I spent some time to resurrect it on top
of edos-debcheck daily runs: Debian weather is
back, enjoy!
When I write text documents (using LaTeX or Docbook), I like to wrap lines, as it makes them easier to edit (less things moving on the screen), and allow to have easy-to-read diffs.
However, I always hesitate before rewrapping paragraphs (using vim’s gqap): this mean that I will add noise to my git history. So I only do that from time to time, making “rewrapping-only commits”. But that sucks, since in the meantime, I sometimes make a lot of changes, and my lines grow long again. Of course, I could rewrap my paragraphs before each commit, but if I simply add a word to a paragraph, it might cause all the lines to be rewrapped.
So I what I would need is some kind of “text normalizer” that will:
\begin tabular l l \hline x & y \\ 1 & 2 \\\hline \end tabularor
\begin figure \centerline \includegraphics fig \caption Cool stuff \label coolstuff \end figure(vim does rewrap those examples.)
Next.