Tips & Tricks

Little tips & tricks that are useful in everyday’s work


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)


Choosing the fastest Mirror on Debian

On Debian there's a tool that finds out which is the fastest/nearest mirror and creates a sources.list file for you: netselect-apt The installation: apt-get update apt-get install netselect-apt To find the fastest/nearest mirror: netselect-apt Backup your old sources.list: mv /etc/apt/sources.list{,.bak} Replace it with the new one: cp sources.list /etc/apt/sources.list Update and install your packages: apt-get […]


Parsing JSON files on the command line

You've ever wondered if there's not a nice command line tool to parse json input? There is. Mac Users can install jq using brew in a terminal: brew install jq For Debian users, have a look here: https://packages.debian.org/wheezy-backports/jq For all other OS'es (Linux, Windows, Solaris) have a look here: http://stedolan.github.io/jq/download/ If your JSON code is valid, this will output […]


Adding new Admins in Virtualmin

I had to work with Virtualmin a little bit and I've been looking around how to create additional admins. It's actually quite easy: useradd newuser passwd newuser Your /etc/passwd should contain something like this now: newuser:x:1549:1549::/home/newuser:/bin/sh The trick is now just to add the new user to /etc/sudoers: newuser ALL=(ALL) ALL Having done this you […]


Install PHP 5.5 on Debian Wheezy

To install PHP 5.5 on Wheezy, you can add this repo: echo "deb http://packages.dotdeb.org wheezy-php55 all" >> /etc/apt/sources.list.d/dotdeb.list echo "deb-src http://packages.dotdeb.org wheezy-php55 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)