Archive for the ‘Tricks’ Category:

Can’t install any CPAN module on Raspberry Pi

I just had a hard time about trying to install a CPAN module on my Rasberry. Network access was ok, but CPAN configuration was full of errors, and even after I manually defined the mirror site to use, here was the error message I got each time I tried to install a module :

(Read More…)

Monitor Windows Scheduled task with NRPE and NSClient++

NSClient++ (which is widely used to monitor Windows server with Nagios) natively allows to monitor Windows scheduled tasks. This is a very powerful module, but with a complex syntax, and the official documentation has some errors. Here is two command lines which I managed to write, and which were useful for me. I hope they

(Read More…)

How to easily purge redis data ?

When setting up some redis-based architecture, I sometimes had to purge the data stored in my redis server. With the Command Line Interface, it can be done very easily. The commands to use are : KEYS : Find all keys matching the given pattern LLEN : Returns the length of the given key DEL :

(Read More…)

WordPress update via SFTP (SSH) easily on Ubuntu 12.04

It’s not always possible to use FTP on a WordPress server. This is the case when it is hosted on a virtual server (for instance) or behind a firewall. However, the FTP protocol is used locally when you upgrade your WordPress plugins (or WordPress itself), and thus can be used in any case. But there

(Read More…)

Logstash init script for CentOS / Redhat

Here is a working script to run logstash as a service on CentOs or Redhat. You may configure it by changing the name of the config file (change the SUFFIX value) Several script may be used with different values for this variable. (For Ubuntu, see this post)

Tags:

Predis install procedure (Ubuntu 12.04)

I chose Redis for its speed, flexibility and extreme ease of use. There are some very efficient API for every langages out there, but I had to use it with PHP, and the correct (and simplest) way to install it was not so easy to find. (the PHP API for Redis is called Predis) Anyway,

(Read More…)

Tags: ,

Configure several Apache servers on multiple VMs

This article is the third one in a serie about configuring several web server on multiple virtual machines inside a single physical host. VirtualBox is supposed to be installed and the VMs have been created, we can now get to the Apache configuration on the guests and the host. The choice of the architecture has

(Read More…)

Install VirtualBox on an Ubuntu/Debian server

This article is second from a serie about multiple dedicated web servers in virtual machines setup. I used this procedure to install Virtualbox on a Ubuntu 12.04LTS server. The mail goal is to have a physical server containing one or more virtual machines, as well as a web administration interface (based on phpvirtualbox), accessible on https (instead

(Read More…)

Tags:

Compile Linux Kernel

This article describe how to compile a Linux Kernel. I needed to do that because one of my dedicated server did not have the modules activated, which prevented me to use VirtualBox on them. This procedure is supposed to be used on OVH servers. The server is runnin on Ubuntu 12.04LTS. I chose to compile

(Read More…)

Tags:

Let your virtual keyboard (IME) be seen by Android

During the development of my virtual keyboard (IME : Input Method Editor), I had a problem. I was not able to activate the new keyboard, or even to git it showing in the keyboard list.

Tags: ,
© Crocoware technical blog
CyberChimps