SELinux and FFMpeg

SELinux is a good thing, but it also requires you to watch out on some libraries. Sometimes, something just fails, because SELinux does not allow it to run. This so happens when you have SELinux installed and want to run FFMpeg.
I just run into this when I tried to run FFMpeg and got this error message:
“error while loading shared libraries: /usr/lib/libavcodec.so.52: cannot restore segment prot after reloc: Permission denied”
In order to run FFMpeg without problems I had to add the remove the restrictions for SELinux with:
chcon -t textrel_shlib_t ‘/usr/lib/libavutil.so.49.15.0’
chcon -t textrel_shlib_t ‘/usr/lib/libavcodec.so.52.20.0’
chcon -t textrel_shlib_t ‘/usr/lib/libavformat.so.52.31.0’
chcon -t textrel_shlib_t ‘/usr/lib/libavformat.so.52.31.0’
chcon -t textrel_shlib_t ‘/usr/lib/libswscale.so.0.7.1’

Switching from brew to nvm for node install
Many people use a simple "brew install node" to get node running on their machines. However, today I discovered that all global node modules could not be updated properly. I got errors like: [code]npm ERR! error rolling back Error: Refusing to delete: /usr/local/bin/npm not in /usr/local/lib/node_modules/npm npm ERR! error rolling…

ImageMagick and Ghostscript playing nice with web applications
I had to spent way too much time the last time to set up ImageMagick and Ghostscript together that I simply jump right in so you don't have to waste time on this, like I did. Creating thumbnails and images from a PDF is one of the most used features…

Python and Django: ImportError: No module named django.core
Python is without a doubt a great language. Django is a great framework. It is just obvious to use them and get your site up and running. So, today, while setting up a new site with "django-admin.py startproject mysite" I've run into the "ImportError: No module named django.core" error. While…

How to create a virtual machine server image from a physical CentOS server
I run a couple of servers over at a server farm. All of those machines run VMWare ESX, so today I wanted to move my last physical server to a VMWare image. If you want to convert a physical Windows machine then your task is quite easy. Start up the…

Python wxPython install on MacOS X 10.8.x
wxPython is a GUI library kit for developing desktop application with Python. Since it is cross-platform you can actually run your code on MacOS X, Windows and Linux. Now, while installing wxPython on my development environment (MacBook Air 13", MacOS X 10.8.x) and the standard installer from the wxPython website I've…

Fix for running MySQL 5.5.8 under MacOS X 10.6.5 (Snow Leopard)
Oracle recently released the latest MySQL 5.5.x versions. Despite of having tones of fixes and supposedly running much faster and (finally) making InnoDB the default storage engine, it is always good to keep up to date with latest releases. But, as in the past, MaxOS X users always have to…