Menu
A+ A A-

KVM - Enable Direct PCI Pass-Through

This example was done on Ubuntu server.

* Enable VM direct I/O in the BIOS.
* Open /etc/default/grub using an editor like nano or something.
* Find GRUB_CMDLINE_LINUX_DEFAULT and add intel_iommu=on as a parameter.  Make sure it's lowercase.  Save and exit.
* update-grub
* shutdown -r now
* dmesg | grep -e DMAR -e IOMMU and you should see a line in there stating that IOMMU is enabled.

Elastix PBX - Voicemail Disabled After Yum Update

I ran a yum update process on my Elastix PBX, updating all the packages.  The update process completed without error; however, voicemail was disabled on all user extensions.  Here's how I fixed it. 

* SSH into the PBX and cd to /etc/asterisk.
* Find voicemail.conf.  If you cat it, you'll notice it's basically empty.  But don't have a heart attack just yet.
* You should also see a file called something like voicemail.conf.old_DATE_TIME (e.g. voicemail.conf.old_2015Feb12_183454).  The date should match the date you performed the fateful yum update command.  If you cat this file, you should see that it contains your proper voicemail user configuration.
* Backup voicemail.conf to be safe.
* Restore the data in the backup file to voicemail.conf.  You can copy/paste, cp, etc.
* Make sure the permissions, owner, and group match.  They should be 664 with owner and group set to "asterisk."  You'll see these same settings on the other voicemail configuration files.
* Apply the configuration.  I usually just click somewhere in the Elastix web GUI to get the "Apply Config" link to appear and click it.
* Look at a few extensions in the web GUI, and you should see that voicemail is now enabled.  Disaster averted!

Joomla - YouTube Videos Too Big After Gavick Template Update

PROBLEM
After updating my Joomla Gavick template to the latest version, the embedded YouTube videos appeared massively large on desktop browsers.  Mobile browsers looked OK.

SOLUTION
The problem is caused by the fitvids library introduced in later template versions.

- Find the file fitvids.jquery.js in the template's js folder.
- Comment-out line 25 in fitvids.jquery.js.

// var css = '.fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}';

Linux - Specify From Address With Mail Command

I struggled a bit with figuring out how to specify the from email address when sending mail on the Linux command line.  In short, you need to use the -r option.  For example:

echo "Enter your message here.  Thank you." | mail -s "Enter your subject here" -r This email address is being protected from spambots. You need JavaScript enabled to view it. This email address is being protected from spambots. You need JavaScript enabled to view it.

Windows - Disable Startup Recovery

If a colleague's PC crashes, Windows will restart into start-up recovery.  The problem here is that start-up recovery often makes an even bigger mess of the computer by removing it from AD.  These commands disable Windows start-up recovery.  Use at your own risk.

bcdedit /set {default} recoveryenabled No
bcdedit /set {default} bootstatuspolicy ignoreallfailures