Firefox Keyword Google search

The Keyword field in Firefox Bookmarks can be used to create shortcuts and smart searches. For some reason, sometimes if you define a new keyword, the latest keyword will be deleted. Keeping track of your keywords is hard though, since there isn't a way to list all keywords in use...

varnish port 80

With the latest update of Varnish, the configuration file has moved to a new place. This is how you do it Debian 8 with varnish 4.1.4-1~jessie:

Create folder and insert in /etc/systemd/system/varnish.service.d/customexec.conf:

sudo -i
mkdir /etc/systemd/system/varnish.service.d
vi /etc/systemd/system/varnish.service.d/customexec.conf

If you try to create a custom shortcut with <Super> + M (Super is the Windows key), it might be ignored, since that shortcut is already taken by the Gnome Shell.

To fix this, simply reassign the short cut with the command below.

Check if Super + M is already taken, and remove it:

$ gsettings list-recursively org.gnome.shell.keybindings | grep Super

evolution loaded

If you want to stop Evolution from running in the background, even if you don't use it, and save some RAM, here is a quick way. Supposedly, you can't un-install it, since other programs depend on it. But by preventing the file from being executed you can prevent it from starting.

If you use the default version of Nemo with Ubuntu 16.04, it crashes if you open a new tab while other files are selected. Upgrading to Nemo 2.8.7 fixes this bug.

You can upgrade by running these commands:

sudo add-apt-repository ppa:webupd8team/nemo
sudo apt-get update
sudo apt-get install nemo nemo-fileroller

Installing Brother HL-2240 printer on Ubuntu 16.04

To install a Brother HL-2240 printer on Ubuntu 16.04, download the Driver Install Tool.

Unpack the Driver Install Tool and begin the installation with these two commands:

Memcached

By installing Memcached on your server, you can speed up the load time for your web site pages.

From the official web site: "Free & open source, high-performance, distributed memory object caching system, generic in nature, but intended for use in speeding up dynamic web applications by alleviating database load.

XCache

Using XCache can improve the performance of a web site, by caching PHP.

From the XCache project page: "XCache is a fast, stable PHP opcode cacher that has been tested and is now running on production servers under high load."

It works the same way as other PHP cachers such as APC.

Fast Drupal with Vagrant Scotch Box

This is how I set up a new Vagrant Scotch Box with Drush support.

NOTE: After updating VirtualBox through the normal, daily Ubuntu update, it might be necessary to reinstall with the below commands.

Setting up a Linux installation can be done in many different ways, but preserving your settings and bookmarks is nice, so you don't have to redo them after a re-installation. This set-up uses another partition (in the example, called "archive") to store your photos, documents, settings for installed programs and your mail program, and connecting to them via symlinks.