Skip to content

Instantly share code, notes, and snippets.

View freepbx_centos6_2.sh
#!/bin/bash
echo "Download modul asterisk..";
cd /usr/src && wget https://src.fedoraproject.org/lookaside/pkgs/iksemel/iksemel-1.4.tar.gz/532e77181694f87ad5eb59435d11c1ca/iksemel-1.4.tar.gz && tar xf iksemel-*.tar.gz && cd iksemel-* && ./configure && make && make install
echo "Add User asterisk ..";
adduser asterisk -m -c "Asterisk User"
echo "Download & Install module basic asterisk ..";
cd /usr/src && wget http://downloads.asterisk.org/pub/telephony/dahdi-linux-complete/dahdi-linux-complete-current.tar.gz && wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-current.tar.gz && wget https://src.fedoraproject.org/lookaside/pkgs/spandsp/spandsp-0.0.6.tar.gz/897d839516a6d4edb20397d4757a7ca3/spandsp-0.0.6.tar.gz && wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-13-current.tar.gz && wget -O jansson.tar.gz https://github.com/akheron/jansson/archive/v2.7.tar.gz && wget http://www.pjsip.org/release/2.4/pjproject-2.4.tar.bz2
cd /usr/src && tar xvfz dahdi-linux-complete-current.tar.gz &&
View freepbx_centos6_1.sh
#!/bin/bash
echo "Installasi Freepbx pada centos6"
echo "-----------------------"
echo "Pengaturan SED"
sed -i 's/\(^SELINUX=\).*/\SELINUX=disabled/' /etc/sysconfig/selinux
echo "Update & Install basic ..."
yum -y update && yum -y groupinstall core base "Development Tools"
yum install -y gcc gcc-c++ lynx bison mysql-devel mysql-server php php-mysql php-pear php-mbstring php-xml tftp-server httpd make ncurses-devel libtermcap-devel sendmail sendmail-cf caching-nameserver sox newt-devel libxml2-devel libtiff-devel audiofile-devel gtk2-devel subversion kernel-devel git subversion kernel-devel php-process crontabs cronie cronie-anacron wget vim php-xml uuid-devel libtool sqlite-devel unixODBC mysql-connector-odbc libuuid-devel binutils-devel php-ldap
echo "Disable iptables"
chkconfig iptables --list
View getproxy.php
<?php
/*
thejagat.net - Auto Capture Proxy for Proxychains
--------------------------------------------------------
PREPARE :
1. Install Proxychains & tor (sudo apt install proxychains && sudo apt install tor)
2. Modifkasi config untuk memudahkan, jalankan perintah berikut untuk memberi batasan karakter pada file config :
sudo sed -i "\$a#start \n#end" /etc/proxychains.conf
Hasilnya akan menempatkan string #start dan #end sebagai wrapper bagi list ip address.
--------------------------------------------------------