I have now done it a couple of times, but always have to look it up. Here are the steps to re-install Grub from a live Ubuntu CD, when you have Windows and Linux on your hard disk. You must be root, or run these commands with
mount /dev/sda2 /mnt
mount /dev/sda3 /mnt/boot, if you have a separate boot partition
mount -o bind /dev /mnt/dev
mount -o bind /sys /mnt/sys
mount -t proc /proc /mnt/proc
chroot /mnt /bin/bash
Above commands are from method 3 in GRUB (in German).
Recently I installed an additional SATA drive on my Lenovo laptop. Without much ado I formatted the drive to ext4. Unfortunately, I quickly realized that the hard drive is spinning almost twice a second. My first drive on the laptop is also formatted with ext4, so using ext4 was a natural choice. A Google search revealed that I am not alone with this problem (USB Drive Blinks Constantly on EXT4 Format), and pointed out that formatting with ext3 can cure the problem. Which it indeed did.
The morale is: Newer is not always better.
I wanted to see what files and when J-Pilot accesses its pdb and pc3 files. In my case
strace produces much more output than actually needed. But
inotifywait shows what and when files are accessed.
inotifywait -m .jpilot/
My other son had a practical training at Fraunhofer IGD. He wrote an OpenGL/C++ program in Windows where one views the earth rotating around the sun, thereby with its rotating moon, see picture below.
I ported this program to Gtk/Linux. You’ll find the code in
openglSunEM.c. The link between Gtk and OpenGL is realized by GtkGlExt. On Ubuntu you have to install
openglSunEM can either be called with or without textures using command line flag “-t”. Typing ESC stops the program.
The main geometric transformation is handled in
drawGLScene(): draw sun, draw earth, draw moon (which rotates around the earth, which in turn rotates around the sun). The speed of rotation can be increased or decreased with the arrow keys (
GDK_KEY_Down), one can zoom in or out (
The whole animation can be rotated like an arcball, its implementation being in