Joerg Jaspert: KVM-Shell
- You want to have local users with this script as their shell
- Then add them to a sudoers so they can run virsh
- Party
I must confess, I thought only DD s can be on the Debian Planet and a few days ago I read someone telling me that I must add my blog to the planet, so I went to the Planet wikipage and I saw that Planet Debian is for any active and directly involved participant in the Debian development community.
This is my first post on the Debian Planet. I m member of the DC12 Local Team and I ll try to post here updated information about DebConf12 organization, my experience in the Debian Community (I m starting to collaborate with Spanish translations for the Debian Plubicity Team), and other Debian-related things as well.
Our next DebConf meeting is TBD on doodle, if you are interested to participate in the meeting, please go to doodle and select the dates you are available so we can decide when is going to be the next meeting.
Hope to see you next year in Managua!
Note Last version of Qt3, 3.3.8, was released in February 2007, with official support by Trolltech terminated later that year.
Qt4 was first released in 2005, and current stable series 4.7 released appeared in September 2010.
Install the tools:
sudo apt-get install debootstrap schroot
Choose a location with enough space (600 MB should be enough) and install a complete Debian squeeze installation with fslview:
sudo debootstrap --include=fslview squeeze /srv/chroots/squeeze http://ftp.us.debian.org/debian
Note
You might like to adjust the URL to a Debian mirror closer to you
Create schroot configuration file /etc/schroot/chroot.d/squeeze with the following content:
[squeeze]
description=Debian squeeze (6.x stable)
type=directory
directory=/srv/chroots/squeeze
users=YOURLOGIN
aliases=debian,default
At this point you should already be able to invoke any command within the chroot environment, so just create a little shell script /usr/local/bin/fslview, make it executable and be all set:
echo -e '#!/bin/sh\nschroot -p -c squeeze /usr/bin/fslview "$@"' > /usr/local/bin/fslview
chmod a+x /usr/local/bin/fslview
Note
You might need to become root for the above.
chroot-root: Enable NeuroDebian repository. Choose squeeze release and mirror of preference (remove sudo from provided cmdline).
chroot-root: Enable security and functionality updates:
sed -e 's,squeeze,squeeze-updates,g' /etc/apt/sources.list > /etc/apt/sources.list.d/updates.list
echo 'deb http://security.debian.org/ stable/updates main' > /etc/apt/sources.list.d/security.list
apt-get update
apt-get upgrade
Make fsl atlases accessible within the chroot environment. There are two ways and you must choose only one of them, otherwise you might damage your main system installation.
chroot-root: Install atlases packages in the chroot-ed environment:
apt-get install fsl-atlases
Alternatively you can bind-mount those directories with atlases installed on the main system within chroot. For that edit (as root on the main system) /etc/schroot/default/fstab and add following entries:
/usr/share/fsl/data/atlases /usr/share/fsl/data/atlases none rw,bind 0 0
/usr/share/data /usr/share/data none rw,bind 0 0
Note
Similarly you can bind-mount any other directory you would like to make visible in chroot. Just be careful to not overlap with system directories in chroot which already carry something.
master:/srv/leader/news/bits-from-the-DPL.*
a quiet RCBW week, here's the usual status report:
<?$t1 = "1244431010010381771";$t2 = "1244431010010381772";if ($t1 == $t2)print "equal\n";?>
I got this error when starting xend after a filesystem crash:
[2011-12-09 11:05:04 5590] ERROR (SrvDaemon:349) Exception starting xend (not well-formed (invalid token): line 3, column 0)
It sounded like an XML parsing error, but the stack trace in the log didn t say which file it had loaded. It turns out that it was trying to load something from /var/lib/xend/state/. Purging the /var/lib/xend/state directory fixed the problem, and hopefully had no side-effects.
Thanks to this blog for the solution. I should probably file a bug, shouldn t I?
[edit]
done: http://bugzilla.xen.org/bugzilla/show_bug.cgi?id=1797
I left you 2.5 months ago with the last question asked by my
applicaiton manager, Martin Michlmayr : "Please tell me about about yourself and what
you intend to do for Debian".
Interesting question to revisit now, indeed. Here is what I answered:
About myself first.
I'm a 40 year old project manager and system administrator working in French
National Aerospace Research Center. My best definition of my skills in
computing is "Know more or less about a Lot of Things and be a Specialist of
Nothing"...:-). I'm definitely not a programmer, nor a real system
administrator, nor a RDBMS administrator, nor a personal workstation
designer, though I do all of these daily. I think I'm perfect for finding
the good person for having a defined job done.
Besides this, I'm a genealogist for several years now. This is what finally
decided me to apply for becoming a package maintainer : there are some quite
good free genealogy software for Unix, though for various reasons they are
not used very widely, even Unix geeks (my main software for genealogy still
runs on Another Operatin System and is evertythig but free).I think that I
can bring something here to the Free Software World, by helping some of
these good programs in getting into the best Linux distribution I know....
For me, this is a mean for giving back to the free software movement what I
gives to me since I discovered Linux 6-7 years ago.
My very first intention as soon as I get my way into the Debian Developers
Heaven is adopting the Geneweb package currently maintained by Brent
Flugham. I'm in close contact with the author (who happens to be french,
which helps) as well as a daily user of it. The current package which is in
the distribution is already my work for a great part. I gave it to Brent,
the current maintainer and we both agreed that it would be better for me to
apply to becoming anofficial maintainer.
I also contributed to the package for lifelines, another genealogy software.
The last version of the package is also 80% my work, acknowledged by Javier,
the official maintainer. Concerning that package, I do not have "plans" for
adopting it (we didn't discussed of this with Javier, and I'm not sure I
could bring him that much things).
I came to Linux thanks to a great friend of mine, Ren Cougnenc. Ren opened
my eyes to the free software world when I still thought that it was only a
variant of free beers.
I got really involved into Linux when I forced me to remove any other
Operating System from my computer at work and tried to do my daily job with
Linux.
I have now succeeded at ONERA in getting free software to be accepted as a
credible alternative for important projects. At this time, especially for
server and network-related projects.
I absolutely cannot tell why and how I came to be a Debian user. I simply
don't remember. But I know why I am still a Debian user : this is a
distribution which is controlled by only one organisation--->its users. And
I want to be part of it.
Finally, I did not mention above the somewhat "political" nature of my
personal involvment into free software. Except for the physical appearence,
I think I mimic RMS on several points (though he probably speaks better
french than I try to speak english....which does not help for expressing
complex ideas like the ones above!).
As anyone can see, I was already very verbose when writing, sorry for
this. Funnily Martin summed this up in one paragraph when he posted
his AM report about my application. From what I see, also, my English
didn't improve that much since then. It seems this is a
desperatecause, I'm afraid.
Anyway, all this was apparently OK for Martin and, on July 21st 2001,
he wrote and posted his AM report and, on July 30th 2001, I got a mail
by James Troup:
An account has been created for you on developer-accessible machines
with username 'bubulle'.
bubulle@debian.org was born. Now I can more easily destro^W contribute
to my favourite Linux distro.
Indeed, I don't remember that much about the 2001-2003 years. I was
probably not that active in Debian. Mostly, I was maintaining geneweb,
for which I polished the package to have it reach a quite decent
state, with elaborated debconf configuration. Indeed, at that time, I
was still also deeply involved in genealogy research and still
contributing to several mutual help groups for this. This is about the
time where I did setup my web
site (including pages to keep the link with our US family, which
we visited in 2002).
I think that the major turn in my Debian activities happened around
september 2002 when Denis Barbier contacted me to add support in
geneweb for a new feature he introduced in Debian : po-debconf. At
that time, I knew nearly nothing about localization and
internationalization. Denis was definitely one of the "leaders" in
this effort in Debian. During these years, he did a tremendous job
setting up tools and infrastructure to make the translation work
easier. One of his achievements was "po-debconf", this set of tools
and scripts that allows translation debconf "templates", the questions
asked to users when configuring packages.
All this lead me to discover an entire new world : the world of
translating software. As often when I discover something I like, I
jumped into it very deeply. Indeed, in early January 2003, I did my
very first contributions to debian-l10n-french and began working on
systematic translation of debconf templates. Guess what was the goal :
100%, of course! Have ALL packages that have debconf
templates...translated to French.
We reached that goal.....on June 2nd 2008 in unstable (indeed
"virtually" : all packages were either 100% translated...or had a bug
report with a complete translation) and on December 21st 2010 for
testing. Squeeze was indeed the first Debian release with full 100%
for French. Something to learn with localization work: it's never
finished and you have to be patient.
So, back in 2003, we were starting this effort. Indeed,
debian-l10n-french was, at that time, an incredibly busy list and the
translation rate was very high: I still remember spending my summer
holidays translating 2-3 packages debconf templates every day for two
weeks.
Meanwhile, my packaging activities were low: only geneweb and
lifelines, that was all. Something suddenly changed this and it has
been the other "big turn" in my Debian life.
After summer 2003, I suddenly started coming on some strange packages
that were needing translation: they were popping up daily in lists
with funny names like "languagechooser", "countrychooser",
"choose-mirror", etc.
I knew nothing about them and started "translating" their strings too,
and sending bug reports after a decent review on debian-l10n-french.
Then, Denis Barbier mailed me and explained me that these things were
belonging to a new shiny project named Debian Installer and meant to
replace the good old boot-floppies.
Denis explained me that it would maybe be more efficient to work
directly in the "D-I" team and "commit" my work instead of sending bug
reports.
Commit? What's that? You mean this wizard tool that only Real Power
Developers use, named "CVS"? But this is an incredibly complicated
tool, Denis. Do you really want me, the nerd DD, to play with it?
Oh, and in this D-I development, I see people who are close to be
semi-gods. Names I read in mailing lists and always impress me with
their Knowledge and Cleverness: Martin Michlmayr (my AM, doh), Tollef
Fog Heen, Petter Reinholdtsen and so many others and, doh, this
impressive person named "Joey Hess" who seems to be so clever and
knowledgeable, and able to write things I have no clue about.
Joey Hess, really? But this guy has been in Debian forever.
Me, really? Work with the Elite of Debian? Doh, doh, doh.
Anyway, in about two months time, I switched from the clueless guy
status to the status of "the guy who nags people about l10n in D-I",
along with another fellow named Denny "seppy" Stampfer". And then we
started helping Joey to release well localized D-I alphas and betas at
the end of 2003 (the release rate at the time was incredible: Sarge
installer beta1 in November 2003, beta2 in January 2004).
I really remember spending my 2003 Christmas holidays hunting
for....100% completion of languages we were supporting, and helping
new translators to work on D-I translation. Yes, 8 years ago, I was
already doing all this..:-)...painting the world in red.
All this leads up to the year 2004. Certainly the most important year
in my Debian life because it has been....the year of my first DebConf.
But you'll learn about this....in another post (hopefully not in 2.5
months).
Cocolo makes only organic fair-trade chocolate. Every pack lists the percentage of ingredients that are Fairtrade (presumably milk and some other ingredients are sourced locally in Switzerland and Fairtrade doesn t apply to them). Their chocolate packages have the URL www.fairtrade.com.au printed on them and their web site links to an international Fairtrade organisation. The packages also list the organic and Fairtrade certification details and state that they are GMO free. The final geek data on the package is advise to store the chocolate at a temperature between 16C and 18C (I have now set my fridge thermostat to 17C). The above picture shows the front of a pack of Dark Orange chocolate and the back of a pack of Milk chocolate.
Reviews
One thing that is different about Cocolo is that they use only unrefined evaporated organic cane sugar juice to sweeten their chocolate. This gives it a hint of molasses in the flavor. Children who like white sugar with brown coloring might not appreciate this, but I think that the use of natural cane sugar juice will be appreciated by most people who appreciate products with complex and subtle flavors.
The Milk chocolate contains a minimum of 32% cocoa solids, this compares to the EU standard of a minimum of 25% for milk chocolate and the UK standard of a minimum of 20% for Family Milk Chocolate . The EU standard for dark chocolate specifies a minimum of 35% cocoa solids, so it seems that Cocolo milk chocolate is almost as strong as dark chocolate. If you are used to eating dark and bittersweet chocolate then the Cocolo milk chocolate is obviously not that strong, but it is also significantly more concentrated than most milk chocolate that is on the market. The high chocolate content combined with the evaporated cane sugar extract gives a much stronger flavor than any of the milk chocolates that I have eaten in recent times.
The Dark Mint Crisp chocolate has a minimum of 61% cocoa mass. The mint crisp is in very small pieces that give a good texture to the chocolate with a faint crunch when you bite it. It has a good balance of mint and chocolate flavors.
The Dark Orange chocolate contains 58% cocoa solids and has a subtle orange flavor.
The white chocolate tastes quite different from most white chocolate. While most white chocolate is marketed to children the Cocolo white chocolate will probably appeal more to adults than children. This is one of the few white chocolates that I ve wanted to eat since the age of about 14.
They also have many other flavors, most common types of chocolate (such as with almonds or hazelnuts) are available.
I highly recommend Cocolo products!
RInside 0.2.5
arrived on CRAN earlier today.
RInside is a set of
convenience classes which facilitate embedding of R
inside of C++ applications and programs, using the classes and functions provided by the
Rcpp R and C++
integration package.
The big news for this release is that Windows applications once again run! James
Bates gets full credit for noticing why Windows binaries died on startup,
and provided a short patch which we (after some further simplicifcation)
added. So for the first time since the 0.2.0 release, Windows users can just change
into the examples/standard directory and issue a simple
make -f Makefile.win, and the twelve example binaries will
actually work. Yay, and kudos to James.
The other main addition is a new examples directory examples/wt
containing the web-application of the density estimation demo I
had
blogged about
last week. By combining the Wt
toolkit with RInside, we get C++
"web" applications containing R which
is pretty nifty. The example otherwise follows the
earlier
Qt-based example of a standard desktop application with
RInside.
One minor snafu I just noticed is that I was overzealous with the
.Rbuildignore file. By excluding the wt and qtbinaries, I also excluded
their source files with the same name (up to the .cpp or .h ending). If you
desire to run the examples, just grab these examples files from the
SVN repo at R-Forge.
All changes since the last release are summarized below:
0.2.5 2011-12-07
o Applied (somewhat simplified) patch by James Bates which restores
RInside to working on Windows -- with a big Thank You! to James for
fixing a long-standing bug we inadvertendly introduced right after
0.2.0 almost two years ago
o New example embedding R inside a Wt (aka Webtoolkit, pronounced
'witty') application, mirroring the previous Qt application
o Qt example qtdensity now uses the new svg() device in base R; removed
test for cairoDevice package as well as fallback png code
o Very minor fix to qmake.pro file for Qt app correcting link order
CRANberries also
provides a short report with
changes from the previous release.
More information is on the
RInside page.
Questions, comments etc should go to the
rcpp-devel mailing list
off the Rcpp R-Forge page.
sudo make install on any downloaded source code:
The
bumblebee rm -rf /usr disaster. Not so funny: 154 people killed in malware caused airplane crash. or Malware compromises USAF Predator drones
It s been a couple days since I returned from this year s WebKitGTK+ hackfest in A Coru a, Spain. The weather was very nice, not too cold and not too rainy, we had great food, great drinks and I got to meet new people, and hang out with old friends, which is always great!
I think this was a very productive hackfest, and as usual a very well organized one! Thanks to the GNOME Foundation for the travel sponsorship, to our friends at Igalia for doing an awesome job at making it happen, and to Collabora for sponsoring it and granting me the time to go there! We got a lot done, and although, as usual, our goals list had many items not crossed, we did cross a few very important ones. I took part in discussions about the new WebKit2 APIs, got to know the new design for GNOME s Web application, which looks great, discussed about Accelerated Compositing along with Joone, Alex, Nayan and Martin Robinson, hacked libsoup a bit to port the multipart/x-mixed-replace patch I wrote to the awesome gio-based infrastructure Dan Winship is building, and some random misc.
The biggest chunk of time, though, ended up being devoted to a very uninteresting (to outsiders, at least), but very important task: making it possible to more easily reproduce our test results. TL;DR? We made our bots and development builds use jhbuild to automatically install dependencies; if you re using tarballs, don t worry, your usual autogen/configure/make/make install have not been touched. Now to the more verbose version!
The need
For a couple years now we have supported an increasingly complex and very demanding automated testing infrastructure. We have three buildbot slaves, one provided by Collabora (which I maintain), and two provided by Igalia (maintained by their WebKitGTK+ folks). Those bots build as many check ins as possible with 3 different configurations: 32 bits release, 64 bits release, and 64 bits debug.
In addition to those, we have another bot called the EWS, or Early Warning System. There are two of those at this moment: one VM provided by Collabora and my desktop, provided by myself. These bots build every patch uploaded to the bugzilla, and report build failures or passes (you can see the green bubbles). They are very important to our development process because if the patch causes a build failure for our port people can often know that before landing, and try fixes by uploading them to bugzilla instead of doing additional commits. And people are usually very receptive to waiting for EWS output and acting on it, except when they take way too long. You can have an idea of what the life of an EWS bot looks like by looking at the recent status for the WebKitGTK+ bots.
Maintaining all of those bots is at times a rather daunting task. The tests require a very specific set of packages, fonts, themes and icons to always report the same size for objects in a render. Upgrades, for instance, had to be synchronized, and usually involve generating new baselines for a large number of tests. You can see in these instructions, for instance, how strict the environment requirements are yes, we need specific versions of fonts, because they often cause layouts to change in size! At one point we had tests fail after a compiler upgrade, which made rounding act a bit different!
So stability was a very important aspect of maintaining these bots. All of them have the same version of Debian, and most of the packages are pinned to the same version. On the other hand, and in direct contradition to the stability requirement, we often require bleeding edge versions of some libraries we rely on, such as libsoup. Since we started pushing WebKitGTK+ to be libsoup-only, its own progress has been pretty much driven by WebKitGTK+ s requirements, and Dan Winship has made it possible to make our soup backend much, much simpler and way more featureful. That meant, though, requiring very recent versions of soup.
To top it off, for anyone not running Debian testing and tracking the exact same versions of packages as the bots it was virtually impossible to get the tests to pass, which made it very difficult for even ourselves to make sure all patches were still passing before committing something. Wow, what a mess.
The explosion^Wsolution
So a few weeks back Martin Robinson came up with a proposed solution, which, as he says, is the nuclear bomb solution. We would have a jhbuild environment which would build and install all of the dependencies necessary for reproducing the test expectations the bots have. So over the first three days of the hackfest Martin and myself hacked away in building scripts, buildmaster integration, a jhbuild configuration, a jhbuild modules file, setting up tarballs, and wiring it all in a way that makes it convenient for the contributors to get along with. You ll notice that our buildslaves now have a step just before compiling called updated gtk dependencies (gtk is the name we use for our port in the context of WebKit), which runs jhbuild to install any new dependencies or version bumps we added. You can also see that those instructions I mentioned above became a tad simpler.
It took us way more time than we thought for the dust to settle, but it eventually began to. The great thing of doing it during the hackfest was that we could find and fix issues with weird configurations on the spot! Oh, you build with AR_FLAGS=cruT and something doesn t like it? OK, we fix it so that the jhbuild modules are not affected by that variable. Oh, turns out we missed a dependency, no problem, we add it to the modules file or install them on the bots, and then document the dependency. I set up a very clean chroot which we could use for trying out changes so as to not disrupt the tree too much for the other hackfest participants, and I think overall we did good.
The aftermath
By the time we were done our colleagues who ran other distributions such as Fedora were already being able to get a substantial improvements to the number of tests passing, and so did we! Also, the ability to seamlessly upgrade all the bots with a simple commit made it possible for us to very easily land a change that required a very recent (as in unreleased) version of soup which made our networking backend way simpler. All that red looks great, doesn t it? And we aren t done yet, we ll certainly be making more tweaks to this infrastructure to make it more transparent and more helpful to the users (contributors and other people interested in running the tests).
If you ve been hit by the instability we caused, sorry about that, poke mrobinson or myself in the #webkitgtk+ IRC channel on FreeNode, and we ll help you out or fix any issues. If you haven t, we hope you enjoy all the goodness that a reproducible testing suite has to offer! That s it for now, folks, I ll have more to report on follow-up work started at the hackfest soon enough, hopefully =).
<object data="https://upload.wikimedia.org/wikipedia/commons/d/de/Aspect-ratio-4x3.svg" type="image/svg+xml">
https://upload.wikimedia.org/wikipedia/commons/d/de/Aspect-ratio-4x3.svg</object>
<object data="https://upload.wikimedia.org/wikipedia/commons/f/f8/Aspect-ratio-16x9.svg" type="image/svg+xml">
https://upload.wikimedia.org/wikipedia/commons/f/f8/Aspect-ratio-16x9.svg</object>
It seems that nearly all computer monitors have now switched from a
4:3 aspect ratio popular several years ago to a "wide screen"
16:10 and now mostly to an even wider 16:9.
But screen sizes are usually measured by their diagonal length and
those sizes have not changed. For example, before I had my Thinkpad
X201, I had a X60 and a X35. They are similar laptops in the same
product line with 12.1" screens. But 12.1" describes the size along
the diagonal and the aspect ratio switched from 4:3 to 16:10 between
the X60 and the X201. As the screen stretched out but maintained the
same diagonal length, the area shrunk: from 453 square centimeters
to 425.
But screens are not only getting smaller, they are also getting less
useful. The switch to wider aspect ratios is done so that people can
watch wide screen movies while using a larger proportion of their
screens. Of course, the vast majority of people's time on their
laptops is not spent watching wide screen movies but in programs like
browsers, word processors, and editors. Because most of our writing
systems lay out documents from top to bottom, the tools we most
frequently use to display (and then scroll through) the things we read
primarily use vertical screen space -- the dimension that is
shrinking.
If you have a desktop monitor, you might rotate the whole thing 90
degrees and "solve" the problem. If you're on a laptop though (as I
usually am) this is clearly not an option.
I am not the first person to be annoyed by this trend. In fact, many
recent desktop UI changes are designed to work around this issue. In
the free software world, both Unity and GNOME 3 have made
efforts to hide, merge, or otherwise get ride of title bars, menu
bars, and panels that take up dwindling vertical space. I use
Awesome which I've mostly set up to do two side-by-side terminals
with very little in the way of menu bars.
Applications are the worst offenders and the solutions for those
things that won't run in a terminal (or people that don't want to live
there) are still lacking. I have been using Firefox's Tree Style Tab
extension to move tabs to the side and hand-customized toolbars
that squeeze everything I need (i.e., back, forward, stop, refresh,
and URL bar) onto a single menu bar.
But the situation still drives me crazy. I'd love to hear what others
are doing.
My earlier post on juju described a number of weird glitches I ran into. I got invited by hazmat on IRC (freenode #juju) to try to reproduce the problems so we could isolate the trouble.
Fix #1: use the version from the PPA. The juju setup documentation doesn t mention this, but it seems that adding juju-origin: ppa to your ~/.juju/environment.yaml is a good idea. I suggest it be made the default, and to link to the full list of legal syntax for the environment.yaml file. I was not able to reproduce the missing-machines-at-startup problem after doing this, but perhaps it s a hard race to lose.
Fix #2: don t use terminate-machine . :P There seems to be a problem around doing the following series of commands: juju remove-unit FOO/N; juju terminate-machine X; juju add-unit FOO . This makes the provisioner go crazy, and leaves all further attempts to add units stick in pending forever.
Big thank you to hazmat and SpamapS for helping debug this.
2011, Kees Cook. This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 License.
Today, I had some business in Bonn, so Janis Voigtl nder invited me to hold a guest lecture in his advanced functional programming course, maybe telling the students more about real world use of Haskell, given that he teaches mostly the theoretical foundations. I chose to discuss an experience I made while implementing SAT-Britney, namely that for the sake of good runtime and memory performance, it may be neither ideal to evaluate a list fully lazily, nor fully strict, but to have something in between. For the talk, I demonstrated this by a small example, showed how to use the GHCi debugger to get some insight in the evaluation order of things, how to benchmark the program and read the ghc statistics and a profiling chart, and finally how to get the most out of GHC s List Fusion. I wanted to also touch on QuickCheck, but skipped it to finish in time. The full text of my talk (including graphs) is available, but in German; if you want an English version convince your prof to invite me for a guest lecture as well.
Afterwards I sat down with one of the students of the course, Helmut Grohne, who happened to take part in the Debian bug squashing party last weekend and had filed a release critical bug against the Haskell grammar generator frown (no better link available, homepage seems to be down) to debug the problem. It quickly became clear that the bug was introduced by me (can you spot it?) when trying to make it compile with a modern GHC slightly embarrassing for me.aptitude install syslinux, and configure grub to
start memdisk and boot off of the iso. You can do this by copying the
iso to your boot partition (cp 7wuj43uc.iso /boot/;), copying
memdisk to the boot partition (cp /usr/lib/syslinux/memdisk /boot/;)
and adding an entry to your grub.cfg like the following (putting it in
/etc/grub.d/40_custom is probably the most reasonable):
menuentry "Thinkpad x200 BIOS Upgrade to 3.19"
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
linux16 /memdisk iso
initrd16 /7wuj43uc.iso
Note that your configuration will be slightly different depending on
whether you have a separate /boot partition (I do) or not.
Then you just need to boot the laptop, select the bios upgrade option
in grub, and tell the program that you really do want to upgrade the
bios and that you really do have a full battery and the laptop plugged
into an AC adapter.
The major idea for this method came from ThinkWiki's entry.
Updating the bios on my X200 Tablet was surprisingly simple in Debian.
Often, updating bios requires some sort of Windows or Dos boot disk
and all kinds of machinations to make that happen. Lenovo provides an
iso image to update the bios which alleviates some of these problems,
but as the X series don't have built-in CDROM drives (and I don't have
an ultrabay),
All you have to do is download the
iso,
install syslinux aptitude install syslinux, and configure grub to
start memdisk and boot off of the iso. You can do this by copying the
iso to your boot partition (cp 7wuj43uc.iso /boot/;), copying
memdisk to the boot partition (cp /usr/lib/syslinux/memdisk /boot/;)
and adding an entry to your grub.cfg like the following (putting it in
/etc/grub.d/40_custom is probably the most reasonable):
menuentry "Thinkpad x200 BIOS Upgrade to 3.19"
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
linux16 /memdisk iso
initrd16 /7wuj43uc.iso
Note that your configuration will be slightly different depending on
whether you have a separate /boot partition (I do) or not.
Then you just need to boot the laptop, select the bios upgrade option
in grub, and tell the program that you really do want to upgrade the
bios and that you really do have a full battery and the laptop plugged
into an AC adapter.
The major idea for this method came from ThinkWiki's entry.
Next.