[lang]

Present Perfect

Personal
Projects
Packages
Patches
Presents
Linux

Picture Gallery
Present Perfect

one-click terminal window to remote hosts

Filed under: Fluendo,Hacking,sysadmin — Thomas @ 15:54

2007-04-01
15:54

By now we have three platforms we're managing - one internally for development, and two external ones. It gets a little tedious always typing the right commands to log in to them, and it gets a little dangerous because the hostnames are named relatively consistently across the platforms, and a terminal prompt only shows the first part. So, "myimportantserver" would exist in all three platforms, and it's just no fun at all to discover that you typed "reboot" in the wrong window.

Here's how I set up a gnome-terminal launch icon on my desktop for each platform:

  • Create a new profile in gnome-terminal (Edit>Profiles, New)
  • Give it the name of your platform/group of hosts, for example my.platform
  • Edit the profile, go to the "Title and Command" tab, and select "Run a custom command instead of my shell"
  • As the custom command,enter "ssh firsthost.my.platform"
  • In the Colors tab, deactivate "Use colors from system theme"
  • Pick a background color that will remind you of this platform
  • Right-click on a panel, add a custom launcher
  • Give it a name like "Terminal my.platform"
  • As the command, use "gnome-terminal --window-with-profile=my.platform"
  • Pick an icon (Would it not be nice to have nautilus's emblems for this ?)

Now, clicking the icon should give you:

  • a terminal window
  • with a login on that machine
  • in a different color than your normal terminals, so you really know what platform you are on

Make sure you make log-ins very easy by using ssh keys, and using a desktop running under ssh-agent, so you can ssh-add your key once and then log in to these machines with a single click.  You should make it easy to jump from this entry point host to the other hosts on your platform, by using authentication forwarding for this first host.  This makes going to the next one as easy as typing "ssh nexthost"

Now, for the dessert: open a new tab in this terminal and see what happens!

Positive tension

Filed under: Music — Thomas @ 10:27

2007-03-28
10:27

is when you like a CD so goddamn much that you have a really hard time bringing yourself to stop playing it for 10 minutes so you can rip it in sound-juicer, so you can copy it to your N800 and listen to it all the time on the way home.

Yes, finally a new album knocked Bloc Party's latest off of my all-day-long playlist, delivering me from my nightly wake-ups with mr. Party's tunes in my head.  The new album is Mintzkov's second (ignoring the name change) album, 360°.

In unrelated news, I finally took the time to update to WordPress 2.1.2.  I still think that hacking on websites has a non-flow-inducive aspect to it, but at least now with my setup where I commit to an svn dev branch until I'm happy, then svnmerge to the www branch, and having auto-updates on commit, it is bearable.  Bearable enough to fix 100 XHTML validation errors in one session.

As a side effect, comments should now be possible here.  Let's see if I can keep the spam out this time around.

keyboard

Filed under: General — Thomas @ 22:22

2007-03-26
22:22

My venerable T40 (which has small pieces of plastic coming off of it at an alarming rate) was having a few keyboard issues lately.  Some of the keys' lettering has worn off, which is not that big of a deal.  But some keys don't actually work all of the time, causing me to type a lot of errors.  And sometimes on boot some keys just aren't working.  Given that these keys often include h and m, two letters that are part of my login name, this is a little annoying.

A while ago I ordered a new keyboard on EBay, and foolishly decided to have it delivered to Peter's house in Belgium, because I was going to spend ten days there over Christmas.  Of course, it is probably no surprise to anyone that the delivery with US Postal Mail took a lot longer than the 7 planned days, and it arrived long after I had left Belgium again.

This weekend I finally went past Peter's to go and collect it.  I was going to wait until I was back in BCN to install it, but this weekend my laptop failed to have working m and h keys six reboots in a row, so I decided to install it straight away.  And it's definitely an improvement.

Living here in Barcelona I have come to realize even more than before that the layout differences between French/Belgian and US are range from understandable to completely silly.  Exchanging Q/W for A/Z makes no sense to me at all.  Putting the numbers to be used with shift is only very vaguely understandable, and mostly annoying just because it is different.  The Spanish one is not that much better, but at least it has Q and W right.  For programming, both are frustrating (having to use alt for square brackets and parentheses).

So I have decided some time ago that for me personally, the One True Keyboard from now on will be US/International.  So that's the keyboard I ordered for my laptop, and when I was in the States I also got a wireless keyboard with this layout.

Funnily enough, while I'm a good typist and I manage just fine switching between French and English/Spanish, having my laptop in English and the desktop in Spanish is breaking my muscle memory.  The most baffling difference: ( and ) are above 9 and 0 on the English one, and above 8 and 9 on the Spanish one..  I hope someone up there is enjoying this.

So tomorrow I will bring my English one to work and from that point on I hope to have US/International rock my world.

(Apparently I am not alone thinking the keyboard situation is silly - Julien, my boss, apparently also always uses US, even though he remains a real French man).

moap 0.2.2

Filed under: Hacking,moap — Thomas @ 23:21

2007-03-25
23:21

This release has been sitting on my hard drive for the last week, waiting for me to find some time to finish it off and send it out.

I'm happy with this release because I finally got to hack on a feature that was in my sights for a while now - replacement of the prepare-ChangeLog.pl script. Not only because it is named terribly or because it is in perl, but also because I think this is a useful feature for us non-emacs users that should be correctly maintained and extended to support other VCS systems.

From the RELEASE notes:

In the days of yore, grandpa used to communicate his hacking results
to other greyed hackers using GNOME's prepare-ChangeLog.pl script.
But grandpa was a lazy typist so he named his copy cl.pl
And grandpa was a Subversion user, so he hacked in some ugly SVN support
in his copy of cl.pl.
And a friend of grandpa was a TLA user, so the friend hacked in some uglier
TLA support in their copy of cl.pl.
And grandpa was a sharer, so all grandpa's hacker friends in the old age
retirement home had a copy of cl.pl, either the one with or without TLA
support, depending on when they befriended grandpa.
And grandpa was a Perl hater, so he muttered in his beard every time he
had to look at the code.
And grandpa had Alzheimer's, so he never could remember to send patches
upstream.

But now grandpa has a grandson, who is still young and naive, and full of
energy, and he decided to carry on grandpa's work. And he implemented
moap changelog prepare, and all was well.
And he added "mcp" as an alias to "moap changelog prepare", in his .bashrc,
and "mcc" as an alias to "moap changelog checkin", and lo! did he go forth
and hack and communicate.

And the young hacker removed grandpa's old cl.pl script from his $HOME/bin
directory, printed the script, folded the papers into a bouquet of flowers
and put it on his grandfather's grave.

More info on the project page.

This release is also the first release to receive an outside patch - from none other than GStreamer's bug master, Tim Philipp-Müller. He earns eternal moap "first patch" bragging rights.

On my wish list: support for other VCS systems, and distro packagers packaging this and putting this in their distros.

Webshop and GLIBC

Filed under: General — Thomas @ 11:32

2007-03-23
11:32

We sometimes get some mails on why a plug-in from our webshop doesn't work. The number one reason is the person in question has glibc 2.3.

Some people think we are cruel unjust people for building against glibc 2.4. I just wanted to take a moment to explain the reality so you can decide for yourself how cruel we really are.

Since it's Christian doing builds and me setting up the infrastructure for him to do builds in, we do the builds on Fedora systems. We are both Fedora users. In our office we are pretty much alone; the majority uses Ubuntu. We use Fedora on our platform, and I've developed a build tool over the years that makes it very easy to build in a clean chroot to make sure no unwanted dependencies creep into the build.

We build in a Fedora Core 5 chroot because it was the first one to ship with GStreamer 0.10. It just so happens that FC5 was the first Fedora release to ship with glibc 2.4. At the time where we decided what glibc we wanted to support, we took a look at the major distributions out there, checked if they had glibc 2.4, and decided that they did. I think Ubuntu's Dapper was still on 2.3, but there's Edgy and Feisty now, so that sounded good to us. When it came to Debian, we somehow assumed that their next release would not be obsolete at the time of release by shipping glibc 2.3.

Well, seems we were wrong. Etch has not been released yet, and already it has been decided that it will not ship with glibc 2.4. It is no wonder that Debian lost so many users to Ubuntu (Incidentally, is it a coincidence that "Etch" is very similar to "Edgy" ?)

Personally we wouldn't want to make our webshop even more confusing by listing what glibc a plugin is built against, and building against both glibc's. Building in FC4 could possibly be less than ideal - some of the features that GStreamer plug-ins can support (like QoS, reverse playback, ...) are decided at compile-time based on the presence of headers, and I'm not sure we will still bother about building GStreamer on FC4 for much longer, because in practice it's all just extra work for Christian and me.

Are we evil that we don't take more hours out of our day to build on glibc 2.3 ? You bet, we are cold heartless bastards. But in reality 90% of the people on glibc 2.3 are users that have an upgrade path to a more recent version of their distro; the other people are future Debian Etch users. I'm sure the Etch releasers have convinced themselves of the usefulness of not releasing with a glibc 2.4 that is more than 15 months old, and instead opt for an even older series, even before they actually release. But I am starting to wonder more and more who the people are that are waiting for a release like this.
Realistically speaking, it is possible that we may add glibc 2.3 plugins in the future if we see that more than just Debian is affected. We are not against taking your money for giving you a service that works. But the hours in our day are just as scarce as they are in yours. I just wanted to explain this to people that want to know, to take away your incentive to complain about a nameless faceless Company being Evil to you.

« Previous PageNext Page »
picture