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
ASRock B550M Pro SE AM4 DDR4 SATA 6Gb/s 1 PCIe 4.0 x16 Micro ATX Motherboard
$84.99
Gigabyte GA-Q170M-MK LGA1151 DDR4 Desktop Motherboard w/ I/O Plate
$25.00
Asus Prime H310M-A R2.0 Intel LGA 1151 DDR4 Desktop Motherboard
$54.99
Gigabyte B560 DS3H AC Intel B560 LGA 1200 ATX Desktop Motherboard A
$79.99
Asus H110M-C LGA 1151 DDR4 SDRAM Desktop Motherboard w/ I/O shield
$28.95
MSI PRO B760-P WiFi DDR4 ProSeries Motherboard ATX, LGA 1700, DDR4
$89.95
MSI MPG B550 GAMING PLUS AM4 AMD B550 PCIe 4.0 ATX Motherboard
$89.99
Gigabyte M-ATX motherboard with Intel Core i3 9100 CPU and 8GB DDR4 RAM -Working
$94.00
ASUS STRIX X299-E GAMING ATX Motherboard With I/O Shield -Motherboard Only
$125.00
Supermicro MotherBoard X11SPi-TF Xeon Single CPU Socket LGA3647 w/Heatsink
$299.99