Installing Ubuntu 5.10 "Breezy Badger" on Virtual PC 2007
Setting up Virtual PC 2007
1. Install Virtual PC 2007
Installing Ubuntu 5.10
- We suggest using the server release
Get an iso from http://old-releases.ubuntu.com/releases/
You can install the server off of dvd found here.
You can install the straight server off of the server cd.
Setting up Ubuntu 5.10
- Setup Networking:
- Edit the network interfaces file
sudo vi /etc/network/interfaces
- Just above the line that says
iface eth0 inet dhcp
add:auto eth0
- Then restart networking:
sudo /etc/init.d/networking restart
- Edit the network interfaces file
- Install Necessary Software for building:
Reattach to the install media by selecting CD -> 'Capture ISO Image...' and selecting the .iso used to install the build.
- Install the necessary building utilities (build essentials, and m4):
sudo apt-get install build-essential m4
Installing the latest Sage From Source
It's a freakin song and dance you gotta do, let me tell you...
- Download the necessary source/packages
Download the latest sage tarball
Get the latest optional gcc spkg from the optional spkg repository. (The latest at the time this was written, which is gpl v3 free is Version 4.2.1.)
- Unpack the various sources and packages
- Unpack the sage tarball:
tar -xvf <your sage tarball>
- Copy the gcc spkg to the sage source directory and unpack it
tar -jxvf gcc-<gcc ver #>.spkg
- Unpack the sage tarball:
- Bootstrap the sage build to get the new gcc (the gcc that comes in Ubuntu 5.10 has too many bugs and won't build newer sage releases correctly.
- From the sage root directory (where you unpacked the sage source tarball to.) Begin the sage build process so that sage sets up the sage root directory correctly:
Type make.
- Wait until you see gmp being compiled.
hit ctrl-c to cancel the build
- Now build the latest gcc dependencies, these are only gmp and mpfr:
./sage -i gmp-4.2.2.p1.fake.spkg mpfr-2.3.2.spkg
Note that these version numbers may have changed. - Now you need to install the latest gcc compiler.
- set the environment variables up for sage build:
./sage -sh
- Now go to the directory where you unpacked the optional gcc spkg and install the spkg:
./spkg_install
This may take a while, might I suggest that you treat yourself to a tasty beverage, go do something useful for 1-3 hours (depending on the performance of your computer.) And come back later. Leave the sage build environment. Type exit to leave the sage build environment.
- Now remove all the installed packages. From the spkg subdirectory of your sage root directory type
rm installed*
- set the environment variables up for sage build:
- From the sage root directory (where you unpacked the sage source tarball to.) Begin the sage build process so that sage sets up the sage root directory correctly:
- Install Sage with the new compiler.
From your sage root directory simply type make
Mounting Additional Harddrives
From the Edit -> Settings menu, you may notice an option for multiple hard drives. If you want to use multiple hard drives (virtual pc supports up to 3.) You can add additional hard drives later (you must wait until after you install, the mounted CD will not work when you have multiple harddrives mounted as well, so you won't be able to install.)
- The second harddrive gets added as /dev/hdb
- The third harddrive gets added as /dev/hdd
To set up the Harddrives you need to do the following:
- Add the hard drives while the virtual machine is turned off, restart the vpc after the hard drives have been added.
- As root, do fdisk hdX, (where X is b or d) and set up the partitions (I think you hit n, enter a few times, and then w, and everything works right.)
- Then do mkfs.ext3 hdX.
- Then add /dev/hdb and /dev/hdd to the end of the file /etc/fstab.
- run mount -a, and everything should be set up.