Fresh Ubuntu networking and host directories

Networking

When I installed ubuntu 20.04.3, I expected the ubuntu networking to Just Work. That was wrong. And apparently, there’s a new network management subsystem to worry about. A quick Google search led me to the Ubuntu docs and thence to create the file /etc/netplan/01-netcfg.yml:

network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s3:
      dhcp4: true

Then this line enabled the interface:

sudo netplan apply

Host directory

I put all my GitHub/GitLab checkouts in ~/workspace, a hangover from BBC days, along with using VMWare Fusion. Although I tend to use docker more these days. I tried mounting it from within VMWare but no luck. A pointer from a chap on Reddit led me to these lines:

mkdir /mnt/hgfs
sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other

Or alternatively, add the following to /etc/fstab:

.host:/	/mnt/hgfs    fuse.vmhgfs-fuse	auto,allow_other	0	0

And there we go. Disappointingly everything I wanted didn’t work out of the box, but I got it working in the end.