Skip to content

Diskless Ubuntu (Feisty Fawn NFS install)

Tonight I installed my first diskless Ubuntu system. The version I used is the latest available as of today, 7.04 "FeistyFawn". This article covers the client part.

My other diskless machines all run Gentoo (for the time being). I've described previously how I set up my SB 100, the rest of the setup was based on this article.

The following two articles were helpful:

https://help.ubuntu.com/community/Installation/OnNFSDrive
http://developer.novell.com/wiki/index.php/Feisty/HOWTO:_Convert_Ubuntu_to_Diskless

However I found some of the info to be uncomplete or outdated.

From what I have read, unlike with Gentoo, it seems that there is no easy way to get a working diskless Ubuntu system directly. Instead, you have to install to a disk first, and then make your setup diskless. I did not really want to open the box, so I tried first to install on a 2 GB CF card, which didn't work because the card was full before the install completed (du now reports that the system is 2.1 GB big). So I ended up putting a disk in the box, and I ran a regular install.

Note: As in the SB100 article, 10.0.0.10 will be my dhcp/nfs/tftp server ('fileserver'). 10.0.0.30 will be the Ubuntu desktop.

Once that was completed, instead of rebooting as suggested by the installer, I opened a shell (gnome-terminal), and ran:
sudo su -
mkdir /mnt/tmp
mkdir /mnt/nfs
mount /dev/sda1 /mnt/tmp
mount 10.0.0.10:/diskless/ubuntu /mnt/nfs
cp -a /mnt/tmp/* /mnt/nfs/

After that, there are just a couple of things that need to be changed:
chroot /mnt/nfs
mount -t proc proc proc
vi etc/initramfs-tools/initramfs.conf

and make sure you have:
BOOT=nfs

then run:
update-initramfs -u

Now check what you have in /boot, and update your network boot config files accordingly. I use pxegrub, and here is how /boot/grub.lst looks like:
default 0
timeout 10
title=Diskless Ubuntu
root (nd)
kernel /diskless/tv/boot/vmlinuz-2.6.20-15-generic ip=dhcp root=/dev/nfs nfsroot=10.0.0.10:/diskless/tv ro quiet splash
initrd /diskless/tv/boot/initrd.img-2.6.20-15-generic

Finally, don't forget to update etc/fstab and etc/network/interfaces. I've read several theories, here is what worked for me:

fstab:
# /etc/fstab: static file system information.
#
#
proc /proc proc defaults 0 0
/dev/nfs / nfs defaults 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0

network/interfaces:
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 10.0.0.30
netmask 255.255.255.0
network 10.0.0.0
broadcast 10.0.0.255
gateway 10.0.0.1

(note: commenting out eth0 as suggested in some places made the system hang during the boot process.)
  • Twitter
  • Bookmark Diskless Ubuntu (Feisty Fawn NFS install) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Diskless Ubuntu (Feisty Fawn NFS install)
  • Mixx Diskless Ubuntu (Feisty Fawn NFS install)
  • Bloglines Diskless Ubuntu (Feisty Fawn NFS install)
  • Technorati Diskless Ubuntu (Feisty Fawn NFS install)
  • Fark this: Diskless Ubuntu (Feisty Fawn NFS install)
  • Bookmark Diskless Ubuntu (Feisty Fawn NFS install) at YahooMyWeb
  • Bookmark Diskless Ubuntu (Feisty Fawn NFS install) at Furl.net
  • Bookmark Diskless Ubuntu (Feisty Fawn NFS install) at reddit.com
  • Bookmark Diskless Ubuntu (Feisty Fawn NFS install) at blinklist.com
  • Bookmark Diskless Ubuntu (Feisty Fawn NFS install) at Spurl.net
  • Bookmark Diskless Ubuntu (Feisty Fawn NFS install) at NewsVine
  • Bookmark Diskless Ubuntu (Feisty Fawn NFS install) at Simpy.com
  • Bookmark Diskless Ubuntu (Feisty Fawn NFS install) at blogmarks
  • Bookmark Diskless Ubuntu (Feisty Fawn NFS install) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Lightning for x86_64 Linux (amd64)

Lightning is a Thunderbird plug-in that adds calendar functions. More on the mozilla.org page. I tried to install the .xpi from there, but it failed with the following error message:
"Lightning" could not be installed because it is not compatible with your Thunderbird build type (Linux_x86_64-gcc3). Please contact the author of this item about the problem.

So I downloaded the source from this page, and followed the instructions from here. This page and the link to that one were also helpful.

In case you don't want to open all those links, I've put the resulting .xpi file here for you to download: lightning-0.3.1-x86_64.xpi. Or if you prefer to build it yourself, here is how I did it:
[untar/bz, cd mozilla]
make distclean
export CFLAGS="-O2 -pipe -fPIC"
export CHOST="x86_64-pc-linux-gnu"
export CXXFLAGS="${CFLAGS}"
export MAKEOPTS="-j3"
ac_cv_visibility_pragma=no ./configure --enable-application=mail --enable-extensions=default,lightning
make

(of course you may want to change some stuff to better suit your system, I've got a Core 2 Duo laptop running Gentoo Linux)

Then just select Tools > Extensions in Thunderbird and install the lightning.xpi you've just built (located in dist/xpi-stage/lightning.xpi).


UPDATE - 2007-06-28 - Lightning 0.5

After reading Matthew's comment I downloaded the newly released Lightning 0.5 from here, and built lightning-0.5-x86_64.xpi following the exact same procedure that I used for 0.3.1. Then I installed it from Tools > Extensions, restarted Thunderbird and immediately noticed the different appearance. (I did not uninstall 0.3.1 first, which apparently is ok.)

UPDATE - 2008-09-28 - Lightning 0.9

Download from http://releases.mozilla.org/pub/mozilla.org/calendar/lightning/releases/0.9/contrib/linux-x86_64/
  • Twitter
  • Bookmark Lightning for x86_64 Linux (amd64) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Lightning for x86_64 Linux (amd64)
  • Mixx Lightning for x86_64 Linux (amd64)
  • Bloglines Lightning for x86_64 Linux (amd64)
  • Technorati Lightning for x86_64 Linux (amd64)
  • Fark this: Lightning for x86_64 Linux (amd64)
  • Bookmark Lightning for x86_64 Linux (amd64) at YahooMyWeb
  • Bookmark Lightning for x86_64 Linux (amd64) at Furl.net
  • Bookmark Lightning for x86_64 Linux (amd64) at reddit.com
  • Bookmark Lightning for x86_64 Linux (amd64) at blinklist.com
  • Bookmark Lightning for x86_64 Linux (amd64) at Spurl.net
  • Bookmark Lightning for x86_64 Linux (amd64) at NewsVine
  • Bookmark Lightning for x86_64 Linux (amd64) at Simpy.com
  • Bookmark Lightning for x86_64 Linux (amd64) at blogmarks
  • Bookmark Lightning for x86_64 Linux (amd64) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R

There is no 64 bit version of Google Earth for linux, so you'll need to make sure you have the latest version of the following packages first:

app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-compat
app-emulation/emul-linux-x86-gtklibs
app-emulation/emul-linux-x86-qtlibs
app-emulation/emul-linux-x86-soundlibs
app-emulation/emul-linux-x86-xlibs

This allowed me to start GE in the first place. But then it was horribly slow, although glxinfo reported "direct rendering: Yes" etc.

When started from the console, GE would output the following:

do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly.
Try running with LIBGL_THROTTLE_REFRESH and LIBL_SYNC_REFRESH unset.

Doing a search led me to try setting LIBGL_ALWAYS_INDIRECT=1 before running Google Earth. Indeed the warning disappeared, and GE was really faster. However, as soon as I would zoom too close, the whole screen was getting more and more sky-blue, until no image was being displayed anymore...

Finally, I found this article, and especially the comments from Eduardo Habkost and "Researcher".

I followed Researcher's instructions, and Google Earth is now working perfectly. For your convenience, I've put drm_nowaitVblank.c here to download (you cannot copy-paste from the original page because the parser there treats the includes as html code). Also to compile the code on amd64 you'll want to use gcc32 and not gcc...
  • Twitter
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R
  • Mixx Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R
  • Bloglines Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R
  • Technorati Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R
  • Fark this: Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at YahooMyWeb
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at Furl.net
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at reddit.com
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at blinklist.com
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at Spurl.net
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at NewsVine
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at Simpy.com
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R at blogmarks
  • Bookmark Getting Google Earth for linux to work properly on amd64 (x86_64) Gentoo - i915 module (do_wait: drmWaitVBlank returned -1, IRQs don't seem to be working correctly. - Try running with LIBGL_THROTTLE_R with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now)

An update to my initial article on installing Gentoo on my nx7400 laptop:

I've switched to kernel 2.6.21-gentoo (latest gentoo-sources available currently with ~amd64), and to the latest versions of ipw3945, alsa and xorg, and suspend to ram works fine now. (the screen would not switch on again with vanilla kernel 2.6.19)

Hibernation (suspend to disk) seems to work as well, apart from the fact that the screen resolution is not restored correctly, but for now I'm happy with suspend-to-ram.
  • Twitter
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now)
  • Mixx Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now)
  • Bloglines Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now)
  • Technorati Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now)
  • Fark this: Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now)
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at YahooMyWeb
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at Furl.net
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at reddit.com
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at blinklist.com
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at Spurl.net
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at NewsVine
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at Simpy.com
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) at blogmarks
  • Bookmark Gentoo Linux on HP/Compaq nx7400 Core 2 Duo Laptop - Update (suspend to ram working now) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca

Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf)

Fondu is "A set of programs to interconvert between mac font formats and pfb, ttf, otf and bdf files on unix."

I think that says it all :o) In particular, it allowed me to convert a .dfont-packaged font from a Mac to a set of .ttf files that I can use on my linux desktop.
  • Twitter
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at del.icio.us
  • Facebook
  • Google Bookmarks
  • FriendFeed
  • Digg Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf)
  • Mixx Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf)
  • Bloglines Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf)
  • Technorati Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf)
  • Fark this: Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf)
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at YahooMyWeb
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at Furl.net
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at reddit.com
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at blinklist.com
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at Spurl.net
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at NewsVine
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at Simpy.com
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) at blogmarks
  • Bookmark Convert Mac fonts to Unix / Windows format and vice-versa (dfont to ttf) with wists
  • wong it!
  • Bookmark using any bookmark manager!
  • Stumble It!
  • Print this article!
  • E-mail this story to a friend!
  • Identi.ca