PDA

View Full Version : Help with F-Prot install script from Fabian!



freeballer
10-13-2003, 11:26 PM
I have tried to use fabian's f-prot "install" script:

#
# Install f-prot - useful in combination with persistant home
#
# GPL
#
# Author: Fabian Franz <knx-f-prot@fabian-franz.de>
#

mkdir -p $HOME/software/
cd $HOME/software/
wget ftp://ftp.f-prot.com/pub/linux/fp-linux-sb.tar.gz
tar xzf fp-linux-sb.tar.gz

mkdir -p $HOME/man/man8
mkdir -p $HOME/bin

ln -fs $(pwd)/f-prot/f-prot.sh $HOME/bin/f-prot
ln -fs $(pwd)/f-prot/check-updates.sh $HOME/bin/check-updates.sh
ln -fs $(pwd)/f-prot/man8/f-prot.8 $HOME/man/man8/
ln -fs $(pwd)/f-prot/man8/check-updates.sh.8 $HOME/man/man8/

# Setting up Manpath & PATH for f-prot

cp $HOME/.bashrc $HOME/.bashrc.templ
cat $HOME/.bashrc.templ | grep -v "export MANPATH=\$HOME/man" | grep -v "export PATH=\$HOME/bin/"> $HOME/.bashrc
echo "export MANPATH=\$HOME/man/:\$MANPATH" >> $HOME/.bashrc
echo "export PATH=\$HOME/bin/:\$PATH" >> $HOME/.bashrc
rm -f $HOME/.bashrc.templ

# Fix pathes

cp f-prot/f-prot.sh /tmp/f-prot.$$
sed 's%/usr/local/f-prot/%'$(pwd)'/f-prot/%g' /tmp/f-prot.$$ > f-prot/f-prot.sh

cp f-prot/check-updates.sh /tmp/f-prot.$$
sed 's%/usr/local/f-prot/%'$(pwd)'/f-prot/%g' /tmp/f-prot.$$ > f-prot/check-updates.sh
rm -f /tmp/f-prot.$$

# cleanup

rm -f fp-linux-sb.tar.gz


But I get an error message:

./f-prot3.sh
--19:19:16-- ftp://ftp.f-prot.com/pub/linux/fp-linux-sb.tar.gz
=> `fp-linux-sb.tar.gz'
Resolving ftp.f-prot.com... done.
Connecting to ftp.f-prot.com[204.118.23.102]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /pub/linux ... done.
==> PASV ... done. ==> RETR fp-linux-sb.tar.gz ...
No such file `fp-linux-sb.tar.gz'.

tar (child): fp-linux-sb.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
cp: cannot stat `f-prot/check-updates.sh': No such file or directory
./f-prot3.sh: line 36: f-prot/check-updates.sh: No such file or directory
knoppix@ttyp0[knoppix]$




I'd really like some advice for this. I am a total newbie to linux and don't know how any bash/shell scripting so I have no idea why this is not working. I'd appreciate your help. I think one of the only things missing from knoppix is to be able to scan your windows partition with an up-to-date virus scanner