Monday, November 5, 2018

Debian Buster artwork proposals

Debian Buster approaches.

For those for whom that statement may be enigmatic, let me explain that Debian is a Linux distribution, and Buster is to be the name of the next version, Buster being a character from the movie Toy Story, after whose characters Debian versions are named.

With that out of the way, here are three of my favourite wallpapers from the Buster artwork proposals page on the Debian Wiki.

Moonlight, by Juliette Taka Belin

Synchronized Motions by Juliette Cougnoux

E-Legance by Foockinho

Debian users may notice that  Juliette Taka Belin's artwork was chosen for the two previous versions of Debian, Jessie and Stretch.

Moonlight is my favourite, as her proposal for Stretch was previously.

Good luck Juliette Taka Belin for three in a row!

Thursday, May 31, 2018

Firefox 60 has remove title bar option

I've been trying out Firefox 60 in Debian Stretch. One of the new features I noticed is the ability to remove the title bar- something I have always considered a waste of space. You do this using the tick box at the bottom of the Customise page:
Firfox then looks like this:
Firefox stable (60 at time of writing) is not available from the Debian repositories- I downloaded the stable version and extracted it in my /Downloads folder. I'm running it from there at the moment, although desktop integration is possible. Details on the Debian Wiki.

Debian Stretch itself has Fireox ESR 52. Mozilla has released Firefox ESR 60, but I don't know when or if that will arrive in Debian Stretch- Firefox now requires Rust, and won't compile in Stretch because the version of Rust is not current, and Debian Stable does not include programs that wil not compile inside Debian Stable.

That at least is the situation as I understand it. Whether Firefox ESR 52 will receive security updates for the life of Stretch, or ESR 60 somehow be backported I do not know.

Sunday, April 1, 2018

Extend laptop battery life in Linux?

I came across a thread at the Debian User Forums a while ago on this subject. One post there suggested installing TLP.

The Mint Guide suggests you need to run 
# tlp start
once to start it.

I don't use my laptop very much at the moment so I haven't been able to test it. At some point I will try to get round to doing a test and post an update, but if you find laptop battery life is poor compared to Windows, maybe try this.

Cancel print job in Gnome (Debian Stretch)

After over a year of using Debian Stretch, I finally found an issue to write about: it doesn't seem to be possible cancel a print job from the Printers dialogue in Gnome.

Possibly it's this bug, which seems to have been fixed just a few weeks previously to this post, so will still be affecting Stretch.

A solution I found here is to run the CUPS interface and delete the job from there:
http://localhost:631/jobs/
Cheers Zwets for that!

Tuesday, March 20, 2018

Installing Brother HL-1212 W-Fi Mono Laser Printer in Debian Stretch (Gnome)

 [Update: This post is old now, but still getting a few hits. In Bookworm just install printer-driver-brlaser - no need for the Brother driver now.

See this post.]

 

I have never been a big fan of inkjet printers. My first clogged up regularly and required the print heads to be cleaned. Eventually It gave me a message that it had reached the end of its service life or similar. A web search told me I needed to open and clean out the ink reservoir. When I did, I found a small sponge where ink is deposited during the cleaning process- full of about two ink cartridges' worth of (very expensive) ink.

My last printer was better in that the cartridges contained the print head, so fewer blockages. However, the cartridges were horribly expensive. I tried some non-genuine ones, but experienced banding in prints with one cartridge, and another two were rejected by the printer shortly after installation. (I read somewhere that the manufacturer had updated printer firmware on some models to reject non-genuine cartridges, and as the printer was internet connected, that's a possibility with mine.)

Having paid about £25 for a set of genuine inkjet cartridges a while ago, I was more than somewhat annoyed to find that the printer had stopped working when I tried it recently. The print heads seemed to be blocked. Running the cleaning cycle improved printing a bit, but not enough to be useable (and no doubt wasted a lot of that expensive ink).

Rather that fork out another £25 quid to check if indeed it was the cartridges, I decided to have a look for a cheap laser printer. And indeed they are cheap these days. £45 gets you a USB model and £50-55 or so a wireless model.

I saw the Brother printer in the title of this post on sale for £49.99 and it looked good. Unlike other models from other manufacturers it comes with a full toner cartridge- not just a half-full trial cartridge.

But was it going to be usable in Linux? Well, the Brother web page had Linux drivers for download, and a Google search brought up some posts from various forums from people who had got it working in Linux, so I snapped one up.

I will relate the procedure I went through first, but this won't be a good procedure to follow because it didn't work at first- I'll recap the correct procedure at the end.

First I tried plugging in the printer, turning it on, and connecting it to the computer. (You'll need a USB computer cable. The manufacturer obviously assumes that everybody has one lying around from a previous printer purchase- in this case correctly.)

A pop-up appeared to say that Gnome was configuring the printer. That sounds good! Then another one appeared to say a driver was needed. I clicked OK to look for it, but a message appeared to say that a driver hadn't been found, with a link to a web page explaining it might be proprietary software.

However, the printer was available in the printer dialogue, although it had defaulted to a driver that didn't match my printer model. I tried printing a test page, but characters in the text were deformed.

Obviously I needed to install the driver for my printer from the Brother website.

Before doing that, I wanted to see if it was possible to set up a network connection for the printer, as it has Wi-Fi. I did this by using the WPS button on my router, then pressing the Wi-Fi button on the printer for a few seconds. The printer connected to the network and I was able to find its IP address from the router. Once I'd done that I was able to access the printer control page by tying the IP address into my web browser.

Using the menus I could enter the router password (Network/Wireless/Personal) and give the printer a static IP address.

Without a WPS button, I suspect it may be possible to access the control panel using localhost, although I didn't test this out. If you don't have WPS, open CUPS, see if the printer has an IP address, and type it into a browser, as described in step 5b in this page on the Brother web site.

So, printer successfully network enabled, I went on to install the printer driver.

(First I removed the non-working brother printer from the Printers dialogue.)

Brother has a very easy to use installation tool for Linux drivers for its printers. I should say easy to use if you are OK with working in a terminal, but not difficult to run even if you aren't. Here is the link:

Brother driver install tool.

Read the notes before downloading because there is some important information. For Debian Stretch, it's the following:
Requirement ia32-libs or lib32stdc++ is required to be installed.

In Stretch it seems to be lib32stdc++6, which also brings down some 32 bit architecture (the drivers are 32 bit, I think).

[Update 23/1/2021: The information above is obsolete as the installer has been updated and now installs the required 32 bit libraries automatically.]

That done, I downloaded the tool and followed the steps in the guide. Having set up my printer with a static IP address, at the end, where it says...

When you see the message "Will you specify the DeviceURI ?", For USB Users: Choose N(No) For Network Users: Choose Y(Yes) and DeviceURI number.
I entered the IP address I had given the printer, and the tool installed the printer as a network printer.

There was this warning at the end, but I think it's only a warning about a missing folder in Sane, and as the printer doesn't have a scanner, I don't think it's critical.
ls: cannot access '/etc/udev/rules.d/*.rules': No such file or directory
After the process finished, a test print produced perfect results!

So recap, if you are installing the printer and want to use the Wi-Fi connection, first try to set up the printer on the network, then run the Brother driver installation tool with the IP address you gave the printer.

To conclude, some pros and cons of the printer.

Cons:
  • Only prints in black and white, in case you missed the word "mono" in the title.
  • Still has my pet hate of desktop printers: the external paper tray. If you don't use the printer for a while, the paper sits in the open gathering dust, until the next print, when that dust is drawn into the machine.
Pros:
  • Cheap
  • Works with Linux
  • Fast, good quality, dry prints
  • come with a full toner cartridge

Sunday, March 18, 2018

OpenVPN in Gnome

Here's how to use OpenVPN in Gnome.

First you will need to install openvpn and its dependencies.

You will also need to install network-manager-openvpn-gnome.

Failure to do so will result in the following message when trying to add a password or otherwise edit VPN settings:
Error: Failure to load VPN connection editor.
I have been using VPNBook OpenVPN: highly recommended.

The only thing to note is that they do change the password every so often, resulting in a failure to connect. New passwords used to be announced on Twitter, but they seem to be on the web page now.