Debian apt-pinning (Dotdeb, MariaDB, MongoDB, …)

Short post, I’d like to share my source lists for Debian 7.6, including apt-pinning for MariaDB / MySQL. It also includes all Packages from Dotdeb (Zabix, Redis, PHP, …).

Apt-pinning preference file for MariaDB / MySQL: /etc/apt/preferences.d/mariadb

cowsay: command not found

Getting the error message instead a cow saying something to you in ASCII art ? -bash: cowsay: command not found To install cowsay or cowthink, simply do apt-get install cowsay cowthink. Debian installs those tools into /usr/games/cowsay, but /usr/games is not in the PATH environment variable of root user by default, making bash print the…

easy remote to local file backup using rsync

I previously posted about a non-rsync solution to backup files. Well, that is not efficient, (nor was it working properly, sorry). The script to create the backups is still very handy. Using rsync to sync remote to local I tried rsync to sync files from remote to local and I have to admit it’s blazing…

Automatic file and MySQL backup with SFTP transfer

In this post I’m going to explain to you the backup mechanism behind all my domains. The backups are created automatically and securely downloaded onto another storage. Generating the backup First, I setup a cronjob that creates a package of all relevant content.

This job gets executed every morning at 5 o’clock. The script…

“kept back” version, dependencies and apt-pinning

When you are using different sources in your Debian installation, for example Dotdeb.org or MariaDB.org Repositories, you may encounter a message like:

How to compare the installed version to the available packages?

You now can execute apt-get dist-upgrade to upgrade all packages, but be warned, this can remove software, add packages and upgrade…

The importance of putty session encoding

Encoding issues can be very nifty to solve. I recently came across an issue I never thought actively about before. I set up a new SFTP account through putty and changed the password to something with an umlaut. My putty session used to be in ISO-8859-1:1998 (Latin-1, West Europe) encoding. Now for example setting the…

Why replacing Apache by nginx improves SEO

I recently switched to nginx from Apache webserver and noticed improved SERP. Google’s Webmastertools show you why: Google gives your website a measured contingent of time its bot crawls your site. nginx’ reponse time is like 4 times faster than Apache, thus Google can crawl more content. Besides that, Google (mainly AdSense) lowers your website’s…

Solution to “set failed… device or resource busy”

Problem: Cannot change wlan network (device interface) settings (iwconfig) on the RaspberryPi or your Linux Computer / Notebook, because it yields one of these lock errors due to busy device or resource: set failed on device wlan0; set failed on device mon0; failed: Device or resource busy wlan0 device or resource busy set ESSID: set…

Changing NTFS to ext4 with Debian to speedup Samba

I am using a RaspberryPi with an external HDD attached as my local fileserver. I found out that the ntfs.mount / ntfs-3g drivers are really slow and use 80-90% of the CPU on uploading – leading to a maximum speed of 2 MB/s. As the ext4 drivers run in the kernel and usually perform better…