Thursday 7 November 2019

Gigabyte BRIX

Gigabyte Technology Co., Ltd. (who uses the name Jìjiā Kējì in Chinese), is a manufacturer and distributor of computer hardware products. Gigabyte makes motherboards, graphics cards, desktop mini-PCs, laptops, peripherals and components. Gigabyte mini-PC brand is BRIX; Gigabyte BRIX computers are sold both as barebones and as fully configured systems.
  • Gigabyte's Web site lists more than 100 models of barebone Brix mini-PCs.
  • Apparently the Taiwanese manufacturer could never decide whether its Englished name should be styled GIGABYTE or GIGA-BYTE Technology Co., Ltd.
About itself, Gigabyte says that
GIGABYTE is always consumer-oriented from the very beginning of product design to the end of value chain. With the focus on consumer needs, the delivery of customer experiences has been transformed into tangible and understood customer cares. Therefore, GIGABYTE has integrated the best quality of components to ensure outstanding stability and reliability and also built up a complete service network with hundreds of customer service centers around the globe. Behind everything we do is a clear focus on what our customers value. GIGABYTE has kept staying one step ahead of consumer desires to create unique connections and pursue your smile of satisfaction.
(Gigabyte Technology Co. Ltd., About Us, translation from classical Chinese poetry by the anonymous PR department of Gigabyte; retrieved on 11 June 2018.)


 Gigabyte Brix GB-BACE-3000 is a black metal box, 56.1 × 107.6 × 114.4mm, featuring:
  • One two-core two-thread Intel Celeron N3000 processor;
  • One 2.5″ SATA bay for a hard disk or SSD, either 7.0 or 9.5 mm thick;
  • One DDR3L 1.35 V SODIMM slot, up to 8 GB;
  • One Intel IEEE 802.11 ac, dual band Wi-Fi and Bluetooth 4.0 NGFF M.2 card;
  • One built-in Realtek RTL8111H gigabit Ethernet card;
  • Four USB 3.0 ports, one RJ-45 port, one VGA port, one HDMI port, one audio-out and one microphone-in 3.5 mm jack sockets.

The Celeron N3000 is one of Intel's "products formerly Braswell". Introduced in Q1 2015, it's a 64 bit processor; a 14 nm part, it has 2 cores / 2 threads (that is, no hyperthreading), works at 1.04 GHz (with single-core burst up to 2.08 GHz), has a splendid TDP of 4 W, and includes VT-x with Extended Page Tables, hardware AES support, and Intel HD Graphics for Intel Celeron Processor N3000 Series, which, Wikipedia assures me, it's a form of Intel HD Graphics 400.

Saturday 7 July 2018

WD Elements SE 4TB

The Western Digital Elements SE is a 2.5″ inch portable external hard disk, available in multiple capacities. It has the traditional "rounded" shape of WD portable external hard disks, unlike the recent models of WD My Passport disks which have transitioned to a sharp-cornered rectangular enclosure; this makes it a natural fit for the fabled WD Nomad rugged disk cases of old.
  • Dimensions: 110 × 81.5 × 21 mm for the 2TB and 4TB variants; the 1TB variant is only 12.8 mm thick.
  • Weight: about 250 g (4TB), down to about 130 g (1TB).
  • Model: WDBJRT0040BBK-WESN (4TB), or WDBJRT0020BBK-WESN (2TB), or WDBJRT0010BBK-WESN (1TB).
The 4TB WD Elements SE has physical sectors of 4 KiB, but presents to the host system logical sectors of 512 bytes; this makes it a 512e Advanced Format disk, which helps with compatibility with more simple-minded operating systems; because the disk presents 512 byte logical sectors, it must be formatted with the GPT partitioning scheme. The disk has 7,813,969,920 logical sectors, which means that its capacity is 4,000,752,599,040 bytes (3.64 TiB). Crystal Dew World's CrystalDiskInfo says that the disk spins at 5400 rpm.

C:\> fsutil fsinfo ntfsinfo A:
...
Number Sectors :                  0x00000001d1bfa7ff
Total Clusters :                  0x000000003a37f4ff
Free Clusters  :                  0x0000000027ae5d79
Total Reserved :                  0x0000000000000000
Bytes Per Sector  :               512
Bytes Per Physical Sector :       4096
...

The performances as measured CrystalDiskMark are consistent with a 5400 rpm disk with an USB 3.0 connection. Sequential read speed is about 87 MB/sec (or about 83 MiB/sec in binary units); for small random accesses the read speed drops to about 0.5 MB/sec, corresponding to a respectable 133 IOPS. (The write speed as measured by CrystalDiskMark for small random accesses is unrealistic and should not be taken into account.)

In a practical test, reading 2000 photos totalling 15 GB (13.9 GiB) took 236 seconds, coming to 63.6 MB/sec or 60.6 MiB/sec.

Thursday 31 May 2018

Popularity of Firefox extensions

One of the many nice things about the Firefox Add-on store is that it allows browsing the add-ons in order of popularity, expressed as the number of users who, I suppose, use the add-ons.

When we look at the most popular extensions we notice that, unsurprisingly, that it looks like a power law, with a handful of extremely popular extensions and a long tail of interesting but as yet unpopular ones.

Popularity of the most popular Firefox extensions, as of May 2018.

The six most popular extensions are Adblock Plus, uBlock Origin, Video DownloadHelper, Easy Screenshot, Cisco WebEx and Ghostery:
  • Adblock Plus (12.1 million users) and uBlock Origin (4.9 million users) are worthy ad-blockers. That Adblock Plus has more than two times the number of users of uBlock Origin is a compelling testimony as to the importance of coming first. Or possibly it may be that the purely functional user interface of uBlock Origin is deterring some users.
  • Then comes Video DownloadHelper, a utility to extract, convert and save videos from web sites, including the mighty YouTube. 3.3 million users find it useful.
  • In the fourth place is Easy Screenshot, a tool to get a screenshot of the entire web page. Two and a half million users have it. Why they have it is a mystery, since the functionality to get a screenshot of the entire web page is built into Firefox.
  • Cisco WebEx sits on the fifth place, with 1.6 million users. It is highly likley that those are people who work for corporations which use Cisco WebEx for their virtual meeting needs.
  • The admirably duplicitous Ghostery is sixth, with 1.1 million users. "Ghostery blocks marketing companies from gathering website user information, but it makes money from selling page visit, blocking, and advertising statistics to corporations globally, including corporations that are actively engaged in collecting user information to target ads and other marketing messages to consumers", says Wikipedia.

Fenestral incantations

  • Microsoft Edge cannot load favicons from localhost, regardless of the server name, unless in an elevated PowerShell:
    CheckNetIsolation LoopbackExempt `
    -a -n="Microsoft.MicrosoftEdge_8wekyb3d8bbwe"
    See "Favicon not working on Edge" on Stack Overflow.
    Bruce Payette and Richard Siddaway, Windows PowerShell in Action, 3rd edition, Manning, 2017, ISBN 9781633430297.
  • How to find domain controllers:
    C> nslookup -type=srv _ldap._tcp.dc._msdcs. | find /i "svr hostname"
  • Open the Credential Manager on Windows 10:
    C> rundll32.exe keymgr.dll, KRShowKeyMgr
  • Windows and Office activation status:
    C> slmgr /dlv
    C> slmgr /xpr
    C> cd /d "C:\Program Files\Microsoft Office\Office15" & :: 16, 17, ...
    C> cscript ospp.vbs /dstatus
    C> cscript ospp.vbs /act

Tuesday 8 May 2018

How to add new wallpapers in GNOME

As we all know, Canonical has decided to throw away its signature desktop, and to adopt GNOME. Maybe they were tired, maybe they could no longer afford to develope and maintain Unity; it doesn’t really matter why: for the current Long Term Support version of Ubuntu uses the GNOME desktop. “An easy and elegant way to use your computer, GNOME 3 is designed to put you in control and get things done”, say its developers. They really do.

Today we’ll consider a complicated task, one which is but rarely attempted by users who don’t do computers as their day job, namely adding several wallpapers, so that they appear in the Background selection list alongside those which came preinstalled. How hard could this be?

Lesser desktop environments, such as the late lamented Unity, or even the inimical Windows 10, have this complicated feature, where any picture on the hard disk can be selected and used as desktop wallpaper. But GNOME is an advanced desktop, “an easy and elegant way to use the computer”.

The official way

The official way to add a bunch of pictures to the list of wallpapers from which the user can choose is to create an XML file listing them. The name of the file doesn’t matter; but it must be placed in one of three directories:
  • /usr/share/gnome-background-properties/
  • /usr/local/share/gnome-background-properties/
  • ~/.local/share/gnome-background-properties/
The file must have the following syntax, or schema:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wallpapers SYSTEM "gnome-wp-list.dtd">
<wallpapers>
  <wallpaper>
    <name>Human Readable Name (Never Shown by GNOME)</name>
    <filename>/full/absolute/path/to/the/picture/filename.ext</filename>
    <options>zoom</options>
    <pcolor>#000000</pcolor>
    <scolor>#000000</scolor>
    <shade_type>solid</shade_type>
  </wallpaper>
  ·
  ·
  ·
</wallpapers>

The unofficial way

For those users who feel that the official GNOME “easy and elegant way” to add some wallpapers to the default list is a bit too enterprisey, the curious and enterprising people at OMG! Ubuntu! have found an unofficial but much simpler solution:
  1. Create a directory named ~/.cache/gnome-control-center/backgrounds.
  2. Copy your wallpapers in there.
That’s it. However, this is not the official way, and stuff may happen to data stored in a subtree named .cache. Caveat utens.

Desert

For desert, here are five abstract wallpapers which anybody can use as wallpapers. Four of them are almost monochrome pixellations, and the fifth is a nice smooth gradient in Ubuntian colors; the difference between the last two pictures is simply that one is rendered at 3440×1440 and the other at 2880×1200.
 
 
 
(Pictures available on Flickr under the Creative Commons Attribution license.)

Saturday 5 May 2018

Ubuntu 18.04: Replace snapped apps with their real selves

It all started with the System Monitor. The GNOME System Monitor is supposed to be able to show all the processes running on the system, and to show them in the form of a nice tree of parent-child relationships. But the System Monitor variant installed by default in Ubuntu 18.04 subbornly insisted on showing only my processes, and was utterly unable to show the parent-child relationships between them. It was also unable to distinguish between real filesystems and the forest of virtual filesystems mounted on any modern Linux system, which made the File Systems tab rather useless.

This was unacceptable.

A quick investigation resulted in a shocking conclusion: the preinstalled System Monitor was not a native application; it was a snap. Now I fully agree that snaps may well have their uses, although I’m not sure what those may be. But there is simply no way for System Monitor to do its job if it runs in a sandbox or a container; the hint is in the name: it’s a System Monitor.

Which made me consider than what should be done on server should also be done on workstations, and that is removing snapd. A quick dry-run test showed that removing it was allowed:
$ sudo apt-get --dry-run purge snapd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  gnome-software-plugin-snap* snapd*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
Taking heart from this test, I went ahead and removed snapd:
$ sudo apt-get --yes purge snapd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  gnome-software-plugin-snap* snapd*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 57.1 MB disk space will be freed.
(Reading database ... 115119 files and directories currently installed.)
Removing gnome-software-plugin-snap (3.28.1-0ubuntu4) ...
Removing snapd (2.32.5+18.04) ...
⁞
Removing snap core and revision 4486
⁞
Removing snap gnome-3-26-1604 and revision 59
⁞
Removing snap gnome-calculator and revision 154
⁞
Removing snap gnome-characters and revision 69
⁞
Removing snap gnome-logs and revision 25
⁞
Removing snap gnome-system-monitor and revision 36
⁞
Final directory cleanup
Discarding preserved snap namespaces
Removing extra snap-confine apparmor rules
Removing snapd cache
Removing snapd state
So it’s plain to see that not less than four pre-installed applications came in the form of snaps; fortunately, it was easy to get them back in the form of fully-fledged native packages:
for app in calculator characters logs system-monitor; do
  sudo apt-get --yes --no-install-recommends install gnome-$app
done
Ah, and speaking of GNOME Characters: this is a mostly useless application intended for browsing the ever entertaining emojis in the available fonts; it is definitely not the same thing as the plain old boring and very useful character map, which, for reasons known only by the GNOME steering committee and Canonical, does not come preinstalled. To get it you must install it:
sudo apt-get --yes --no-install-recommends install gucharmap

Friday 4 May 2018

Ubuntian colors

The default wallpaper shipped with Ubuntu 18.04 can be of course copied from any Ubuntu 18.04 installation, or downloaded from the ever helpful OMG! Ubuntu! By judiciously dividing the wallpaper into squares and averaging the colors in those squares one can compute specific values for the orange and mauve favored by this version of the operating system:


          #DD4814 Ubuntian orange as used by Ubuntu.com
          #E74D0D Ubuntian orange from the default wallpaper in 18.04
          #670545 Ubuntian mauve from the default wallpaper in 18.04
          #52023C Dark Ubuntian mauve from the default wallpaper in 18.04