Thursday, October 12, 2017

HAProxy forwarding custom port

Hi, just a small note of am being doing. That to setup HAProxy to forward custom port request to one of my nodejs server.

Add these into existing /etc/haproxy/haproxy.cfg

frontend mynodejs
  bind *:3000
  
  default_backend nodejs

backend nodejs
  server nodejs1 127.0.0.1:8080
Source of snippet is from here
Have fun ^.^

Friday, May 26, 2017

Debian8 Xfce4 Crash Whenever Thunar About to Show video Thumbnail

If your debian8 release is 8.3 and having xfce4 crash all the time whenever a *.mov or video
file processed by Thunar, then bear with me. You can check your debian8 release by

$ cat /etc/debian_version
8.3

This the crash log whenever at least one movie file thumbnail processed by Thunar
$ sudo tail -f /var/log/messages

May 26 17:17:08 debian8 org.freedesktop.thumbnails.Thumbnailer1[5619]: libva info: VA-API version 0.36.0
May 26 17:17:08 debian8 org.freedesktop.thumbnails.Thumbnailer1[5619]: libva info: va_getDriverName() returns -1
May 26 17:17:08 debian8 org.freedesktop.thumbnails.Thumbnailer1[5619]: libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
May 26 17:17:08 debian8 org.freedesktop.thumbnails.Thumbnailer1[5619]: libva info: VA-API version 0.36.0
May 26 17:17:08 debian8 org.freedesktop.thumbnails.Thumbnailer1[5619]: libva info: va_getDriverName() returns -1
May 26 17:17:08 debian8 org.freedesktop.thumbnails.Thumbnailer1[5619]: libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)

So, i browse to xfce4 download page and download the source of the stable release, 4.12
is the stable release as this blog written. After the download, extract and go to the
src/tumbler-0.1.31 dir

$ ./configure

if the the configuration complain some of the missing lib you could
$ sudo apt-get install libxfce4ui-1-dev libxfce4util-dev libxfce4util-common

If the configure is meet then

$ make
$ sudo make install

And reboot, when i open a dir that contain movie file using Thunar the xfce4 no longer crash.
Hope it helps ^^

*) UPDATE
I found that the daemon automatically run with the old one
$ ps -ef | grep tum
adesanto  9242     1  0 18:01 ?        00:00:00 /usr/local/lib/tumbler-1/tumblerd

so i rename the old daemon and create symbolic link to the new one
# mv  /usr/local/lib/tumbler-1/tumblerd  /usr/local/lib/tumbler-1/bak-tumblerd
# ln -s ln -s /opt/xfce4com/src/tumbler-0.1.31/tumblerd/.libs/lt-tumblerd /usr/local/lib/tumbler-1/tumblerd

have fun