Grafana with github authentication problem


You are trying to use the github OAuth authentication for having users login to your Grafana but there is an error that redirect_uri must match that is coming from Github.


Make sure that you add a line with the root_url in your /etc/grafana/grafana.ini file that has the same IP/domain name as your server, and restart the service.

Errors were encountered while processing: linux-image-3.13.0-128-generic


You are trying to install/remove a package but you always get an error message about linux message as above:


Try the following:

FATAL -> Failed to fork – Digital Ocean – Debian – Docker


When you are trying to install a package inside a debian Docker container you get the following error message:


This is an indication of ‘out of memory’ so add a swap partition if it does not exist, on the host with the following:

(Thanks Valent)

Docker Debian locales installation


You want to install some default locales in a Docker image, and the suggestion is to use locale-gen to do so, but it does not work as expected.


In order to be able to use the locale-gen and install the locales you need you will have to uncomment the ones needed from /etc/locale.gen first and then use the locale-gen. Example below:

bash: warning: setlocale: LC_ALL: cannot change locale (en_GB.UTF-8)


When trying to connect with ssh to a linux (debian- ubuntu) server you get the following error:


The reason is that the server is missing the en_US locale that your client is trying to use to connect to the server.
Login to the server and by using sudo (or su) run the following to install the missing en_US locale and make sure that you leave default to ‘None’ as described here:

Creating a Vagrant Box with Debian Lenny 32, rvm and Ruby 1.9.3

As an addition to the excellent beta book ‘Deploying Rails’, as I had problems using the suggested lucid64 image, I’ve tried to install a debian lenny 32 image with rvm and Ruby 1.9.3.

The steps needed are listed below


  1. Download the lenny package:
  2. Make a new directory for the virtual box:
  3. change into created directory and create the Vagrant file:
  4. change the Vagrant file to use the virtual box we have downloaded:
  5. Start the VM:
  6. If there is a warning about the Guest additions here install the latest guest additions by following the description here, but only use the update and upgrade steps as:
  7. After finishing the upgrade logout (exit) from the VM and issue the command to restart the VM:
  8. login to the VM again:

  9. Download and install rvm by using the script described here :
  10. Add the loading of the RVM function into .bashrc, by running the following in the command prompt:
  11. Reload the bashrc file:
  12. Make sure that the rvm is loaded as function:
  13. Run the rvm requirement to see the needed libraries and then run the suggested ones (except libreadline6 and libreadline6-dev that are not there in debian):
  14. Install Ruby 1.9.3 :
  15. Use the ruby 1.9.3 as default:
  16. Finally create a new VM package to use in future:
  17. And add it our box list:

Passenger (mod_rails) gem installation – Apache2 – Debian – rvm

You would like to (re)-install passenger after a system wide rvm installation, but you only have the mod_passenger.c file and not the .so after the gem installation.

Make sure that after using gem install passenger you also use the command to install the apache2 passenger module:


you should then be able to see the .so file and add it to your /etc/apache2/mods-available/passenger.load