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 Thu 24 Jul 2014, 19:06
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Security/Privacy
Guarddog-2.6.0 in "Quirky Linux 1.4" !only script to install
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count_1  
Author Message
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Fri 28 Jan 2011, 18:54    Post_subject:  Guarddog-2.6.0 in "Quirky Linux 1.4" !only script to install
Sub_title: GUI for configuring the rules of firewall
 

Script for installation of the "Guarddog-2.6.0" program. Arrow

Quote:

Install_GUARDdog--sr0--fc11.sh
Code:

#!/bin/bash
#>>>>>
#Question:
#where is the log file in guarddog that tracks all hits?
#Answer:
#There is no Guarddog log file, GD just does the setup;
#the actual firewall is iptables, which is built in to your kernel.
#Messages about dropped/aborted/blocked packets go to the kernel log /var/log messages
#(on Redhat at least).
#<<<<<
#
cd /room ;
#
curl -C - -O file:///mnt/sr0/Guarddog/Ubuntu-Karmic_files/guarddog_2.6.0-2.1ubuntu3_i386.deb ;
if [ ! `echo -e "e670e54f4083e67a65862f751d86a801  guarddog_2.6.0-2.1ubuntu3_i386.deb" | 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 ;
/usr/local/petget/installpkg.sh guarddog_2.6.0-2.1ubuntu3_i386.deb 2>/dev/null ;
sleep 0.5s ;
rm /room/guarddog_2.6.0-2.1ubuntu3_i386.deb ;
rm /room/.md-5.sm ;
#1
curl -C - -O file:///mnt/sr0/Guarddog/Fedora-11_files/libacl-2.2.49-3.fc11.i586.rpm ;
if [ ! `echo -e "a6d4cf402f34c21faa98b68823359053  libacl-2.2.49-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 libacl-2.2.49-3.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/libacl-2.2.49-3.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#2
curl -C - -O file:///mnt/sr0/Guarddog/Fedora-11_files/libattr-2.4.43-3.fc11.i586.rpm ;
if [ ! `echo -e "1a34e2102497641da885fb5eeb0a48ba  libattr-2.4.43-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 libattr-2.4.43-3.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/libattr-2.4.43-3.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#3
curl -C - -O file:///mnt/sr0/Guarddog/Fedora-11_files/qt3-3.3.8b-25.fc11.i586.rpm ;
if [ ! `echo -e "992f6d2d8f0efc108c99ab24161156d4  qt3-3.3.8b-25.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 qt3-3.3.8b-25.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/qt3-3.3.8b-25.fc11.i586.rpm ;
rm /room/.md-5.sm ;
ln -s /usr/lib/qt-3.3/lib/libqt-mt.so.3.3.8 /usr/lib/libqt-mt.so.3.3.8 ;
ln -s /usr/lib/qt-3.3/lib/libqt-mt.so.3.3 /usr/lib/libqt-mt.so.3.3 ;
ln -s /usr/lib/qt-3.3/lib/libqt-mt.so.3 /usr/lib/libqt-mt.so.3 ;
#4
curl -C - -O file:///mnt/sr0/Guarddog/Fedora-11_files/kdelibs3-3.5.10-21.fc11.i586.rpm ;
if [ ! `echo -e "d4ede7d7b11eb39bf1839743497b2c6d  kdelibs3-3.5.10-21.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 kdelibs3-3.5.10-21.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/kdelibs3-3.5.10-21.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#
rm /etc/profile.d/kde.csh /etc/profile.d/qt.csh ;
#5
curl -C - -O file:///mnt/sr0/Guarddog/Fedora-11_files/nas-libs-1.9.1-5.fc11.i586.rpm ;
if [ ! `echo -e "1d1b428386858058873b6ec34324b8fc  nas-libs-1.9.1-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 nas-libs-1.9.1-5.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/nas-libs-1.9.1-5.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#6
curl -C - -O file:///mnt/sr0/Guarddog/Fedora-11_files/libutempter-1.1.5-3.fc11.i586.rpm ;
if [ ! `echo -e "256cdf785d02769d32a1c0beab4cfa62  libutempter-1.1.5-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 libutempter-1.1.5-3.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/libutempter-1.1.5-3.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#7
curl -C - -O file:///mnt/sr0/Guarddog/Fedora-11_files/arts-1.5.10-12.fc11.i586.rpm ;
if [ ! `echo -e "fb1447245f4f79b15b142aadb41dcde1  arts-1.5.10-12.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 arts-1.5.10-12.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/arts-1.5.10-12.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#8
curl -C - -O file:///mnt/sr0/Guarddog/Fedora-11_files/libstdc++-4.4.1-2.fc11.i586.rpm ;
if [ ! `echo -e "96c934cb092bf073ace9c10cce025f44  libstdc++-4.4.1-2.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 libstdc++-4.4.1-2.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/libstdc++-4.4.1-2.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#9
curl -C - -O file:///mnt/sr0/Guarddog/Fedora-11_files/kdelibs-common-4.4.3-2.fc11.i586.rpm ;
if [ ! `echo -e "bffa83edaee073a64aed65147560ce7d  kdelibs-common-4.4.3-2.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 kdelibs-common-4.4.3-2.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/kdelibs-common-4.4.3-2.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#10
#
rm /usr/share/applications/guarddog.desktop ;
#
sed -i".tmp" '/"Guard"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
echo '[Desktop Entry]' > /usr/share/applications/Guarddog.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/Guarddog.desktop ;
echo 'Name=Guarddog' >> /usr/share/applications/Guarddog.desktop ;
echo 'Comment=Firewall configuration utility' >> /usr/share/applications/Guarddog.desktop ;
#
#Don't touch this >>>
#Exec=bash -c 'bash -c "`Xdialog --title \"Guarddog\" --no-tags --radiolist \"\" 12 29 10 \"guarddog\" \"-=Guarddog=-\" off \"echo -e \"'\''\"\`dmesg|grep EN|tail -10|cut --delimiter=" " -f1-3,5-6,13-15\`\"'\''\"|xmessage -file -\" \"-=Blocked Packets=-\" on 2>&1`"'
grep '\-\-radiolist' /mnt/sr0/Guarddog/Install_GUARDdog--sr0--fc11.sh | grep -v "Install_GUARDdog--sr0--fc11.sh" | sed 's/#//' >> /usr/share/applications/Guarddog.desktop ;
# <<<
#
echo 'Terminal=false' >> /usr/share/applications/Guarddog.desktop ;
echo 'Type=Application' >> /usr/share/applications/Guarddog.desktop ;
echo 'Categories=Network;' >> /usr/share/applications/Guarddog.desktop ;
echo 'X-KDE-DocPath=guarddog/index.html' >> /usr/share/applications/Guarddog.desktop ;
echo 'X-KDE-RootOnly=true' >> /usr/share/applications/Guarddog.desktop ;
echo 'X-KDE-SubstituteUID=true' >> /usr/share/applications/Guarddog.desktop ;
echo 'X-KDE-Username=root' >> /usr/share/applications/Guarddog.desktop ;
echo 'GenericName=Firewall configuration utility' >> /usr/share/applications/Guarddog.desktop ;
echo 'Icon=/usr/share/icons/hicolor/48x48/apps/guarddog.png' >> /usr/share/applications/Guarddog.desktop ;
#
sed -i".tmp" '/\/pinboard/d' /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#echo '<icon x="224" y="320" label="Guard">/usr/share/applications/Guarddog.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="224" y="284" label="Guard">/usr/share/applications/Guarddog.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 '-=GuardDog-2.6.0-2=- firewall wizard has been installed.' `jwm -restart`


Edit: 2011, nov 19.


Permissions for -=Install_GUARDdog--sr0--fc11.sh=- were changed as shown:
Code:

cd /place_where_Install_GUARDdog--sr0--fc11.sh_is_located ; chmod u+x Install_GUARDdog--sr0--fc11.sh


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:   Sort by:   
Page 1 of 1 Posts_count_1  
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:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0625s ][ Queries: 11 (0.0045s) ][ GZIP on ]