Install Fedora Core 5

Fedora Core 5 is available for the Kuro Box and Kuro Box HG. It is necessary to have U-Boot flashed onto your Kuro Box. This is because the version of glibc used in FC5 does not support the Linux 2.4 kernel. It may be possible to run FC5 on non U-Boot Kuro Boxes but this would require two partitions.

Parts of this HOWTO have been copied from the Project Gentoo Install HOWTO since the beginning part is the same. Just wanted to make sure I gave credit.

Install U-Boot
The first step of installing Fedora Core 5 is to get U-Boot installed. Warning: You can brick your Kuro Box if you do this wrong! Please follow the steps in the HOWTO U-Boot article very carefully.

Preparing for Install
Start by using any FTP client to upload EM_mode_binaries.tar.bz2 (you can download it from http://kurobox.com/downloads/gentoo to /tmp on the Kuro (hint: Windows may change the extension of the file when you download it from the internet). Then login to your Kuro Box using a telnet client

Kroutoshikou KURO-BOX (IETSUNA) kernel 2.4.17-kuro-box on ppc KURO-BOX-EM login: root Password: kuro (kuroadmin on HG)

Lets see what we've got # df Filesystem 1k-blocks Used Available Use% Mounted on /dev/ram0 9677 5102 4575 53% / EM_mode_binaries.tar.gz
 * 1) ls /tmp

Install EM mode utilities
Change to the root and untar the binaries. bin/ bin/sfdisk bin/fdisk bin/bzip2 bin/date bin/chroot #
 * 1) cd /
 * 2) tar xvzf /tmp/EM_mode_binaries.tar.gz

Check and set the date. Fri Feb 1 12:37:03 JST 2006 Thu Feb 3 22:38:00 JST 2006
 * 1) date
 * 1) date 02032238

Partitioning & Formating the HDD
Note: The /etc/fstab file that comes with the FC5 image is configured to work with this hard drive partitioning scheme. If you want to use a different partitioning scheme you must edit /etc/fstab accordingly. The flash contains the standard visual editor, vi. Instructions for using vi are available at http://www.cs.colostate.edu/helpdocs/vi.html.

We run fdisk and create partitions. I use two partitions: hda1 for /, hda2 for the swap space. For most users, 10gb for / on hda1 is adequate. 512mb is good for a swap space on hda2. However, you can decide which way you want to break up your hard disk. Remember you need to mount /dev/hda1 before you untar the image (More on that later). I leave it up to you to create a third partition on /dev/hda3 which can use the remaining space on the disk. Remember that you will have to edit your /etc/fstab to make it mount on boot up. But this can be done after you have FC5 up and running.


 * 1) fdisk /dev/hda

Once the partitions are created we format the partitions. Here we format the first partition on /dev/hda (the hard drive is /dev/hda). mke2fs 1.22, 22-Jun-2001 for EXT2 FS 0.5b, 95/08/09 Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 1251712 inodes, 2502115 blocks 125105 blocks (5.00%) reserved for the super user First data block=0 77 block groups 32768 blocks per group, 32768 fragments per group 16256 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632 Writing inode tables: done Creating journal (8192 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 29 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. #
 * 1) mke2fs -j /dev/hda1

Next we create the swap space Setting up swapspace version 1, size = 518184960 bytes #
 * 1) mkswap /dev/hda2

Mount the new partition
This will allow us to create the FC5 system on the hard drive instead of in the flash ram drive.
 * 1) mount -t ext3 /dev/hda1 /mnt

Extracting the Image
We now use our FTP client to upload fc5-ppc-3-20060710.tar.gz from http://www.kurobox.com/fedora/5/ppc to the /mnt directory on the Kuro Box.

We then change directories to /mnt and untar the image in what will be our root directory
 * 1) cd /mnt
 * 2) tar zxvf fc5-ppc-3-20060710.tar.gz

Once the image is untarred we can delete the image from /mnt.


 * 1) rm fc5-ppc-3-20060710.tar.gz

Clean up and Reboot
Unmount everything
 * 1) cd /
 * 2) umount /mnt

Set the box to boot to the new system. By the way, that device is FL3 in lowercase.
 * 1) echo -n &quot;OKOK&quot; &gt; /dev/fl3

and then restart the system
 * 1) shutdown -r now

Wait a few minutes and then log onto your Kuro Box with putty. The first time the system boots it will take about 3 minutes as it needs to generate the certificates used by sshd. Login with user id root and password kuroadmin. The network is configured for DHCP.

Post Installation Tasks
First we set the root password and create a new user who is a member of wheel so they can su to root.

kurobox ~ # cd / kurobox # passwd New UNIX password: Retype new UNIX password: passwd: password updated successfully kurobox # useradd dtaylor -m -G users,wheel -s /bin/bash kurobox # passwd dtaylor New UNIX password: Retype new UNIX password: passwd: password updated successfully kurobox #

This image has a couple additional rpms installed to make life easier on the Kuro Box.
 * kuro-initscripts - modified init scripts to handle shutdown/reboot properly. Also listens for the power and reset buttons.
 * kuro-release - yum repository on kurobox.com, and additional packages for the Kuro Box like the above initscripts.