this is obsolete doc -- see http://doc.nethence.com/ instead

Installation server with RHEL or NetBSD 

 

http://pbraun.nethence.com/doc/net/ftpinstallsrv.html 

http://pbraun.nethence.com/doc/net/pxe.html 

http://pbraun.nethence.com/doc/security/ssh_cluster.html 

http://pbraun.nethence.com/doc/sysutils_linux/kickstart.html 

 

 

Prerequesties 

Make sure those are installed. On RHEL, 

rpm -q \
nfs-utils portmap \
vsftpd \
httpd \
unzip \
| grep ^package

 

 

FTP service with RHEL 

Make sure anonymous FTP logins are enabled, 

grep ^ftp /etc/passwd
grep ^ftp /etc/group
grep anonymous_enable /etc/vsftpd/vsftpd.conf

 

Eventually delete the default public folder, 

#cd /var/ftp/
#rmdir pub

 

Fix the perms for ftpadmin, 

useradd -g ftp -d /var/ftp ftpadmin
passwd ftpadmin
chown -R ftpadmin:ftp /var/ftp/

 

Enable, 

service vsftpd restart
chkconfig vsftpd on

rhel7, 

systemctl start vsftpd
systemctl enable vsftpd 

 

FTP service with NetBSD 

Enable anonymous FTP, 

grep ^ftp: /etc/passwd
useradd -b /var -m -g daemon ftp

 

Fix the perms (otherwise by default, anonymous users are able to upload, not to remove though, shit into the main guest directory). Assuming you've got a prefered wheeled user at hand. Otherwise and simply 'root'. And create an upload dir, 

cd /var/
ls -l
chown wheeluser:daemon ftp/
cd ftp/
mkdir -p upload/
chown ftp:daemon upload/

Note. Change 'wheeluser' accordingly. 

 

Enable and start the ftp daemon, 

cd /etc/
grep ftp defaults/rc.conf
cat >> rc.conf <<EOF9
ftpd=yes
EOF9
rc.d/ftpd start

 

NFS service 

Configure the NFS share, 

cd /etc
vi exports

like, 

/var/ftp        *(ro,async,no_root_squash)
#/var/ftp        *(rw,async,no_root_squash)

 

Enable, 

service nfs restart
chkconfig nfs on

 

 

HTTP service 

Configure Apache 2 on RHEL5, 

rpm -q httpd
cd /etc/httpd/conf
mv httpd.conf httpd.conf.dist
sed '/^[[:space:]]*$/d; /^[[:space:]]*#/d;' httpd.conf.dist > httpd.conf.dist.clean
#sed 's/root@localhost/YOUR_EMAIL/' httpd.conf.dist.clean > httpd.conf
sed 's|/var/www/html|/var/ftp|' httpd.conf.dist.clean > httpd.conf

note. directory listing (Indexes) is enabled for /var/ftp by default ! 

fix things, 

cd ../conf.d
mv proxy_ajp.conf proxy_ajp.conf.dist
mv welcome.conf welcome.conf.dist

 

Start and enable the daemon at startup, 

service httpd restart
chkconfig httpd on

 

 

Slackware installation files 

We don't need the whole DVD, a few sets are enought, 

cd /var/ftp
mkdir -p slackware64-13.1/slackware64
cd slackware64-13.1/slackware64
  lftp ftp://ftp.slackware.at/slackware64-13.1/slackware64/
mirror a
mirror ap
mirror d
mirror l
mirror n

those might also be usefull..., 

cd ..
lcd ..
mirror isolinux
mirror kernels
mirror pasture
mirror usb-and-pxe-installers

 

 

Windows XP installation files 

(hmm... you need to enable Samba here). Eventually share the Windows XP installation files for network installations with WinPE, 

mkdir -p /var/ftp/winxp/
cd /var/ftp/winxp/

with those, 

$OEM$/$1/...
I386/
diskpart.lst
install.bat
winxp.sif