Steps with explanations to set up a server using:
- virtualenv
- Django
- nginx
- uwsgi
#!/bin/bash | |
# by TB : 2012-10-12 | |
if [ "$USER" != "root" ] | |
then | |
echo "You must be root to execute this script (in order to instruct the kernel to drop the cache)!" | |
exit 1 | |
fi | |
if [ -z "$1" ] |
#!/bin/sh | |
#Reconnaissance | |
yum install dsniff hping3 nc6 nc ncrack ngrep nmap nmap-frontend p0f sing scanssh scapy socat tcpdump unicornscan wireshark-gnome xprobe2 nbtscan tcpxtract firewalk hunt dnsenum iftop argus ettercap ettercap-gtk packETH iptraf pcapdiff etherape lynis netsniff-ng tcpjunk ssldump yersinia net-snmp openvas-client openvas-scanner | |
#Forensics | |
yum install ddrescue gparted hexedit testdisk foremost sectool-gui scanmem sleuthkit unhide examiner dc3dd afftools srm firstaidkit-plugin-all ntfs-3g ntfsprogs | |
#Web Application Testing | |
yum install httping nikto ratproxy lbd skipfish |
#Linux Command To Find SATA Link Speed Such as 1.5 / 3.0 / 6.0 Gbps [ Hard Disk ] | |
grep -i SATA /var/log/messages | grep --color -i 'link up' | |
#To performance Test | |
hdparam -tT /dev/sda | |
#To get more details about hard disk | |
hdparam -I /dev/sda | |
#To Get SATA support by the hard disk |
ReConfigure locales otherwise you will get warning whenever try to install package | |
select en_IN , en_US , en_US.UTF-8 | |
dpkg-reconfigure locales | |
Add the following lines to /etc/profile | |
alias egrep='egrep --color=auto' | |
alias fgrep='fgrep --color=auto' | |
alias grep='grep --color=auto' | |
alias l='ls -CF' | |
alias la='ls -A' |
ssh-keygen | |
ssh-copy-id root@10.30.0.10 | |
ssh-add |
set xlabel "Concurrent Requests" | |
set ylabel "Response Time (ms)" | |
set title "Nginx Get" | |
set terminal png | |
# set style line 1 lt 2 lc rgb "red" lw 3 |
git clone https://github.com/jamis/mod_reproxy | |
#To find which apache mpm is installed | |
apache2 -l | |
apache2 -M | |
apache2 -t -D -DUMP_MODULES | |
#We need to install this package to get apxs2 command for mpm-worker | |
apt-get install apache2-threaded-dev |
git clone https://github.com/kazuho/mod_reproxy.git | |
#To find which apache mpm is installed | |
apache2 -l | |
apache2 -M |