Wednesday, 3 February 2016

If you are blocked from using NTP, this is a horrible hack, but it works

date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z"

Thanks for this from http://askubuntu.com/users/367165/a-b

Thursday, 21 January 2016

Freepbx Appliance - Installing media conversion libraries


Following the instructions on this page on the freepbx wiki proved to be unhelpful. I could manually install the various packages using the traditional ./configure, make, make install, working through the different dependencies, but ultimately the freepbx GUI failed to see that the utilities were installed.

This process on the other hand worked really well:

1: get the details of your distro

uname -a
cat /etc/redhat-release

2: Download the appropriate repoforge libraries

in my case it was:
wget http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm

3: Install repoforge
rpm -ivh rpmforge-release-0.5.3-1.el6.rf.i686.rpm

4: Install desired media libraries
yum install --enablerepo=rpmforge-extras lame
yum install --enablerepo=rpmforge-extras ffmpeg

Refresh your Freepbx appliance GUI, and the warning will be gone.

note: to make sure that other items are not updated from sourceforge, uninstalling the repo after you have completed may be a good idea...

rpm -qa | grep -i rpmforge

- this will find the exact name of the package.

rpm -e rpmforge-release-0.5.3-1.el6.rf.i686

- this will remove it.

yum update will now not report upgrade options from the rpmforge repository.