Bash Script : getpsy

Here the step how to write bash script
1. pico -w /usr/local/bin/getpsy
2. Paste this code below
#!/bin/bash
cd ~
cp -Rp /usr/local/share/stuff/psybnc .
cd psybnc
rm -f salt.h
rm psybnc.conf
echo “What port would you like this psyBNC to listen on? (choose between 10001)”
read port
echo “PSYBNC.SYSTEM.PORT1=$port” >> psybnc.conf
echo “PSYBNC.SYSTEM.HOST1=*” >> psybnc.conf
echo “PSYBNC.HOSTALLOWS.ENTRY0=*;*” >> psybnc.conf
echo “Your psyBNC is now setup!”
./psybnc
cd ..
3. chmod +x getpsy
4. cd /usr/local/share/stuff
5. wget http://www.psybnc.at/download/beta/psyBNC-2.3.2-9.tar.gz
6. tar -zxvf psyBNC-2.3.2-9.tar.gz
7. chmod 755 -R /usr/local/share/stuff/psybnc
8. su -l foo ( *switch to your user )
9. type : getpsy
Done!

Comments

Popular posts from this blog

PSY - GANGNAM STYLE hits world

Feri berlanggar, 38 terkorban

Ramai tahu perangai buruk Azmin