Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: [SCRIPT] Install f-prot on demand from web for local user

  1. #1
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    [SCRIPT] Install f-prot on demand from web for local user

    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

  2. #2
    Senior Member registered user
    Join Date
    Nov 2002
    Posts
    1,353
    Nice Job Fabian.

  3. #3
    Member registered user
    Join Date
    Nov 2002
    Posts
    73
    did this work for u or aay? i tried all the scripts 'cept for the dvd one, and none worked... any help?

  4. #4
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Nova Scotia, Canada
    Posts
    2,479
    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.

  5. #5
    Senior Member registered user
    Join Date
    Feb 2003
    Location
    Germany
    Posts
    1,159
    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...

  6. #6
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    Bugreport ?

    Quote Originally Posted by Tigren
    did this work for u or aay? i tried all the scripts 'cept for the dvd one, and none worked... any help?
    I don't like to flame and will not flame this time, but this bug report does say nothing.

    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

  7. #7
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297
    Quote Originally Posted by probono
    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...
    You can install everything from source this way, because source lets you decide WHERE to install it ...

    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 ...

  8. #8
    Senior Member registered user
    Join Date
    Mar 2003
    Location
    Germany
    Posts
    297

    F-Prot auto-scan script! (idea by toast)

    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

  9. #9
    Member registered user
    Join Date
    Dec 2002
    Posts
    75

    hey all ... toast here

    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...

  10. #10
    Member registered user
    Join Date
    Dec 2002
    Posts
    75

    update from Roberto.... Long time no see ...

    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

Page 1 of 2 12 LastLast

Similar Threads

  1. Help with F-Prot install script from Fabian!
    By freeballer in forum Customising & Remastering
    Replies: 0
    Last Post: 10-13-2003, 11:26 PM
  2. Replies: 13
    Last Post: 10-03-2003, 08:22 PM
  3. Replies: 6
    Last Post: 04-19-2003, 04:28 AM
  4. Replies: 0
    Last Post: 03-30-2003, 01:36 PM
  5. Replies: 0
    Last Post: 03-30-2003, 02:29 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server  picture

IBM Power 720 POWER7 00E6516 3.6GHz CPU 64GB RAM Server

$209.98



IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD picture

IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD

$399.99



IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES picture

IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES

$27.25



IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server picture

IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server

$319.99



IBM SYSTEM x3200 M2 Server - HDD wiped, No OS picture

IBM SYSTEM x3200 M2 Server - HDD wiped, No OS

$75.00



IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W picture

IBM Lenovo X3650 M5 2U 8x 2.5” CTO Rack Server – 2x HS, 2x 750W

$199.00



IBM BladeCenter HS21 7995 AC1 Server - 1x Xeon E5440 2GB RAM - NO HDDs picture

IBM BladeCenter HS21 7995 AC1 Server - 1x Xeon E5440 2GB RAM - NO HDDs

$22.43



IBM Server eServer | IBMR1000 | UPS 1000VA 700W W/New Batteries picture

IBM Server eServer | IBMR1000 | UPS 1000VA 700W W/New Batteries

$115.00



IBM System X3500 M4 7383AC1 (E5-2650 v2 2.60GHz - 192GB RAM - M2000 - NO OS/HDD) picture

IBM System X3500 M4 7383AC1 (E5-2650 v2 2.60GHz - 192GB RAM - M2000 - NO OS/HDD)

$294.92



IBM SYSTEM x3650 M4 Xeon E5-2609 2.40GHZ 16GB DDR3-1066MHZ 2x 550W PSU TESTED picture

IBM SYSTEM x3650 M4 Xeon E5-2609 2.40GHZ 16GB DDR3-1066MHZ 2x 550W PSU TESTED

$109.95