tftp-hpa - An enhanced version of the BSD TFTP client and server ChangeLog

HOWTO


# tftp-hpa 5.0
# ============
# Slackware 12.0, 12.1, 12.2, 13.0: tftp-hpa 0.48

# tcp wrappers (optional)
# readline

cd
test -f installed/tftp-hpa-5.0.tar.bz2 &&
mv installed/tftp-hpa-5.0.tar.bz2 .
test ! -f tftp-hpa-5.0.tar.bz2 &&
wget http://www.kernel.org/pub/software/network/tftp/tftp-hpa-5.0.tar.bz2

# Verify tarball w/ md5sum:
# (this came from my gpg-verified tarball)
echo "28beef704a4ef62bc2dead005198ef4c  tftp-hpa-5.0.tar.bz2" | md5sum -c

# Verify tarball w/ md5sum:
# (this also came from my gpg-verified tarball)
echo "7f541f085a4af5a87bf86a249421b13a30150597  tftp-hpa-5.0.tar.bz2" \
| sha1sum -c

# Verify tarball w/ gpg:
( gpg --list-keys ? > /dev/null 2>&1 || gpg --recv-keys ? ) &&
wget -nc http://www.kernel.org/pub/software/network/tftp/\
tftp-hpa-5.0.tar.bz2.sign &&
  rm tftp-hpa-5.0.tar.bz2.sign

mkdir -p -m 0700 src
cd src
find -maxdepth 1 -type d -name "tftp-hpa-*" -exec rm -r {} \;
tar xjvf ~/tftp-hpa-5.0.tar.bz2
cd tftp-hpa-5.0
test $UID = 0 && chown -R root:root .
./configure --prefix=/usr --mandir=/usr/man --without-ipv6
make

# Become root to clean up old files and to install it
su

# Remove the Slackware package, if there is one
test -x /sbin/removepkg && /sbin/removepkg tftp-hpa

# Install it
make install

# Create the tftp files directory
mkdir /tftpboot
chmod 700 /tftpboot
chown nobody /tftpboot

## TFTP server
#
## If you want to start it out of inetd, add something like the following,
## all on one line, to /etc/inetd.conf, then restart inetd
## ('/etc/rc.d/rc.inetd restart'):
# tftp  dgram   udp     wait    root    /usr/sbin/in.tftpd  in.tftpd
# -s /tftpboot -U 077 -r blksize
#
## If you don't want to start it out of inetd, add something to
## /etc/rc.d/rc.local to start it on boot-up in standalone mode:
# if [ -x /usr/sbin/in.tftpd ]; then
#   echo "Starting in.tftpd..."
#   /usr/sbin/in.tftpd -l -s /tftpboot -U 077 -r blksize
# fi
#
# If you have a firewall between whoever will be tftp-ing and the machine
# running the tftpd server, make sure you open up 69/udp

# Become yourself again
exit

cd
rm -f installed/tftp-hpa-*.tar.*
mv tftp-hpa-5.0.tar.bz2 installed/


# If you ever want to uninstall tftp, this should do it:
su
rm -f /usr/bin/tftp /usr/sbin/in.tftpd \
/man/man1/tftp.1 /man/man8/in.tftpd.8 /man/man8/tftpd.8
exit
find ~/src -maxdepth 1 -type d -name "atk-*" -exec rm -r {} \;
rm -f ~/installed/atk-*.tar.*

List of HOWTOs

Web page itself last updated: 2023-12-20 8:06pm (EDT -0400)
HOWTO last updated: 2010-02-07 1:16am
Copyright © 2001-2024 Jason Englander. All Rights reserved.
[HTML5]