Skip to content

Instantly share code, notes, and snippets.

@kralo
kralo / ubuntu-24.04-knowledgebase.md
Last active April 12, 2024 09:05
ubuntu-24.04-knowledgebase

Obsolete, fresh ubuntu 24.04 should work out of the box with gnome-remote-desktop: 46.0-2.

If you enabled gnome-remote-desktop in ubuntu 24.04 (ubuntu noble nombat), and cannot connect and see these errors in journalctl

gnome-remote-desktop-daemon[2650]: [22:04:03:071] [2650:4874] [WARN][com.winpr.negotiate] - AcceptSecurityContext status SEC_I_CONTINUE_NEEDED [0x00090312]
gnome-remote-desktop-daemon[2650]: [22:04:03:172] [2650:4874] [WARN][com.winpr.negotiate] - AcceptSecurityContext status SEC_I_COMPLETE_NEEDED [0x00090313]
gnome-remote-desktop-daemon[2650]: [22:04:03:172] [2650:4874] [ERROR][com.winpr.sspi.NTLM] - Message Integrity Check (MIC) verification failed!
gnome-remote-desktop-daemon[2650]: [22:04:03:172] [2650:4874] [WARN][com.winpr.sspi] - CompleteAuthToken status SEC_E_MESSAGE_ALTERED [0x8009030F]
@kralo
kralo / nord-500e-500p-differences.md
Last active March 28, 2024 21:03
NORDAC frequency converter changes/differences in parameters between 5xxE and 5xxP series

There are some subtle differences between Nord frequency converters from the 500e and 500p series. I.e. changing from 530e to NORDAC PRO 550p needs different register. Unfortunately I had no changelog from the manufacturer.

The reference documents are BU 0500 and BU 0600 respectively. I found no good way discerning the models apart from reading the parameter 742 = Data base version.

s= Supervisor
P= Parameter Set dependant
Arr = Array Parameter
V = Simple (V)alue, i.e. word/dblword
@kralo
kralo / ubuntu-24.04-disable-snap-install-firefox.sh
Last active March 28, 2024 21:01
completely disable/uninstall snap on ubuntu 24.04 (ubuntu noble numbat) and install firefox from .deb only
#!/bin/bash
# completely disable/uninstall snap on ubuntu 24.04 (ubuntu noble numbat) and install firefox from .deb only
sudo snap remove --purge firefox
sudo snap remove --purge snap-store
sudo snap remove --purge gnome-42-2204
sudo snap remove --purge gtk-common-themes
sudo snap remove --purge snapd-desktop-integration
sudo snap remove --purge bare
sudo snap remove --purge firmware-updater
@kralo
kralo / a_gpon_fiber_latency_ftth.md
Last active February 4, 2024 11:26
FTTH GPON Latency and throughput in european residential home networks

Summary

Expect the following latencies to the "first hop":

ADSL         19 ms (depends on interleaving times)
VDSL50       24 ms (without Vectoring, no detail data in this report)
VDSL50        4 ms (with Vectoring)
GPON Fiber  1.5 ms (nearly the same in France & Germany)
COAX Docsis 7.5 ms (line is not stable unfortunately)
@kralo
kralo / channels.xspf
Created October 22, 2023 15:25
Astra 19.2E channels.xspf for Linux DVB-S2 watching with vlc. Created with `w_scan_cpp -fs -sS19E2 -c DE -L -E 0 > channels.xspf`
<?xml version="1.0" encoding="UTF-8"?>
<playlist version="1" xmlns="http://xspf.org/ns/0/" xmlns:vlc="http://www.videolan.org/vlc/playlist/ns/0/">
<title>DVB Playlist Astra 19.2E 2023-10-22, only free-to-air channels</title>
<creator>w_scan_cpp</creator>
<info>https://gen2vdr.de/wirbel/w_scan_cpp/index2.html</info>
<trackList>
<track>
<trackNum>1</trackNum>
<title>.</title>
<location>dvb-s://frequency=12363000000</location>
@kralo
kralo / a_raspberry-pi4-cmio-ov9281-dual.md
Last active October 18, 2023 00:27
Raspberry Pi 4 CMIO with 2 ov9281 camera sensors

Raspberry Pi 4 CMIO with 2 ov9281 camera sensors

THIS HAS CHANGED!

Now, all you need to do is add the following lines to your /boot/config.txt:

dtoverlay=ov9281
dtoverlay=ov9281,cam0
#!/bin/sh
# ntrip caster authentication and data quick-check
# quick test with curl to see if you actually get some sort of data at your mountpoint (will be illigible, but anyway)
# note the ridiculous User-Agent check
# replace the caster url, port and mountpoint
curl -v http://igs-ip.net:2101/ABMF0 -u user:password --header "Ntrip-Version: Ntrip/2.0" --header "User-Agent: NTRIP curl"
@kralo
kralo / rpi-buildskript.sh
Created July 18, 2023 14:22
Build kernel for raspberrypi and archive as tar for easy installation
#!/bin/bash
# inspired by the github-actions build-script https://github.com/raspberrypi/linux/blob/rpi-6.1.y/.github/workflows/kernel-build.yml
# on the pi, can be installed like so # SKIP_BACKUP=1 SKIP_DOWNLOAD=1 rpi-update http://192.168.178.32:8081/bcm2711_arm64_6.1.32-c2251ce04.tar.gz
set -x
name=bcm2711_arm64
arch=arm64
defconfig=bcm2711_defconfig
matrix_defconfig=$defconfig
kernel=kernel8
@kralo
kralo / u-blox-m8n-1enable-sfrbx-rawx-hex.txt
Last active March 4, 2023 05:37
u-blox commands for activating SFRBX/RAWX (using RTKLIB) with M8N FW 3.01
# u-blox commands for activating SFRBX/RAWX (using RTKLIB) with M8N FW 3.01
# tested on an
# HW UBX-M8030 00080000*60
# EXT CORE 3.01 (107900)*33
# ROM BASE 2.01 (75331)*19
# FWVER=SPG 3.01*46
# PROTVER=18.00*11
# issue these commands in a terminal that supports sending HEX (e.g. ScriptCommunicator)
@kralo
kralo / IKEV2C_0USER.ini
Last active February 21, 2023 15:02
[HOWTO] configuration example for lancom host to ubuntu 16.04 vpn client
[PROFILE1]
Name=T-IKEV2C_0USER
ConnMedia=21
ConnMode=0
SeamRoaming=1
PriVoIP=1
Gateway=1.2.3.4
PFS=14
UseComp=0
IkeIdType=3