Upgrading Ubuntu Server LTS 16.04 to 18.04 (aka GDM and x11vnc)

So, the time has come to upgrade my Ubuntu Server LTS 16.04 to the latest LTS 18.04…

It’s a straight-forwards upgrade, easy-peasy, right?

The Triumph Defeat of Hope Over Reality

Compared to what Linux used to be in the recent past, the upgrade via the stock 16.04 UI went fairly smooth…

I already knew that I had to do the standard ZFS pool upgrade:

sudo zpool upgrade <poolname>

But after the whole upgrade was done, I tried to VNC into the machine again after it rebooted… and failed.

2018/12/25 Update:

I suddenly noted that my Unifi Controller was no longer working… I later discovered that it was due to the Ubuntu LTS upgrade… Another day, another battle

Continue reading

My PC Is Suffering From Insomnia…

Quite a while back, my Windows 10 PC installed malware updates mandated by Microsoft, and it subsequently failed to resume from S3 sleep, for reasons which I did not have the time to investigate. I skirted the issue by disabling S3 sleep in BIOS, leaving only S1 sleep states available, which still worked…

About a week or two back, I started realising that my computer would not go to sleep at all

I needed to find the root cause and cure its insomnia; something was preventing Windows from going to sleep…

Continue reading

Microsoft: All You Beta Testers Belong To Us… (or “The Case of The Useless Drive”)…

With the shift to a more “app-like”, “force an update down your throat whether you like it or not” attitude from Microsoft, they have also seemingly shifted their testing stance and shafting their customers, taking from Xiaomi’s playbook: You are now our beta tester.

You Have a New (largely useless) Drive!

One of my family members have been complaining that an “E” drive suddenly appeared out of the blue. Navigating to it using Windows Explorer or via the command prompt shows it as empty, but, Windows Explorer shows the drive as “nearly full” (red bar), and Windows 10 continuously complains that the “E” drive is “full”…

Nothing in the Disk Management Microsoft Management Console “applet” could allow me to remove the drive letter, showing the partition type as an “OEM Parititon” – one of two that Microsoft littered on the already-small SSD like so many rabbit droppings (two other partitions are by the laptop manufacturer).

Continue reading

Securing pfSense SSH2…

So, as exposing the HTTPS administration page of pfSense to the big, bad, Internet is a big “no no”, the only proper way should be to set up SSH2 and allow port forwarding.

Now, there are already articles out there telling you that using username+passwords to secure SSH2 is not the way to go… Using certificates is. However, I wanted more… I wanted both… Why is it that pfSense will only allow one or the other when sshd already allows enforcement of both?

So, once again, rolling up my sleeves, I dived into the murky waters of the pfSense shell…

Continue reading

Software Firewall…

The Problem

I have been using an Asus RT-AC68U, followed by an RT-AC87U, running Merlin’s firmware with customised firewall scripts for the longest time. However, both units had a persistent issue with some (not all) sites being inaccessible, total resets and re-configuration from scratch regardless.

Having confirmed it was an issue with the router(s) and not the firmware nor firewall rules nor server-side blocks, and not being able to find a solution, I decided to just utilise a software firewall. One that I knew well and trusted was/is pfSense.

The Other Problem

At the very same time, I finally discovered that the boot failures of my server was actually due to the PSU (read other Amazon reviews citing similar fan-spin-up-then-dies failures). Having not had time to look at the frequently (and randomly rebooting server), I finally purchased whatever SFX module that was in stock at the local “IT complex” – another Silverstone SST-SX600-G unit… Crossing my fingers that the PSU was the culprit…

2018/06/04 Update: Nope, false hope again… Server is still rebooting rather “randomly” despite using a brand new Corsair SF600

Continue reading

Ubuntu and UPS…

No, I am not talking about the delivery kind

With an existing PROLiNK 902S 2000VA online UPS providing clean power to my (aging) desktop, I thought it time to finally get a proper UPS for my NAS instead of the old, line-interactive PROLiNK PRO1200SVU that already had to have its dying battery replaced once.

Fortunately, I managed to get a PROLiNK 903S 3000VA unit.

Like the 902S and my desktop, the 903S has its USB cable plugged directly into a/the computer, in the hope of using the provided ViewPower software to monitor the UPS and cleanly and safely shutdown the host should power interruptions occur.

Unfortunately, installation was not at all simple, particularly not since the user manual has no mention of installing the software on Linux (even if the software is “compatible” with Linux, being Java-based).

Googling did not help much, with most/all the returned pages referencing the use of NUTS instead of the intended/provided ViewPower, not to mention needing to “hack” your own “configuration file”, with no guarantee that the runtime calculations are correct.

After much fumbling around, searching and testing, I managed to get it to work…

Continue reading

Windows Refusing to “Open With” Using Notepad++ Portable…

So, fed-up with an outdated, “sanctified” version of Notepad++ “published” by the IT team at my workplace on my work laptop, I uninstalled the published version, grabbed a copy of the portable version (choose the appropriate .zip or .7z package) and proceeded to live happily ever after…

Well… Not quite… Whenever I attempted to use Windows Explorer’s “Open with…” context menu option, attempting to select the Notepad++ portable’s executable would not have any result – the dialogue would just continue to sit there…

After some soul Google searching, I stumbled across the solution.

The registry key HKEY_CLASSES_ROOT\Applications\notepad++.exe\shell\open\command was still pointing at the uninstalled, (now) non-existent executable. Pointing it to the correct location made Notepad++ show up immediately as one of the selectable applications.

KVM: Installing Windows…

So, I had a spare, official Windows 7 Pro key that was never installed on the intended laptop. I was thinking that it was a good chance to install it on KVM…

So, what was supposed to be a straight-forward “new VM” + “install Windows 7” + “Windows 10 upgrade” turned into another headache…

Fortunately (and probably yet another reason to stick with the “tried-and-tested”/popular VM solutions), KVM has a “large enough” community, with lots of help online…

Continue reading

There Is No Spoon…

So, attempting to set up a virtual machine on Ubuntu now leaves me some choices (again, which is mostly a good thing).

Attempting to set up a secure Windows environment is never easy. Maybe one of the better/best ways to do this is to simply use VMs and virtualised software…

First, I need virtualisation host software. VMware ESXi and any other hypervisors are out of the question, because we already have an OS. Besides, despite being comfortable with ESXi (and also have somewhat generous “limits” on their “free” version from v5.5 and up), ESXi is pretty strict in terms of supported hardware.

Having looked at some of the “popular” ones out there, including Oracle’s VirtualBox, Citrix’s Xen, and Red Hat’s KVM (not to be confused with the common abbreviation KVM), I finally decided on KVM.

Even with VirtualBox’s ability to use “integrated mode“, I still believe that having low-level integration with the kernel and open source is more important than reliance on a specific kernel version (note: linked search only shows results from past year to show “current” reported issues as at time of search).

Continue reading