Category Server Setup

Block Countries Behind ELB

To block countries behind an ELB (Elastic Load Balancer) you should use Maxmind’s GeoIP Country Database. Problem You are unable to use iptables or ipset to block countries because of your Amazon Elastic Load Balancer Solution Use Maxmind’s GeoIP Country…

Ubuntu Set Timezone to UTC

Objective: Set Timezone to UTC on Ubuntu 12.04 LTS Howto You will be using tzdata and ntpdate Setting the timezone After running this select “etc” (hit enter) then select “UTC” (hit enter) pkg-reconfigure tzdata Syncing the clock apt-get -y install…

my bash prompt

Installation Modify ~/.bashrc and append this line PS1=”\n\[\e[32;1m\][\[\e[37;1m\]\u@\h:\[\e[37;1m\]\w\[\e[32;1m\]]\\$ \[\e[0m\]” My Bash Prompt To replace yours in one command with this one sed -i ‘s~PS1.*~PS1=”\\n\\[\\e[32;1m\\][\\[\\e[37;1m\\]\\u@\\h:\\[\\e[37;1m\\]\\w\\[\\e[32;1m\\]]\\\\$ \\[\\e[0m\\]”~g’ ~/.bashrc