The time now is Thu 23 May 2013, 09:57
All times are UTC - 4 |
| Author |
Message |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Fri 11 Feb 2011, 20:03 Post subject:
Etherape, IPtraf, Nethogs, Pktstat in "Quirky-1.4" ! script Subject description: Means to observe the network in "Quirky Linux 1.40" |
|
| Quote: |
Install_Etherape_IPtraf_Nethogs_Pktstat--sr0_v2.sh
| Code: |
#!/bin/bash
#
cd /room ;
#
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Ubuntu_Lucid_files/etherape_0.9.8-1_i386.deb ;
if [ ! `echo -e "f16730191f6c95fef237beb3f19db0e7 etherape_0.9.8-1_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 ;
rox /room/etherape_0.9.8-1_i386.deb ; xmessage "-=etherape_0.9.8-1_i386.deb=- has been installed. `xmessage "Wait please. There will be 2 pop-ups."`" ;
sleep 0.5s ;
rm /room/etherape_0.9.8-1_i386.deb ;
rm /room/.md-5.sm ;
#deb1
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Ubuntu-Karmic_files/libpcap0.8_1.0.0-2ubuntu1_i386.deb ;
if [ ! `echo -e "c2f6c27ec8a729057172cf0b83b60ff0 libpcap0.8_1.0.0-2ubuntu1_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 ;
rox /room/libpcap0.8_1.0.0-2ubuntu1_i386.deb ; xmessage "-=libpcap0.8_1.0.0-2ubuntu1_i386.deb=- has been installed. `xmessage "Wait please. There will be 2 pop-ups."`" ;
sleep 0.5s ;
rm /room/libpcap0.8_1.0.0-2ubuntu1_i386.deb ;
rm /room/.md-5.sm ;
#deb2
#
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/libgnomeui-2.24.1-1.fc11.i586.rpm ;
if [ ! `echo -e "3e67cd9fe07d59d8ca8d4b45c94fab09 libgnomeui-2.24.1-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 libgnomeui-2.24.1-1.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/libgnomeui-2.24.1-1.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#1
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/libbonoboui-2.24.1-1.fc11.i586.rpm ;
if [ ! `echo -e "60beefd6c33a5dbd8050705ac0e50d9a libbonoboui-2.24.1-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 libbonoboui-2.24.1-1.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/libbonoboui-2.24.1-1.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#2
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/gnome-vfs2-2.24.1-2.fc11.i586.rpm ;
if [ ! `echo -e "3da79c31f45e9051037a95b92f727f15 gnome-vfs2-2.24.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 gnome-vfs2-2.24.1-2.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/gnome-vfs2-2.24.1-2.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#3
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/libgnome-2.26.0-1.fc11.i586.rpm ;
if [ ! `echo -e "e9a4ca71d48df7aceb549cd09ab6ca22 libgnome-2.26.0-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 libgnome-2.26.0-1.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/libgnome-2.26.0-1.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#4
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/libbonobo-2.24.1-1.fc11.i586.rpm ;
if [ ! `echo -e "ed7e00f7cb6d8b5b380e9126cba7fc40 libbonobo-2.24.1-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 libbonobo-2.24.1-1.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/libbonobo-2.24.1-1.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#5
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/ORBit2-2.14.17-1.fc11.i586.rpm ;
if [ ! `echo -e "4cbca83dd08c5ee353f01d3465af7100 ORBit2-2.14.17-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 ORBit2-2.14.17-1.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/ORBit2-2.14.17-1.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#6
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/GConf2-2.26.2-1.fc11.2.i586.rpm ;
if [ ! `echo -e "958e9ce3f3ca811b09795cf7385b0815 GConf2-2.26.2-1.fc11.2.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 GConf2-2.26.2-1.fc11.2.i586.rpm ;
sleep 0.5s ;
rm /room/GConf2-2.26.2-1.fc11.2.i586.rpm ;
rm /room/.md-5.sm ;
#7
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/gnome-keyring-2.26.3-2.fc11.i586.rpm ;
if [ ! `echo -e "f449a2acdf5e3a2b617662dbbc58e501 gnome-keyring-2.26.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 gnome-keyring-2.26.3-2.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/gnome-keyring-2.26.3-2.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#8
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/openssl-0.9.8n-2.fc11.i686.rpm ;
if [ ! `echo -e "2e7dc70ccf871f43e8d37e602b24687b openssl-0.9.8n-2.fc11.i686.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 openssl-0.9.8n-2.fc11.i686.rpm ;
sleep 0.5s ;
rm /room/openssl-0.9.8n-2.fc11.i686.rpm ;
rm /room/.md-5.sm ;
#9
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/avahi-glib-0.6.25-3.fc11.i586.rpm ;
if [ ! `echo -e "7640c681a3b49b2f6b1254ab66424b95 avahi-glib-0.6.25-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 avahi-glib-0.6.25-3.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/avahi-glib-0.6.25-3.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#10
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/krb5-libs-1.6.3-31.fc11.i586.rpm ;
if [ ! `echo -e "8f4bec783f5fa9a1ab31438a231cbd7e krb5-libs-1.6.3-31.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 krb5-libs-1.6.3-31.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/krb5-libs-1.6.3-31.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#11
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/keyutils-libs-1.2-5.fc11.i586.rpm ;
if [ ! `echo -e "247a0ac4b1c56f542f3496d2eec16349 keyutils-libs-1.2-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 keyutils-libs-1.2-5.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/keyutils-libs-1.2-5.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#12
#
#Installing -=IPtraf=- now...
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/iptraf-3.0.1-7.fc11.i586.rpm ;
if [ ! `echo -e "d6a395e6734ee11cdd15ca659a8e504d iptraf-3.0.1-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 iptraf-3.0.1-7.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/iptraf-3.0.1-7.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#1
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Fedora-11_files/ncurses-libs-5.7-2.20090207.fc11.i586.rpm ;
if [ ! `echo -e "3cb1ba42220070dd6987053d9e3ed608 ncurses-libs-5.7-2.20090207.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 ncurses-libs-5.7-2.20090207.fc11.i586.rpm ;
sleep 0.5s ;
rm /room/ncurses-libs-5.7-2.20090207.fc11.i586.rpm ;
rm /room/.md-5.sm ;
#2
#
#Installing -=Nethogs=- now...
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/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 ;
#1
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Ubuntu_Lucid_files/nethogs_0.7.0-3_i386.deb ;
if [ ! `echo -e "5a97e570d4232e703680af62679e1942 nethogs_0.7.0-3_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 ;
rox /room/nethogs_0.7.0-3_i386.deb ; xmessage "-=nethogs_0.7.0-3_i386.deb=- has been installed. `xmessage "Wait please. There will be 2 pop-ups."`" ;
sleep 0.5s ;
rm /room/nethogs_0.7.0-3_i386.deb ;
rm /room/.md-5.sm ;
#deb1
#
#Installing -=Pktstat=- now...
curl -C - -O file:///mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Ubuntu-Karmic_files/pktstat_1.8.4-1_i386.deb ;
if [ ! `echo -e "029ae0c2407e9519ed9ae5af92d62fb1 pktstat_1.8.4-1_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 ;
rox /room/pktstat_1.8.4-1_i386.deb ; xmessage "-=pktstat_1.8.4-1_i386.deb=- has been installed. `xmessage "Wait please. There will be 2 pop-ups."`" ;
sleep 0.5s ;
rm /room/pktstat_1.8.4-1_i386.deb ;
rm /room/.md-5.sm ;
#deb1
#
# # #
#
#if [ ! `ps -eocomm | grep dbus-daemon` ] ; then
#sh /mnt/sdb1/-/0_Files_and_scripts/scripts/0_K3b/Install--5_PART-1--DBus_Avahi_Hal.sh ;
#fi
#if [ ! `ps -eocomm | grep dbus-daemon` ] ; then
#sh /mnt/sdb1/-/0_Files_and_scripts/scripts/0_K3b/Install--5_PART-2--DBus_Avahi_Hal.sh ;
#fi
#if [ ! `ps -eocomm | grep dbus-daemon` ] ; then
#sh /mnt/sdb1/-/0_Files_and_scripts/scripts/0_K3b/Install--5_PART-3--DBus_Avahi_Hal.sh ;
#fi
#if [ -n /usr/local/bin/Install--5_PART-4--DBus_Avahi_Hal.sh ] ; then
#cp /mnt/sdb1/-/0_Files_and_scripts/scripts/0_K3b/Install--5_PART-4--DBus_Avahi_Hal.sh /usr/local/bin/ ;
#fi
#if [ ! `ps -eocomm | grep dbus-daemon` ] ; then
#cd /usr/local/bin/ ;
#sh Install--5_PART-4--DBus_Avahi_Hal.sh ;
#fi
#
# # #
#
#and now...
#
rm /usr/share/applications/etherape-root.desktop /usr/share/applications/etherape.desktop ;
#
sed -i".tmp" '/"Watch
Network"/d' /root/Choices/ROX-Filer/PuppyPin ;
#
echo '[Desktop Entry]' > /usr/share/applications/WatchNT.desktop ;
echo 'Encoding=UTF-8' >> /usr/share/applications/WatchNT.desktop ;
echo 'Name=WatchNT' >> /usr/share/applications/WatchNT.desktop ;
echo 'Comment=Programmatic means to watch network activity' >> /usr/share/applications/WatchNT.desktop ;
#
#Don't touch this >>>
#Exec=bash -c 'bash -c "`Xdialog --title \"Observe network\" --no-tags --radiolist \"\" 15 31 10 \"etherape\" \"-=Etherape=-\" off \"rxvt -e iptraf\" \"-=IPtraf=-\" off \"rxvt -e nethogs\" \"-=Nethogs=-\" off \"rxvt --geometry 135x30 -e pktstat -B -c -i eth0 -F -w1 \"'\''\"port 80\"'\''\"\" \"-=Pktstat: port-80=-\" on 2>&1`"'
grep ' -w1' /mnt/sr0/Etherape_IPtraf_Nethogs_Pktstat/Install_Etherape_IPtraf_Nethogs_Pktstat--sr0_v2.sh | grep -v "sed" | sed 's/#//' >> /usr/share/applications/WatchNT.desktop ;
# <<<
#
echo 'Terminal=false' >> /usr/share/applications/WatchNT.desktop ;
echo 'Type=Application' >> /usr/share/applications/WatchNT.desktop ;
echo 'Categories=Network;' >> /usr/share/applications/WatchNT.desktop ;
echo 'GenericName=Watch Network' >> /usr/share/applications/WatchNT.desktop ;
echo 'Icon=/usr/share/icons/hicolor/48x48/apps/watch-network_48x48.png' >> /usr/share/applications/WatchNT.desktop ;
#ok...
sed -i".tmp" '/\/pinboard/d' /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#echo '<icon x="480" y="636" label="WatchNT">/usr/share/applications/WatchNT.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
#echo '<icon x="480" y="646" label="Watch
Network">/usr/share/applications/WatchNT.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '<icon x="480" y="628" label="Watch
Network">/usr/share/applications/WatchNT.desktop</icon>' >> /root/Choices/ROX-Filer/PuppyPin ;
echo '</pinboard>' >> /root/Choices/ROX-Filer/PuppyPin ;
sleep 1s ;
#
# # #rm /usr/local/bin/Install--5_PART-4--DBus_Avahi_Hal.sh ;
#
rox -p=/root/Choices/ROX-Filer/PuppyPin ;
fixmenus ;
#
if [ ! `ps -eocomm | grep dbus-daemon | head -1` ] ; then
xmessage 'Install -=DBus=- and -=Hal=-, please.' ;
else xmessage 'There is no need to install -=DBus=- and -=Hal=-.' ;
fi ;
xmessage "Applications -=Etherape=-, -=IPtraf=-, -=Nethogs=- and -=Pktstat=- have been installed." `jwm -restart`
|
Edit: 2011, nov 19.
|
| Quote: | The "Dbus, Avahi, Hal" topic is over here:
| Code: | | http://www.murga-linux.com/puppy/viewtopic.php?p=584359#584359 |
|
Permissions for -=Install_Etherape_IPtraf_Nethogs_Pktstat--sr0_v2.sh=- were changed as shown:
| Code: |
cd /place_where_Install_Etherape_IPtraf_Nethogs_Pktstat--sr0_v2.sh_is_located ; chmod u+x Install_Etherape_IPtraf_Nethogs_Pktstat--sr0_v2.sh
|
Note: version of the -=Etherape=- program is not ideal - appearance of messages about failings exists, what can be seen in the command box.
A script's content can be copied into text editor by means of <Quote> mode.
| Description |
Next new version. |
| Filesize |
3.85 KB |
| Viewed |
408 Time(s) |

|
| Description |
New icon. |
| Filesize |
4.74 KB |
| Viewed |
438 Time(s) |

|
| Description |
New not new icon. |
| Filesize |
4.78 KB |
| Viewed |
448 Time(s) |

|
| Description |
Old icon. |
| Filesize |
3.55 KB |
| Viewed |
816 Time(s) |

|
_________________
- 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.
Last edited by postfs1 on Sun 25 Dec 2011, 22:47; edited 10 times in total
|
|
Back to top
|
|
 |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Sun 25 Sep 2011, 04:46 Post subject:
Subject description: Programmatic tools to observe the network in "Quirky Linux 1.40" |
|
That's the update.
_________________
- 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
|
|
 |
|
|
|
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
|