Skip to content

Instantly share code, notes, and snippets.

View mdrxy's full-sized avatar
👽

Mason Daugherty mdrxy

👽
View GitHub Profile
@mdrxy
mdrxy / Raspbian_apcupsd_installation.md
Last active August 6, 2024 01:20 — forked from Suzhou65/Raspbian_apcupsd_installation.md
Setting up apcupsd on a Pi Zero 2 W with a `Back-UPS RS 1000MS`

Setting up apcupsd on a Pi Zero 2 W with a Back-UPS RS 1000MS

What is this?
Guide to install apcupsd on Raspberry Pi OS (Raspbian) and get its web interfact running with Apache

What is apcupsd?
apcupsd is an open source UPS mangement and control software target at APC UPSes.

Install apcupsd

First, install apcupsd utility, and the dynamic web page monitor.

@mdrxy
mdrxy / pi_university_wifi_network.md
Last active July 31, 2024 02:48
Getting a Raspberry Pi on a College / University WiFi Network

Getting a Raspberry Pi on a College / University WiFi Network

There are many solutions online that require modifying a Pi's wpa_supplicant configuration manually to connect to WPA2-Enterprise networks (which is what Bowdoin College uses - where I am), but this is pretty complex, hard to get right and inflexible when the configuration changes.

The "greyed out" network issue is because the Raspbian desktop comes with its own network managing service that does not support more complex WiFi setups used in enterprise/college/university networks.

There is a simple way to fix this though: instead of using the Raspbian’s integrated network manager, use NetworkManager, which is what's used in most Desktop Linux environments. Get connected to the internet either via hotspot or ethernet and install it by running the following in terminal:

sudo apt update && sudo apt full-upgrade -y
@mdrxy
mdrxy / pi_screen_sharing.md
Created October 15, 2024 23:37
Controlling a Raspberry Pi using macOS's Screen Sharing app

You can bypass needing to install VNC Viewer and use the macOS's built-in Screen Sharing.app instead.

Open the RealVNC Server configuration (on the device you wish to remote into) interface by clicking its menu bar icon.

On the VNC Server window, click the hamburger menu, and select check for updates. If there are any available, take them. Otherwise, press "Options".

Select "Security" and set Encryption to "Prefer On" and Authentication to "VNC password". Press “Apply” and then select an 8 character password. Save this password in 1Password. If you’re on a version of VNC Server that has a checkbox to “allow connections from legacy VNC Viewer users” check the box. I think this is only on the armhf version of the software (since I was using a Pi Zero 2 W) but haven’t been able to test it. The Pi 4 version did not have this checkbox.

  • The reason for choosing “VNC password” for authentication is that macOS Screen Sharing.app seems to have issues connecting if VNC Server is using UNIX login credentials.