need libc5 versino of portmap - and where are the add-ons?

"John Lumby" <[email protected]> Fri, 19 Mar 2004 12:08:12 -0500
Newsgroups gmane.linux.tomsrtbt
Message-ID <[email protected]>
I would find it useful to be able to run an nfs server under tomsrtbt.  I=
=20
have the NFSD support included in my 2.2.20 kernel.  I thought I could pu=
t=20
the necessary daemon progs on a separate diskette.  I've found rpc.mountd=
=20
and rpc.nfsd and exportfs in

 =20
ftp://at.rpmfind.net/linux/redhat.com/contrib/libc5/i386/nfs-server-2.2be=
ta29-1.i386.rpm

But that doesn't include the portmap.  I don't see a libc5 portmap anywhe=
re.

I see many references to doing this in the archives so I guess it should=20
work, and also a mention of getting portmap from "the add-ons".   I seem =
to=20
remember once finding the add-ons, but I can't remember where they are no=
w,=20
and they certainly aren't anywhere where the archives say they are ( =20
variously ftp.toms.net://rb/add-ons/                   doesn't exist
http://www.toms.net/rb/add-ons/       doesn't exist

(maybe nice to add their location to the FAQ)?

John
----Original Message Follows----
From: Stephane Boireau <[email protected]>
To: [email protected]
Subject: Re: [tomsrtbt] bootcd (next step)
Date: Sun, 7 Mar 2004 20:34:53 +0100

Hi,

Le Dimanche 7 Mars 2004 15:32, Tom Oehser a =E9crit :
 > > Could you explain me why the way I copied a part of rc.custom to ask=
 if=20
I
 > > want to mount cdrom doesn't work?
 >
 > Not sure, I can add researching it to my to-do list, or perhaps someon=
e
 > else reading this will see right away what the problem is.

Sure, you've got better things to do;o).

 > > Can you explain me why errors occur when I try to add a file to
 > > initrd.bz2? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D
 > > init started: Busybox v0.61.pre...
 > > Bummer, could not run '/etc/rc.S': Exec format ettor
 > > Bummer, could not run '/etc/rc.S': Exec format ettor
 > > _setutent: Can't open utmp file: No such file or directory
 > > _setutent: Can't open utmp file: No such file or directory
 > > _setutent: Can't open utmp file: No such file or directory
 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
 >
 > Hmmmm... are you re-running unpack.s/buildit.s?

No I didn't.
I just did what I wrote (copy/paste from Mdk9.2 terminal to kwrite (only
simplifying my shell prompt;o)).

=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
# mount -o loop toms2.img /mnt/disk/
# cp /mnt/disk/initrd.bz2 ./
# bzip2 -d initrd.bz2
# mount -o loop initrd /mnt/initrd
# vi /mnt/initrd/settings.s
# cp /mnt/initrd/rc.custom.gz ./
# gzip -d rc.custom.gz
# vi rc.custom
# gzip rc.custom
# cp rc.custom.gz /mnt/initrd/

I copied my scripts to /mnt/initrd/bin/ at this time.

# umount /mnt/initrd
# cat initrd | bzip2 -9 > initrd.bz2
# cp -f initrd.bz2 /mnt/disk/
# umount /mnt/disk/
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D

 > It is hard to say without
 > playing with what you modified more directly.  I have never tried to m=
ake
 > changes to the generated stuff, I only modify it in the unpacked form,=
=20
and
 > then always recreate it using the scripts...  Note, the eltorito versi=
on=20
of
 > tomsrtbt is a side effect of the floppy version, the well-tested path =
for
 > modifying it is the floppy one.  Certainly, all I do with the cdrom=20
version
 > is run the eltorito.s script after I create the floppy, I've never tri=
ed=20
to
 > change it in place.

Didn't you tell me that to modify eltorito-cd this way I should have same
config as yours,...
I didn't succeed when I tried a few month ago.

Can I modify Tomsrtbt-floppy with unpack,... and then run eltorito.s to d=
o a
cd version of this floppy?



Some tests later:
I succeeded in something better:
I create cd.sh script from rc.custom and it ask which drive should be use=
d:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
...
route add -net 127.0.0.0 lo

echo 'if mount | grep /mnt/cdrom > /dev/null; then' > /bin/cd.sh
echo '    echo ""' >> /bin/cd.sh
echo 'else' >> /bin/cd.sh
echo '    BLUE=3D"\033[1;34m"' >> /bin/cd.sh
echo '    GREY=3D"\033[0;37m"' >> /bin/cd.sh
echo '    WHITE=3D"\033[1;37m"' >> /bin/cd.sh
echo '    GREEN=3D"\033[1;32m"' >> /bin/cd.sh
echo '    RED=3D"\033[1;31m"' >> /bin/cd.sh
echo '    echo -e "${BLUE}*****************"' >> /bin/cd.sh
echo '    echo "* Scripts on CD *"' >> /bin/cd.sh
echo '    echo "*****************"' >> /bin/cd.sh
echo '    echo -e "${GREY}CD-drives found:${WHITE}"' >> /bin/cd.sh
echo '    dmesg | grep hd | grep ROM | grep Cache' >> /bin/cd.sh
echo '    dmesg | grep sd | grep ROM | grep Cache' >> /bin/cd.sh
echo '    echo -e "${GREY}"' >> /bin/cd.sh
echo '    echo -e "Which cd-drive do you want to mount? ${GREEN}\c"' >>
/bin/cd.sh
echo '    read CD' >> /bin/cd.sh
echo '    if [ "$CD" !=3D "" ]; then' >> /bin/cd.sh
echo '        echo -e "${WHITE}"' >> /bin/cd.sh
echo '        mkdir -p /mnt/cdrom' >> /bin/cd.sh
echo '        mount -t iso9660 /dev/$CD /mnt/cdrom||exit' >> /bin/cd.sh
echo '        echo -e "${GREY}"' >> /bin/cd.sh
echo '    else' >> /bin/cd.sh
echo '        echo -e "${RED}ERROR!\nDevice name can not be empty${GREY}"=
'=20
 >>
/bin/cd.sh
echo '        exit' >> /bin/cd.sh
echo '    fi' >> /bin/cd.sh
echo 'fi' >> /bin/cd.sh
echo "sh /mnt/cdrom/toms_addons/index.sh" >> /bin/cd.sh
chmod +x /bin/cd.sh

FM=3D`sh -c 'shift 2;echo $8' \`dd if=3D/proc/meminfo 2>/dev/null\` `
...
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D
It can probably be improved but it works;o).

'hope it can be usefull... (I'll use it)

Thank you very much!
--
Stephane Boireau
Personne Ressource TICE du Coll=E8ge Le Hameau =E0 Bernay (27)

_________________________________________________________________
Add photos to your e-mail with MSN Premium. Get 2 months FREE* =20
http://join.msn.com/?pgmarket=3Den-ca&page=3Dbyoa/prem&xAPID=3D1994&DI=3D=
1034&SU=3Dhttp://hotmail.com/enca&HL=3DMarket_MSNIS_Taglines