Moma’s script page
1) Installation of Xgl in Ubuntu 6.04 (Dapper Drake) [20.mars.2006]
Follow this thread….
Additional information
Improved code…
http://en.wikipedia.org/wiki/Xgl http://en.wikipedia.org/wiki/Compiz
2) Auto-setup of QEMU system emulator. You can run several OSes inside your Ubuntu box. [20.mars.2006]
This script is compatible with Ubuntu 5.10 (Breezy) and Ubuntu 6.06 (Dapper Drake).
Study first
http://fabrice.bellard.free.fr/qemu/download.html
http://en.wikipedia.org/wiki/Qemu
Then install QEMU emulator and accelerator by doing:
$ mkdir $HOME/tmp
$ cd $HOME/tmp
Get the script
$ rm inst_qemu.sh
$ wget http://www.futuredesktop.org/tmp/inst_qemu.sh
Run it
$ sudo sh inst_qemu.sh
The compilation phase may take a few minutes. Warnings are OK.
Please check that /etc/init.d/bootmisc.sh is edited correctly.
The end of /etc/init.d/bootmisc.sh must look like this. (the green lines are added by inst_qemu.sh script)
….
;;
esac
# Added by root(0), Tue Jul 25 14:06:24 UTC 2006 ——BEG
# Load kqemu accelerator module
/sbin/modprobe kqemu# Create kqemu device
mknod /dev/kqemu c 250 0 2> /dev/null# Make it accessible to all users
chmod 666 /dev/kqemu 2> /dev/null
# Added by root(0), Tue Jul 25 14:06:24 UTC 2006 ——END: exit 0
———
Check wheather the KQEMU accelerator module is loaded
$ lsmod | grep kqemu
kqemu 108356 2
———
Test your QEMU by playing with the tiny Unix/Linux instance in your “$HOME/qemu/linux-test/” directory.
Run: “sh qemu.sh” to test it.
And study the qemu.sh and qemu-ifup scripts.
RTFM
http://fabrice.bellard.free.fr/qemu/user-doc.html
You can download ready-made (qemu) images from
http://free.oszoo.org/download.html
Samples
I regularly run Ubuntu 5.10 and 6.06 in QEMU. This is how I installed them:
Create a large image file (eg. ubuntu_hd.img, 3GB). It will play the role of a harddrive.
$ qemu-img create ubuntu_hd.img 3000M
Download your favourite ISO-image. Here I choose Ubuntu 5.10 iso.
$ LINUX_ISO=”$HOME/tmp/ubuntu-5.10-install-i386.iso”
Start the installation
$ qemu -boot d -soundhw sb16,es1370 -cdrom $LINUX_ISO -hda ./ubuntu_hd.img -monitor stdio -m 128
—
Start the operating system after installation
$ qemu -soundhw sb16,es1370 -hda ubuntu_hd.img -boot c -m 128 -localtime
-m option sets the amount of memory assigned to the emulator instance. More is better.
———
This sample shows how you emulate and run Knoppix liveCD. Any other LiveCD will do as well. Put in the CD and
$ qemu -cdrom /dev/cdrom -m 128
Or boot from /dev/cdrom and possibly install linux on a harddisk hda (in this exercise it is linux_hd.img).
$ qemu-img create linux_hd.img 3000M
$ qemu -boot d -cdrom /dev/cdrom -hda linux_hd.img -m 128
Note that your system may use other names for /dev/cdrom. For example /dev/hda or /dev/hdb.
One of these is propably a symbolic link to /dev/cdrom.
———
Run Puppy-Linux… live cd in QEMU. Puppy is loaded in-memory, so it needs at least 256MB ram.
I created 2 images; floppy.img for a 1Meg floppy drive and puppy.img for a 3GB harddrive.
$ qemu-img create floppy.img 1M # just for fun.
$ qemu-img create puppy_hd.img 3000M # in case I wanna install Puppy on a HD.
$ LINUX_ISO=puppy-2.02-seamonkey.iso
$ qemu -boot d -soundhw sb16,es1370 -kernel-kqemu -cdrom $LINUX_ISO -fda floppy.img -hda puppy_hd.img -monitor stdio -m 256
Note: choose “Xvesa” in the screen wizard.
# sb16 and es1370 = emulated sound cards.
# Both sound and network worked very well. Had to activate eth0 nic in Puppy’s Setup.
Puppy barking in QEMU.
———
In all cases, read the manual….
Adelante
$ man qemu
$ qemu -h
Other tips on QEMU here…
3) Kompilering av kjerne i Ubuntu 5.10 (self compiled Ubuntu kernel)
When kernel 2.6.15 was new and men were men.
Follow this link….
4) Install IVTV driver for Hauppauge 350 PVR TV-card
If you have a Hauppauge 250/350 PVR TV-card, study this: http://linux1.no/node/1591
A screenshot… and all involved files…