When trying to compile PHP I noticed the libmcrypt package is no longer provided with EL6 / CentOS 6, checking whether to enable multibyte string support… no checking whether to enable multibyte regex support… yes checking whether to check multibyte regex backtrack… yes checking for external libmbfl… no checking for
Continue readingCategory: Linux
Posts relating to my usage of linux as a server and desktop
Create new panel on second monitor
If you need to add a second panel/task window on your second (or more in my case) monitors using ubuntu/debian/mint linux here are two ways to achieve it. First you should right click on the current panel and click “New panel” then all you have to do is move the
Continue readingResizing ext4 partition centos 5
On CentOS 5 the e4fsprogs RPM provides a separate binary (/sbin/resize4fs) for resizing ext4 partitions. # rpm -qf /sbin/resize2fs e2fsprogs-1.39-23.el5_5.1 # rpm -qf /sbin/resize4fs e4fsprogs-1.41.9-3.el5 As I found out today when resizing an LVM partition on one of our mongodb snapshot systems. # lvextend -L+50G /dev/mapper/mongo Extending logical volume mongo
Continue readingnginx rewrite PHP with no extension
I recently had to troubleshoot an issue while migrating from cherokee to nginx. This was a PHP application which had a shared set of common scripts , these where accessed by domain/common/file which in turn was translated into /vhosts/shared/common and this then included the necessary files. After doing the rewrite
Continue readingError: unsupported locale setting
While installing and configuring trac on my development VM it wouldn’t load over HTTP (500 error). Stracing the process returned the issue, Error: unsupported locale setting So it looks like it doesn’t have the locale installed (In my case EN_GB) this is easily fixed by running, sudo dpkg-reconfigure locales Then
Continue readingMax processes 1024 limits.conf
We where having an issue with replica sets on our MongoDB databases changing primaries. The logs shows it was hitting resource limits creating new processes. [initandlisten] pthread_create failed: errno:11 Resource temporarily unavailable [initandlisten] can’t create new thread, closing connection There is a bug fix in the init.d available per https://jira.mongodb.org/browse/SERVER-6443
Continue readingLinux convert AIFF to mp3
You can convert AIFF files to MP3 using ffmpeg on linux. This works with many other inputs and not just AIFF but in the instance I was testing I needed to convert AIFF. First you need ffmpeg and libmp3lame which on Ubuntu and Linux Mint can be done with sudo
Continue readingUnable to uninstall munin
While testing munin 2.x on debian, I was unable to uninstall it, Removing munin-node … [FAIL] Munin-Node appears to be unconfigured. … failed! invoke-rc.d: initscript munin-node, action “stop” failed. dpkg: error processing munin-node (–purge): subprocess installed pre-removal script returned error exit status 6 [FAIL] Munin-Node appears to be unconfigured. …
Continue readingMigrating from Ubuntu 11.10 to Linux Mint
Last night I decided to apply the Ubuntu 11.10 upgrade because the update notification was getting annoying and boy it turned out to be a pain. The previous upgrade introduced Unity which if you just have a google search look at the top recommendations should explain it all. “Unity Sucks”
Continue readingERROR: Module backupdriver is in use
While updating several of our remaining systems from r1soft CDP 2 to CDP 3 we’ve been getting the following error, ERROR: Module backupdriver is in use r1soft-uninstall-buagent -R This uninstaller will remove the following.. File /etc/init.d/buagent File /usr/bin/buagent File /var/lock/buagent.lock File /var/run/buagent.pid File /usr/bin/r1key File /usr/bin/r1soft-cki File /usr/bin/r1soft-report.sh File /usr/bin/r1soft-uninstall-buagent
Continue reading