28. July 2018

Failed to install Feature update of Windows 10, version 1803 on machine with Linux dual boot

I was chasing a very strange bug for a long time: Windows 10 was not able to install any feature update.

Update history in Windows contained just a message:

Feature update to Windows 10, version 1803
Failed to install on ‎2018-‎05-‎24 - 0xc1900101

To keep the long story short: I was starting Windows by the incorrect bootloader.

Grub from Linux Mint auto-discovered two Windows partitions /dev/sda1 and /dev/sda2. The first partition was just a small partition with bootloader from the previous installation of Windows. When booted by “chainloader +1” the boot automatically kicked in and started Windows stored on the second partition. Unfortunately it had an impact on updates and shutdown of the computer.

The correction was quite simple. Just start Windows from the second partition.

I rebooted the computer from sda2 partition and then I started the new installation of Windows 10, version 1803 update using Windows 10 Upgrade tool.

This correction also fixed another strange bug, that I was not able to shutdown Windows. When I selected “shutdown”, Windows respawned in a few seconds back into login screen. Again the problem was that old bootloader from the first partition kicked in, after the shutdown of Windows and resumed it.

Big thanks to Max Green for pointing out that the problem might be caused by invoking incorrect bootloader.

14. July 2018

How to install Brother DCP-1610W on Linux Mint

Brother DCP-1610W and DCP-1610WE are laser printers with WiFi support. The problem is that configuration files for printing are not part of common distributions like Linux Mint.

You can try to use Foomatic driver for DCP-1200, but the result won’t be great. It’s necessary to install drivers from Brother.

There is one gotcha. If you install just a CUPS Wrapper from Brother, it won’t work. You need to install LPR and CUPS packages.

Download two deb files:

LPR printer driver (deb package)

CUPSwrapper printer driver (deb package)

Install them:

dpkg -i dcp1610wlpr-3.0.1-1.i386.deb
dpkg -i dcp1610wcupswrapper-3.0.1-1.i386.deb

The last command should add a printer to your system. CUPS should be also able to discover the printer on WiFi using mDNS. The important part of the configuration is:

Maker and Model which is set to: Brother DCP-1610W for CUPS

2. July 2018

How to switch tabs in Xed

Xed is the default text editor in Linux Mint. Xed has some neat features. E.g. it has support for tabs.

How to switch between opened tabs?

Ctrl+Alt+PgUp - switch to the next left tab
Ctrl+Alt+PgDown - swith to the next right tab

The other option is to use the mouse wheel and switch between tabs by the scrolling.

1. July 2018

How to display line numbers in Xed

Xed is the default text editor in Linux Mint with Cinnamon environment. It is fast and simple to use for editing source codes or text documents. The default configuration comes without enabled line numbers. Here is how you can enable line numbers.

Open menu Edit and select Preferences.

Click checkbox Display line numbers.

The change will take place immediately.

Here is the recording of “How to”:

28. June 2018

How to install .NET Core 2.1 on Linux Mint 18.3 Sylvia

Default instructions for installation of .NET Core 2.1 do not contain instructions how to install the technology on Linux Mint.

You may have a temptation to go with Ubuntu instructions, but you’ll end up in troubles with installing libicu60 or libicu57.

The instructions compatible with Linux Mint 18.3 Sylvia are instructions for Linux Debian 8 (not 9).

Commands for repository configuration:

wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.asc.gpg
sudo mv microsoft.asc.gpg /etc/apt/trusted.gpg.d/
wget -q https://packages.microsoft.com/config/debian/8/prod.list
sudo mv prod.list /etc/apt/sources.list.d/microsoft-prod.list
sudo chown root:root /etc/apt/trusted.gpg.d/microsoft.asc.gpg
sudo chown root:root /etc/apt/sources.list.d/microsoft-prod.list

Commands for installation:

sudo apt-get update
sudo apt-get install dotnet-sdk-2.1

Just for the record, the content of /etc/apt/sources.list.d/microsoft-prod.list is:

deb [arch=amd64] https://packages.microsoft.com/debian/8/prod jessie main