Installing Redis-CLI without installing the whole server

On Debian actually there is only one package redis-server in order to install the server and its tools. If you would like to have the client only, you can achieve this as follows. As a prerequesite you need to install these packages: apt-get install libjemalloc1 libjemalloc-dev gcc make Then proceed with the actual installation: cd /tmp wget http://download.redis.io/redis-stable.tar.gz […]


Installing Redis 2.8 Master/Slave on Debian Wheezy

First activate the dotdeb repository: echo "deb http://packages.dotdeb.org wheezy all" > /etc/apt/sources.list.d/dotdeb.list echo "deb-src http://packages.dotdeb.org wheezy all" >> /etc/apt/sources.list.d/dotdeb.list cd /tmp wget http://www.dotdeb.org/dotdeb.gpg apt-key add dotdeb.gpg apt-get update apt-get install redis-server Here are a few lines that you might want to have a look at in /etc/redis/redis.conf: If redis is supposed to be reachable only […]


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 Pid namespace: […]


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 […]


Find out if you’re working on a VM or physical machine

2 simple commands with their output, to check wether you work on a VM or physical machine: root@testing:~# dmidecode -s system-manufacturer VMware, Inc. root@testing:~# dmesg |grep -i hypervisor [    0.000000] Hypervisor detected: VMware


Installing AWS Cloudformation Scripts on Debian

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 (NUM […]


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)