Difference between revisions of "Install Fedora Core 5"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
Fedora Core 5 is available for the Kuro Box and Kuro Box HG.  It is necessary to have U-Boot [[Flash ROM|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.
 
Fedora Core 5 is available for the Kuro Box and Kuro Box HG.  It is necessary to have U-Boot [[Flash ROM|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 Gentoo HOWTO since the beginning part is the same.  Just wanted to make sure I gave credit.
+
Parts of this HOWTO have been copied from the [[Gentoo on the Kurobox | Project Gentoo]] Install HOWTO since the beginning part is the same.  Just wanted to make sure I gave credit.
  
 
== Install U-Boot ==  
 
== Install U-Boot ==  
The first step of installing Fedora Core 5 is getting 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.
+
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 ==
 
== 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 the kuro using a telnet client  
+
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)  
 
  Kroutoshikou KURO-BOX (IETSUNA)  
Line 105: Line 105:
 
  # shutdown -r now  
 
  # shutdown -r now  
  
Wait a few minutes and then log onto your kuro 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.
+
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 ==
 
== Post Installation Tasks ==
Line 124: Line 124:
  
 
This image has a couple additional rpms installed to make life easier on the Kuro Box.
 
This image has a couple additional rpms installed to make life easier on the Kuro Box.
kuro-initscripts - has modifications to handle shutdown/reboot properly. Also listens to the power button and reset button.
+
* '''kuro-initscripts''' - modified init scripts to handle shutdown/reboot properly. Also listens for the power and reset buttons.
kuro-release - yum repo on kurobox.com.  Additional packages for the kuro like the above initscripts.
+
* '''kuro-release''' - yum repository on kurobox.com, and additional packages for the Kuro Box like the above initscripts.
  
 
[[Category:Fedora]] [[Category:HowTo]]
 
[[Category:Fedora]] [[Category:HowTo]]

Revision as of 06:45, 30 July 2006

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.

Contents

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% /  
# ls /tmp
EM_mode_binaries.tar.gz 

Install EM mode utilities

Change to the root and untar the binaries.

# cd / 
# tar xvzf /tmp/EM_mode_binaries.tar.gz 
bin/ 
bin/sfdisk bin/fdisk bin/bzip2 bin/date bin/chroot #

Check and set the date.

# date 
Fri Feb 1 12:37:03 JST 2006 
# date 02032238 
Thu Feb 3 22:38:00 JST 2006

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.

# 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 -j /dev/hda1 
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.
# 

Next we create the swap space

# mkswap /dev/hda2 
Setting up swapspace version 1, size = 518184960 bytes 
#

Install FC5 Image

Mount the new partition

This will allow us to create the FC5 system on the hard drive instead of in the flash ram drive.

# 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

# cd /mnt
# tar zxvf fc5-ppc-3-20060710.tar.gz

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

# rm fc5-ppc-3-20060710.tar.gz

Clean up and Reboot

Unmount everything

# cd / 
# umount /mnt

Set the box to boot to the new system. By the way, that device is FL3 in lowercase.

# echo -n "OKOK" > /dev/fl3 

and then restart the system

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