Skip to content

Instantly share code, notes, and snippets.

@positron96
positron96 / 1_README.txt
Last active August 4, 2023 20:54
Building vector.dev for Raspberry Pi 1 (and Rpi Zero) - Adding arm-unknown-linux-musleabihf target
Vector.dev does not come with armv6 target, so it cannot be installed to old RPi 1 or RPi Zero.
However, it can be compiled from source for that CPUJ architecture. I used `arm-unknown-linux-musleabihf`.
I use 0.31.0 version and followed this guide: https://vector.dev/docs/setup/installation/manual/from-source/#docker
Apply the following patch to the codebase, then you'll be able to do `make package-arm-unknown-linux-musleabihf
` to make a tar.gz or `make package-deb-arm-musl` to make a deb package.
Building vector consumes about 10Gb, and 10Gb more to build a deb.
I had to drop kafka support, as librdkafka was very stubborn and wanted to be compiled for armv7 target even when all the components were build for armv6.
I had linking issues concerning vfp3 functions, so I dropped the whole feature as I did not need it.
## ~/.tmux.conf
# C-b is not acceptable
set-option -g prefix C-a
bind-key C-a last-window
# Start numbering at 1
set -g base-index 1
set -g mouse on
@positron96
positron96 / gist:7269466
Last active July 23, 2023 12:03 — forked from chrismeyersfsu/oscilloscope.c
Supports panning and vertical scaling
/*
* Oscilloscope
* Gives a visual rendering of analog pin 0 in realtime.
*
* This project is part of Accrochages
* See http://accrochages.drone.ws
*
* (c) 2008 Sofian Audry (info@sofianaudry.com)
*
* This program is free software: you can redistribute it and/or modify