Upgrading
to Fedora Core 6
If
you have been running LON-CAPA for a while, you likely have an old version
of Fedora Core. For an access server, you can just wipe out the whole box, there is nothing worth keeping on it, but
never ever just wipe out a library server!
Upgrading Fedora is a pain, but it's worth it to continue getting security
updates, etc. Here's what to do to upgrade the Fedora underneath LON-CAPA:
- Obtain installation CDs for Fedora Core 6, for example from http://fedoraproject.org/wiki/
- Write down the current network settings of your machine
- If you have worked on your yum.conf and modified it to point to the legacy
update servers, it is necessary to:
-
Update your system to the latest versions of the system software using
yum.
-
Yum is configured to check encyption keys for the packages it installs,
so you need to import the keys before invoking yum.
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-extras
yum update
-
Reboot your system before continuing with the installation.
- Boot from the CD, choose "Upgrade." Never ever just wipe out a library
server!
- Play disk jockey until installation is complete
- Your system will very likely not boot after you are done, instead, you
will get a kernel panic - don't panic yourself
- Boot again from the CD and enter "linux
rescue "
- Edit the file
/mnt/sysimage/etc/selinux/config
using vi and replace "SELINUX=enforcing" by "SELINUX=permissive"
- Reboot by typing "exit" - the box should boot okay, but you will likely
not have network
- From the GUI, go to System -> Administration -> Network and change the
network settings for eth0 back to "static" with the values you have previously
written down (you did that, didn't you?)
- Make sure your network services restart
- We now need to remove some old dependencies:
yum remove LONCAPA-prerequisites
yum remove mod_perl_1
yum remove gnuplot
yum update
- Now we need to install the new LON-CAPA prerequisites:
yum install LONCAPA-prerequisites
- Now we need to get the Apache configuration correct:
mkdir fc6
cd fc6
wget http://install.loncapa.org/versions/fedora/6/FC6_install.tar
tar xf FC6_install.tar
cd installation
cp httpd.conf /etc/httpd/conf
- As the last step, upgrade your LON-CAPA version as you normally would.
Never ever just wipe out a library
server!
- If httpd does not start up on reboot, you might
have to
mv /etc/rc5.d/K15httpd /etc/rc5.d/S15httpd
Oh, before we forget ... what was it again ...? Oh, yes: Never ever just wipe out a library
server!
|