Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 21 Oct 2014, 03:43
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Security/Privacy
clamav-0.96.5 and clamtk-4.26 in "Quirky Linux 1.40" !script
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Mon 28 Nov 2011, 11:14    Post subject:  clamav-0.96.5 and clamtk-4.26 in "Quirky Linux 1.40" !script
Subject description: Antivirus with GUI
 

Arrow

Quote:

Install_ClamTk--sr0.sh
Code:

#!/bin/bash
cd /room/ ;
#
#Installing Clamav >>>
curl -C - -O file:///mnt/sr0/_Files/ClamTk/PCLinuxOS-2010_files/clamav-0.96.5-1pclos2010.i586.rpm ;
if [ ! `echo -e "56a89d9a729eca0a15dc2583581ad404  clamav-0.96.5-1pclos2010.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i clamav-0.96.5-1pclos2010.i586.rpm ;
sleep 0.5s ;
rm /room/clamav-0.96.5-1pclos2010.i586.rpm ;
rm /room/.md-5.sm ;
#1
curl -C - -O file:///mnt/sr0/_Files/ClamTk/PCLinuxOS-2010_files/clamav-db-0.96.5-1pclos2010.i586.rpm ;
if [ ! `echo -e "1da339d74ba7da93a9e1ae3c99108148  clamav-db-0.96.5-1pclos2010.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i clamav-db-0.96.5-1pclos2010.i586.rpm ;
sleep 0.5s ;
rm /room/clamav-db-0.96.5-1pclos2010.i586.rpm ;
rm /room/.md-5.sm ;
#2
curl -C - -O file:///mnt/sr0/_Files/ClamTk/PCLinuxOS-2010_files/libclamav6-0.96.5-1pclos2010.i586.rpm ;
if [ ! `echo -e "1677088d131b8409d8f4727764aedb66  libclamav6-0.96.5-1pclos2010.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i libclamav6-0.96.5-1pclos2010.i586.rpm ;
sleep 0.5s ;
rm /room/libclamav6-0.96.5-1pclos2010.i586.rpm ;
rm /room/.md-5.sm ;
#3
curl -C - -O file:///mnt/sr0/_Files/ClamTk/PCLinuxOS-2010_files/libtommath0-0.39-1pclos2009.i586.rpm ;
if [ ! `echo -e "506f5f890d7cba5be2497e7038ce2943  libtommath0-0.39-1pclos2009.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i libtommath0-0.39-1pclos2009.i586.rpm ;
sleep 0.5s ;
rm /room/libtommath0-0.39-1pclos2009.i586.rpm ;
rm /room/.md-5.sm ;
#4
#<<<
#
#Now, ClamTk >>>
rm /usr/bin/perlthanks /usr/bin/perlivp /usr/bin/perldoc ;
rm /usr/bin/perl /usr/bin/perlbug /usr/bin/perl5.10.1 ;
rm -r /usr/lib/perl5 ;
#
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/clamtk-4.26-1.fc11.noarch.rpm ;
if [ ! `echo -e "7faf967d84570e9a6b3f79593b51daf4  clamtk-4.26-1.fc11.noarch.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i clamtk-4.26-1.fc11.noarch.rpm ;
sleep 0.5s ;
rm /room/clamtk-4.26-1.fc11.noarch.rpm ;
rm /room/.md-5.sm ;
#1
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/perl-5.10.0-82.fc11.i586.rpm ;
if [ ! `echo -e "175f93681b9bd4a69e7ee1d082f37b92  perl-5.10.0-82.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-5.10.0-82.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/perl-5.10.0-82.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#2
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/perl-libs-5.10.0-82.fc11.i586.rpm ;
if [ ! `echo -e "1ac4c25aeea0c6793066147db5e06a04  perl-libs-5.10.0-82.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-libs-5.10.0-82.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/perl-libs-5.10.0-82.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#3
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/perl-Gtk2-1.203-1.fc11.i586.rpm ;
if [ ! `echo -e "27dce2cb63f2895da9f6375ef6d0c700  perl-Gtk2-1.203-1.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-Gtk2-1.203-1.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/perl-Gtk2-1.203-1.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#4
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/perl-Glib-1.201-3.fc11.i586.rpm ;
if [ ! `echo -e "1e55cc983ad4dae74e9e0a906f6d8e4d  perl-Glib-1.201-3.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-Glib-1.201-3.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/perl-Glib-1.201-3.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#5
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/perl-Net-DNS-0.63-5.fc11.i586.rpm ;
if [ ! `echo -e "947435619db31192ba4179e78015e4e3  perl-Net-DNS-0.63-5.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-Net-DNS-0.63-5.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/perl-Net-DNS-0.63-5.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#6
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/perl-gettext-1.05-16.fc11.i586.rpm ;
if [ ! `echo -e "64914c350346b867060f36da1d1e0886  perl-gettext-1.05-16.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-gettext-1.05-16.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/perl-gettext-1.05-16.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#7
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/perl-libwww-perl-5.825-2.fc11.noarch.rpm ;
if [ ! `echo -e "93c288b425b4884b2430ced9fde58756  perl-libwww-perl-5.825-2.fc11.noarch.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-libwww-perl-5.825-2.fc11.noarch.rpm ;
sleep 0.5s ;
rm /room/perl-libwww-perl-5.825-2.fc11.noarch.rpm ;
rm /room/.md-5.sm ;
#8
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/perl-Number-Compare-0.01-11.fc11.noarch.rpm ;
if [ ! `echo -e "cb71d7111b77aa6aa23f2707c027e148  perl-Number-Compare-0.01-11.fc11.noarch.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-Number-Compare-0.01-11.fc11.noarch.rpm ;
sleep 0.5s ;
rm /room/perl-Number-Compare-0.01-11.fc11.noarch.rpm ;
rm /room/.md-5.sm ;
#9
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/perl-Text-Glob-0.08-5.fc11.noarch.rpm ;
if [ ! `echo -e "e7214dcd1ee6336689f3e764c9a83494  perl-Text-Glob-0.08-5.fc11.noarch.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-Text-Glob-0.08-5.fc11.noarch.rpm ;
sleep 0.5s ;
rm /room/perl-Text-Glob-0.08-5.fc11.noarch.rpm ;
rm /room/.md-5.sm ;
#10
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/perl-URI-1.54-1.fc11.noarch.rpm ;
if [ ! `echo -e "ce12afd42dd21510b4de8d78fce29458  perl-URI-1.54-1.fc11.noarch.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-URI-1.54-1.fc11.noarch.rpm ;
sleep 0.5s ;
rm /room/perl-URI-1.54-1.fc11.noarch.rpm ;
rm /room/.md-5.sm ;
#11
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/perl-Date-Calc-5.4-7.fc11.i586.rpm ;
if [ ! `echo -e "f4b11b9bb349ec445acada365a83f88c  perl-Date-Calc-5.4-7.fc11.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-Date-Calc-5.4-7.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/perl-Date-Calc-5.4-7.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#12
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/perl-File-Find-Rule-0.32-1.fc11.noarch.rpm ;
if [ ! `echo -e "b854dc995f33e7fa0b0602300c76aab3  perl-File-Find-Rule-0.32-1.fc11.noarch.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i perl-File-Find-Rule-0.32-1.fc11.noarch.rpm ;
sleep 0.5s ;
rm /room/perl-File-Find-Rule-0.32-1.fc11.noarch.rpm ;
rm /room/.md-5.sm ;
#13
#<<<
#
#Now, updating Data Bases >>>
rm /var/lib/clamav/main.cvd ;
rm /var/lib/clamav/daily.cvd ;
#
cd /var/lib/clamav/ ;
#
curl -C - -O file:///mnt/sr0/_Files/ClamTk/VDB_Y2011-M09-D09/main.cvd ;
if [ ! `echo -e "99c21c47952b6740d4ff03021a7c968a  main.cvd" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
sleep 0.5s ;
rm /room/.md-5.sm ;
#1
curl -C - -O file:///mnt/sr0/_Files/ClamTk/VDB_Y2011-M09-D09/daily.cvd ;
if [ ! `echo -e "8b21606c7b182139e87daff70bc3814f  daily.cvd" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
sleep 0.5s ;
rm /room/.md-5.sm ;
#2
#<<<
#
#After installation of the -=clamtk-4.26-1.fc11.noarch.rpm=-
#there is no a file called /usr/share/icons/hicolor/48x48/apps/clamtk.png
#but there is a file called /usr/share/pixmaps/clamtk.png
#I want to resize 128x127 to 48x48.
#Program -=convert=- can help me. >>>
#
cd /room ;
#
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/ImageMagick2-6.6.5.10-1.fc11.remi.i586.rpm ;
if [ ! `echo -e "6b797425ca4e2fb70f49b41cf8846d7c  ImageMagick2-6.6.5.10-1.fc11.remi.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i ImageMagick2-6.6.5.10-1.fc11.remi.i586.rpm ;
sleep 0.5s ;
rm /room/ImageMagick2-6.6.5.10-1.fc11.remi.i586.rpm ;
rm /room/.md-5.sm ;
#1
ln -s /usr/lib/libMagickCore.so.4 /usr/lib/libMagickCore.so.2 ;
ln -s /usr/lib/libMagickWand.so.4 /usr/lib/libMagickWand.so.2 ;
#
curl -C - -O file:///mnt/sr0/_Files/ClamTk/Fedora-11_files/ImageMagick2-tools-6.6.5.10-1.fc11.remi.i586.rpm ;
if [ ! `echo -e "0abfbb5b8f8dfc245edf4dfc670b627e  ImageMagick2-tools-6.6.5.10-1.fc11.remi.i586.rpm" | md5sum -c - >/room/.md-5.sm ; sleep 0.5s ; grep -o 'OK' /room/.md-5.sm` ] ; then xmessage -file /room/.md-5.sm ; else yaf-splash -bg purple -fg green -text "`cat /room/.md-5.sm`" ; fi ;
rpm -i ImageMagick2-tools-6.6.5.10-1.fc11.remi.i586.rpm ;
sleep 0.5s ;
rm /room/ImageMagick2-tools-6.6.5.10-1.fc11.remi.i586.rpm ;
rm /room/.md-5.sm ;
#2
#
convert /usr/share/pixmaps/clamtk.png -scale 37.5% /usr/share/icons/hicolor/48x48/apps/clamtk.png ;
#<<<
#
sed -i".tmp" '/"ClamTk"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
rm /usr/share/applications/clamtk.desktop ;
#
echo '[Desktop Entry]' > /usr/share/applications/ClamTk.desktop ;
echo 'Name=ClamTk' >> /usr/share/applications/ClamTk.desktop ;
echo 'MimeType=application/x-ms-dos-executable;application/x-msdownload;application/exe;application/x-exe;application/dos-exe;application/x-winexe;application/msdos-windows;application/x-msdos-program;application/octet-stream;application/vnd.ms-excel;application/vnd.ms-access;x-directory/normal;inode/directory;' >> /usr/share/applications/ClamTk.desktop ;
echo 'Comment=Scan for viruses...' >> /usr/share/applications/ClamTk.desktop ;
echo 'GenericName=Virus Scanner' >> /usr/share/applications/ClamTk.desktop ;
echo 'TryExec=clamtk' >> /usr/share/applications/ClamTk.desktop ;
echo 'Exec=clamtk' >> /usr/share/applications/ClamTk.desktop ;
echo 'Icon=/usr/share/icons/hicolor/48x48/apps/clamtk.png' >> /usr/share/applications/ClamTk.desktop ;
echo 'Type=Application' >> /usr/share/applications/ClamTk.desktop ;
echo 'Terminal=false' >> /usr/share/applications/ClamTk.desktop ;
echo 'Categories=Utility' >> /usr/share/applications/ClamTk.desktop ;
echo 'StartupNotify=false' >> /usr/share/applications/ClamTk.desktop ;
echo '# vi:set encoding=UTF-8:' >> /usr/share/applications/ClamTk.desktop ;
echo 'X-Desktop-File-Install-Version=0.15' >> /usr/share/applications/ClamTk.desktop ;
#ok...
#
#Icon onto DESKTOP >>>
#sed -i".tmp" '/\/pinboard/d' /root/Choices/ROX-Filer/PuppyPin ;
#sleep 1s ;
#echo '<icon x="928" y="704" label="ClamTk">/usr/share/applications/ClamTk.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
#sleep 1s ;
#<<<
#
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
xmessage "Programs -=clamav-0.96.5=- and -=clamtk-4.26-1=- have been installed." `jwm -restart`


Edit: 2011, nov 28.


A script's content can be copied into text editor by means of <Quote> mode.

_________________
  • I don't know why laboratories are named a hospitals.
  • The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.

Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Security/Privacy
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0902s ][ Queries: 12 (0.0146s) ][ GZIP on ]