bb - ASRock BeeBox-S 7100U - Debian - 2018 archive

back to main Debian page for this machine.

2018 archive.

2018-12-20: sdb5 -apt - install avahi-tools

tingo@kg-bsbox:~$ sudo apt install avahi-utils
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  avahi-utils
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 54.9 kB of archives.
After this operation, 142 kB of additional disk space will be used.
Get:1 http://ftp.no.debian.org/debian stretch/main amd64 avahi-utils amd64 0.6.32-2 [54.9 kB]
Fetched 54.9 kB in 0s (132 kB/s)      
Selecting previously unselected package avahi-utils.
(Reading database ... 179946 files and directories currently installed.)
Preparing to unpack .../avahi-utils_0.6.32-2_amd64.deb ...
Unpacking avahi-utils (0.6.32-2) ...
Setting up avahi-utils (0.6.32-2) ...
Processing triggers for man-db (2.7.6.1-2) ...

ok

2018-12-20: sdb5 - efi - the boot order changed:

tingo@kg-bsbox:~$ efibootmgr
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0002,0000,0001,0003,0005,0006
Boot0000* rEFInd
Boot0001* Fedora
Boot0002* debian
Boot0003* UEFI OS
Boot0005* Hard Drive
Boot0006* USB

so change it

tingo@kg-bsbox:~$ efibootmgr --bootorder 0,2,1,3,5,6
Could not set BootOrder: Permission denied
tingo@kg-bsbox:~$ sudo efibootmgr --bootorder 0,2,1,3,5,6
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0000,0002,0001,0003,0005,0006
Boot0000* rEFInd
Boot0001* Fedora
Boot0002* debian
Boot0003* UEFI OS
Boot0005* Hard Drive
Boot0006* USB

tested - ok.

2018-12-20: sdb5 - reboot, a new kernel is in

tingo@kg-bsbox:~$ uname -a
Linux kg-bsbox 4.18.0-0.bpo.1-amd64 #1 SMP Debian 4.18.6-1~bpo9+1 (2018-09-13) x86_64 GNU/Linux

or is it?

2018-12-20: sdb5 - apt - upgrade

tingo@kg-bsbox:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
The following packages were automatically installed and are no longer required:
  libftdi1 libusb-0.1-4
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  libngspice0
The following packages will be upgraded:
  base-files chromium dnsmasq-base firefox-esr firefox-esr-l10n-da firefox-esr-l10n-de firefox-esr-l10n-en-gb
  firefox-esr-l10n-en-za firefox-esr-l10n-nb-no firefox-esr-l10n-nn-no firefox-esr-l10n-sv-se firmware-iwlwifi
  firmware-misc-nonfree fuse ghostscript gnupg gnupg-agent gpgv grub-common grub-efi-amd64 grub-efi-amd64-bin
  grub2-common kicad kicad-demos kicad-footprints kicad-libraries kicad-symbols kicad-templates
  libbasicusageenvironment1 libbrlapi0.6 libdom4j-java libfuse2 libgd3 libgnutls30 libgroupsock8 libgs9
  libgs9-common liblivemedia57 libmariadbclient18 libnm-glib4 libnm-util2 libnm0 libnma0 libnss-myhostname
  libopenmpt-modplug1 libopenmpt0 libpam-systemd libperl5.24 libpolkit-agent-1-0 libpolkit-backend-1-0
  libpolkit-gobject-1-0 libseccomp2 libsmbclient libssl1.0.2 libssl1.1 libsystemd0 libtiff5 libudev1
  libusageenvironment3 libwbclient0 libx11-6 libx11-data libx11-xcb1 libxapian30 libxcursor1
  linux-compiler-gcc-6-x86 linux-headers-4.9.0-8-amd64 linux-headers-4.9.0-8-common linux-image-4.9.0-8-amd64
  linux-kbuild-4.9 linux-libc-dev network-manager network-manager-gnome openssl perl perl-base perl-modules-5.24
  policykit-1 python3-brlapi samba-libs systemd systemd-sysv udev wpasupplicant xbrlapi xserver-common
  xserver-xorg-core xserver-xorg-legacy
88 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 236 MB of archives.
After this operation, 13.4 MB of additional disk space will be used.
[..]
Setting up grub-efi-amd64 (2.02~beta3-5+deb9u1) ...
Installing for x86_64-efi platform.
Installation finished. No error reported.
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.18.0-0.bpo.1-amd64
Found initrd image: /boot/initrd.img-4.18.0-0.bpo.1-amd64
Found linux image: /boot/vmlinuz-4.9.0-8-amd64
Found initrd image: /boot/initrd.img-4.9.0-8-amd64
Found linux image: /boot/vmlinuz-4.9.0-4-amd64
Found initrd image: /boot/initrd.img-4.9.0-4-amd64
Found unknown Linux distribution on /dev/sdb8
Found Fedora 29 (Twenty Nine) on /dev/mapper/fedora_kg--bsbox-root
Adding boot menu entry for EFI firmware configuration
done
[..]
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.18.0-0.bpo.1-amd64

and run apt autoremove

tingo@kg-bsbox:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  libftdi1 libusb-0.1-4
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 110 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 179959 files and directories currently installed.)
Removing libftdi1:amd64 (0.20-4) ...
Removing libusb-0.1-4:amd64 (2:0.1.12-30) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...

ok

2018-12-12: sdb5 - apt -install prerequisites for compiling urjtag from source

tingo@kg-bsbox:~$ sudo apt install autoconf automake bison pkg-config flex libtool libftdi1-dev libusb-1.0-0-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
pkg-config is already the newest version (0.29-4+b1).
pkg-config set to manually installed.
The following additional packages will be installed:
  autotools-dev libbison-dev libfl-dev libftdi1-2 libftdi1-doc libltdl-dev libusb-1.0-doc m4
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc gettext bison-doc libtool-doc gfortran | fortran95-compiler gcj-jdk
  m4-doc
The following NEW packages will be installed:
  autoconf automake autotools-dev bison flex libbison-dev libfl-dev libftdi1-2 libftdi1-dev libftdi1-doc
  libltdl-dev libtool libusb-1.0-0-dev libusb-1.0-doc m4
0 upgraded, 15 newly installed, 0 to remove and 69 not upgraded.
Need to get 4,336 kB of archives.
After this operation, 15.2 MB of additional disk space will be used.
[..]
update-alternatives: using /usr/bin/automake-1.15 to provide /usr/bin/automake (automake) in auto mode
Processing triggers for libc-bin (2.24-11+deb9u3) ...

what else? autopoint is needed

tingo@kg-bsbox:~$ sudo apt install autopoint
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libftdi1 libusb-0.1-4
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  autopoint
0 upgraded, 1 newly installed, 0 to remove and 69 not upgraded.
Need to get 433 kB of archives.
[..]
Preparing to unpack .../autopoint_0.19.8.1-2_all.deb ...
Unpacking autopoint (0.19.8.1-2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up autopoint (0.19.8.1-2) ...

more? No.

2018-12-12: sdb5 - apt - remove urjtag since it is too old

tingo@kg-bsbox:~$ sudo apt remove urjtag
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libftdi1 libusb-0.1-4
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  urjtag
0 upgraded, 0 newly installed, 1 to remove and 69 not upgraded.
After this operation, 11.3 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 180308 files and directories currently installed.)
Removing urjtag (0.10+r2007-1.2+b2) ...
Processing triggers for man-db (2.7.6.1-2) ...

ok

2018-12-12: sdb5 - apt - install urjtag

tingo@kg-bsbox:~$ sudo apt install urjtag
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  libftdi1 libusb-0.1-4
The following NEW packages will be installed:
  libftdi1 libusb-0.1-4 urjtag
0 upgraded, 3 newly installed, 0 to remove and 69 not upgraded.
Need to get 834 kB of archives.
After this operation, 11.4 MB of additional disk space will be used.
[..]
Setting up urjtag (0.10+r2007-1.2+b2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...

test it

tingo@kg-bsbox:~$ jtag

UrJTAG 0.10 #2007
Copyright (C) 2002, 2003 ETC s.r.o.
Copyright (C) 2007, 2008, 2009 Kolja Waschk and the respective authors

UrJTAG is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
There is absolutely no warranty for UrJTAG.

warning: UrJTAG may damage your hardware!
Type "quit" to exit, "help" for help.

jtag>

quite old

jtag> cable dirtyjtag
error: invalid parameter: unknown cable driver 'dirtyjtag'
too old, in fact.

ok.

2018-12-06: sdb5 - apt - install unrar

tingo@kg-bsbox:~$ sudo apt install unrar
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  unrar
0 upgraded, 1 newly installed, 0 to remove and 69 not upgraded.
Need to get 127 kB of archives.
After this operation, 314 kB of additional disk space will be used.
Get:1 http://ftp.no.debian.org/debian stretch/non-free amd64 unrar amd64 1:5.3.2-1+deb9u1 [127 kB]
Fetched 127 kB in 0s (135 kB/s)
Selecting previously unselected package unrar.
(Reading database ... 178706 files and directories currently installed.)
Preparing to unpack .../unrar_1%3a5.3.2-1+deb9u1_amd64.deb ...
Unpacking unrar (1:5.3.2-1+deb9u1) ...
Setting up unrar (1:5.3.2-1+deb9u1) ...
update-alternatives: using /usr/bin/unrar-nonfree to provide /usr/bin/unrar (unrar) in auto mode
Processing triggers for man-db (2.7.6.1-2) ...

ok.

2018-12-03: sdb5 - apt - install disktype

tingo@kg-bsbox:~$ sudo apt install disktype
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  disktype
0 upgraded, 1 newly installed, 0 to remove and 69 not upgraded.
Need to get 40.3 kB of archives.
After this operation, 106 kB of additional disk space will be used.
Get:1 http://ftp.no.debian.org/debian stretch/main amd64 disktype amd64 9-6 [40.3 kB]
Fetched 40.3 kB in 0s (297 kB/s) 
Selecting previously unselected package disktype.
(Reading database ... 178697 files and directories currently installed.)
Preparing to unpack .../disktype_9-6_amd64.deb ...
Unpacking disktype (9-6) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up disktype (9-6) ...

ok

2018-12-03: sdb5 - testing a new usb hub, a Belkin F4U038, 4 ports USB 2.0:

tingo@kg-bsbox:~$ lsusb -d 05e3:0608
Bus 001 Device 081: ID 05e3:0608 Genesys Logic, Inc. Hub

and lsusb -t

tingo@kg-bsbox:~$ lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    |__ Port 1: Dev 81, If 0, Class=Hub, Driver=hub/4p, 480M
    |__ Port 2: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 2: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 4: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 4: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M

yes, that looks much better. What if I plug the slow hub into the Belkin hub?

tingo@kg-bsbox:~$ lsusb -d 05e3:0608
Bus 001 Device 081: ID 05e3:0608 Genesys Logic, Inc. Hub
tingo@kg-bsbox:~$ lsusb -d 0e8f:0016
Bus 001 Device 084: ID 0e8f:0016 GreenAsia Inc. 4 port USB 1.1 hub UH-174
Bus 001 Device 083: ID 0e8f:0016 GreenAsia Inc. 4 port USB 1.1 hub UH-174
Bus 001 Device 082: ID 0e8f:0016 GreenAsia Inc. 4 port USB 1.1 hub UH-174

lsusb -t

tingo@kg-bsbox:~$ lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    |__ Port 1: Dev 81, If 0, Class=Hub, Driver=hub/4p, 480M
        |__ Port 1: Dev 82, If 0, Class=Hub, Driver=hub/4p, 12M
            |__ Port 2: Dev 83, If 0, Class=Hub, Driver=hub/4p, 12M
            |__ Port 3: Dev 84, If 0, Class=Hub, Driver=hub/4p, 12M
    |__ Port 2: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 2: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 4: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 4: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M

ok, so it will work too.

2018-11-30: sdb5 - the usb hub I'm using isn't optimal.

tingo@kg-bsbox:~$ lsusb -d 0e8f:0016
Bus 001 Device 031: ID 0e8f:0016 GreenAsia Inc. 4 port USB 1.1 hub UH-174
Bus 001 Device 058: ID 0e8f:0016 GreenAsia Inc. 4 port USB 1.1 hub UH-174
Bus 001 Device 014: ID 0e8f:0016 GreenAsia Inc. 4 port USB 1.1 hub UH-174
lsusb -t shows
tingo@kg-bsbox:~$ lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 10000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M
    |__ Port 1: Dev 14, If 0, Class=Hub, Driver=hub/4p, 12M
        |__ Port 3: Dev 31, If 0, Class=Hub, Driver=hub/4p, 12M
        |__ Port 2: Dev 58, If 0, Class=Hub, Driver=hub/4p, 12M
            |__ Port 3: Dev 61, If 1, Class=Human Interface Device, Driver=usbhid, 12M
            |__ Port 3: Dev 61, If 0, Class=Mass Storage, Driver=usb-storage, 12M
    |__ Port 2: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 2: Dev 2, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 3: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 4: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M
    |__ Port 4: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M

I should look for a replacement.

2018-11-21: sdb5 - and FlatCAM can be launched like this

tingo@kg-bsbox:~$ python ~/progs/FlatCAM-8.5/FlatCAM.py

good.

2018-11-21: sdb5 - Python - install Python prereqs for FlatCAM:

tingo@kg-bsbox:~$ sudo easy_install -U distribute
Searching for distribute
Reading https://pypi.python.org/simple/distribute/
Downloading https://files.pythonhosted.org/packages/5f/ad/1fde06877a8d7d5c9b60eff7de2d452f639916ae1d48f0b8f97bf97e570a/distribute-0.7.3.zip#sha256=3dc7a8d059dcf72f0ead2fa2144a24ee0ef07dce816e8c3545d7345767138c5e
Best match: distribute 0.7.3
Processing distribute-0.7.3.zip
Writing /tmp/easy_install-w6iWkS/distribute-0.7.3/setup.cfg
Running distribute-0.7.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-w6iWkS/distribute-0.7.3/egg-dist-tmp-lEUtJl
warning: install_lib: 'build/lib.linux-x86_64-2.7' does not exist -- no Python modules to install

Moving distribute-0.7.3-py2.7.egg to /usr/local/lib/python2.7/dist-packages
Adding distribute 0.7.3 to easy-install.pth file

Installed /usr/local/lib/python2.7/dist-packages/distribute-0.7.3-py2.7.egg
Processing dependencies for distribute
Finished processing dependencies for distribute

and

tingo@kg-bsbox:~$ sudo pip install --upgrade matplotlib
Collecting matplotlib
  Downloading https://files.pythonhosted.org/packages/59/08/04933377dc4500e3698e93f9113dc3624874e0914f4c85767ecb5b389084/matplotlib-2.2.3-cp27-cp27mu-manylinux1_x86_64.whl (12.6MB)
    100% |████████████████████████████████| 12.6MB 90kB/s
Collecting numpy>=1.7.1 (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/de/37/fe7db552f4507f379d81dcb78e58e05030a8941757b1f664517d581b5553/numpy-1.15.4-cp27-cp27mu-manylinux1_x86_64.whl (13.8MB)
    100% |████████████████████████████████| 13.8MB 79kB/s
Requirement already up-to-date: cycler>=0.10 in /usr/lib/python2.7/dist-packages (from matplotlib)
Collecting kiwisolver>=1.0.1 (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/3a/62/a8c9bef3059d55ab38e41fe9cba4fad773bfc04e47290bab84db1c18262e/kiwisolver-1.0.1-cp27-cp27mu-manylinux1_x86_64.whl (951kB)
    100% |████████████████████████████████| 952kB 812kB/s
Collecting python-dateutil>=2.1 (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/74/68/d87d9b36af36f44254a8d512cbfc48369103a3b9e474be9bdfe536abfc45/python_dateutil-2.7.5-py2.py3-none-any.whl (225kB)
    100% |████████████████████████████████| 235kB 1.5MB/s
Collecting six>=1.10 (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting pytz (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/f8/0e/2365ddc010afb3d79147f1dd544e5ee24bf4ece58ab99b16fbb465ce6dc0/pytz-2018.7-py2.py3-none-any.whl (506kB)
    100% |████████████████████████████████| 512kB 1.1MB/s
Collecting subprocess32 (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/be/2b/beeba583e9877e64db10b52a96915afc0feabf7144dcbf2a0d0ea68bf73d/subprocess32-3.5.3.tar.gz (96kB)
    100% |████████████████████████████████| 102kB 1.7MB/s
Collecting backports.functools-lru-cache (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/03/8e/2424c0e65c4a066e28f539364deee49b6451f8fcd4f718fefa50cc3dcf48/backports.functools_lru_cache-1.5-py2.py3-none-any.whl
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 (from matplotlib)
  Downloading https://files.pythonhosted.org/packages/71/e8/6777f6624681c8b9701a8a0a5654f3eb56919a01a78e12bf3c73f5a3c714/pyparsing-2.3.0-py2.py3-none-any.whl (59kB)
    100% |████████████████████████████████| 61kB 2.0MB/s
Collecting setuptools (from kiwisolver>=1.0.1->matplotlib)
  Downloading https://files.pythonhosted.org/packages/e7/16/da8cb8046149d50940c6110310983abb359bbb8cbc3539e6bef95c29428a/setuptools-40.6.2-py2.py3-none-any.whl (573kB)
    100% |████████████████████████████████| 573kB 1.1MB/s
Building wheels for collected packages: subprocess32
  Running setup.py bdist_wheel for subprocess32 ... done
  Stored in directory: /root/.cache/pip/wheels/c0/08/48/bb468e57d688ea6fa40a450d88d7d9f5fb3c955510077da743
Successfully built subprocess32
Installing collected packages: numpy, setuptools, kiwisolver, six, python-dateutil, pytz, subprocess32, backports.functools-lru-cache, pyparsing, matplotlib
  Found existing installation: numpy 1.12.1
    Not uninstalling numpy at /usr/lib/python2.7/dist-packages, outside environment /usr
  Found existing installation: setuptools 33.1.1
    Not uninstalling setuptools at /usr/lib/python2.7/dist-packages, outside environment /usr
  Found existing installation: six 1.10.0
    Not uninstalling six at /usr/lib/python2.7/dist-packages, outside environment /usr
  Found existing installation: python-dateutil 2.5.3
    Not uninstalling python-dateutil at /usr/lib/python2.7/dist-packages, outside environment /usr
  Found existing installation: pytz 2016.7
    Not uninstalling pytz at /usr/lib/python2.7/dist-packages, outside environment /usr
  Found existing installation: subprocess32 3.2.7
    Not uninstalling subprocess32 at /usr/lib/python2.7/dist-packages, outside environment /usr
  Found existing installation: pyparsing 2.1.10
    Not uninstalling pyparsing at /usr/lib/python2.7/dist-packages, outside environment /usr
  Found existing installation: matplotlib 2.0.0
    Not uninstalling matplotlib at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed backports.functools-lru-cache-1.5 kiwisolver-1.0.1 matplotlib-2.2.3 numpy-1.15.4 pyparsing-2.3.0 python-dateutil-2.7.5 pytz-2018.7 setuptools-40.6.2 six-1.11.0 subprocess32-3.5.3

and

tingo@kg-bsbox:~$ sudo pip install --upgrade Shapely
Collecting Shapely
  Downloading https://files.pythonhosted.org/packages/81/d1/b8e1b089a8ddd6df74be583d70373eac55c725c6197c115efbd3c3e1509f/Shapely-1.6.4.post2-cp27-cp27mu-manylinux1_x86_64.whl (1.4MB)
    100% |████████████████████████████████| 1.4MB 552kB/s
Installing collected packages: Shapely
  Found existing installation: Shapely 1.5.17
    Not uninstalling shapely at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed Shapely-1.6.4.post2

and

tingo@kg-bsbox:~$ sudo pip install rtree
Collecting rtree
  Downloading https://files.pythonhosted.org/packages/c9/d6/0d019787b724b15532be415e0c9782f7a869ebd5586f09535a67b2f12b9b/Rtree-0.8.3-py2-none-any.whl
Requirement already satisfied: setuptools in /usr/local/lib/python2.7/dist-packages (from rtree)
Installing collected packages: rtree
Successfully installed rtree-0.8.3
tingo@kg-bsbox:~$ sudo pip install svg.path
Collecting svg.path
  Downloading https://files.pythonhosted.org/packages/50/2f/618c5b6804e6dda90f024f0bc2d14ffc3db00221a818ee35da478427015d/svg.path-3.0-py2.py3-none-any.whl
Requirement already satisfied: setuptools in /usr/local/lib/python2.7/dist-packages (from svg.path)
Installing collected packages: svg.path
Successfully installed svg.path-3.0

ok.

2018-11-21: sdb5 - apt - install prereqs for FlatCAM:

tingo@kg-bsbox:~$ sudo apt install libpng-dev libfreetype6 libfreetype6-dev python-dev python-simplejson python-qt4 python-numpy python-scipy python-matplotlib libgeos-dev python-shapely
Reading package lists... Done
Building dependency tree      
Reading state information... Done
libfreetype6 is already the newest version (2.6.3-3.2).
libfreetype6 set to manually installed.
python-numpy is already the newest version (1:1.12.1-3).
python-numpy set to manually installed.
python-simplejson is already the newest version (3.10.0-1).
python-simplejson set to manually installed.
The following additional packages will be installed:
  fonts-lyx g++ g++-6 libexpat1-dev libgeos-3.5.1 libgeos-c1v5 libglade2-0 libjs-jquery-ui libpng-tools
  libpython-dev libpython2.7-dev libqt4-declarative libqt4-scripttools libqt4-test libqtassistantclient4
  libstdc++-6-dev python-cycler python-functools32 python-glade2 python-imaging python-matplotlib-data python-pil
  python-pyparsing python-sip python-subprocess32 python-tz python2.7-dev ttf-bitstream-vera zlib1g-dev
[..]
Setting up libfreetype6-dev (2.6.3-3.2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...

and

tingo@kg-bsbox:~$ sudo apt install python-pip
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  build-essential dpkg-dev libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl
  libfile-fcntllock-perl libpython-all-dev python-all python-all-dev python-keyring python-keyrings.alt
  python-pip-whl python-secretstorage python-setuptools python-wheel python-xdg
Suggested packages:
  debian-keyring libkf5wallet-bin python-fs python-gdata python-kde4 python-keyczar python-secretstorage-doc
  python-setuptools-doc
The following NEW packages will be installed:
  build-essential dpkg-dev libalgorithm-diff-perl libalgorithm-diff-xs-perl libalgorithm-merge-perl libdpkg-perl
  libfile-fcntllock-perl libpython-all-dev python-all python-all-dev python-keyring python-keyrings.alt python-pip
  python-pip-whl python-secretstorage python-setuptools python-wheel python-xdg
[..]
Setting up libalgorithm-diff-xs-perl (0.04-4+b2) ...
Setting up python-all-dev (2.7.13-2) ...

and

tingo@kg-bsbox:~$ sudo apt install libspatialindex-dev
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  libspatialindex-c4v5 libspatialindex4v5 pkg-config
The following NEW packages will be installed:
  libspatialindex-c4v5 libspatialindex-dev libspatialindex4v5 pkg-config
[..]
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libspatialindex-dev:amd64 (1.8.5-4) ...

ok

2018-11-21: sdb5 - apt - install OpenSCAD

tingo@kg-bsbox:~$ sudo apt install openscad
[..]
Setting up openscad (2015.03-2+dfsg-2) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...

ok.

2018-11-20: sdb5 - apt - install openssh-server

tingo@kg-bsbox:~$ sudo apt install openssh-server
[..]
Created symlink /etc/systemd/system/sshd.service  /lib/systemd/system/ssh.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ssh.service  /lib/systemd/system/ssh.service.
Processing triggers for systemd (232-25+deb9u4) ...

is it running?

tingo@kg-bsbox:~$ systemctl status ssh
 ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2018-11-20 11:24:33 CET; 1min 21s ago
 Main PID: 29796 (sshd)
   CGroup: /system.slice/ssh.service
           └─29796 /usr/sbin/sshd -D

Nov 20 11:24:33 kg-bsbox systemd[1]: Starting OpenBSD Secure Shell server...
Nov 20 11:24:33 kg-bsbox sshd[29796]: Server listening on 0.0.0.0 port 22.
Nov 20 11:24:33 kg-bsbox sshd[29796]: Server listening on :: port 22.
Nov 20 11:24:33 kg-bsbox systemd[1]: Started OpenBSD Secure Shell server.

Yes.

2018-11-13: sdb5 - apt - install screen

tingo@kg-bsbox:~$ sudo apt install screen
[..]
Setting up screen (4.5.0-6) ...
Processing triggers for systemd (232-25+deb9u4) ...

ok

2018-11-13: sdb5 - apt - install printrun, to get pronterface and other nice things

tingo@kg-bsbox:~$ sudo apt install printrun
[..]
he following NEW packages will be installed:
  printrun python-cairocffi python-cairosvg python-cffi python-gobject python-ply python-psutil python-pycparser
  python-pyglet python-serial
[..]
Need to get 1,828 kB of archives.
After this operation, 8,222 kB of additional disk space will be used.
[..]
Setting up printrun (0~20150310-5) ...

ok.

2018-11-12: sdb5 - apt - install task-print-server (for some reason, cupsd is missing on this machine)

tingo@kg-bsbox:~$ sudo apt install task-print-server
[..]
The following additional packages will be installed:
  bc colord colord-data cups cups-browsed cups-bsd cups-core-drivers cups-daemon cups-filters
  cups-filters-core-drivers cups-ppdc cups-server-common dc foomatic-db-compressed-ppds foomatic-db-engine hp-ppd
  hplip hplip-data libart-2.0-2 libcolorhug2 libcupscgi1 libcupsmime1 libcupsppdc1 libfontembed1 libgusb2
  libgutenprint2 libhpmud0 liblcms2-utils liblouisutdml-bin liblouisutdml-data liblouisutdml7 libqpdf17
  libsane-hpaio libsnmp-base libsnmp30 mscompress openprinting-ppds poppler-utils printer-driver-all
  printer-driver-brlaser printer-driver-c2050 printer-driver-c2esp printer-driver-cjet printer-driver-dymo
  printer-driver-escpr printer-driver-foo2zjs printer-driver-foo2zjs-common printer-driver-fujixerox
  printer-driver-gutenprint printer-driver-hpcups printer-driver-hpijs printer-driver-m2300w
  printer-driver-min12xxw printer-driver-pnm2ppa printer-driver-postscript-hp printer-driver-ptouch
  printer-driver-pxljr printer-driver-sag-gdi printer-driver-splix python3-pexpect python3-pil python3-ptyprocess
  python3-renderpm python3-reportlab python3-reportlab-accel qpdf ssl-cert tk tk8.6
Suggested packages:
  colord-sensor-argyll cups-pdf smbclient antiword docx2txt hplip-cups foomatic-db-gutenprint netcat
  linuxprinting.org-ppds hplip-doc hplip-gui python3-notify2 gutenprint-locales ooo2dbk rtf2xml
  snmp-mibs-downloader hpijs-ppds psutils hannah-foo2zjs gutenprint-doc magicfilter | apsfilter python-pexpect-doc
  python-pil-doc python3-pil-dbg python3-renderpm-dbg python3-egenix-mxtexttools python-reportlab-doc
  openssl-blacklist
The following NEW packages will be installed:
  bc colord colord-data cups cups-browsed cups-bsd cups-core-drivers cups-daemon cups-filters
  cups-filters-core-drivers cups-ppdc cups-server-common dc foomatic-db-compressed-ppds foomatic-db-engine hp-ppd
  hplip hplip-data libart-2.0-2 libcolorhug2 libcupscgi1 libcupsmime1 libcupsppdc1 libfontembed1 libgusb2
  libgutenprint2 libhpmud0 liblcms2-utils liblouisutdml-bin liblouisutdml-data liblouisutdml7 libqpdf17
  libsane-hpaio libsnmp-base libsnmp30 mscompress openprinting-ppds poppler-utils printer-driver-all
  printer-driver-brlaser printer-driver-c2050 printer-driver-c2esp printer-driver-cjet printer-driver-dymo
  printer-driver-escpr printer-driver-foo2zjs printer-driver-foo2zjs-common printer-driver-fujixerox
  printer-driver-gutenprint printer-driver-hpcups printer-driver-hpijs printer-driver-m2300w
  printer-driver-min12xxw printer-driver-pnm2ppa printer-driver-postscript-hp printer-driver-ptouch
  printer-driver-pxljr printer-driver-sag-gdi printer-driver-splix python3-pexpect python3-pil python3-ptyprocess
  python3-renderpm python3-reportlab python3-reportlab-accel qpdf ssl-cert task-print-server tk tk8.6
0 upgraded, 70 newly installed, 0 to remove and 0 not upgraded.
Need to get 27.5 MB of archives.
After this operation, 68.9 MB of additional disk space will be used.
[..]
Setting up printer-driver-postscript-hp (3.16.11+repack0-3) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Processing triggers for systemd (232-25+deb9u4) ...
Processing triggers for dbus (1.10.26-0+deb9u1) ...

is CUPSD running now?

tingo@kg-bsbox:~$ systemctl status cups
 cups.service - CUPS Scheduler
   Loaded: loaded (/lib/systemd/system/cups.service; enabled; vendor preset: enabled)
   Active: active (running) since Mon 2018-11-12 14:30:27 CET; 2min 4s ago
     Docs: man:cupsd(8)
 Main PID: 6902 (cupsd)
   CGroup: /system.slice/cups.service
           └─6902 /usr/sbin/cupsd -l

Nov 12 14:30:27 kg-bsbox systemd[1]: Started CUPS Scheduler.

yes, good.

2018-11-08: sdb5 - apt - install ansible

tingo@kg-bsbox:~$ sudo apt -t stretch-backports install ansible
[..]
Setting up ansible (2.6.3+dfsg-1~bpo9+1) ...

ok.

2018-11-08: sdb5 - apt - install inkscape

tingo@kg-bsbox:~$ sudo apt install inkscape
[..]
Setting up inkscape (0.92.1-1) ...
Setting up libimage-magick-perl (8:6.9.7.4+dfsg-11+deb9u6) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...

install freecad

tingo@kg-bsbox:~$ sudo apt search ^freecad
Sorting... Done
Full Text Search... Done
freecad/stable,stable 0.16+dfsg2-3 amd64
  Extensible Open Source CAx program (alpha)

hmm, only 0.16. Luckily FreeCAD had an AppImage of 0.17 in the Github repository, and that one runs. Good.

OpenSCAD - only 2015.03-2 in packages, but 2015.03-3 as AppImage, and it works.

2018-11-08: sdb5 - apt - to get Quartus II (64-bit) working I had to install libpng12, but this package doesn't exist fro stretch, so I had to download and install the package for jessie

tingo@kg-bsbox:/zs/tingo/dl/linux/debian$ sudo apt install ./libpng12-0_1.2.50-2+deb8u3_amd64.deb
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting 'libpng12-0' instead of './libpng12-0_1.2.50-2+deb8u3_amd64.deb'
The following NEW packages will be installed:
  libpng12-0
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/173 kB of archives.
After this operation, 273 kB of additional disk space will be used.
Get:1 /zs/tingo/dl/linux/debian/libpng12-0_1.2.50-2+deb8u3_amd64.deb libpng12-0 amd64 1.2.50-2+deb8u3 [173 kB]
Selecting previously unselected package libpng12-0:amd64.
(Reading database ... 161133 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.50-2+deb8u3_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.50-2+deb8u3) ...
Setting up libpng12-0:amd64 (1.2.50-2+deb8u3) ...

ok

2018-11-08: sdb5 - lightdm - I tried fixing the lightdm monitor orientation problem by doing this:

tingo@kg-bsbox:~$ ls -l ~/.config/mon*
lrwxrwxrwx 1 tingo tingo 47 Nov  8 14:52 /home/tingo/.config/monitors.xml -> ./xfce4/xfconf/xfce-perchannel-xml/displays.xml

and

tingo@kg-bsbox:~$ sudo ls -l /var/lib/lightdm/.config
total 0
lrwxrwxrwx 1 lightdm lightdm 32 Nov  8 15:04 monitors.xml -> /home/tingo/.config/monitors.xml

but it didn't work. Perhaps lightdm doesn't read that confog file at all.

2018-11-08: sdb5 - Xorg - there is also dm-tool

tingo@kg-bsbox:~$ dm-tool --help
Usage:
  dm-tool [OPTION...] COMMAND [ARGS...] - Display Manager tool

Options:
  -h, --help        Show help options
  -v, --version     Show release version
  --session-bus     Use session D-Bus

Commands:
  switch-to-greeter                                    Switch to the greeter
  switch-to-user USERNAME [SESSION]                    Switch to a user session
  switch-to-guest [SESSION]                            Switch to a guest session
  lock                                                 Lock the current seat
  list-seats                                           List the active seats
  add-nested-seat [--fullscreen|--screen DIMENSIONS]   Start a nested display
  add-local-x-seat DISPLAY_NUMBER                      Add a local X seat
  add-seat TYPE [NAME=VALUE...]                        Add a dynamic seat
tingo@kg-bsbox:~$ dm-tool --version
lightdm 1.18.3
tingo@kg-bsbox:~$ dm-tool list-seats
Seat0
  CanSwitch=true
  HasGuestAccount=false
  Session3
    UserName='tingo'

interesting.

2018-11-08: sdb5 - Xorg - this XML file describes the monitors connected

tingo@kg-bsbox:~$ more ~/.config/xfce4/xfconf/xfce-perchannel-xml/displays.xml
<?xml version="1.0" encoding="UTF-8"?>

<channel name="displays" version="1.0">
  <property name="Default" type="empty">
    <property name="HDMI-1" type="string" value="1. Dell 24&quot;">
      <property name="Active" type="bool" value="true"/>
      <property name="Resolution" type="string" value="1920x1200"/>
      <property name="RefreshRate" type="double" value="59.950171"/>
      <property name="Rotation" type="int" value="90"/>
      <property name="Reflection" type="string" value="0"/>
      <property name="Primary" type="bool" value="true"/>
      <property name="Position" type="empty">
        <property name="X" type="int" value="0"/>
        <property name="Y" type="int" value="0"/>
      </property>
    </property>
    <property name="DP-1" type="string" value="2. Dell 24&quot;">
      <property name="Active" type="bool" value="true"/>
      <property name="Resolution" type="string" value="1920x1200"/>
      <property name="RefreshRate" type="double" value="59.950171"/>
      <property name="Rotation" type="int" value="90"/>
      <property name="Reflection" type="string" value="0"/>
      <property name="Primary" type="bool" value="false"/>
      <property name="Position" type="empty">
        <property name="X" type="int" value="1200"/>
        <property name="Y" type="int" value="0"/>
      </property>
    </property>
  </property>
</channel>

not sure if lightdm can use that.

2018-11-08: sdb5 - Xorg - check which dm (display manager) Debian with Xfce uses

tingo@kg-bsbox:~$ ps ax | grep -v "\[" | grep [d]m
  683 ?        SLsl   0:00 /usr/sbin/lightdm
 7085 tty7     Ssl+  32:16 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
 7143 ?        Sl     0:00 lightdm --session-child 14 23

ok, so lightdm it is. lightdm config in /etc/lightdm

tingo@kg-bsbox:~$ ls /etc/lightdm
keys.conf  lightdm.conf  lightdm-gtk-greeter.conf  users.conf

and data in /var/lib/lightdm

tingo@kg-bsbox:~$ sudo ls -F /var/lib/lightdm
data/
tingo@kg-bsbox:~$ sudo ls -F /var/lib/lightdm/data
lightdm/  tingo/
tingo@kg-bsbox:~$ sudo ls -F /var/lib/lightdm/data/lightdm/
tingo@kg-bsbox:~$ sudo ls -F /var/lib/lightdm/data/tingo/

well, not so much data.

2018-11-07: sdb5 - mount the storage drive from my laptop so I can copy over files

tingo@kg-bsbox:~$ df -h /zs ~/mpoint
Filesystem              Size  Used Avail Use% Mounted on
/dev/sda1               917G   72M  871G   1% /zs
tingo@10.13.37.19:/zs/  917G  244G  627G  29% /home/tingo/mpoint

ok. Make a directory in /zs for all my stuff

tingo@kg-bsbox:~$ sudo mkdir /zs/tingo

fix ownership and group

tingo@kg-bsbox:~$ sudo chown tingo:bsdusers /zs/tingo

allow group to write to it

tingo@kg-bsbox:~$ sudo chmod g+w /zs/tingo

verify

tingo@kg-bsbox:~$ ll /zs
total 28
drwxr-xr-x  4 root  root      4096 Nov  7 16:02 ./
drwxr-xr-x 23 root  root      4096 Nov  7 15:22 ../
drwx------  2 root  root     16384 Nov  7 15:06 lost+found/
drwxrwxr-x  2 tingo bsdusers  4096 Nov  7 16:02 tingo/

good.

2018-11-07: sdb5 - apt - install sshfs

tingo@kg-bsbox:~$ sudo apt install sshfs
[..]
Setting up sshfs (2.8-1) ...

ok.

2018-11-07: sdb5 - groups - add a bsdusers group (compatibility with FreeBSD)

tingo@kg-bsbox:~$ sudo groupadd bsdusers
tingo@kg-bsbox:~$ grep bsdusers /etc/group
bsdusers:x:1001:

yes, gid 1001 is what is required.

Currently my users is a member of these groups

tingo@kg-bsbox:~$ id tingo
uid=1000(tingo) gid=1000(tingo) groups=1000(tingo),4(adm),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),108(netdev),114(bluetooth),115(lpadmin),119(scanner)

so dialout, bsdusers are missing, add them

tingo@kg-bsbox:~$ sudo usermod -a -G bsdusers,dialout tingo

verify

tingo@kg-bsbox:~$ id tingo
uid=1000(tingo) gid=1000(tingo) groups=1000(tingo),4(adm),20(dialout),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),108(netdev),114(bluetooth),115(lpadmin),119(scanner),1001(bsdusers)

good

2018-11-07: sdb5 - apt - install ntp

tingo@kg-bsbox:~$ sudo apt install ntp
[..]
Setting up ntp (1:4.2.8p10+dfsg-3+deb9u2) ...
[..]
Processing triggers for systemd (232-25+deb9u4) ...

check if it is running

tingo@kg-bsbox:~$ systemctl status ntp
 ntp.service - LSB: Start NTP daemon
   Loaded: loaded (/etc/init.d/ntp; generated; vendor preset: enabled)
   Active: active (running) since Wed 2018-11-07 15:15:25 CET; 1min 41s ago
     Docs: man:systemd-sysv-generator(8)
   CGroup: /system.slice/ntp.service
           └─5539 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 116:122

Nov 07 15:15:29 kg-bsbox ntpd[5539]: Soliciting pool server 95.215.175.2
Nov 07 15:15:29 kg-bsbox ntpd[5539]: Soliciting pool server 139.112.153.38
Nov 07 15:15:30 kg-bsbox ntpd[5539]: Soliciting pool server 193.107.29.216
Nov 07 15:15:30 kg-bsbox ntpd[5539]: Soliciting pool server 2607:f740:b::764
Nov 07 15:15:30 kg-bsbox ntpd[5539]: Soliciting pool server 88.91.39.130
Nov 07 15:15:31 kg-bsbox ntpd[5539]: Soliciting pool server 81.166.75.50
Nov 07 15:15:31 kg-bsbox ntpd[5539]: Soliciting pool server 2a00:d5c0:10:10::100
Nov 07 15:15:32 kg-bsbox ntpd[5539]: Soliciting pool server 51.174.102.22
Nov 07 15:15:32 kg-bsbox ntpd[5539]: Soliciting pool server 193.150.22.36
Nov 07 15:15:33 kg-bsbox ntpd[5539]: Soliciting pool server 192.36.143.130

good

2018-11-07: sdb5 - I use gparted to create a gpt partition on sda, like so

tingo@kg-bsbox:~$ sudo parted /dev/sda print
Model: ATA CT1000MX500SSD1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start  End  Size  File system  Name  Flags

then I create an ext2 partion on it. Afterwards, it looks like this

tingo@kg-bsbox:~$ sudo parted /dev/sda print
Model: ATA CT1000MX500SSD1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name  Flags
 1      1049kB  1000GB  1000GB  ext2

ok. Make a mount point for it:

tingo@kg-bsbox:~$ sudo mkdir /zs

and mount it (manually)

tingo@kg-bsbox:~$ sudo mount /dev/sda1 /zs

free space

tingo@kg-bsbox:~$ df -h /zs
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       917G   72M  871G   1% /zs

next, fix /etc/fstab. The relevant parts look like this

tingo@kg-bsbox:~$ egrep "file|zs" /etc/fstab
# /etc/fstab: static file system information.
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/sda1    /zs    ext2    rw    0    0

ok, it is only the last line that is relevant, the others are just information.

2018-11-07: sdb5 - apt - install gparted

tingo@kg-bsbox:~$ sudo apt install gparted
[..]
Setting up gparted (0.25.0-1+b1) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
ok
2018-11-07: sdb5 - apt - install Chromium
tingo@kg-bsbox:~$ sudo apt install chromium
[..]
Need to get 48.9 MB of archives.
After this operation, 169 MB of additional disk space will be used.
[..]
Setting up chromium (70.0.3538.67-1~deb9u1) ...
[..]
Processing triggers for libc-bin (2.24-11+deb9u3) ...

ok.

2018-11-07: sdb5 -Xorg - xrandr output, two Dell monitors connected, and turned to portrait mode

tingo@kg-bsbox:~$ xrandr
Screen 0: minimum 320 x 200, current 2400 x 1920, maximum 8192 x 8192
HDMI-1 connected primary 1200x1920+0+0 left (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200     59.95*+
   1920x1080     60.00    50.00    59.94    24.00    23.98 
   1920x1080i    60.00    50.00    59.94 
   1600x1200     60.00 
   1280x1024     75.02    60.02 
   1152x864      75.00 
   1280x720      60.00    50.00    59.94 
   1024x768      75.03    60.00 
   800x600       75.00    60.32 
   720x576       50.00 
   720x576i      50.00 
   720x480       60.00    59.94 
   720x480i      60.00    59.94 
   640x480       75.00    60.00    59.94 
   720x400       70.08 
DP-1 connected 1200x1920+1200+0 left (normal left inverted right x axis y axis) 518mm x 324mm
   1920x1200     59.95*+
   1920x1080     60.00    50.00    59.94    24.00    23.98 
   1920x1080i    60.00    50.00    59.94 
   1600x1200     60.00 
   1280x1024     75.02    60.02 
   1152x864      75.00 
   1280x720      60.00    50.00    59.94 
   1024x768      75.03    60.00 
   800x600       75.00    60.32 
   720x576       50.00 
   720x480       60.00    59.94 
   640x480       75.00    60.00    59.94 
   720x400       70.08 

ok

2018-11-04: sdb5 - iwlwifi - with the new firmware the interface works

tingo@kg-bsbox:~$ grep iwlwifi /var/log/messages
Nov  4 19:01:52 kg-bsbox kernel: [    2.421976] iwlwifi 0000:03:00.0: enabling device (0000 -> 0002)
Nov  4 19:01:52 kg-bsbox kernel: [    2.433841] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-3160-17.ucode failed with error -2
Nov  4 19:51:33 kg-bsbox kernel: [    2.805585] iwlwifi 0000:03:00.0: enabling device (0000 -> 0002)
Nov  4 19:51:33 kg-bsbox kernel: [    2.812680] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-3160-17.ucode failed with error -2
Nov  4 20:39:24 kg-bsbox kernel: [    2.693734] iwlwifi 0000:03:00.0: enabling device (0000 -> 0002)
Nov  4 20:39:24 kg-bsbox kernel: [    2.707528] iwlwifi 0000:03:00.0: firmware: direct-loading firmware iwlwifi-3160-17.ucode
Nov  4 20:39:24 kg-bsbox kernel: [    2.707753] iwlwifi 0000:03:00.0: loaded firmware version 17.352738.0 op_mode iwlmvm
Nov  4 20:39:24 kg-bsbox kernel: [    2.755834] iwlwifi 0000:03:00.0: Detected Intel(R) Dual Band Wireless AC 3160, REV=0x164
Nov  4 20:39:24 kg-bsbox kernel: [    2.786436] iwlwifi 0000:03:00.0: base HW address: b4:6d:83:a4:5f:f1
Nov  4 20:39:24 kg-bsbox kernel: [    2.907106] iwlwifi 0000:03:00.0 wlp3s0: renamed from wlan0
Nov  4 20:39:24 kg-bsbox NetworkManager[528]: <info>  [1541360364.9933] rfkill0: found WiFi radio killswitch (at /sys/devices/pci0000:00/0000:00:1c.4/0000:03:00.0/ieee80211/phy0/rfkill0) (driver iwlwifi)

good.

2018-11-04: sdb5 - apt - install firmware-misc-nonfree

tingo@kg-bsbox:~$ sudo apt install firmware-misc-nonfree
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following NEW packages will be installed:
  firmware-misc-nonfree
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 2,321 kB of archives.
After this operation, 8,154 kB of additional disk space will be used.
Get:1 http://ftp.no.debian.org/debian stretch/non-free amd64 firmware-misc-nonfree all 20161130-3 [2,321 kB]
Fetched 2,321 kB in 0s (9,907 kB/s)            
Selecting previously unselected package firmware-misc-nonfree.
(Reading database ... 160552 files and directories currently installed.)
Preparing to unpack .../firmware-misc-nonfree_20161130-3_all.deb ...
Unpacking firmware-misc-nonfree (20161130-3) ...
Setting up firmware-misc-nonfree (20161130-3) ...
update-initramfs: deferring update (trigger activated)
Processing triggers for initramfs-tools (0.130) ...
update-initramfs: Generating /boot/initrd.img-4.18.0-0.bpo.1-amd64

ok

2018-11-04: sdb5 - apt - install firmware-iwlwifi

tingo@kg-bsbox:~$ sudo apt install firmware-iwlwifi
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.9.0-4-amd64 linux-headers-4.9.0-4-common
Use 'sudo apt autoremove' to remove them.
The following NEW packages will be installed:
  firmware-iwlwifi
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,524 kB of archives.
After this operation, 46.7 MB of additional disk space will be used.
Get:1 http://gemmei.ftp.acc.umu.se/debian stretch/non-free amd64 firmware-iwlwifi all 20161130-3 [5,524 kB]
Fetched 5,524 kB in 0s (13.2 MB/s)        
Selecting previously unselected package firmware-iwlwifi.
(Reading database ... 176260 files and directories currently installed.)
Preparing to unpack .../firmware-iwlwifi_20161130-3_all.deb ...
Unpacking firmware-iwlwifi (20161130-3) ...
Setting up firmware-iwlwifi (20161130-3) ...

then run apt autoremove

tingo@kg-bsbox:~$ sudo apt autoremove
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages will be REMOVED:
  linux-headers-4.9.0-4-amd64 linux-headers-4.9.0-4-common
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 49.6 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 176326 files and directories currently installed.)
Removing linux-headers-4.9.0-4-amd64 (4.9.65-3+deb9u1) ...
Removing linux-headers-4.9.0-4-common (4.9.65-3+deb9u1) ...

ok

2018-11-04: sdb5 - apt - install a newer kernel from stretch-backports

tingo@kg-bsbox:~$ sudo apt -t stretch-backports install linux-image-4.18.0-0.bpo.1-amd64
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following additional packages will be installed:
  apparmor libapparmor-perl
Suggested packages:
  apparmor-profiles apparmor-profiles-extra apparmor-utils linux-doc-4.18 debian-kernel-handbook
The following NEW packages will be installed:
  apparmor libapparmor-perl linux-image-4.18.0-0.bpo.1-amd64
0 upgraded, 3 newly installed, 0 to remove and 223 not upgraded.
Need to get 46.0 MB of archives.
After this operation, 259 MB of additional disk space will be used.
[..]
Setting up linux-image-4.18.0-0.bpo.1-amd64 (4.18.6-1~bpo9+1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-4.9.0-8-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-4.9.0-8-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-4.18.0-0.bpo.1-amd64
I: /initrd.img is now a symlink to boot/initrd.img-4.18.0-0.bpo.1-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-4.18.0-0.bpo.1-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-4.18.0-0.bpo.1-amd64
Found initrd image: /boot/initrd.img-4.18.0-0.bpo.1-amd64
Found linux image: /boot/vmlinuz-4.9.0-8-amd64
Found initrd image: /boot/initrd.img-4.9.0-8-amd64
Found linux image: /boot/vmlinuz-4.9.0-4-amd64
Found initrd image: /boot/initrd.img-4.9.0-4-amd64
Found unknown Linux distribution on /dev/sdb8
Found Fedora 28 (Twenty Eight) on /dev/mapper/fedora_kg--bsbox-root
Adding boot menu entry for EFI firmware configuration
done
Processing triggers for systemd (232-25+deb9u4) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up libapparmor-perl (2.11.0-3+deb9u2) ...
Setting up apparmor (2.11.0-3+deb9u2) ...
Created symlink /etc/systemd/system/sysinit.target.wants/apparmor.service  /lib/systemd/system/apparmor.service.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
diff: /var/lib/apparmor/profiles/.apparmor.md5sums: No such file or directory
Processing triggers for systemd (232-25+deb9u4) ...

ok

2018-11-04: sdb5 - from /var/log/messages

Nov  4 19:01:52 kg-bsbox kernel: [    2.421976] iwlwifi 0000:03:00.0: enabling device (0000 -> 0002)
Nov  4 19:01:52 kg-bsbox kernel: [    2.433841] iwlwifi 0000:03:00.0: Direct firmware load for iwlwifi-3160-17.ucode failed with error -2
and
Nov  4 19:01:52 kg-bsbox kernel: [    2.460266] i915 0000:00:02.0: Direct firmware load for i915/kbl_dmc_ver1_01.bin failed with error -2
Nov  4 19:01:52 kg-bsbox kernel: [    2.460269] i915 0000:00:02.0: Failed to load DMC firmware [https://01.org/linuxgraphics/intel-linux-graphics-firmwares], disabling runtime power management.

perhaps I need a newer kernel. Available 4.18 kernels are

tingo@kg-bsbox:~$ sudo apt search linux-image-4.18 | more

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Sorting...
Full Text Search...
linux-headers-4.18.0-0.bpo.1-amd64/stretch-backports 4.18.6-1~bpo9+1 amd64
  Header files for Linux 4.18.0-0.bpo.1-amd64

linux-headers-4.18.0-0.bpo.1-cloud-amd64/stretch-backports 4.18.6-1~bpo9+1 amd64
  Header files for Linux 4.18.0-0.bpo.1-cloud-amd64

linux-headers-4.18.0-0.bpo.1-rt-amd64/stretch-backports 4.18.6-1~bpo9+1 amd64
  Header files for Linux 4.18.0-0.bpo.1-rt-amd64

linux-image-4.18.0-0.bpo.1-amd64/stretch-backports 4.18.6-1~bpo9+1 amd64
  Linux 4.18 for 64-bit PCs

linux-image-4.18.0-0.bpo.1-amd64-dbg/stretch-backports 4.18.6-1~bpo9+1 amd64
  Debug symbols for linux-image-4.18.0-0.bpo.1-amd64

linux-image-4.18.0-0.bpo.1-cloud-amd64/stretch-backports 4.18.6-1~bpo9+1 amd64
  Linux 4.18 for x86-64 cloud

linux-image-4.18.0-0.bpo.1-cloud-amd64-dbg/stretch-backports 4.18.6-1~bpo9+1 amd64
  Debug symbols for linux-image-4.18.0-0.bpo.1-cloud-amd64

linux-image-4.18.0-0.bpo.1-rt-amd64/stretch-backports 4.18.6-1~bpo9+1 amd64
  Linux 4.18 for 64-bit PCs, PREEMPT_RT

linux-image-4.18.0-0.bpo.1-rt-amd64-dbg/stretch-backports 4.18.6-1~bpo9+1 amd64
  Debug symbols for linux-image-4.18.0-0.bpo.1-rt-amd64

ok

2018-11-04: sdb5 - groups. It seems that my user is not in the 'adm' group

tingo@kg-bsbox:~$ id
uid=1000(tingo) gid=1000(tingo) groups=1000(tingo),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),108(netdev),114(bluetooth),115(lpadmin),119(scanner)
fix it
tingo@kg-bsbox:~$ sudo usermod -a  -G adm tingo
verify
tingo@kg-bsbox:~$ id tingo
uid=1000(tingo) gid=1000(tingo) groups=1000(tingo),4(adm),24(cdrom),25(floppy),27(sudo),29(audio),30(dip),44(video),46(plugdev),108(netdev),114(bluetooth),115(lpadmin),119(scanner)

ok

2018-11-04: sdb5 - apt - upgrade

tingo@kg-bsbox:~$ sudo apt upgrade
Reading package lists... Done
Building dependency tree      
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  firefox-esr firefox-esr-l10n-da firefox-esr-l10n-de firefox-esr-l10n-en-gb firefox-esr-l10n-en-za firefox-esr-l10n-nb-no firefox-esr-l10n-nn-no
  firefox-esr-l10n-sv-se kicad kicad-demos kicad-libraries libcurl3 libcurl3-gnutls openjdk-8-jre openjdk-8-jre-headless tzdata xserver-common xserver-xorg-core
  xserver-xorg-legacy
19 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 104 MB of archives.
After this operation, 1,970 kB of additional disk space will be used.
[..]
Processing triggers for libc-bin (2.24-11+deb9u3) ...

ok

2018-11-04: sdb5 - the devices now look like this sda

tingo@kg-bsbox:~$ sudo parted /dev/sda print
Error: /dev/sda: unrecognised disk label
Model: ATA CT1000MX500SSD1 (scsi)                                        
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: unknown
Disk Flags:
nice and unused.

sdb

tingo@kg-bsbox:~$ sudo parted /dev/sdb print
Model: ATA WDC WDS240G1G0B- (scsi)
Disk /dev/sdb: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name                  Flags
 2      1049kB  211MB   210MB   fat16           EFI System Partition  boot, esp
 3      211MB   1285MB  1074MB  ext4
 4      1285MB  53.7GB  52.4GB                                        lvm
 5      53.7GB  73.3GB  19.6GB  ext4
 6      73.3GB  107GB   34.0GB  linux-swap(v1)
 7      107GB   108GB   210MB   fat16                                 boot, esp
 8      108GB   158GB   50.3GB  freebsd-ufs
 9      158GB   161GB   2684MB
 1      161GB   240GB   79.0GB  fat32                                 msftdata

not sure why that partition 1 is there, stuck at the end.

2018-11-04: sdb5 - uefi - the uefi boot entries have been messed up, rEFInd is not there anymore:

root@kg-bsbox:~# efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0001,0002,0003,0005
Boot0001* Fedora    HD(2,GPT,f6e01cc7-8787-418c-a04c-1ad29d3a0389,0x800,0x64000)/File(\EFI\FEDORA\SHIM.EFI)..BO
Boot0002* debian    HD(2,GPT,f6e01cc7-8787-418c-a04c-1ad29d3a0389,0x800,0x64000)/File(\EFI\DEBIAN\GRUBX64.EFI)..BO
Boot0003* UEFI OS    HD(7,GPT,6c720b32-06ca-11e8-b138-dcfe07e175a1,0xc800000,0x64000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0005* Hard Drive    BBS(HD,,0x0)..GO..NO........o.C.T.1.0.0.0.M.X.5.0.0.S.S.D.1....................A...........................>..Gd-.;.A..MQ..L.8.1.4.3.1.E.D.4.E.D.2.C. . . . . . . . ........BO..NO........o.W.D.C. .W.D.S.2.4.0.G.1.G.0.B.-.0.0.R.C.3.0....................A...........................>..Gd-.;.A..MQ..L.7.1.7.3.5.0.0.8.5.1.0.1. . . . . . . . ........BO

"UEFI OS" seems to be FreeBSD. parted says

root@kg-bsbox:~# parted /dev/sdb print
Model: ATA WDC WDS240G1G0B- (scsi)
Disk /dev/sdb: 240GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system     Name                  Flags
 2      1049kB  211MB   210MB   fat16           EFI System Partition  boot, esp
 3      211MB   1285MB  1074MB  ext4
 4      1285MB  53.7GB  52.4GB                                        lvm
 5      53.7GB  73.3GB  19.6GB  ext4
 6      73.3GB  107GB   34.0GB  linux-swap(v1)
 7      107GB   108GB   210MB   fat16                                 boot, esp
 8      108GB   158GB   50.3GB  freebsd-ufs
 9      158GB   161GB   2684MB
 1      161GB   240GB   79.0GB  fat32                                 msftdata

Fixing the missing rEFInd entry.

it is in the correct directory

root@kg-bsbox:~# ls -l /boot/efi/EFI/refind
total 272
-rwx------ 1 root root    140 Jan 28  2018 BOOT.CSV
drwx------ 2 root root   4096 Jan 28  2018 drivers_x64
drwx------ 3 root root   8192 Jan 28  2018 icons
drwx------ 2 root root   4096 Jan 28  2018 keys
-rwx------ 1 root root  29637 Jan 28  2018 refind.conf
-rwx------ 1 root root 222024 Jan 28  2018 refind_x64.efi

so, try to make an entry for it

root@kg-bsbox:~# efibootmgr -c -d /dev/sdb -p 2 -L "rEFInd" -l "\EFI\refind\refind_x64.efi"
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0000,0001,0002,0003,0005
Boot0001* Fedora
Boot0002* debian
Boot0003* UEFI OS
Boot0005* Hard Drive
Boot0000* rEFInd

verify

root@kg-bsbox:~# efibootmgr -v
BootCurrent: 0002
Timeout: 1 seconds
BootOrder: 0000,0001,0002,0003,0005
Boot0000* rEFInd    HD(2,GPT,f6e01cc7-8787-418c-a04c-1ad29d3a0389,0x800,0x64000)/File(\EFI\refind\refind_x64.efi)
Boot0001* Fedora    HD(2,GPT,f6e01cc7-8787-418c-a04c-1ad29d3a0389,0x800,0x64000)/File(\EFI\FEDORA\SHIM.EFI)..BO
Boot0002* debian    HD(2,GPT,f6e01cc7-8787-418c-a04c-1ad29d3a0389,0x800,0x64000)/File(\EFI\DEBIAN\GRUBX64.EFI)..BO
Boot0003* UEFI OS    HD(7,GPT,6c720b32-06ca-11e8-b138-dcfe07e175a1,0xc800000,0x64000)/File(\EFI\BOOT\BOOTX64.EFI)..BO
Boot0005* Hard Drive    BBS(HD,,0x0)..GO..NO........o.C.T.1.0.0.0.M.X.5.0.0.S.S.D.1....................A...........................>..Gd-.;.A..MQ..L.8.1.4.3.1.E.D.4.E.D.2.C. . . . . . . . ........BO..NO........o.W.D.C. .W.D.S.2.4.0.G.1.G.0.B.-.0.0.R.C.3.0....................A...........................>..Gd-.;.A..MQ..L.7.1.7.3.5.0.0.8.5.1.0.1. . . . . . . . ........BO

looks good, even the correct bootorder. Now, try it. Yes, it worked nicely.

2018-11-04: sdb5 - after booting with the sata SSD connected, it is now sda, and the M2.SSD is now sdb. lsblk shows

root@kg-bsbox:~# lsblk
NAME                      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                         8:0    0 931.5G  0 disk
sdb                         8:16   0 223.6G  0 disk
├─sdb1                      8:17   0  73.6G  0 part
├─sdb2                      8:18   0   200M  0 part /boot/efi
├─sdb3                      8:19   0     1G  0 part
├─sdb4                      8:20   0  48.8G  0 part
 ├─fedora_kg--bsbox-swap 254:0    0     5G  0 lvm 
 └─fedora_kg--bsbox-root 254:1    0  43.8G  0 lvm 
├─sdb5                      8:21   0  18.3G  0 part /
├─sdb6                      8:22   0  31.7G  0 part [SWAP]
├─sdb7                      8:23   0   200M  0 part
├─sdb8                      8:24   0  46.8G  0 part
└─sdb9                      8:25   0   2.5G  0 part

Debian handles that correctly.

2018-10-20: sda5 - apt - install KiCad from stretch-backports:

tingo@kg-bsbox:~$ sudo apt -t stretch-backports install kicad
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following package was automatically installed and is no longer required:
  fonts-lohit-knda
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  kicad-demos kicad-footprints kicad-libraries kicad-symbols kicad-templates libcurl3
  libfreeimage3 libgl2ps1 libjxr0 liboce-foundation10 liboce-modeling10 liboce-ocaf-lite10
  liboce-ocaf10 liboce-visualization10 libwxbase3.0-0v5 libwxgtk3.0-0v5 python-wxgtk3.0
  python-wxversion xsltproc
Suggested packages:
  extra-xdg-menus kicad-doc-ca | kicad-doc-de | kicad-doc-en | kicad-doc-es | kicad-doc-fr
  | kicad-doc-id | kicad-doc-it | kicad-doc-ja | kicad-doc-nl | kicad-doc-pl | kicad-doc-ru
  | kicad-doc-zh kicad-packages3d wx3.0-doc
The following NEW packages will be installed:
  kicad kicad-demos kicad-footprints kicad-libraries kicad-symbols kicad-templates libcurl3
  libfreeimage3 libgl2ps1 libjxr0 liboce-foundation10 liboce-modeling10 liboce-ocaf-lite10
  liboce-ocaf10 liboce-visualization10 libwxbase3.0-0v5 libwxgtk3.0-0v5 python-wxgtk3.0
  python-wxversion xsltproc
0 upgraded, 20 newly installed, 0 to remove and 223 not upgraded.
Need to get 55.5 MB of archives.
After this operation, 315 MB of additional disk space will be used.
[..]
update-alternatives: using /usr/lib/wx/python/wx3.0.pth to provide /usr/lib/wx/python/wx.pth (wx.pth) in auto mode
Setting up kicad (5.0.0+dfsg1-2~bpo9+1) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...

ok

2018-10-20: sda5 - apt - add stretch-backports, per instructions:

tingo@kg-bsbox:~$ cat /etc/apt/sources.list.d/stretch-backports.list
deb http://ftp.no.debian.org/debian stretch-backports main

ok

2018-10-20: sda5 - after a reboot, Debian 9.5 is in.

tingo@kg-bsbox:~$ cat /etc/debian_version
9.5
tingo@kg-bsbox:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 9.5 (stretch)
Release:    9.5
Codename:    stretch

kernel

tingo@kg-bsbox:~$ uname -a
Linux kg-bsbox 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08) x86_64 GNU/Linux

ok.

2018-10-20: sda5 - apt - upgrade

tingo@kg-bsbox:~$ sudo apt upgrade
[..]
327 upgraded, 19 newly installed, 0 to remove and 68 not upgraded.
Need to get 523 MB of archives.
After this operation, 260 MB of additional disk space will be used.
[..]
update-initramfs: Generating /boot/initrd.img-4.9.0-8-amd64
[..]
Processing triggers for systemd (232-25+deb9u4) ...
Processing triggers for libvlc-bin:amd64 (3.0.3-1-0+deb9u1) ...
Processing triggers for libreoffice-common (1:5.2.7-1+deb9u4) ...

ok.

2018-10-20: sda5 - disk info

lsblk

tingo@kg-bsbox:~$ lsblk
NAME                      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                         8:0    0 223.6G  0 disk
├─sda1                      8:1    0  73.6G  0 part
├─sda2                      8:2    0   200M  0 part /boot/efi
├─sda3                      8:3    0     1G  0 part
├─sda4                      8:4    0  48.8G  0 part
 ├─fedora_kg--bsbox-swap 254:0    0     5G  0 lvm 
 └─fedora_kg--bsbox-root 254:1    0  43.8G  0 lvm 
├─sda5                      8:5    0  18.3G  0 part /
├─sda6                      8:6    0  31.7G  0 part [SWAP]
├─sda7                      8:7    0   200M  0 part
├─sda8                      8:8    0  46.8G  0 part
└─sda9                      8:9    0   2.5G  0 part

swap info

tingo@kg-bsbox:~$ /sbin/swapon --show
NAME      TYPE       SIZE USED PRIO
/dev/sda6 partition 31.7G   0B   -1

df -h

tingo@kg-bsbox:~$ df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             16G     0   16G   0% /dev
tmpfs           3.2G   18M  3.1G   1% /run
/dev/sda5        18G  5.8G   12G  35% /
tmpfs            16G     0   16G   0% /dev/shm
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs            16G     0   16G   0% /sys/fs/cgroup
/dev/sda2       200M   19M  182M  10% /boot/efi
tmpfs           3.2G   16K  3.2G   1% /run/user/1000

ok.

2018-01-28: sda5 - I installed Debian (after shrinking the fat32 partition to make space)

tingo@kg-bsbox:~$ cat /etc/debian_version
9.3
tingo@kg-bsbox:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 9.3 (stretch)
Release:    9.3
Codename:    stretch
tingo@kg-bsbox:~$ uname -a
Linux kg-bsbox 4.9.0-4-amd64 #1 SMP Debian 4.9.65-3 (2017-12-03) x86_64 GNU/Linux

Debian installation changed boot order, so I had to go into UEFI and change it so rEFInd is booted first. works nicely.

2018-01-28: I installed inxi to get a report of things

user@debian:~$ sudo inxi -F
System:    Host: debian Kernel: 4.9.0-4-amd64 x86_64 (64 bit) Desktop: Xfce 4.12.3
           Distro: Debian GNU/Linux 9 (stretch)
Machine:   Device: desktop Mobo: ASRock model: KBL-NUC serial: 152732650000422
           UEFI: American Megatrends v: P1.10 date: 09/20/2016
CPU:       Dual core Intel Core i3-7100U (-HT-MCP-) cache: 3072 KB
           clock speeds: max: 2400 MHz 1: 414 MHz 2: 399 MHz 3: 400 MHz 4: 399 MHz
Graphics:  Card: Intel Device 5916
           Display Server: X.org 1.19.2 drivers: modesetting (unloaded: fbdev,vesa)
           tty size: 136x49 Advanced Data: N/A for root
Audio:     Card Intel Device 9d71 driver: snd_hda_intel Sound: ALSA v: k4.9.0-4-amd64
Network:   Card-1: Intel Ethernet Connection I219-V driver: e1000e
           IF: enp0s31f6 state: up speed: 1000 Mbps duplex: full mac: dc:fe:07:e1:75:a1
           Card-2: Intel Wireless 3160
           IF: N/A state: N/A mac: N/A
Drives:    HDD Total Size: NA (-)
           ID-1: /dev/sda model: WDC_WDS240G1G0B size: 240.1GB
           ID-2: USB /dev/sdb model: Cruzer_Blade size: 8.0GB
Partition: ID-1: / size: 16G used: 160M (2%) fs: overlay dev: N/A
Sensors:   System Temperatures: cpu: 57.0C mobo: N/A
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 157 Uptime: 11 min Memory: 765.8/31880.8MB Client: Shell (sudo) inxi: 2.3.5

so, the wireless doesn't show a driver, probably a firmware issue (non-free firmware)

2018-01-28: I booted Debian 9.3.0 off a live USB stick,

user@debian:~$ cat /etc/debian_version
9.3
user@debian:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Debian
Description:    Debian GNU/Linux 9.3 (stretch)
Release:    9.3
Codename:    stretch

ok.