Nice Job Fabian.
Hi, a new script from me. Only non-interactive/automatic mode for now.
But after installation, you can do a . $HOME/.bashrc or just open a new shell and then run f-prot, run check-updates.sh or man f-prot.
So its fully functional. I think this will be especially great, if used in combination with persistant-home!
So you can have your f-prot together with your home-directory on a usb memory stick and take it everywhere you want, without having to remaster. And you can update f-prots virii-definitions just easily with 'check-updates.sh'. And you have a new f-prot on your mem-stick.
You need to upgrade whole f-prot ?
No problem, just rm -rf $HOME/software/f-prot/ and install it again with this script.
Enjoy! Hope you like that! Comments wanted! Especially from knoppix-doc.sf.net-webmaster. (You can take this script to your documentation of f-prot, it (your doc) gave me the idea, anyway )
cu
Fabian
Code:# # 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
Nice Job Fabian.
did this work for u or aay? i tried all the scripts 'cept for the dvd one, and none worked... any help?
The flash install script worked except I did not have xterm installed so the wget failed dowloaded the flash file and everything went fine from HD. Have not tried the others. Also changed the /home/knoppix parts to the user name I am using.
You are very productive in making great install scripts, so my question is: where are the theoretical limitations of this way of installing software? Could one even write such a script to install, let's say, a KDE app in this way? Or could one even have a .deb to installscript converter? Just making up ideas...
I don't like to flame and will not flame this time, but this bug report does say nothing.Originally Posted by Tigren
What does not work ?
Did you . ~/.bashrc ?
Enough space on ramdisk ? (e.g. /ramdisk/home/knoppix)
Also please read:
http://www.chiark.greenend.org.uk/~sgtatham/bugs.html
on howto report bugs efficiently..
Thank you! I really want to fix any bugs, but I can't if I don't know WHAT went wrong!
cu
Fabian
You can install everything from source this way, because source lets you decide WHERE to install it ...Originally Posted by probono
With other things it is more difficult ...
As you can forget all programs that expect certain files in /usr/share ...
Hm, those would also be possible with some symlink juggling, but I try it another way ...
Having everything in /home/knoppix/bin, lib and man ...
cu
Fabian
PS: Its almost the same work for each package ...
Hi!
This script will auto-scan all partitions wiht certain options and put the resulting report into /virus.txt.
Enjoy!
cu
Fabian
Code:#!/bin/bash # # F-Prot Autoscan # # GPL # # Author: Fabian Franz <knx-fprot@fabian-franz.de> # # Idea by: Robert Long # # Mount all partitions for i in $(cat /etc/fstab | grep -v "#" | awk '{ print $2}' | egrep "hd|sd"); do sudo mount -o ro $i; done # Run f-prot f-prot $(cat /etc/fstab | grep -v "#" | awk '{ print $2}' | egrep "hd|sd") -all -ai -archive -dumb -packed -list -report=/virus.txt # Unmount them for i in $(cat /etc/fstab | grep -v "#" | awk '{ print $2}' | egrep "hd|sd"); do sudo umount $i; done
Hello all... THESE ARE WONDERFUL
Ive spent the better part of 7 days trying to find the username of the person i ran into in #knoppix.... Fabian you are wonderful... ok enough of the plugging and gloating.... Please e-mail me when you get this fabian otherwise meet up sometime in #knoppix
toast
[edit] I am looking to put these items on the site for download and inclusion into the documents... I am also trying to find a way to get this to the point of using a GUI... please post back to me @ the sourceforge site or by e-mail... this invitation is open to all...
Thanks to the persistant interest from the users of knoppix and the interest invested into this project by FabianX there has been a script created so that you can install f-prot onto knoppix without having to remaster the disc. unfortunately the script has been outdated a slight bit when frisk Intl. (maker of F-prot) changed the name of the file on their ftp server. the f-prot scripts can be copied from here:
http://www.knoppix.net/forum/viewtop...ighlight=fprot
there is another script on that page that would be wise to check out as it is another wonderful addition.
and it can be run directly from cd as it is a live script.
BUT: in the section where it says:
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
that MUST be changed... f-prot changed the ftp filename recently as they restructured their server entries... after being changed it should read:
mkdir -p $HOME/software/
cd $HOME/software/
wget ftp://ftp.f-prot.com/pub/linux/fp-linux-ws.tar.gz
tar xzf fp-linux-ws.tar.gz
and at the end change the following section:
# cleanup
rm -f fp-linux-sb.tar.gz
to read:
# cleanup
rm -f fp-linux-ws.tar.gz
warmest reguards,
roberto (aka toast)
p.s. the edits in final version should look like this:
#!/bin/bash
#
# 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-ws.tar.gz
tar xzf fp-linux-ws.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-ws.tar.gz
Vintage Family owned Atari 1200xl computer sold as is tested turns on with cable
$299.99
Atari Power Cube 800XL, 600XL, 65XE, 130XE USB-C Power Supply PSU
$11.25
A8picoCart Atari 130 / 65 XE 800 / 1200 XL XEGS multicart UnoCart clone game
$32.95
Vintage Atari 800XL ~ Home Computer in Original Box ~ Tested and Working
$149.90
Atari 1050 5.25" Floppy Disk Drive Tested (w/Power cables)
$99.99
RARE San Jose Computer Special Edition 810 5 1/4" Floppy Disc Drive Atari 8-bit
$195.00
Vintage Atari 800XL Home Computer 64K RAM in Box With Power Supply and Cables
$199.00
Atari 400/800/XL/XE Computer SIO2PC - PC/Mac Disk Drive Emulator Adapter/Device
$15.25
Ms. Pac-Man Game Cartridge Atari TI99/4A TI-99/4A 1983 MS PACMAN UNTESTED/AS IS
$21.24
Atari 600xl excellent condition - Video and RAM upgrades. 800XL compatible
$255.00