Therefore, I created this super awesome Ansible role to deploy and setup the network repair script on my Pis.
I just fixed the layout of our podcast website. This was bothering me for the last couple of months.
It only took me 122 lines of CSS! ¯\_(ツ)_/¯
After a three week break, Episode 16 of our podcast went online…
- Exa – https://twitter.com/oocx/status/1213820805928194048
- Exa website: https://the.exa.website/
- Ubuntu 4GB Raspi 4 Fix: https://bugs.launchpad.net/ubuntu/+source/linux-raspi2/+bug/1848790
- Ubuntu 19.10: http://cdimage.ubuntu.com/releases/19.10/release/
- Ubuntu Fix: https://www.cnx-software.com/2019/11/04/raspberry-pi-4-4gb-models-usb-ports-dont-work-on-ubuntu-19-10/
- Fabians YouTube Kanal: https://www.youtube.com/user/fabse007/videos
- Docker Local-Persist: https://github.com/MatchbookLab/local-persist
- Smartes Katzenklo LuluPet – https://www.lulupet.co/
- RaspberryPi as USB Ethernet – https://www.raspberrypi.org/forums/viewtopic.php?t=245810
- SimpleHUD im App Store – https://apps.apple.com/de/app/simplehud/id1493003994
- Was ist Zeit / Steini – https://media.ccc.de/v/36c3-oio-195-was-ist-zeit-
- Doppelspalt Experiment – https://www.youtube.com/watch?v=3ohjOltaO6Y
- Machine Dreams / Joscha Bach – https://media.ccc.de/v/DS2017-8820-machine_dreams
- Chost in the Machine / Joscha Bach – https://media.ccc.de/v/35c3-10030-the_ghost_in_the_machine
- Elektronengehirne / Joscha Bach – https://chaosradio.de/cr187-elektronengehirne
- Was hat die PSD2 je für uns getan / Henryk Plötz – https://media.ccc.de/v/36c3-10717-was_hat_die_psd2_je_fur_uns_getan
- Das nützlich-unbedenklich Spektrum / fefe – https://media.ccc.de/v/36c3-10608-das_nutzlich-unbedenklich_spektrum
- Der Deep Learning Hype / Nadja Geisler, Benjamin Hättasch – https://media.ccc.de/v/36c3-11006-der_deep_learning_hypeClarkesche Gesetze – https://de.wikipedia.org/wiki/Clarkesche_Gesetze
- Magisches Denken – https://de.wikipedia.org/wiki/Magisches_Denken
- Spurious Correlations – https://www.tylervigen.com/spurious-correlations
- Scheinkorrelation – https://de.wikipedia.org/wiki/Scheinkorrelation
- Quantenverschränkung – https://de.wikipedia.org/wiki/Quantenverschr%C3%A4nkung
- Blauer Engel für Software / Maria Köhn und Eva Kern – https://media.ccc.de/v/36c3-10852-wie_klimafreundlich_ist_software
- LINQ – https://docs.microsoft.com/en-us/dotnet/csharp/programming-guide/concepts/linq/
- Kaffeemaschine mit 3D Drucker verbessern – https://www.youtube.com/watch?v=loYx0kuW_8Y
It seems as I run into a common issue with my Raspberry 4. After an indeterministic uptime, the wifi stops working.
This bash script checks for wireless internet connection and, if it is failing, tries to fix it.
It is simple and it seems to work.
I just have to write some automation to roll it out automatically including a corresponding cron job once I find some time.
The installation is pretty easy. Unless you are using Ubuntu (as WSL) as there is no package available. But then again, compiling it by yourself is pretty straightforward as well.
1. Download and install Rust for your platform.
3. To download the latest version, run:
git clone https://github.com/ogham/exa.git
make installin the new directory to compile and install exa into
As you might know, I am using Ansible to install all of my WSL instances. Eventually, things did turn out not so easy. However, two evenings later, I finished an Ansible role doing this fully automated.
Eventually, you have to set the variables for exa_dir and rust_dir to make this role working. That way, you not only get a great tool, but you also get it fully automated into your Ubuntu WSL.
If you are not happy enough just using WSL from Visual Studio Code, you can use it as an integrated shell as well.
Simply open a new Terminal Window in Visual Studio Code, add a new one and select Select Default Shell.
Now chose your WSL as default one.
As I have installed agnoster themed oh-my-zsh using Powerline fonts, the terminal was messed up at the beginning because I was using Cascadia Code as monotyped font. While Cascadia is actually not yet fully Powerline enabled, I am currently using Delugia Nerd Font as a substitute.
All together, this is a wired “hackatory”. However, it’s quite fun, and personally, I like the result:
In case you did not know: You can use WSL (Windows Subsystem for Linux) as your shell in Visual Studio Code. This comes in very handy if you did mod the hell out of your WSL, as I did.
The Visual Studio Code Remote – WSL extension lets you use the Windows Subsystem for Linux (WSL) as your full-time development environment right from VS Code. You can develop in a Linux-based environment, use Linux-specific toolchains and utilities, and run and debug your Linux-based applications all from the comfort of Windows.
After we talked a lot about it in our podcast, I finally started with my “Automation of the Home Automation” project.
What I’ve done so far: Set up a Raspi 4 with Ubuntu Server, fully provisioned using Ansible. Also, it seems, the Kernel bug causing USB devices to fail on the 4 GB version of the Raspi 4 seams to be removed with the most recent binaries available.
Deployed MQTT, InfluxDB, Telegraf and Node-Red on Docker containers using Ansible.
Wrote my very first Node-Red flow to get data into the broker and the database:
The data is read from my EZcontrol XS1, which became surprisingly easy using Node-Red.
The EZcontrol XS1 integration for Home Assistant allows you to observe and control devices configured on the XS1 Gateway. Please have a look at the official docs for using this gateway.
While I was not sure about the available resources on the Raspberry, it seems there is plenty of space (RAM, CPU) left on the device.
On the other side, using Ansible I will be able to deploy services to other (more) nodes once necessary.
Unfortunately, docker-ce is not yet available for Ubuntu 19.10 Eoan. Therefore, adding the Docker repositories will fail.
A simple workaround is to add the repositories for disco instead.
The Ansible code to do so is quite simple:
- name: Add stabel repository apt_repository: repo: deb [arch=amd64] https://download.docker.com/linux/ubuntu "disco" stable state: present
Also, I realized some issues with Ansible on Ubuntu running on the Raspi and Python. Therefore, I made sure Python 2.7 is entirely uninstalled. Instead, I made sure my inventory file is set to use Python 3 on the target system.
[raspi] raspi4 [raspi:vars] ansible_python_interpreter=/usr/bin/python3
There have been some other issues, I came along, especially because for various bits OI was looking for there are no ARM aarch64 releases available. Also, the official Docker images I used do not support Apline on ARM v8 / aarch64 as Alpine seems not to support this target architecture, yet.
More bits and bytes to be added soon…
I just came across a nifty UI thing when printing in Word 365.
When the printing dialog comes up and you select all pages you get this nice description of Print all Pages:
Not sure if this is really necessary, but it made me smile.
Ever wondered what colors a certain company uses for their brans? Apparently there is a web-based tool for everything. Consequently, there is BrandColors.
One of the “killer features” indeed is the fact, that you can view and copy the HEX color codes by simply clicking the colors.