[3105] in SIPB_Linux_Development
Re: afs packages for rh6.2
daemon@ATHENA.MIT.EDU (Alex Coventry)
Thu Oct 12 13:06:11 2000
Date: Thu, 12 Oct 2000 13:06:06 -0400 (EDT)
Message-Id: <200010121706.NAA34759@m2-225-5.mit.edu>
From: Alex Coventry <alex_c@MIT.EDU>
To: pylot@MIT.EDU
Cc: linux-dev@MIT.EDU
In-Reply-To: <Pine.LNX.4.21.0010121157010.16867-100000@vanturarita.mit.edu>
(message from Daniel Preda on Thu, 12 Oct 2000 12:05:51 -0400 (EDT))
Hi, Daniel.
Sorry it's taken so long to get back to you, but I haven't had time to
play with the athena packages as standalone rpm's recently. If you want
to try something like this, you could experiment with the rpm's in
/afs/sipb/system/rhlinux/redhat-6.2/RedHat/RPMS/
...which includes an athena-afs that is built against your kernel
(though only the single-processor version.) But if you try this and it
breaks anything, you're pretty much on your own.
After you've done that, you probably want to do some of the stuff that
the postinstall script of the SIPB installer does. Here is that script:
################################################################################
#!/bin/sh
ATHENAVERSION=8.4.0
ROOT=/
# Get network address:
ADDR=`grep -i ipaddr /etc/sysconfig/network-scripts/ifcfg-eth0 \
|sed -e 's/^.*=//'`
HOSTNAME=`chroot $ROOT host $ADDR | awk '{print $5}' | tr '[A-Z]' '[a-z]'`
# Change default runlevel to 5 (X11) and disable console logins
$ROOT/bin/sed -e 's/id:3/id:5/' -e '/tty[123456]/s/^/\#/' < $ROOT/etc/inittab > /tmp/inittab
for i in 1 2 3 4 5 6; do
echo "$i:2345:once:echo \"Type CTRL-ALT-F7 to log in.\" > /dev/tty$i" >> /tmp/inittab
done
mv /tmp/inittab $ROOT/etc/inittab
echo "Installed by SIPB Installer on `date`" > $ROOT/etc/athena/version
echo -n "Athena Workstation (linux) Version " >> $ROOT/etc/athena/version
echo -n "$ATHENAVERSION " >> $ROOT/etc/athena/version
TZ=US/Eastern date >> $ROOT/etc/athena/version
MACHINE=`uname -m`
OS=`uname -s`
$ROOT/bin/sed -e "s/localhost.localdomain/$HOSTNAME/" \
-e "s/ADDR=/ADDR=$ADDR/" \
-e "s/HOST=/HOST=$HOSTNAME/" \
-e "s/MACHINE=i[3456]86/MACHINE=$MACHINE/" \
$ROOT/etc/athena/rc.conf > /tmp/rc.conf
cat <<eof >>/tmp/rc.conf
AFSCLIENT=true; export AFSCLIENT; # AFS client
AFSADJUST=true; export AFSADJUST; # Adjust AFS cache-size?
eof
mv /tmp/rc.conf $ROOT/etc/athena/rc.conf
touch /var/athena/release-rpms
################################################################################
Alex.
> I'd like to access afs as well. I tried to install the packages from
> /afs/sipb.mit.edu/project/linux/packages/5.2/RPMS/i386 but the afs
> module is based on the 2.0.36 kernel, and mine is 2.2.14-5.0 (I was
> not able to find the packages for rh 6.2). Do you have any idea where
> I can find the new packages?