Joerg Jaspert: tmux - like screen, just nicer. Replacing clusterssh too.
By now I am a long time happy user of tmux
instead of screen.
I started using it somewhere in 2011 and by now I only have one usage of
screen left over (direct ttyS0 access for one serial).
As usual I have a custom config for it, and if you are interested there
is a link for you:
tmux.conf.
But the more interesting part and why I blog is that I also wrote a
little helper around tmux. Ingeniously called tm. And a colleague
said I should let other people use it too and place it somewhere
accessible. So, err, here it is. Or better, the usage output of it, the
actual script has a link somewhere below.
It is mainly useful for using tmux as a ssh-multiplexer and replacement for clusterssh though its happy to do any other tmux session too. As the help text may already have told you, you can use it to list existing tmux sessions (oh, wow!). Honestly, that one is there because
tmux helper by Joerg Jaspert <joerg@ganneff.de>
Call as: tm CMD [host]...
CMD is one of
ls List running sessions
s Open ssh session to host
ms Open multi ssh sessions to hosts, synchronizing input
$anything Either plain tmux session with name of $anything or
session according to TMDIR file
TMDIR file:
Each file in $TMDIR defines a tmux session.
Filename is the commandline option $anything
Content is defined as:
First line: Session name
Second line: extra tmux options
Any following line: A hostname to open a shell with in the normal
ssh syntax. (ie [user@]hostname)
Environment variables recognized by this script:
TMPDIR - Where tmux stores its session information
DEFAULT: If unset: /tmp
TMSORT - Should ms sort the hostnames, so it always opens the same
session, no matter in which order hostnames are presented
DEFAULT: true
TMOPTS - Extra options to give to the tmux call
Note that this ONLY affects the final tmux call to attach
to the session, not to the earlier ones creating it
DEFAULT: -2
TMDIR - Where are session information files stored
DEFAULT: $ HOME /.tmux.d
TMWIN - Where does your tmux starts numbering its windows?
This script tries to find the information in your config,
but as it only checks $HOME/.tmux.conf it might fail.
So if your window numbers start at anything different to 0,
like mine do at 1, then you can set TMWIN to 1
It is mainly useful for using tmux as a ssh-multiplexer and replacement for clusterssh though its happy to do any other tmux session too. As the help text may already have told you, you can use it to list existing tmux sessions (oh, wow!). Honestly, that one is there because
tm ls is shorter than tmux ls
More interestingly, tm s HOSTNAME opens a tmux session with the first
window being a ssh shell to HOSTNAME. Should you later type tm s
HOSTNAME again, it will attach to the existing session.
But the real kicker for me (and colleagues) actually is the ms
subcommand of it. ms being short for multi-session, it is my way of
no-longer using clusterssh. Basically you type tm ms HOST1 user@HOST2
and it opens a session with one tmux window consisting of two
panes. Showing you host1 and host2 at the same time. And the input
to both is synchronized, that is - all your input is send to both of
them. You aren t limited to just two hosts, do as many as you wish.
Actually, I have no idea if tmux has an upper limit, but I did already
have more than 100 hosts open at once. The major limitation there is
not tmux - but simply the available screenspace, as all hosts are shown
in ONE window! (The one advantage of clusterssh, it uses one xterm per host)
This is quite helpful in all kinds of administration work involving
clusters - imaging installing a package on 5 hosts of a cluster, you
usually want it on all of them - or any kind of situations where one
wants to run one command on many systems.
As I m already said, I m lazy. And so there is a way to easily define
multisessions that one uses regulary, by creating files inside the
directory behind $TMDIR, usually $ HOME /.tmux.d. They are simple
text files and let you easily define sessions you can then (re)open
with a simple tm whateveritsname.
And if you want the whole script by now: tm
This post is just a status update for the Openstack packaging, after the next version froze last week.
The Openstack bi-annual summit of next April will take place this year in Portland, Oregon, and if everything goes as plan, Grizzly will be released just before the summit. Grizzly will be out a bit before the next Ubuntu in April, as releases are following the one of Ubuntu. Openstack uses town names for it s release names: Austin, Bextar, Cactus (2011.1), Diablo (2011.2), Essex (2012.1), Folsom (2012.2), Grizzly (2013.1).
I started to seriously work on the Openstack packaging in October, and never stopped working on its packaging until now. Slowly, but surely, preparing all the packages and their dependency python modules. One package at a time, working all this every day. Folsom works now pretty well and can be used in production, and I maintain it for security (along with Essex, which is in Wheezy).
Then Grizzly was frozen last week, on the 22nd of February, with the G3 release. As I already worked on packaging the G2 release in January, managing the packaging of G3 was fast. On late Sunday, I had a repository with Grizzly built, and its corresponding python (build-)dependencies. But while just building your own repository is easy, having all the dependencies in Debian is a lot more work.
As of today, if I include all the python modules, I have (at least) touch around 50 packages in total when working on Openstack. Many of them were simply built from scratch. The only python dependency that needs an upgrade in Experimental, so that all dependencies are satisfied, is a new version of pep8. The rest of is new python modules that were not in Debian, and which are currently waiting in the NEW queue for ftp masters approval: python-pecan, python-tablib, python-wsme and websockify. Some of these python modules have been waiting there for a long time, like python-pecan (it s been waiting in the NEW queue for more than 35 days now), some like websockify and python-wsme have been uploaded only this week. I really hope it can be possible to have all of Grizzly in Debian before the next Openstack summit (this depends mainly on the ftp-masters).
Note that I do not intend to apply security patches in Grizzly until it is released as the new Openstack stable. So use my private Grizzly repository as your own risk. I intend to fix this by working on some constant integration to have nightly builds, like many people are doing with Openstack. If you want to try it out:
deb http://archive.gplhost.com/debian grizzly main
For the past few days I've been making minor changes to my static-site generator,
I feel like i've done a lot of blogging recently about failing to do things with proprietary software. That's annoying. This post is about something i made successfully with free software (and some non-software crafting): I made a Woolly Mammoth for my nephew!
I documented
Hi planet.ocaml.org.
Just a quick post to thanks Marek Kubica for his help on the planet.ocaml.org spring cleaning.
Here are the feeds that have been removed:
It's fairly straightforward to boot a UEFI Secure Boot system using something like

In a way similar to my previous post about
Since there is absolutely zero Google juice on this problem, here s some
hints in case someone else is out there beating their heads on their
keyboard in frustration.
The problem: when trying to define a storage pool (or 90+% of other
I'll soon be disposing of the Nissan Leaf that
here's the list of RC bugs I've worked on during the last week:
<iframe allowfullscreen="allowfullscreen" frameborder="0" height="225" src="http://www.youtube.com/embed/ulekCWvDFVI?wmode=transparent&autohide=1&egm=0&hd=1&iv_load_policy=3&modestbranding=1&rel=0&showinfo=0&showsearch=0" width="400"></iframe>