Tag Archives: ubuntu

An Even More Ultimate Boot Disk!

In this short howto, I show you how to combine the Ultimate Boot CD (UBCD) with both Knoppix 6.2.1 and Ubuntu 10.04 onto a single USB stick to create An Even More Ultimate Boot Disk (EMUBD)!

UBCD is a bootable CD image that’s fantastic if you’re trying to save grandma’s PC from a certain death, as it contains a number of different bootable utilities for testing memory, testing and low-level repair of hard drives, partition repair, antivirus and so forth. It even contains Parted Magic, a compact linux distribution for fixing partitions, amongst others.

Knoppix is the swiss knife of live linux distributions, and Ubuntu 10.04 is probably the slickest distribution out there at the moment. Both of these can be ran live from your USB disc, so they don’t have to touch your hard drive.  However, both of them are also able to install to your hard disc if you so choose.

To me it seemed logical to combine all three of these elements onto the single USB flash drive that I carry on my keychain, as I know of many grandmas with broken PCs…

Let’s go!

  1. make sure the single FAT32 partition on your USB stick is bootable (use command ‘a’ in linux fdisk) and large enough (you’ll need just a bit less than 2G).
  2. mount your flash drive on a directory, henceforth referred to as FLASH_MNT.
  3. copy all files from the ubcd5 iso into a directory, henceforth referred to as CUSTOM_UBCD5.
  4. mount the ubuntu 10.04 i386 iso on a directory, henceforth referred to as LUCID_MNT
  5. mount the knoppix iso on a directory, henceforth referred to as KNOPPIX_MNT.
  6. copy necessary boot files from the ubuntu ISO to UBCD:
    mkdir CUSTOM_UBCD5/ubcd/custom/lucid
    cp LUCID_MNT/casper/vmlinuz LUCID_MNT/casper/initrd.lz CUSTOM_UBCD5/ubcd/custom/lucid
    
  7. copy ubuntu-10.04-desktop-i386.iso to your flash disk:
    mkdir /FLASH_MNT/isos
    cp ubuntu-10.04-desktop-386.iso /FLASH_MNT/isos/
    
  8. Knoppix can’t be booted directly from its iso like Ubuntu, so we have to copy the actual contents of the ISO to your flash:
    cp -r KNOPPIX_MNT/KNOPPIX to FLASH_MNT/
    cp -r KNOPPIX_MNT/boot/isolinux to FLASH_MNT/KNOPPIX/isolinux
    
  9. replace FLASH_MNT/KNOPPIX/isolinux/isolinux.cfg with the isolinux.cfg at the bottom of this post. (It’s the same file, except that “KERNEL linux” is replaced with “KERNEL /KNOPPIX/isolinux/linux”, “initrd=minirt.gz” with “initrd=/KNOPPIX/isolinux/minirt.gz”, F1, F2, F3 and DISPLAY paths all fixed, e.g. “F2 f2″ becomes “F2 /KNOPPIX/f2″ and finally all instances of “quiet” removed)
  10. Now replace CUSTOM_UBCD5/ubcd/custom/custom.cfg with the custom.cfg at the bottom of this post.
  11. copy all files from CUSTOM_UBCD5 to your usb flash disk:
    cp -r CUSTOM_UBCD5/* FLASH_MNT/
    
  12. Finally, make the whole thing bootable with the following invocation. It’s really important that you replace /dev/sdX1 with the correct device for your flash disk. To see what this is, type “mount” and see the device associated with your FLASH_MNT.
    cd FLASH_MNT
    sudo ./ubcd/tools/linux/ubcd2usb/syslinux -s -d /boot/syslinux /dev/sdX1
    

You’re done. You should now be able to boot with your EMUBD! Knoppix and Ubuntu can be found under “User defined”.

Here are those files that you’ll need. First FLASH_MNT/KNOPPIX/isolinux/isolinux.cfg:

DEFAULT knoppix
APPEND ramdisk_size=100000 lang=en vt.default_utf8=0 apm=power-off vga=0x311 initrd=/KNOPPIX/isolinux/minirt.gz nomce loglevel=0 tz=localtime
TIMEOUT 50
# TOTALTIMEOUT 20
# KBDMAP german.kbd
PROMPT 1
F1 /KNOPPIX/isolinux/boot.msg
F2 /KNOPPIX/isolinux/f2
F3 /KNOPPIX/isolinux/f3
DISPLAY /KNOPPIX/isolinux/boot.msg
LABEL adriane
KERNEL /KNOPPIX/isolinux/linux
APPEND ramdisk_size=100000 lang=en vt.default_utf8=0 apm=power-off vga=0x311 initrd=/KNOPPIX/isolinux/minirt.gz nomce loglevel=0 tz=localtime adriane
LABEL knoppix
KERNEL /KNOPPIX/isolinux/linux
APPEND ramdisk_size=100000 lang=en vt.default_utf8=0 apm=power-off vga=791 initrd=/KNOPPIX/isolinux/minirt.gz nomce loglevel=0 tz=localtime
LABEL fb1024x768
KERNEL /KNOPPIX/isolinux/linux
APPEND ramdisk_size=100000 lang=en vt.default_utf8=0 apm=power-off vga=791 xmodule=fbdev initrd=/KNOPPIX/isolinux/minirt.gz nomce loglevel=0 tz=localtime
LABEL fb1280x1024
KERNEL /KNOPPIX/isolinux/linux
APPEND ramdisk_size=100000 lang=en vt.default_utf8=0 apm=power-off vga=794 xmodule=fbdev initrd=/KNOPPIX/isolinux/minirt.gz nomce loglevel=0 tz=localtime
LABEL fb800x600
KERNEL /KNOPPIX/isolinux/linux
APPEND ramdisk_size=100000 lang=en vt.default_utf8=0 apm=power-off vga=788 xmodule=fbdev initrd=/KNOPPIX/isolinux/minirt.gz nomce loglevel=0 tz=localtime
LABEL memtest
KERNEL memtest
APPEND foo
LABEL dos
KERNEL memdisk
APPEND initrd=balder.img
LABEL failsafe
KERNEL /KNOPPIX/isolinux/linux
APPEND ramdisk_size=100000 lang=en vt.default_utf8=0 vga=normal atapicd nosound noapic nolapic noacpi pnpbios=off acpi=off nofstab noscsi nodma noapm nousb nopcmcia nofirewire noagp nomce nonetwork nodhcp xmodule=vesa initrd=/KNOPPIX/isolinux/minirt.gz

… and then CUSTOM_UBCD5/ubcd/custom/custom.cfg:

MENU INCLUDE /ubcd/menus/syslinux/defaults.cfg
UI /boot/syslinux/menu.c32

# option to be able to go back to the main menu
LABEL -
MENU LABEL ..
COM32 /boot/syslinux/menu.c32
APPEND /ubcd/menus/syslinux/main.cfg

# this clause will boot directly from the ubuntu iso
LABEL ubuntulive
MENU LABEL Ubuntu 10.04 i386 Desktop LIVE
LINUX /ubcd/custom/lucid/vmlinuz
INITRD /ubcd/custom/lucid/initrd.lz
APPEND boot=casper iso-scan/filename=/isos/ubuntu-10.04-desktop-i386.iso --

# and this one will chain into the knoppix boot setup
LABEL knoppix
MENU LABEL Knoppix 6.2.1 LIVE
CONFIG /KNOPPIX/isolinux/isolinux.cfg

Post scriptum

  • The instructions in this post are derived from the UBCD linux documentation and various forum posts.  Credits to their authors!
  • If you don’t want Knoppix on your bootable USB and you have a Windows computer, you could also use MultiBootISOS to add multiple ISOs to a USB boot disk.

Weekly Head Voices #11: iCalmDown.

My Tall Philosophical Neighbour (henceforth TPN) blogged today about the iCalmDown, which, as you know, is the latest Apple product released with perhaps a tad too much fanfare this past week. Yes, I do realise that I’m most privileged to have a tall neighbour who’s both philosophical and manages to blog with more regularity than many. In any case, in a cut-and-dried case of keepin’ up with the Joneses, or the TBN in this case, you are now holding in your hands the eleventh edition of the Weekly Head Voices, documenting a selection of events taking place in week 4 of 2010. Please let me know if you’re reading this on your iCalmDown!

SuSE engineers consider this dog to be "quite pretty" and also "so cute and cuddly".

First I have to get some negative emotions off my chest: I’m currently test-driving the TU Delft’s new standard SuSE Enterprise Linux Edition (SLED) 11 image at work. After two days of using the system and documenting my experiences, I had to switch back to my usual Ubuntu desktop, as my eyes had started bleeding profusely. The SLED desktop takes the concept of “ugly” to places even it feels very dirty having ever visited. Okay, so I might be ever so slightly exaggerating, but there really is almost no comparison with a modern Ubuntu system!

During this past week my productivity has again made the transition from reactive to proactive. This is a usual phenomenon after any long vacation, but it sure is a nice feeling being able to start on things long before they become urgent. It gives me some room to strategise and think about the Big Picture. In the same vein, I (once again) realised that I should spend mornings on the creative and heavier-weight items on my todo list, and reserve the afternoons for meetings (which definitely require creativity, but of a different kind) and more routine tasks. For the past months I have followed the policy of scheduling meetings in the afternoons as far as possible, so my mornings are reserved for tasks that require a few hours contiguously. Luxury!

At the start of an evening with two friends (in line with my anonymisation policy, let’s call them Science Entrepreneur Friend, or SEF, and Extremely Clever Yet Very Social Scientist Friend, or ECYVSSF) that ended with me having so much fun that I managed to get caught on the infamous Dutch nachtnet (trains that take party-goers home at ungodly hours), SEF pointed out that my “to learn and to create” snippet of the previous post reminded him of something of Wilhelm von Humboldt. After some searching I found the relevant quote:

To inquire and to create;—these are the grand centres around which all human pursuits revolve, or at least to these objects do they all more or less directly refer. Before inquiry can fathom the very essence of things, or penetrate to the limits of reason, it presupposes, in addition to profundity, a rich diversity and genial warmth of soul—the harmonious exertion of all the human faculties combined.

Thank you SEF !

This same evening was characterised by, besides too many Pelgrim Trippels (a strong beer brewed in Rotterdam), much heated discussion on the interaction between science, that is how we attain and disseminate new knowledge about the reality around us, and academia, that is the interesting ecosphere where science mostly takes place, where scientists work in strange and strict hierarchical castes, and the focus on science can easily be lost due to the practicalities and politics of academia.

For all its faults, it is exactly this strange system that makes it possible for me to work closely together with a number of exceptionally bright people, an energising activity that is arguably very much in the spirit of inquiry and of creativity.

On that positive note, have a brilliant week everyone!

Weekly Head Voices #8: Uninterruptible Fun Supply

Dear readers,

Due to a small accident with a friend’s quantum entanglement device, I briefly got stuck in a high pressure reality vortex. The headaches have subsided, but I do still seem to be suffering from slight time compression artifacts. In any case, that’s why there’s only this one edition of the Weekly Head Voices to cover weeks 43 to 45. As is always the case, please make use of the bolded phrases to guide you through this post. In other words, the fat words tell you what you you might find interesting so that you can skip the rest.

Week 43 was for a large part about re-learning a lesson that I’ve learned and forgotten more times than I care to count, but it was mostly about joining Superbly Cool Extraordinarily Lovely People (hi there y’all!) and going here:

YouTube Preview Image HEAD ASPLODE!

Now how about that lesson? Let’s go:

On the Importance of Not Getting Interrupted.

During these past weeks I’ve been hard at work completing a mini-thesis (some call it a teaching portfolio) documenting my teaching activities, meaning that I had to spend a significant amount of Contiguous Time(tm) producing a significant body of text. In order to supplement the scarce supply of said Contiguous Time, I spent two mornings working at home. Furthermore, I for some or other vague reason decided not to check email before I started early in the morning and of course also not to keep my e-mail client running whilst working.

My word, what a difference!

Who woulda thunk it, it turns out that that habitual and reflexive email checking really breaks one’s speed and, in my case, causes unnecessary stress as each time the inbox piles up with even more remotely injected work. Bottom line: I’m going back (for the umpteenth time) to 3 fixed email checks and inbox emptying sessions per day: one before the early morning daily review, one just after lunch when my brain is too busy coping with digestion anyway and one in the late afternoon.

Operating Systems all-you-can-eat Buffet

During wind-down time in these past three weeks, I installed and tried out the following operating systems:

  • Moblin 2.1 preview on my netbook: Oh my it boots really fast and is very pretty. It would take some getting used to, my experience was too much mobile internet device and too little computer.
  • OSX 10.5.7 on my Q9450 quad-core: First: No, I have no idea how that got there! Second: Meh. Looks nice, not my thing though. Third: Eventually I’m going to port DeVIDE to OSX, when either wxCocoa or pySide is ready. I’m only doing this for my goateed, turtle-necked and beret-wearing apologist friends and definitely not for the OS or the company behind it.
  • Ubuntu 9.10 Netbook Remix on my, err, netbook: My jotted down thoughts at the time: Very slick, clutter interface (including maximus) is great for netbooks. It seems the ath9k wlan adapter still has minor problems connecting / staying connected at full speed.
  • Windows 7 on my netbook: Yes, the TU does in fact give us all licenses for this type of stuff, it’s a cool perk. Wow, it went on there quite easily, I simply ran “setup.exe” from the unpacked ISO and installed it to an extra 70G partition. After installing the usual suspects (truecrypt, 7zip, avira, vim, asus stuff [Super Hybrid Engine, Hotkey, Asus Update, Touchpad driver], fastcopy, chrome), I was up and running. Looooong battery life seems to be intact.

The End, My Friend

In week 44 a number of us went to defend the whole TU Delft Computer Science research programme at an international research evaluation. Besides leading to my recent PowerPoint post, this occasion surprisingly turned out to be great fun (probably thanks to the 5-star evaluation committee and their interviewing style) and we seem to have done quite well in the evaluation.

Preparing for the evaluation and finishing my teaching portfolio took up much of my time, so much so that I have not been giving the people around me all the time and attention that they deserve. People around me, I am acutely aware of this and I will make it up to you!

Weekly Head Voices #5: Google Docs, Bad Netbook Karma, Cold does not cause cold.

It’s been a terribly quiet week blog-wise, but I did make that promise four weeks ago, and, seeing that I want to be a columnist when I grow up (hint hint employers of columnists) and those guys and girls simply HAVE to think up something interesting every single week, I too am going to do my best to add sweetness to the shortness that you see before you.

Speaking of shortness, I did get some off-blog (yes, face-to-face!) feedback on the previous edition of the WHV. Said (highly appreciated) feedback concerned the length of these posts, more specifically, that there was too much of it. It’s important to remember that I in fact do write these things with the chronically time-challenged in mind. One of the measures I take is to bold the most important themes in each paragraph, so that one can easily skip on to the next paragraph if the mentioned theme does not take one’s fancy. This week, I’m going even further by employing section headings! As always, please feel free to skip paragraphs and sections.

Before jumping in, I give you the traditional WHV photo, this time of my little Weber doing its thing (thanks to some crucial material supplied by my friendly neighbour) on the most brilliant of all South African celebrations: National Braai day!

My humble little Weber on NBD 2009.

My humble little Weber on NBD 2009.

Geeky Google Docs love affair

Google Docs is Google’s fantastic attempt (well, it was initially developed by Writely, which was soon assimilated by and has since been happily functioning inside of The Google Supermind) at an office suite. The whole thing, including Documents, Spreadsheets, and Presentations, runs in your web browser. This means that you always have access to your stuff from anywhere, and you never have to install any extra software. With the offline functionality, you can continue working even without an internet connection.

This was already pretty neat, but then they had to go and make it even neater. In my line of business, one of the coolest features is the fact that you can concurrently edit the same document with any number of collaborators. I’ve written research proposals together with colleagues before, where at a number of occasions we were actually editing the same paragraph of text from two different cities, and Docs didn’t break a sweat merging our edits in real-time. This functionality also eliminates the very irritating “Could you send me the latest version of the proposal” emails, the subsequent waiting and then the infuriating expired time window when the latest version finally arrives in the email.

A recent feature which is admittedly less impressive to the public at large, but made my geek heart miss several beats, was the built-in equation editor. Imagine my surprise when I tried this out for the first time and realised that it is in fact a real-time LaTeX math typesetter: You type your incredibly complex formula in standard LaTeX, and Google Docs shows the typeset math updated in real-time. This is even useful if you’re NOT using Google Docs but just want to fine-tune the formulas in your LaTeX article.  Check the screenshot below:

Screenshot of Google Docs equation editor.

Screenshot of Google Docs equation editor.

90% of MS Office users probably don’t use more than 10% of its functionality. Google Docs covers this 10% more than adequately, but without the complexity, the platform lock-in and the cost. Next time you’re considering emailing someone a Word document or Powerpoint, have a look at Google Docs first!

Netbook Bad Karma

On an extra partition, my netbook (Asus 1005HA-H, the computer I’m currently in love with) has the absolute latest development version of the Ubuntu Karmic Koala (9.10 – will be released at the end of October) Netbook Remix. Linux distributions, and especially Ubuntu, have been making great progress recently on state of the art hardware. On this netbook, suspend to ram for example works out of the box, which is quite an achievement for Linux-kind. However, whereas battery life under the bundled Windows with the Asus Super Hybrid Engine (don’t laugh, to me it sounds like some knid of giant fighting robot power source) is an astounding 9+ hours, under Linux it’s a quite disappointing 4 or 5 hours. One very obvious factor is the CPU running at 1GHz at idle under Linux and 850MHz at idle under Windows.

Even installing and configuring the latest eeepc acpi utilities, including kernel module, from the testing repository at StatUX http://www.statux.org/content?page=repo, although enabling bunches of hotkeys, didn’t solve the battery problem. The CPU was still running at 1GHz.

I’m curious to see what the case will be at Karmic release, preferably with the stock Ubuntu Netbook Remix and not too much user fiddling. I’m considering writing a short review at that time, hopefully less critical than my previous attempt with Ubuntu Feisty beta (7.04) on my HP laptop.

Brand new Visual Data Analysis lecture block

For the past 4 years, I have been taking care of the Medical Visualisation parts (2 lecture blocks) of the TU Delft master-level Data Visualisation course (IN4086). Since the beginning of this year, I also give my very own dedicated 5 ECTS Medical Visualisation course (IN4307), which I have designed with the sole purpose of producing MedVis NINJAS. I take great joy in corrupting promising young minds with my special brand of evil science. :)

In a very recent development, it seems that I will now also be taking care of the Visual Data Analysis block of the general Data Visualisation course. I somehow blurted this out during a recent meeting, and now have the privilege of designing this one from scratch too.

This is quite interesting, because visual data analysis, or visual analytics as it’s sometimes called (urgh), is primarily associated with Information Visualisation, and being a MedVis fanatic I’m supposed to be a Scientific Visualisation guy. To cut a long story short, InfoVis and SciVis are two sub-fields in the broader field of Visualisation, but the communities behind them might as well come from different planets, in spite of the best efforts of some of my colleagues to unify everything. In any case, it turns out that we (when I say “we” I mean Jorik) have been secretly publishing suspiciously infovis-friendly articles the past few years. Look:

I find this a very interesting and gratifying development. An increasing number of my research collaborations in the medical research field are also benefiting from visual data analysis techniques. Keeping in mind the clichéd but no less real data explosion, we, as visualisation people, can greatly increase our value to the client. The forthcoming Visual Data Analysis lecture block I’m designing is just one step in the evolution of our science.

The End, my friend, also of your common cold misconceptions.

Pressing Ctrl-Shift-C in this Google Doc draft (how’s that for subtle product placement?), I can see that I’ve once again passed the 1000 word mark (1200 to be more precise).

Whoops.

I had even more planned, but instead I’ll conclude with a hopefully useful snippet of information, especially in the light of the coming winter. Many people I run into still somehow believe that there’s a causal relationship between being cold, as in going outside in cold weather, and getting a cold, as in sneezing and having a running nose. Well, I’m here to tell you that it’s an age-old myth. A myth I say! See this quote from the Wikipedia article on the common cold (emphasis mine):

An ancient belief still common today claims that a cold can be “caught” by prolonged exposure to cold weather such as rain or winter conditions, which is where the disease got its name.[9] Although common colds are seasonal, with more occurring during winter, experiments so far have failed to produce evidence that short-term exposure to cold weather or direct chilling increases susceptibility to infection, implying that the seasonal variation is instead due to a change in behaviors such as increased time spent indoors at close proximity to others.[6][10][11][12][13]

Just to ram that point home: Going outside in the cold, or being exposed to cold weather or direct chilling, very probably does not increase your chances of catching the common cold! Similar to this is the work on influenza. It turns out that there’s a link between the flu and absolute humidity: The lower the humidity, the higher the chance of getting the flu. It’s quite probable that you catch the flu virus not from going outside in winter, but from staying inside your heated and hence slightly drier home.  Chalk one up for all the kids getting told, unfairly and without scientific basis, to dress up before going out or risk getting ill.

On that rebellious note, have a super duper week!  (… and please do your thing in the comments below …)

Backport of unison 2.27.57 to Ubuntu 7.10

So you’ve upgraded some of your machines to Ubuntu 8.10 (Intrepid Ibex, argh) and you’re really very happy with yourself.  That is, until you try to run your trusty unison synchronisation scripts and notice that due to the version mismatch between unison on 8.10 (2.27.57) and unison on 7.10 (2.13.16), you are screwed.

Because I like you, I’ve made available my quick and dirty backport of unison 2.27.57 (the Ubuntu 8.10 version) to Ubuntu 7.10 (Gutsy Gibbon) on i386.  Get the DEBs by clicking HERE!

If this is useful to you, please leave a comment on this post!  If not, go leave a comment on someone else’s blog man!