Forward connection to local development environment in LAN

I needed a quick way to test a few things on a webapp running locally (on my Linux box) from another machine running Mac OSX.

Quick and easy way (although insecure, make sure you only do this on a private LAN) was to use socat.

Install on Archlinux (server):

sudo pacman -S socat

Install on the MacOSX client via homebrew:

brew install socat

Proxy local connection to the LAN (on the server; assuming the webapp runs locally on port 5000):

socat tcp-listen:8000,fork tcp:localhost:5000

Proxy remote connection to localhost (so we can access it with the benefits ...

Make Skype use desktop theme on 64bit Linux

To make Skype use the same theme as other desktop applications (in my case, the same theme I'm using for Gtk apps), you'll need to install the 32bit version of the gtk theme engine you're using.

On debian jessie, I simply did:

apt-get install gtk2-engines:i386

Also make sure you have ia32-libs installed, but should already be in order to make Skype work..

Deploying an Elasticsearch cluster via SaltStack

Here is a short guide covering the steps I followed in order to deploy an ElasticSearch cluster using SaltStack to manage configuration.


For the purposes of testing, I will be using a bunch of locally-installed virtualmachines. Specifically, we'll have:

  • A machine running salt master
  • Three elasticsearch nodes

Creating the VMs

To create the machines, I just installed a bare-bones wheezy image (under KVM) and cloned it four times:

virt-clone -o TemplateWheezy -n es-cluster-salt-master -f /mnt/virtualmachines/es-cluster-salt-master.img -m '52:54:00:ee:55:f0'
for id in 01 02 03; do
    virt-clone -o TemplateWheezy -n es-cluster-node-"$id ...

Prevent Spotify from "freezing" on Linux with Awesome wm

I recently upgraded Spotify on Linux to version 0.9.10.

A part from the nice improvements (it's cool to have a browse tab, at last), there are also some issues.

Specifically, it looks like the song change notification doesn't work well with Awesome WM, causing most parts of X to partially freeze for about 15 seconds (Awesome is completely unresponsive, only a few applications keep accepting keystrokes, mouse clicks are simply ignored).

This is really annoying, especially since there is apparently no way to disable it from the settings UI.

Luckily enough, I was able to find ...

Using nvidia driver on debian jessie

I had some troubles getting nvidia proprietary drivers up & running on Debian Jessie (kernel 3.13-1-amd64).

I'm sharing the solution I found here, as it might be useful to somebody else.

Machine configuration

Machine: Thinkpad W530
Graphics card: NVIDIA Corporation GK107GLM [Quadro K2000M] (rev a1)
Operating System: Debian Jessie (testing) - amd64
Kernel: 3.13-1-amd64 (3.13.10-1)

The error message I got:

[   36.508494] NVRM: GPU at 0000:01:00.0 has fallen off the bus.
[   36.508500] NVRM: os_pci_init_handle: invalid context!
[   36.508502] NVRM: os_pci_init_handle: invalid context!
[   36.508507] NVRM: GPU at 0000:01:00.0 has fallen ...

Page 1 / 3 »