Posts
Qt6 windows static executables compiled from linux
Compiling Qt applications on windows for redistribution is utterly complicated, or impossible (missing dll, crashes, …). So here is a way to compile static qt application, from your preferred unix-like.
Raspberry Pi 4 boot from network
Network boot will allow to boot a Raspberry Pi without local storage, and will show it’s full power when using several Raspberry Pi.
Raspberry PI OS headless install
- Get Raspberry PI OS (I prefer the 64 bit-light).
- Flash it (see install guide)
- Mount the
/boot
partition, for instance in/tmp/boot
, then run (with the username and password you want) :
ssh configuration
Zabbix : store history and trends into influxdb
Thunderbird : security.dialog_enable_delay=0
Tired of waiting one second when opening an attachement from Thunderbird?
Understanding and configuring locale
Get the Raspberry Pi model from the command line (update #1)
Don’t want to open the case of a Raspberry Pi to find it’s model? or are you
connected trough ssh
? Here is how to identify your Pi from the command line!
somu - FIDO2 security key
shellcheck - a shell script static analysis tool (update #1)
Considering today’s advent of CI and CD (Continuous Integration and Continuous Development),
shell programming is still a thing and is still hard*1,
but shellcheck
is a tool that can save your life a lot of time.
df vs du - where my free disk space is gone?
Finding home - dynamic DNS (update #1)
My ISP would like to charge me $10 a month for a fixed IPv4 address, but accessing your machine remotely only needs a known address, not a fixed one, and that’s why dynamic DNS have been invented.
rsync over ssh to Android
I have tried many ways to sync my music collection to my Android phone, and here
is the most comfortable way I could find : the good old rsync
.
A webserver to rule them all (update #2)
atom - yet another editor
Setup (kindly borrowed from atom’s flight manual)
wget -qO - https://packagecloud.io/AtomEditor/atom/gpgkey | sudo apt-key add -
sudo sh -c 'echo "deb [arch=amd64] https://packagecloud.io/AtomEditor/atom/any/ any main" > /etc/apt/sources.list.d/atom.list'
sudo apt-get update
sudo apt-get -y install atom
grafana speedup (update #1)
syncthing headless
gpg encrypt/decrypt with a passphrase
snapper quotas
Canon raw (.cr2) file preview in xfce (update #1)
lnav the log file navigator
You may know tail -f
, but here is a tool specifically designed to navigate
through log files: lnav
.
cron tips
System health monitoring (update #1)
Custom service using screen
Canon remote footswitch
Here is how to trigger a Canon camera with a E3 (2.5 mm jack) trigger.
Dropbox headless
Offline notification
As we’ve seen in the last post, zabbix is now monitoring our system, and sends alerts as emails but what if the zabbix server crashes or loose internet connectivity? Here comes @PimOnlineBot.
kodi (was xbmc) standalone
Just in case you have:
- A computer with an HDMI and USB port
- A TV (with HDMI and CEC)
- An USB-CEC Adapter
- And optionally:
- 40 meters of cat 5e cable
- A HDBaseT transmitter and receiver
It MUST be a RFC about that.
Custom services
Services
Real life redundancy
Sometimes, failure happens, not only on my server, and not only when I remove the only working drive in my RAID array.
ubuntu 18.04 server btrfs backup
While writing the previous posts, I lied. Backup are OK at home, but not on my virtual server that I use for writing this blog.
Installing ubuntu 18.04 server with snapper (update #2)
Growing RAID+LVM+filesystem
My /
partition is too small, fortunately it is on LVM+RAID, and it’s possible to
resize it without downtime!
motd please be quiet!
ubuntu login (motd
) is too verbose
snapper, the snapshot manager (update #1)
Post updated with simpler rollbacks
Disk health monitoring
Our system is running well, RAID is running fine, backup are fine, and our server can send email alerts.
Upgrade to openvpn 2.4 on unbutnu 16.04
Virtual machine made easy
In this post, I’ll present how I deal with my virtual machines on a server an access them remotely.
ubuntu 18.04 server network bonding
Playing with RAID
Sending email from the server
A server should be able to send email alerts, just in case some service like cron, mdadm or smartmontools detect a failure.
ubuntu 18.04 server backup with rsync
This is the second post about running ubuntu 18.04 on my server, if you look at the previous post, the server is ready for use, with snapshot configured and almost nothing more.
randomreaper.blogspot.com is dead
randomreaper.blogspot.com is dead, long live to cli.pignat.org!
Backup
I consider my data important, and since I tend to making fun of guys who lose their data*1, I take special care of my data. HDD tends to fail, computer can be stolen and cryptoviruses tend to encrypt hard drives, disasters happen.
ubuntu root on LVM over RAID1 degraded boot
BOOT_DEGRADED
has no effect when using LVM
It seems that using LVM over RAID will always try to boot, no matter how BOOT_DEGRADED
is configured.
Removing a disk from the running system will put the array in degraded state, and a reboot at this point will work fine, even if this is somehow risky to boot on a degraded array.
Use your outlook calendar from thunderbird+lightning
Required software parts
- install thunderbird and lightning
sudo apt-get install xul-ext-lightning
- install the latest release of ExchangeCalendar
- Download the .xpi from from here
- In thunderbird : tools > Add-ons > Plugins > settings > Install add-on from file … (select the xpi)
- restart thunderbird
ubuntu 16.04 server serial install
Equipment
- host computer with a serial port (a USB to serial adapter should do)
- target computer with a serial port
- Configured for booting over USB
- An internet connection
- null modem cable
- USB flash drive
Find a device on the network, knowing it’s MAC address
Here is how to find a device IP address on a DHCP network, knowing only it’s MAC address, an open TCP port and our own IP on the network.
Add a temporary ip address to an existing interface
Raspberry pi and SPI LED strip
Required material:
buspirate and SPI LED strip
Required material:
perl: warning: Setting locale failed.
You’re connecting through ssh and your remote machine complains about the locale?
adb shell settings put global guest_user_enabled 0
USB relay (ICSE013A)
usb relay (ICSE013A) Here is a small and inexpensive Linux friendly USB dual relay: ICStation ICSE013A, available on ebay for less than 5 USD.
Eclipse Mars requires libwebkitgtk
sudo apt-get install libwebkitgtk-3.0-0
Verifying certificates before deployment
Purge removed packages
apt-get remove
does not remove all files, packages must be purged.
Dropbox icon and ubuntu 15.10
Tired of bad usb install disk?
so please forget unetbootin. It is unable to create ubuntu bootable usb from iso. One full working day and 30 mental health points lost forever.
SSR SRG radio broadcast playlist
2019-01-08 update : link removed because the site is not online anymore.
Tired of cat ~/.ssh/id_rsa.pub | ssh user@host 'cat >> ~/.ssh/authorized_keys' ?
So use ssh-copy-id username@hostname
Lost in git?
What a cool discovery, at step by step guide for undoing, fixing, or removing commits in git. Saved my day!