Modify for Ubuntu12.04.