Wieder was gelernt

buildozer

2024-12-16 (Monday)
Tags: Python packaging Android iOS Windows OSX Linux

buildozer Buildozer is a tool for creating application packages easily. The goal is to have one “buildozer.spec” file in your app directory, describing your application requirements and settings such as title, icon, included modules etc. Buildozer will use that spec to create a package for Android, iOS, Windows, OSX and/or Linux.

Cron and DST

2024-10-27 (Sunday)
Tags: unix linux cron

These experiments were done with Vixie Cron on Ubuntu. Other cron implementations may behave differently. At least for daily and hourly jobs it behaves sensibly. Cron job which should run daily (in the DST window) 2024-03-30T02:30:01+0100 2024-03-31T03:00:01+0200 2024-04-01T02:30:01+0200 In spring, since 02:30 doesn’t exist, the job runs at the earliest time after that, so at 03:00+0200. 2024-10-26T02:30:01+0200 2024-10-27T02:30:01+0200 In fall, the job runs once, during the first time it’s 02:30.

Core-Dumps on Ubuntu

2024-05-14 (Tuesday)
Tags: linux ubuntu debugging system administration

Ubuntu by default pipes core dumps to apport (via /proc/sys/kernel/core_pattern). The core dumps are then stored in /var/lib/apport/coredump. If you want “normal” core dumps, you need to write a different pattern (e.g. “core.%p”) into core_pattern. Also useful to know: To install debug syms you need to add deb http://ddebs.ubuntu.com jammy main restricted universe multiverse deb http://ddebs.ubuntu.com jammy-updates main restricted universe multiverse deb http://ddebs.ubuntu.com jammy-proposed main restricted universe multiverse to sources.list.d

Remote Logging

2024-03-23 (Saturday)
Tags: linux logging

Kernel: https://www.kernel.org/doc/Documentation/networking/netconsole.txt Systemd: https://www.freedesktop.org/software/systemd/man/latest/systemd-journal-remote.html https://www.freedesktop.org/software/systemd/man/latest/systemd-journal-upload.html systemd-journal-upload kann auch https, also vielleicht braucht man systemd-journal-remote gar nicht?

Finding the other side of a unix socket

2023-08-29 (Tuesday)
Tags: linux unix sockets lsof ss

lsof shows unix sockets: COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME ... xterm 241063 hjp 3u unix 0x0000000000000000 0t0 77134366 type=STREAM xterm 241063 hjp 4u unix 0x0000000000000000 0t0 77134367 type=STREAM But the NODE is unique and the other side has a completely different number. So how do you find out what those sockets connect to? ss to the rescue: % ss | grep 77134366 u_str ESTAB 0 0 * 77134366 * 77133419 u_str ESTAB 0 0 @/tmp/.

inxi

2023-03-09 (Thursday)
Tags: linux hardware memory system information

``` # inxi -m Memory: RAM: total: 15.53 GiB used: 2.65 GiB (17.1%) Array-1: capacity: 16 GiB slots: 2 EC: None Device-1: ChannelA-DIMM0 size: 8 GiB speed: 1867 MT/s Device-2: ChannelA-DIMM1 size: No Module Installed Device-3: ChannelB-DIMM0 size: 8 GiB speed: 1867 MT/s Device-4: ChannelB-DIMM1 size: No Module Installed ```

Font List on Linux

2023-01-28 (Saturday)
Tags: fonts linux

fc-list

Targus Docking Station

2022-06-22 (Wednesday)
Tags: linux laptop docking station usb displaylink

Hardware Targus USB-C Dual 4k Docking Station 100W PD (W/Legacy Power) Tuxedo Laptop with Tuxedo’s Ubuntu variant (20.04 LTS) preinstalled. HDMI Monitor Notes For some weird reason the docking station works only on the USB-A ports (there’s an adapter), not the USB-C port. This may be a problem with the USB-C port on the laptop (my ethernet adapter is also sometimes not recognized, especially after hibernating). It also only really works if the laptop is on AC power.

promote_secondaries

2021-12-04 (Saturday)
Tags: linux networking proc

/proc/sys/net/ipv4/conf/*/promote_secondaries

Super Grub2 Disk

2021-11-17 (Wednesday)
Tags: grub rescue linux

https://www.supergrubdisk.org/category/download/supergrub2diskdownload/super-grub2-disk-beta/

Partition sizes

2020-11-29 (Sunday)
Tags: linux debian ubuntu filesystems partitions disk

A freshly installed minimal Debian 12 system (no extra /boot): root@wyrm:~# df -h Filesystem Size Used Avail Use% Mounted on udev 1.9G 0 1.9G 0% /dev tmpfs 392M 640K 391M 1% /run /dev/mapper/vgroot-root 919M 106M 750M 13% / /dev/mapper/vgroot-usr 1.8G 1.5G 275M 85% /usr tmpfs 2.0G 0 2.0G 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock /dev/mapper/vgroot-home 1.8G 64K 1.7G 1% /home /dev/mapper/vgroot-var 1.8G 186M 1.6G 11% /var tmpfs 392M 0 392M 0% /run/user/0 tmpfs 392M 0 392M 0% /run/user/1000 The combined /+/boot looks fine, /usr is a bit small, should probably be 3GB.

How io_uring and eBPF Will Revolutionize Programming in Linux

2020-11-28 (Saturday)
Tags: linux io_uring ePBF performance I/O scylladb

How io_uring and eBPF Will Revolutionize Programming in Linux

BPF Compiler Collection (BCC)

2020-08-08 (Saturday)
Tags: linux performance monitoring bpf

Githug Project Page Examples: How to Use BCC Kernel Tracing Tools for Linux Performance Analysis How to measure Linux Performance Avoiding Most Typical Mistakes: CPU

rsync --link-dest

2020-07-10 (Friday)
Tags: linux cli sync quirks

Bei rsync --link-dest=D ist D relativ zum Zieldirectory, nicht zum current working directory. Das ist zwar logisch (das Ziel-Directory könnte ja auf einem anderen Host liegen), aber trotzdem überraschend. trintignant:~/tmp 13:31 :-) 1015% rsync -av EO107csv/ a/ sending incremental file list created directory a ./ EO107_INTERNET_1_10062020095421358.csv EO107_INTERNET_2_10062020113644.csv EO_EDITIONS_10062020095813917.csv sent 195,860,046 bytes received 100 bytes 130,573,430.67 bytes/sec total size is 195,811,939 speedup is 1.00 trintignant:~/tmp 13:33 :-) 1019% ll -i a total 187M 6036618 -rw-r--r-- 2 hjp hjp 46M Jun 10 09:56 EO107_INTERNET_1_10062020095421358.

MacOS Simple KVM

2020-06-29 (Monday)
Tags: MacOS Virtualisierung Linux

https://www.golem.de/news/catalina-und-big-sur-macos-als-virtuelle-maschine-unter-linux-2006-149257.html https://github.com/foxlet/macOS-Simple-KVM