Saturday, August 14, 2010

HowTo: The Ideal Dual Boot Setup, Part I

So you've decided you want to install Ubuntu, but you're not quite ready to give up on Windows just yet. What's the most ideal setup you should use for your system? Well, doing this involves some math. You will be setting up multiple partitions on your computer as you begin the install process. In addition, you will require the following install discs: Windows (XP, Vista, 7, etc.) Installation CD-ROM (Not the upgrade disc, it has to be for a fresh install) (The instructions will be using Windows 7) Ubuntu 10.04 Alternate Installation CD-ROM Now, you need to get out a piece of paper and a pencil and write down the following two pieces of information about your computer: Hard Drive capacity and RAM inside your system. With this information, you will be determining how big the partitions you will be creating will be. In my case, it is a 160GB hard drive and 2GB of RAM. Copy the following table in order to help you determine what size each of your partitions should be:

Hard Drive Partition Allocation
Partition DescriptionFormatPartition Size
Windows C:\DriveNTFS
Windows Swap FileNTFS
Shared Windows/Ubuntu DriveNTFS
Ubuntu Installation Partitionext3 / ext4
Ubuntu Home Partitionext3 / ext4
Ubuntu SwapN/A
Some given calculations:
  • Your C:\ drive should be at least 20GB for Windows XP and at least 40 GB for Windows Vista or Windows 7.
  • Your Windows Swap File partitions should equal at least 1.5xRAM for XP or 2xRAM for Vista or 7.
  • Your shared data partition will be your largest, so make it last with all remaining space.
  • Your Ubuntu installation partition should be at least 10GB, but make it 20GB if you can.
  • Your /home partition does not need to be very big as most personal data will be stored on your shared drive, so make it 10GB at the most to cover your hidden files and whatnot
  • Your Ubuntu swap again should be 1.5-2xRAM, just as it was in Windows.
So, for my hard drive and RAM combination, I have the following setup:
Hard Drive Partition Allocation
Partition DescriptionFormatPartition Size
Windows C:\DriveNTFS40GB
Windows Swap FileNTFS4GB
Shared Windows/Ubuntu DriveNTFS88GB
Ubuntu Installation Partitionext3 / ext420GB
Ubuntu Home Partitionext3 / ext45GB
Ubuntu SwapN/A3GB
So there's the Math. That's what you do before you even think about taking your computer, reformatting, and deleting all existing partitions. In Part Two, I'll get into the actual installation process further.

Saturday, May 22, 2010

Howto: Install Python 2.5.5 on Ubuntu 10.04 Lucid Lynx

So, you're a Python developer and like to use the 2.5.x track instead of the 2.6.x or the 3.x track. Well, never fear! Despite the fact that 2.5.5 is not installed in 10.04, or available in the repositories, you can still install it into your system. The following steps will show you how.

Open your terminal and type the following commands line by line:

sudo apt-get install build-essential gcc
cd Downloads
wget http://www.python.org/ftp/python/2.5.6/Python-2.5.6.tgz
tar -xvzf Python-2.5.6.tgz
cd Python-2.5.6
./configure --prefix=/usr/local/python2.5
make
make test
sudo make install
sudo ln -s /usr/local/python2.5/bin/python /usr/bin/python2.5 

There you have it! Python 2.5.5 is installed. Now if you want to run it, you can either type python2.5 from the terminal, or you can make a shortcut for it by doing the following:

  1. Right-click on Applications.
  2. Select Edit Menus.
  3. Click Programming
  4. Click New Item
  5. Type "Python (v2.5)" in the Name Box
  6. Type "python2.5" in the Command Box
  7. Type any comments (optional) in the comments box or just click Ok

Now it should show up in your programming menu. Have fun with Python 2.5.5!