October 2019

Ubuntu 18.04 Slow

On two new Ubuntu 18.04 installations, internet access was extremely slow on the first access of a website. I eventually tracked it down to IPv6 DNS, for instance:
dig slashdot.org A
would respond immediately, but
dig slashdot.org AAAA
would hang for a while then return
;; connection timed out; no servers could be reached
I checked the name servers returned by my ISP that my router was using and they worked fine. It was only when using the default DNS returned by my router’s DHCP that it hung. The reason for this was that IPv6 was disabled at the router, a NetGear R6700v2. To fix, log in to the router’s administration web page and go to Advanced -> Advanced Setup -> IPv6 and change Internet Connection Type from Disabled to DHCP.


Comments (0)


Install Ubuntu 18.04 on Thinkpad T560

Install synaptic:
sudo apt install synaptic

install pCloud from pcloud.com
Add synced directory pCloudDrive/sync -> ~/pcloud-sync

Download the KeePassX 0.4 .DEB from https://launchpad.net/ubuntu/xenial/amd64/keepassx/0.4.3+dfsg-0.1ubuntu1
sudo dpkg -i keepassx_0.4.3+dfsg-0.1ubuntu1_amd64.deb
sudo apt --fix-broken install
To prevent it from being upgraded to version 2, in Synaptic, select keepassx and, from the menu, select “Package” -> “Lock Version”. Also make sure Software Updater isn’t set to automatically install updates, as it does not respect the version lock.

Sign in to Firefox. If the menu is missing, hit F10 and select View -> Toolbars -> Menu Bar and Bookmarks Toolbar.

Use Synaptic to load these packages:
kvpm (replaces system-config-lvm, which is not available for Ubuntu 18)
gnome-raw-thumbnailer (to view .CR2 file thumbnails, also view in Files with zoom of 150%)

Copy the /etc/group entry for ds411p2 from another machine that already has it.

Add an entry for the NAS to /etc/hosts, of the form: ds411p2

Install NAS credentials
From another NAS-connected machine, copy the NAS authorization file:
/etc/ds411p2pwd. Set permissions to u=rw,go=. Repeat for ~/.ds411p2pwd.

Set up NAS mounts
As root, edit /etc/fstab and add these lines, substituting your username for {me}:

//ds411p2/video /mnt/ds411p2-public-video cifs vers=1.0,rw,suid,gid=ds411p2,credentials=/etc/ds411p2pwd 0 0
//ds411p2/music /mnt/ds411p2-public-music cifs vers=1.0,rw,suid,gid=ds411p2,credentials=/etc/ds411p2pwd 0 0
//ds411p2/photo /mnt/ds411p2-public-photo cifs vers=1.0,rw,suid,gid=ds411p2,credentials=/etc/ds411p2pwd 0 0

//ds411p2/home /home/{me}/ds411p2 cifs vers=1.0,user,uid={me},gid={me},rw,suid,credentials=/home/{me}/.ds411p2pwd 0 0
//ds411p2/video /home/{me}/ds411p2-public-video cifs vers=1.0,user,uid={me},gid={me},rw,suid,credentials=/home/{me}/.ds411p2pwd 0 0

Note the option vers=1.0 is newly required for Ubuntu 18.04 and the DS411+II NAS.
As root, create the above directories in /mnt. You can (as root) mount them now.

Add support for the fingerprint reader:
sudo apt install libpam-fprintd
Register your fingerprint (run as user, not root):
Set sudo to use fingerprint scanner:
sudo pam-auth-update

Install Dot Files

Install xsane

Set up HP LaserJet MFP M477fdn with hp-setup


Comments (0)


Local network DNS on Linux

From within a local network, you have to use hostname.local rather than hostname for name resolution to work.

See https://en.wikipedia.org/wiki/.local


Comments (0)