https://github.com/kubesail/pibox-host
https://github.com/kubesail/pibox-host
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/kubesail/pibox-host
- Owner: kubesail
- Created: 2023-04-12T01:38:29.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-06-26T20:39:35.000Z (about 2 years ago)
- Last Synced: 2025-07-18T18:47:24.962Z (12 months ago)
- Language: JavaScript
- Size: 9.38 MB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PiBox Host Service
This NodeJS based service runs on the PiBox locally and provides the following functionality:
- Web UI for configuring the PiBox, adding users, browsing files
- An HTTP/HTTPS API for accessing the PiBox via PiBox mobile / desktop apps
## API Endpoints
Endpoints are documented in Postman: https://www.postman.com/piboxapi/workspace/pibox-workspace/collection/2213994-c9cde7ef-61ed-4c29-9410-6209da725830
## Dependencies
```bash
# Hdd tools, password tools, cairo for canvas NPM package
apt-get install -y \
vim lvm2 raspberrypi-kernel-headers samba samba-common-bin \
tmate sysstat git iptables cryptsetup whois \
jq build-essential libcairo2-dev libpango1.0-dev \
libjpeg-dev libgif-dev librsvg2-dev nodejs
# Give sudoers NOPASSWD requirement (same as pi user)
sed -i 's/%sudo\tALL=(ALL:ALL) ALL/%sudo\tALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers
# Create root files directory (and mount it)
mkdir /files
groupadd sambagroup
```