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: