Configure Brother HL-1212W wireless printer via Ubuntu

I've been able to configure my Brother HL-1212W to print via USB cable without much problem.

The printer is not connected to the wireless network, but it is capable of it. I'd like to do the full configuration from Ubuntu (setting up the name and password of the wireless connection included)

I am running ubuntu 16.04


Solution 1:

This link made everything work: instructions; instructions backup link, with one unfortunate exception (see end of the answer)

To get the printer to work wirelessly:

  1. Download the installer for your printer (either searching for it or navigating the categories): http://support.brother.com/g/b/productsearch.aspx?c=eu_ot&lang=en&content=dl
  2. Unzip it (gunzip file from the command line interface).
  3. Run the file as root (sudo bash file)
  4. Answer the questions: hl-1212w for printer name; yes to set device URI; auto for the selection of URI
  5. Reset your computer

Unfortunately, according to the link, the initial setup that connects the printer to your wi-fi router has to be done via windows.