Installing LXC on Debian Wheezy

First install the needed packages: apt-get install bridge-utils libvirt-bin debootstrap lxc   Then you have to mount cgroup: echo "cgroup  /sys/fs/cgroup  cgroup  defaults  0   0" >> /etc/fstab mount /sys/fs/cgroup   When executing lxc-checkconfig, you should get something like this: Found kernel config file /boot/config-3.2.0-4-amd64 — Namespaces — Namespaces: enabled Utsname namespace: enabled Ipc namespace: enabled […]


Installing an Elasticsearch Cluster with 2 Nodes

Download the latest version of Elasticsearch from here and unpack it to /opt: cd /opt wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.3.4.tar.gz tar -xvpf elasticsearch-1.3.4.tar.gz ln -s elasticsearch-1.3.4 elasticsearch Given you want to create a cluster named my-ecs-cluster, having 2 nodes with IP address 192.168.45.21 and 192.168.45.21 (change it according to your setup, you might also want to use hostnames instead of IPs)   Then […]


Installing AWS Cloudformation Scripts on Debian Wheezy

First install needed packages: apt-get install python-pip python-yaml unattended-upgrades These packages are needed to build the AWS package: pip install pystache pip install argparse pip install python-daemon Now get the latest scripts from here: wget https://s3.amazonaws.com/cloudformation-examples/aws-cfn-bootstrap-latest.tar.gz And install it: tar -xvpf aws-cfn-bootstrap-latest.tar.gz cd aws-cfn-bootstrap-1.4/ python setup.py build python setup.py install When the installation has finished successfully […]


Installing dnsmasq on Mac OS X for local development

To install dnsmasq, you need to have installed homebrew first. Have a look at this article if you haven't got brew yet. You can install dnsmasq like this: brew install dnsmasq Next up, copy the configuration files and start dnsmasq: cp $(brew list dnsmasq | grep /dnsmasq.conf.example$) /usr/local/etc/dnsmasq.conf sudo cp $(brew list dnsmasq | grep […]


Console based GIT repository browser tool

Have you ever been searching for a console-based tool which allows you to browse a GIT repository or for example lookup the history (commits) of a specific file? On Mac OS: brew install tig On Debian: apt-get install tig Just browse into your working copy and type tig. Looking up the history for a specific […]


Using siege to benchmark your webserver

On Debian you can install siege with: apt-get install siege On CentOS, RedHat or Fedora, simple using: yum install siege I had to install it on Mac OS, here you can use: brew install siege   Here are the most important parameters: -cNUM : CONCURRENT users, default is 10 -dNUM : test DURATION in seconds […]


Install PHP 5.6 on Debian Wheezy

To install PHP 5.6 on Wheezy, you can add this repo: echo "deb http://packages.dotdeb.org wheezy-php56 all" >> /etc/apt/sources.list.d/dotdeb.list echo "deb-src http://packages.dotdeb.org wheezy-php56 all" >> /etc/apt/sources.list.d/dotdeb.list Add the key: wget http://www.dotdeb.org/dotdeb.gpg -O- |apt-key add – And install PHP: apt-get update apt-get install php5-cli php5-fpm ….. (or whatever package you might need)  


Securing Mac-OS from CVE-2014-7169 (Shellshock / Bash bug)

For this to work you need to have Xcode installed. If you don't have it, try: sudo xcode-select –install In a terminal execute these commands: mkdir bash-fix cd bash-fix curl https://opensource.apple.com/tarballs/bash/bash-92.tar.gz | tar zxf – cd bash-92/bash-3.2 curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-052 | patch -p0 curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-053 | patch -p0 curl https://ftp.gnu.org/pub/gnu/bash/bash-3.2-patches/bash32-054 | patch -p0 cd .. xcodebuild Wait until you […]