 |

 |
|
 |
| |
04-25-2005, 03:39 AM
|
#1
|
Country: 
|
Peerguardin Daemon/Gui Installations & Update Script
Hello,
I have little customize this Script it Installs the daemon/gui, and I have apply a update Script.
For the Linux Newbee´s a very easy way to install and to start it ;)
Welcome to PeerGuardian Linux Installer - vesion 1.5 beta
A Methlabs Production - http://www.methlabs.org
By Bitrot, Nullcontext. Installer by JFM
Original PeerGuardian by Method, PG2 by Phrosty
You need Gmabas to run the Gui
http://gambas.sourceforge.net/
Download the Package.
http://3dlinuxforen.de/downloads/peerguardin.tar
After Extract run the Install.sh
sh install.sh
The /usr/bin/peer.sh Script dwonloads the new Blocklist from blocklist.org,
starts the damoen and runs the Gui.
When you close the Gui the daemon will be killed.
Code:
#binbash
cd /etc
rm p2p.p2b.p2p
rm p2p.p2b.gz
rm p2p.p2b
wget -c blocklist.org/p2p.p2b.gz
gunzip p2p.p2b.gz
peerguardnf -n p2p.p2b
killall peerguardnf
peerguardnf -d -c /etc/PG.conf -l /var/log/PG.log -h -m
cd /usr/bin/peerguardnf2
./peerguardnf2
killall peerguardnf
exit
MFG SmOkyS
|
|
|
|
| |
04-27-2005, 10:49 AM
|
#4
|
Country: 
|
modified these scripts slightly and made several versions, maybe for use in the app?
start up
Quote:
#/bin/sh
cd /etc
rm p2p.p2b.p2p
rm p2p.p2b.gz
rm p2p.p2b
wget -c blocklist.org/p2p.p2b.gz
gunzip p2p.p2b.gz
peerguardnf -n p2p.p2b
peerguardnf -d -c /etc/PG.conf -l /var/log/PG.log -h -m
|
shut down
Quote:
#/bin/sh
killall peerguardnf
|
update
Quote:
#/bin/sh
cd /etc
rm p2p.p2b.p2p
rm p2p.p2b.gz
rm p2p.p2b
wget -c blocklist.org/p2p.p2b.gz
gunzip p2p.p2b.gz
peerguardnf -n p2p.p2b
killall peerguardnf
peerguardnf -d -c /etc/PG.conf -l /var/log/PG.log -h -m
|
and a special one:
before you run this you need to do:
cd /etc
mkdir ./custom_blocklists
download and merge multiple lists
Quote:
#/bin/sh
cd /etc
rm *.p2*
cd ./custom_blocklists
rm *.p2*
wget -c blocklist.org/p2p.p2b.gz
wget -c blocklist.org/gov.p2b.gz
wget -c blocklist.org/spy.p2b.gz
wget -c blocklist.org/ads.p2b.gz
cd ..
for n in ./custom_blocklists/*.gz
do
echo Extracting $n
gunzip $n
done
for n in ./custom_blocklists/*.p2b
do
echo Converting $n
peerguardnf -n $n
done
for n in ./custom_blocklists/*.p2p
do
echo Appending $n
cat $n >> /etc/p2p.p2b.p2p
done
killall peerguardnf
peerguardnf -d -c /etc/PG.conf -l /var/log/PG.log -h -m
|
|
|
|
| |
04-27-2005, 11:25 AM
|
#5
|
Country: 
|
Hello,
the last script would be nice ;)
but i became an error
Code:
Reading blocklist
wrong input blocklist format
Appending ./custom_blocklists/*.gz.p2p
|
|
|
|
| |
04-27-2005, 10:46 PM
|
#7
|
Country: 
|
Quote:
|
Originally Posted by SmOkyS
but i became an error
|
:eek:
<sorry couldn't resist that one>
|
|
|
| |
04-27-2005, 11:23 PM
|
#8
|
|
|
haha, thats classic
__________________
If at first they don't succed, block em again :) PG2
Vinnys Pizza
|
|
|
| |
04-28-2005, 07:07 AM
|
#10
|
Country: 
|
@JFM: In your multiple lists script, shouldn't there be all lists deleted or is it right to let it just delete p2p.p2b.gz, p2p.p2b.p2p and p2p.p2b?
It was just a thought, but wouldn't be
Code:
rm *.p2p
rm *.p2b.gz
rm *.p2b
better?
Greets, orihnja
edit:
or even
edit2: narf ... didn't see
Code:
for n in ./custom_blocklists/*.gz
do
rm $n
done
for n in ./custom_blocklists/*.p2b
do
rm $n
done
for n in ./custom_blocklists/*.p2p
do
rm $n
done
where was my mind? :P
but wouldn't
Code:
#/bin/sh
cd /etc
rm *.p2*
cd ./custom_blocklists
rm *
cd ..
be easier?
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:35 AM.
 |
|
 |
|
 |