Skip to content

Instantly share code, notes, and snippets.

@gtx28
gtx28 / pve8arm-fresh.txt
Last active August 11, 2025 20:31
PVE8-ARM fresh install
***Pi-Mox8 setup on raspberry pi 4b & cm4
***Raspberry PI OS setup
***Install raspbian x64 lite on raspberry pi
pull the latest copy of Raspberry Pi Imager, from here https://www.raspberrypi.com/software/ and Raspberry PI OS x64 lite based on debian 12 bookworm from here: https://www.raspberrypi.com/software/operating-systems/#raspberry-pi-os-64-bit
open imager, click choose os, scroll to the bottom and select custom. open the image "2024-11-19-raspios-bookworm-arm64-lite.img.xz"
@cGandom
cGandom / RaspberryPi4-qemu.md
Last active October 30, 2025 17:33
Emulating Raspberry Pi 4 with Qemu

Emulating Raspberry Pi 4 with Qemu

Just a quick update before we dive in: what we're actually doing here is running Raspberry Pi OS (64-bit) on a QEMU virtual ARM setup. This isn't full-blown hardware emulation of the Raspberry Pi 4, but more about creating a virtual environment for the OS. It doesn't mimic all the specific hardware features of the Pi 4, but it's pretty useful and great for general testing. I turned to this solution mainly to extract a modified sysroot from the Raspberry Pi OS, something not readily available in other resources. For those looking into detailed emulation of the actual Raspberry Pi 4's hardware in QEMU, check out this link for the latest updates: https://gitlab.com/qemu-project/qemu/-/issues/1208.

Hope it helps! :D

Shortcomings: No GUI yet, only console.

Steps

@4abhinavjain
4abhinavjain / reinstall_VPS_from_inside.txt
Last active November 2, 2025 14:33 — forked from ClashTheBunny/reinstall_VPS_from_inside.sh
DIY install debian on Oracle Cloud Infrastructure ( Free Tier ) - ARM64
# should works on any cloud-init enabled hypervisor (openstack.. )
# start from a normal ubuntu 20.04 install as minimal was not available for ARM64
# Since ARM64 machines has higher RAM, Shrinking is desired but not necessary. Instead we will increase tmpfs to 1700MB
# Getting root (if sudo -i doesn't work then set a root password beforehand using 'sudo passwd root'
sudo -i
# make sure we are on the highest kernel, so we can delete all the others ...
@coenraadhuman
coenraadhuman / rpiwpafix.txt
Created April 10, 2020 11:14
RPi - Could not communicate with wpa_supplicant: error n2 wifi
Solution
I referred to this official forum.
Raspbian Stretch: Wifi not starting on boot – Raspberry Pi Forums
First,
sudo vim /etc/network/interfaces
@alexishida
alexishida / shrink-image-linux.txt
Created May 19, 2019 04:07
Shrink system image on Linux
# Link https://github.com/Adriangarridosanchis/SensorNetwork./wiki/Shrink-system-image-on-Linux
Shrink system image on Linux
benchchair edited this page on 8 Jul 2014 · 16 revisions
Why
The image extracted from a finalized SD card is slightly larger than the capacity of SD card. We need to shrink the size of image so that we can always copy the image into the same capacity SD card or even a smaller one.
# Requirements
A Linux PC or a Linux virtual machine (Virtual machine software: Virtual Box or VMware)
Steps
@achesco
achesco / generate-mongo-ssl.md
Last active July 1, 2025 16:19
Generate self-signed SSL certificates for MongoDb server and client

CNs are important!!! -days 3650

Make PEM containig a public key certificate and its associated private key

openssl req -newkey rsa:2048 -new -x509 -days 3650 -nodes -subj '/C=US/ST=Massachusetts/L=Bedford/O=Personal/OU=Personal/[email protected]/CN=localhost' -out mongodb-cert.crt -keyout mongodb-cert.key
cat mongodb-cert.key mongodb-cert.crt > mongodb.pem

Reverse proxy over 3G modem (draft)

We will explain how to configure a cubieboard running debian as a reverese proxy. The modules that will be used are wvdial and autossh

Credits goes to:

1. http://blog.rootshell.be/2015/02/19/my-little-pwnie-box/
2. https://wiki.archlinux.org/index.php/3G_and_GPRS_modems_with_pppd