By Brian Fisher, panda@mit.edu
The purpose of this manual is to allow Mac users here at MIT to run LinuxPPC so they can do work that would otherwise necessitate the purchase of a PC to run Linux or Windows. For example, many Computer Science courses require the use of a programming language called Scheme. MIT does not have a compatible version of Scheme for the Mac, but Scheme can easily be compiled for LinuxPPC. Furthermore, Unix based systems (including LinuxPPC) form the basis of MIT’s computing environment. With Unix, people can use other machines to run software, but have the user interface of the software display on their own machine. Thus, even if some software cannot be compiled for LinuxPPC, the Mac will still be useful as a display, reducing the need to use often overcrowded computing clusters.
LinuxPPC requires you have at least a 1 gigabyte hard drive, 32 megabytes of RAM, and one of the following Macs:
PowerMac | 4400, 5400, 5500, 6400, 6500, 7200, 7300, 7500, 7600, 8200, 8500, 8600, 9500, 9600, G3 |
PowerBook | 2400, 3400, G3 |
Other | iMac, iBook, G3, G4, Twentieth Anniversary Mac |
Mac clones | clones based on the aforementioned models |
Installation Preperation
Before installation, you should back up your Macintosh to another storage medium, such as CD-R, Jaz, or Zip disks. The installation process will require you to reformat your drive, so anything important will be lost unless it is backed up. Once you have done this, you should boot from a Mac OS Installation CD. If you do not have one of these, you can get one from the MIT Computing Connection (x3-7686), the Computing Helpdesk (x3-1101), or by purchasing a copy from a retailer. Make a note of what version of the Mac OS is contained on the CD.
You can boot from the Mac OS Installation CD by holding down the ‘C’ key as the computer starts up. After the Mac starts up:
After completing this partitioning process, you may close Drive Setup. If you are using Mac OS 8.1 through 8.6 on the Mac OS partition (so that you can continue using the Mac programs you love), click on that icon on the desktop, then select the “Erase Disk...” command from the Special menu. Name the disk what you want, but specify the format as “Mac OS Extended”.
If you do not have a Mac OS 9 CD handy, then you will need to use a program
called pdisk to partition your hard disk. You can download this program
from ftp://rufus.w3.org/linux/linuxPPC/linuxppc-pre-R5/install/MacOS.utils/pdisk.sit
Built in help guides you here. Pdisk’s
text based interface does not behave like most Macintosh applications,
so if you are uncomfortable with this help, refer to http://www.linuxppc.com/userguide/pdisk.html
for more detailed instructions.
Reinstalling Mac OS
Preparing to install LinuxPPC
Several alternatives exist for installing LinuxPPC. You can install the software by downloading files from the internet onto your hard drive, by using a CD with the LinuxPPC installer on it, or by doing an FTP install. This paper will concentrate on doing an FTP install. If you wish to get information about other installation options, go to http://www.linuxppc.com/userguide/
Unlike what you are probably accustomed to, the installer requires the use of the keyboard and not the mouse. If there are problems, you should write down what is shown on the computer display after pressing Command (the Apple key) along with each of the following keys: F1, F2, F3, F4, and F5.
During the installation process, use the arrow or tab keys to highlight options and the space bar to select them. Hitting the return key will press buttons. This process will be similar to that of installing Red Hat Linux on the PC. The first item you might wonder about is what kind of keyboard you have. If you have an iBook, iMac, Blue and White G3, or G4, then you have a USB keyboard. Otherwise you have an ADB keyboard.
A box will come along asking what the installation method is. Select FTP and hit Ok. Another box will follow asking where to download the files from. For MIT, you will want to use the FTP server rufus.w3.org and the installer will get the files from the linux/linuxPPC/linuxppc-1999/RedHat/ directory. When the installer gets to the Disk Setup screen, select “fdisk”. Select the disk to be partitioned at the appropriate time. Make sure you select the correct disk, or else you will be restoring files from backup again.
Since you already partitioned the drive, you will only need to specify the mount point of each partition. The A/UX root partition has the mount point “/”. If you selected the “LinuxPPC Preferred” option earlier, specify the mount point for that partition as “/home”. The mount point for the A/UX Swap partition should be automatically recognized as “swap” by fdisk. Note that although Drive Setup earlier only showed the partitions created by you, there are actually other partitions which tell the Mac how to access the disk. The first partition from before will actually be the fifth partition here. The second from before will be the sixth partition, and so on. Make sure you do not make changes that affect the partitions other than the one you intended linux to be installed on.
Once you are done with fdisk, the LinuxPPC installer will ask you if you would like to format the partitions you created for linux. Unless you have a reason otherwise, format and check for bad blocks each partition related to Linux.
After this, install the items you would like to have on the System, and
follow instructions in the installer to set up a root password. Once
you reboot, you should have a functional LinuxPPC system!
Installing MIT specific software
To install the packages you downloaded:
Helpful Mac Utilities
Apple HD SC Setup formats SCSI drives if you are using System 7.5 or earlier (Drive Setup would be a better choice, is included with Mac OS 7.6 and higher Cds) | http://asu.info.apple.com/swupdates.nsf/artnum/n10071 |
ATI Rage 128 drivers for Linux (needed for accelerated video on the Blue and White G3, G4, and iMac DV) | ftp://devel.linuxppc.org/users/atong/aty128/ |
MountX mounts Linux partitions on the desktop. Extremely useful if a problem prevents you from logging into linux as root. | http://calvaweb.calvacom.fr/bh40/ |
pdisk for partitioning disks with Linux partitions if Mac OS is earlier than Mac OS 9.0 | ftp://rufus.w3.org/linux/linuxPPC/linuxppc-pre-R5/install/Mac OS.utils/pdisk.sit |
Stuffit Expander A Mac OS utility very useful for other things. It can expand many formats, including .tar, .sit, and .zip This can corrupt .gz files, so do not expand .gz files with this | http://www.aladdinsys.com/expander/expander_mac.html |
Useful Linux Information Links
Slashdot: Linux news and discussion | http://www.slashdot.org |
iMacLinux.net: similar to Slashdot, but specific to the iMac | http://www.imaclinux.net |
Yellow Dog Linux:a more feature rich version of LinuxPPC. If there are problems installing LinuxPPC-1999 onto your Mac, try installing it instead. | http://www.yellowdoglinux.com |
LinuxPPC.org: The site for LinuxPPC development and help | http://www.linuxppc.org |
Sources of information for this document included the websites listed, personal experience, and emails on the linuxppc-help@mit.edu mail list. Questions or comments about this document should be directed to Brian Fisher (panda@mit.edu).