[top] [TitleIndex] [WordIndex]

vpc/vpc ubuntu

Installing Ubuntu 5.10 "Breezy Badger" on Virtual PC 2007

Setting up Virtual PC 2007

1. Install Virtual PC 2007

Installing Ubuntu 5.10

Setting up Ubuntu 5.10

  1. Setup Networking:
    1. Edit the network interfaces file
        sudo vi /etc/network/interfaces 
    2. Just above the line that says
        iface eth0 inet dhcp 
      add:
        auto eth0 
    3. Then restart networking:
        sudo /etc/init.d/networking restart 
  2. Install Necessary Software for building:
    1. Reattach to the install media by selecting CD -> 'Capture ISO Image...' and selecting the .iso used to install the build.

    2. 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...

  1. Download the necessary source/packages
    1. Download the latest sage tarball

    2. 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.)

  2. Unpack the various sources and packages
    1. Unpack the sage tarball:
        tar -xvf <your sage tarball>
    2. Copy the gcc spkg to the sage source directory and unpack it
        tar -jxvf gcc-<gcc ver #>.spkg
  3. 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.
    1. 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:
      1. Type make.

      2. Wait until you see gmp being compiled.
      3. hit ctrl-c to cancel the build

    2. 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.
    3. Now you need to install the latest gcc compiler.
      1. set the environment variables up for sage build:
           ./sage -sh
      2. 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.
      3. Leave the sage build environment. Type exit to leave the sage build environment.

      4. Now remove all the installed packages. From the spkg subdirectory of your sage root directory type
           rm installed*
      Now when you build sage again, it will use the latest gcc, not the one installed from build-essential.
  4. Install Sage with the new compiler.
    1. 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.)

To set up the Harddrives you need to do the following:

  1. Add the hard drives while the virtual machine is turned off, restart the vpc after the hard drives have been added.
  2. 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.)
  3. Then do mkfs.ext3 hdX.
  4. Then add /dev/hdb and /dev/hdd to the end of the file /etc/fstab.
  5. run mount -a, and everything should be set up.

2013-05-11 18:34