All Projects → lncm → pi-factory

lncm / pi-factory

Licence: Apache-2.0 license
Bootstrap a bitcoin lightning box for Raspberry Pi 3 based on Alpine Linux

Programming Languages

shell
77523 projects
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to pi-factory

umbrel-middleware
RESTful Bitcoin and Lightning API for Umbrel
Stars: ✭ 21 (+23.53%)
Mutual labels:  lightning, lightning-network, bitcoin-node
Eclair Mobile
An Android wallet for the Lightning Network
Stars: ✭ 231 (+1258.82%)
Mutual labels:  lightning, lightning-network
lightning-qt
bitcoin-qt for lightningd
Stars: ✭ 36 (+111.76%)
Mutual labels:  lightning, lightning-network
shango-lightning-wallet
Shango Lightning Wallet
Stars: ✭ 65 (+282.35%)
Mutual labels:  lightning, lightning-network
Lndhub
Wrapper for Lightning Network Daemon. It provides separate accounts and trust minimization for end users
Stars: ✭ 203 (+1094.12%)
Mutual labels:  lightning, lightning-network
Spark Wallet
⚡️ A minimalistic wallet GUI for c-lightning, accessible over the web or through mobile and desktop apps.
Stars: ✭ 215 (+1164.71%)
Mutual labels:  lightning, lightning-network
alpine-qbittorrent-openvpn
qBittorrent docker container with OpenVPN client running as unprivileged user on alpine linux
Stars: ✭ 230 (+1252.94%)
Mutual labels:  alpine, alpine-linux
Webln
Spec and client library for WebLN apps and providers
Stars: ✭ 165 (+870.59%)
Mutual labels:  lightning, lightning-network
lightningj
Core implementation of the lightningj API implementations.
Stars: ✭ 41 (+141.18%)
Mutual labels:  lightning, lightning-network
lntop
⚡ LN terminal dashboard 📊
Stars: ✭ 170 (+900%)
Mutual labels:  lightning, lightning-network
Ln Service
Node.js interface to LND
Stars: ✭ 191 (+1023.53%)
Mutual labels:  lightning, lightning-network
zapread.com
Website for zapread.com
Stars: ✭ 19 (+11.76%)
Mutual labels:  lightning, lightning-network
Lncli Web
Light-weight web client for the lnd daemon written in NodeJS / Angular.
Stars: ✭ 181 (+964.71%)
Mutual labels:  lightning, lightning-network
docker-alpine-sshd
A lightweight OpenSSH Docker Image built atop Alpine Linux.
Stars: ✭ 108 (+535.29%)
Mutual labels:  alpine, alpine-linux
Zeus
A mobile Bitcoin/Lightning app for lnd, c-lightning, and Eclair node operators ⚡️
Stars: ✭ 175 (+929.41%)
Mutual labels:  lightning, lightning-network
http-server
A Java HTTP server in 35MB Docker image
Stars: ✭ 17 (+0%)
Mutual labels:  alpine, alpine-linux
Umbrel Os
Run Umbrel Bitcoin and Lightning node on a Raspberry Pi in one click
Stars: ✭ 132 (+676.47%)
Mutual labels:  lightning, lightning-network
Paper
Lightning Network Paper
Stars: ✭ 136 (+700%)
Mutual labels:  lightning, lightning-network
docker-node-ci
The Docker image based on the official "node" image optimized for a CI environment
Stars: ✭ 18 (+5.88%)
Mutual labels:  alpine, alpine-linux
lightningtip
Get tips via the Lightning Network
Stars: ✭ 91 (+435.29%)
Mutual labels:  lightning, lightning-network

Pi-Factory

Easily build your own Alpine Linux box on Raspberry PI or Raspberry Zero!

This repository lets you build you build an Alpine Linux box for Raspberry Pi Model B/B+/4/Zero

Documentation Status

Features

  • pi-factory is now a persistent OS Only! For Nodes, please refer to earlier versions or go to the noma project
  • Latest version updated to Alpine 3.10.2
  • We now have 64 bit (aarch64) and 32 bit images (armhf). The Raspberry PI 3/3b works well on 64 bit
  • Deterministic builds. Images now built and released automatically through github actions.

Hardware Requirements

  • Raspberry Pi

    • Recommended: model 3B+
    • Optional: case, heatsink, LAN cable, HDMI cable and monitor (for troubleshooting and issue tracking), Keyboard (to use for troubleshooting and issue tracking)
  • microSD card

    • Recommended: SanDisk 16GB or more
    • microSD card to USB adapter or built-in hardware

    Quality goes over quantity here!

  • Power Supply (5V/2.5A) with micro-USB cable

    • Recommended: official Raspberry Pi power supply
    • Alternatively:
      • high-quality USB charger (e.g. Samsung)
      • short USB to micro-USB cable. (a longer cable can work with 5.1V chargers)

    Warning! Your Raspberry Pi will not work properly without a correctly rated power supply and cable, and may result in data loss. We are not responsible if you lose any data.

Instructions

  1. Download Etcher
  2. Download the image from the Releases page or simply clone the https://github.com/lncm/pi-factory.git repository on github
  3. Insert SD Card and open up Etcher
  4. Etch one of the images onto the SD card
  5. Remount the SD card and create a file called wpa_supplicant.conf
  6. Inside the file put the following
network={
	ssid="Your Wifi SSID goes here"
	key_mgmt=WPA-PSK
	psk="YOUR Password goes here"
}
  1. Unmount the drive and put it into a PI or PI zero and then start it up. And in about 10-20 minutes (PI-Zero will take longer), you will be able to login through avahi/mdns box.local , or if you don't have avahi/mdns on your desktop you will need to grab the IP address from plugging in your PI to a TV or from your router.

Access

Users & Passwords

  • lncm

    • username: lncm
    • password: chiangmai
  • root

    • username: root
    • password: chiangmai

Note: sudo is not installed, use su instead. We also highly recommend that you change the password.

Command-line via ssh

ssh [email protected]

Note: First boot will take some time as ssh host keys are generated.

Advanced configuration

When building the image yourself you can create a wpa_supplicant.automatic.conf file with all your wifi passwords.

You may disable several stuff by placing an empty file inside the FAT partition. This should be done before first boot

Filename Description
noswap disables SWAP generation (not recommended unless you know what you are doing!)
noavahi disables install for avahi-daemon / mdns discovery (not recommended unless you know what you are doing!)
nodocker disables Docker installation
nopython Disables python3 installation
notor Disables tor installation

You may disable swap generation by touching a file in the FAT partition called "noswap". This needs to be done the first time.

Documentation

Read the Docs

Building

To generate a fresh image from source run ./make_img.sh as root on a Debian, Ubuntu or Alpine system.

For convenience, we also support vagrant to automate setting up your development VM.

MacOS instructions:

Install dependencies (homebrew, virtualbox, vagrant):

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install) && \
brew install --cask virtualbox vagrant && \
git clone https://github.com/lncm/pi-factory.git && \
cd pi-factory		

Create VM and generate image:

  • vagrant up

Rebuild image without wiping VM:

  • vagrant up --provision

Also useful:

  • vagrant ssh
  • vagrant halt
  • vagrant destroy -f
  • brew cask install vagrant-manager (optional menu-bar utility)

Support

If you are having problems, please create an issue

Contribute

Bug reports, pull-requests and suggestions are very welcome!

Verifying Builds

You may run git tag -v RELEASENAME on any signed tags.

License

The project is licensed under the permissive Apache 2.0 license.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].