You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Why would you need a custom config shell
-- Provides secure way to initially configure device
-- Prevents unrestricted shell access
-- Limits users to specific tasks
-- Explicitly lists the available user actions
This Gist has the code that we used to get the direction and speed of the quadrature output of a motor encoder. Quadrature is a simple two sensor mechanism that relies upon the order of offset to make that determination. This is a simplified example that counts the number of rotations and increments the counter or decrements the counter depending upon which direction it is rotating. Every second, it will print the number of cycles since the last time it was read to the console.
This Gist is a procedure on how to enable I2C functionality on Alpine Linux running on a Raspberry Pi. I2C is a high speed communications interface that allows interacting with sensors and periferals efficiently. In this example, we will be connecting an SHT31-D temperature and humidity sensor to create a basic logger using Python. Follow these steps and you will be well on your way to integrating it into your next project!
Setup Procedure
Enable I2C bus in usercfg.txt file on the root of the boot drive
From the console remount the boot drive for read/write
Netcat (nc) is a powerful networking utility available on Linux systems that allows for reading from and writing to network connections using TCP or UDP. In this guide, we'll demonstrate some of its basic functions and create a simple web server using Netcat.
Prerequisites
A Linux-based system with Netcat installed. You can install it using your package manager (e.g., apk, apt, yum, dnf).
This Gist covers the commands and methods needed to create APK files and a local repository on Alpine Linux for your own software packages.
The focus of this guide is toward interpereted language software packages that do not require compiling, and is a simplified overview of what is needed to build a package.
These commands will compile and install NoDogSplash, configure it as a captive portal, and start it as a service on Alpine Linux. This is useful for guest or customer networks where you would like to maintain access to the internet for temporary users, but do not want it to be exploited.
Creating an access point with Alpine Linux on a Raspberry Pi can be an excellent project, as it allows you to extend your network or even create a new wireless network in a location where only wired internet is available. Below is a procedure to help you set up your Raspberry Pi as an access point using Alpine Linux. This guide assumes you have basic knowledge of Linux commands and networking.
Equipment Needed
Raspberry Pi (any model with Wi-Fi capability, e.g., Raspberry Pi 3/4/5)