Bug in libupnp - Cannot browse minidlna server using vlc

Disable ipv6

echo 1 | sudo tee /proc/sys/net/ipv6/conf/all/disable_ipv6
Install Specific Package Version
as@as-x1:~/MEGAsync/scripts$ apt policy libfprint0
libfprint0:
  Installed: (none)
  Candidate: 1:0.7.0-1+vfs0090~b2
  Version table:
     1:0.7.0-1+vfs0090~b2 500
        500 http://ppa.launchpad.net/3v1n0/libfprint-vfs0090/ubuntu bionic/main amd64 Packages
     1:0.7.0-1 500
        500 http://gb.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
as@as-x1:~/MEGAsync/scripts$ sudo apt install libfprint0=1:0.7.0-1+vfs0090~b2
Output Packages from Installed PPA's
grep ^Package: /var/lib/apt/lists/ppa.launchpad.net_*_Packages
Show Repository Package Installed From
as@as-x1:~/MEGAsync/scripts$ apt policy libpam-fprintd
libpam-fprintd:
  Installed: 0.8.0-2
  Candidate: 0.8.0-2
  Version table:
 *** 0.8.0-2 500
        500 http://gb.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        100 /var/lib/dpkg/status
Ubuntu 18.04 Netplan - Cloud Images
cat <<'EOF' >> /etc/netplan/01-netcfg.yaml  
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
 version: 2
 renderer: networkd
 ethernets:
   ens192:
     dhcp4: no
     dhcp6: no
     addresses: [192.168.97.222/27]
     gateway4: 192.168.97.193
     nameservers:
       addresses: [95.125.20.2]
EOF  

sudo netplan apply

After adding disk, rescan disk devices
root@nvinfvmwtest002:~# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
fd0      2:0    1    4K  0 disk
loop0    7:0    0 86.6M  1 loop /snap/core/4486
sda      8:0    0   30G  0 disk
├─sda1   8:1    0    1M  0 part
└─sda2   8:2    0   30G  0 part /
sdb      8:16   0  512G  0 disk
sr0     11:0    1  806M  0 rom
root@nvinfvmwtest002:~# echo 1>/sys/class/block/sdb/device/rescan
root@nvinfvmwtest002:~# lsblk
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
fd0      2:0    1    4K  0 disk
loop0    7:0    0 86.6M  1 loop /snap/core/4486
sda      8:0    0   30G  0 disk
├─sda1   8:1    0    1M  0 part
└─sda2   8:2    0   30G  0 part /
sdb      8:16   0  100G  0 disk
sr0     11:0    1  806M  0 rom
List PPA's
cat <<'EOF' >> listppa.sh
#! /bin/sh 
# listppa Script to get all the PPA installed on a system ready to share for reininstall
for APT in `find /etc/apt/ -name \*.list`; do
    grep -o "^deb http://ppa.launchpad.net/[a-z0-9\-]\+/[a-z0-9\-]\+" $APT | while read ENTRY ; do
        USER=`echo $ENTRY | cut -d/ -f4`
        PPA=`echo $ENTRY | cut -d/ -f5`
        echo sudo apt-add-repository ppa:$USER/$PPA
    done
done

chmod u+x listppa.sh
Remove the ppa

sudo apt-add-repository -r ppa:whatever/ppa

Install a local file with Apt

sudo apt install /root/unifi_sysvinit_all.deb -y

Improve WiFi on Intel N Chipset (Maybe others as well)

High Bitrate! (Bit Rate=270 Mb/s) - Low throughput! (35.7 Mbits/sec)

as@ubuntu-01:~$ iwconfig wlp3s0 
wlp3s0    IEEE 802.11  ESSID:"AS"  
          Mode:Managed  Frequency:5.22 GHz  Access Point: 80:2A:A8:88:18:F2   
          Bit Rate=270 Mb/s   Tx-Power=15 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=69/70  Signal level=-41 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:72   Missed beacon:0

From Alpine linux wiki: If you have a problem with slow uplink speed in 802.11n mode, for example 20Mbps, try to enable antenna aggregation:

sudo sed -i -e "\$aoptions iwlwifi 11n_disable=8" /etc/modprobe.d/iwlwifi.conf

# Don't need powersaving disabled, but can be added to driver as above:
options iwlwifi power_save=0

# Reload adapter
sudo modprobe -r iwlwifi
sudo modprobe iwlwifi

Results:
Before:

as@ubuntu-01:~$ iperf3 -p 84 -c 192.168.0.51 -t 1 -i 30
Connecting to host 192.168.0.51, port 84
[  4] local 192.168.0.13 port 41856 connected to 192.168.0.51 port 84
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  4.53 MBytes  38.0 Mbits/sec    0   48.1 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-1.00   sec  4.53 MBytes  38.0 Mbits/sec    0             sender
[  4]   0.00-1.00   sec  4.26 MBytes  35.7 Mbits/sec                  receiver

After:

as@ubuntu-01:~$ iperf3 -p 84 -c 192.168.0.51 -t 1 -i 30
Connecting to host 192.168.0.51, port 84
[  4] local 192.168.0.13 port 41730 connected to 192.168.0.51 port 84
[ ID] Interval           Transfer     Bandwidth       Retr  Cwnd
[  4]   0.00-1.00   sec  16.6 MBytes   139 Mbits/sec    3    161 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-1.00   sec  16.6 MBytes   139 Mbits/sec    3             sender
[  4]   0.00-1.00   sec  15.7 MBytes   132 Mbits/sec                  receiver
Install Fingerprint Scanner - Lenovo Validity Fingerprint Sensor

Show Device:

as@as-x1:/etc/apt$ lsusb -s 004
Bus 001 Device 004: ID 138a:0090 Validity Sensors, Inc.

List currently installed driver:

as@as-x1:~/MEGAsync/scripts$ apt search libfprint
libpam-fprintd/bionic,now 0.8.0-2 amd64 [installed]
  PAM module for fingerprint authentication through fprintd

Remove Driver installed from Ubuntu Repositories:

as@as-x1:~/MEGAsync/scripts$ sudo apt remove libfprint0
...
The following packages will be REMOVED
  fingerprint-gui fprint-demo fprintd libfprint0 libpam-fprintd policykit-1-fingerprint-gui
0 to upgrade, 0 to newly install, 6 to remove and 25 not to upgrade.
Removing libfprint0 (1:0.7.0-git20180311-1-0ppa1~bionic1) ...

Show Versions that can be installed from added repositories

as@as-x1:~/MEGAsync/scripts$ apt policy libfprint0
libfprint0:
  Installed: (none)
  Candidate: 1:0.7.0-1+vfs0090~b2
  Version table:
     1:0.7.0-1+vfs0090~b2 500
        500 http://ppa.launchpad.net/3v1n0/libfprint-vfs0090/ubuntu bionic/main amd64 Packages
     1:0.7.0-1 500
        500 http://gb.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages

Install Specific Version of Driver

as@as-x1:~/MEGAsync/scripts$ sudo apt install libfprint0=1:0.7.0-1+vfs0090~b2
...
The following NEW packages will be installed
  libfprint0
0 to upgrade, 1 to newly install, 0 to remove and 25 not to upgrade.
Get:1 http://ppa.launchpad.net/3v1n0/libfprint-vfs0090/ubuntu bionic/main amd64 libfprint0 amd64 1:0.7.0-1+vfs0090~b2 [173 kB]
...
as@as-x1:~/MEGAsync/scripts$ apt list --installed | grep libfprint
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libfprint0/bionic,now 1:0.7.0-1+vfs0090~b2 amd64 [installed

Install remaining required packages

as@as-x1:~/MEGAsync/scripts$ sudo apt install -y libpam-fprintd
...
The following additional packages will be installed:
  fprintd
The following NEW packages will be installed
  fprintd libpam-fprintd
0 to upgrade, 2 to newly install, 0 to remove and 25 not to upgrade.

Test Fingerprint Reader Enrollment

as@as-x1:~/MEGAsync/scripts$ fprintd-enroll 
Using device /net/reactivated/Fprint/Device/0
Enrolling right-index-finger finger.
Enroll result: enroll-stage-passed
Enroll result: enroll-stage-passed
Enroll result: enroll-stage-passed
Enroll result: enroll-stage-passed
Enroll result: enroll-completed
as@as-x1:~/MEGAsync/scripts$ fprintd-list as
found 1 devices
Device at /net/reactivated/Fprint/Device/0
Using device /net/reactivated/Fprint/Device/0
Fingerprints for user as on Validity VFS0090 (press):
 - #0: right-index-finger

Using a Light Theme with VSCode & WSL Ubuntu?

dircolor

Update Colors

echo $LS_COLORS > LS_COLORS.original
cp LS_COLORS.original LS_COLORS.edited
vim LS_COLORS.edited
export LS_COLORS="$(cat LS_COLORS.edited)"

Horrible unreadble bash output blue (34) on green (42)

✔ as:terraform_training [ master ✭ | ✔  ] ➭ dircolors --print-database | grep 42
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
STICKY_OTHER_WRITABLE 30;42 # dir that is sticky and other-writable (+t,o+w)
OTHER_WRITABLE 34;42 # dir that is other-writable (o+w) and not sticky

Ubuntu Specific Snippets