This repository has been archived by the owner on Dec 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Craig Bassett <[email protected]>
- Loading branch information
Showing
20 changed files
with
168 additions
and
101 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,96 @@ | ||
# Developing | ||
# fluiddpi | ||
|
||
## Requirements | ||
A pi image with Klipper, Moonraker and Fluidd pre-installed. | ||
|
||
This repository contains the necessary code to generate the distribution from an existing Raspbian lite distro image. | ||
|
||
## Where to download? | ||
|
||
You can download the latest release [here](https://github.com/cadriel/FluiddPI/releases/latest). | ||
|
||
Older releases can be found [here](https://github.com/cadriel/FluiddPI/releases). | ||
|
||
## How to use? | ||
|
||
1. Download the image as per above and install on an sdcard like you would any other Raspberry pi image. | ||
2. Optionally, if you require WiFi, configure by editing the `fluiddpi-wpa-supplicant.txt` on the root of the sd card - whilst it is still connected to your computer. | ||
3. Boot your Pi from the new sd card. | ||
4. Log into your Pi via SSH (located at `fluiddpi.local`). Default username is `pi` and password is `raspberry`. | ||
5. Best practice would have you; | ||
- `sudo apt-get update` | ||
- `sudo apt-get upgrade` | ||
- `sudo raspi-config` | ||
- Change your password | ||
- Define your timezone via 'Localization Options' | ||
- Optionally Change your hostname | ||
6. Reboot. | ||
|
||
Fluidd will be available at `http://fluiddpi.local` - and will present an error about a missing `printer.cfg` file. | ||
|
||
Please ensure your `printer.cfg` is configured correctly for Fluidd, see the fluidd docs [here](https://docs.fluidd.xyz). Once this is complete, you can now progress with your standard printer setup. | ||
|
||
## Compiling / Developing Quick Start | ||
|
||
Regular users of FluiddPI should **not** need to follow any of these steps. This is | ||
for those that wish to compile their own image and / or help in the development | ||
of this project. | ||
|
||
### Requirements | ||
|
||
Recommended environment is Ubuntu or similar, with docker and docker-compose installed. | ||
|
||
- bash | ||
- git | ||
- [docker](https://docs.docker.com/engine/install/ubuntu/) | ||
- [docker-compose](https://docs.docker.com/compose/install/) | ||
- [qemu-arm-static](http://packages.debian.org/sid/qemu-user-static) | ||
- [CustomPiOS](https://github.com/guysoft/CustomPiOS) | ||
- [Downloaded Raspbian Image](http://www.raspbian.org/) | ||
- Bash | ||
- Git | ||
- [Docker](https://docs.docker.com/engine/install/ubuntu/) | ||
- [Docker-Compose](https://docs.docker.com/compose/install/) | ||
- QEMU for emulation | ||
- About 5GB of free diskspace for the build | ||
- around ~5gb free space | ||
|
||
### Packages for Ubuntu 18.04/20.04 | ||
** Dekstop variants are known to cause issues during build due to snaps takeing up loop mounts ** | ||
```bash | ||
# Packages for Ubuntu 18.04/20.04 | ||
# Dekstop variants are known to cause issues during build due to snaps takeing up loop mounts ** | ||
|
||
sudo apt-get install gawk make build-essential util-linux \ | ||
qemu-user-static qemu-system-arm \ | ||
git p7zip-full python3 curl | ||
``` | ||
|
||
## Compiling source | ||
```bash | ||
git clone https://github.com/raymondh2/MainsailOS.git | ||
cd MainsailOS/ | ||
# To build; | ||
git clone https://github.com/cadriel/FluiddPI.git | ||
cd FluiddPI/ | ||
make build | ||
``` | ||
|
||
### Other make options | ||
```bash | ||
make clean - Clean all previous build items except the source raspian image | ||
make distclean - Clean up the source image and trigger a new download | ||
# To test; | ||
# To exit emulation - Ctrl-a x | ||
./run.sh | ||
``` | ||
|
||
```bash | ||
# Other make options | ||
|
||
# Clean all previous build items except the source raspian image | ||
make clean | ||
|
||
# Clean up the source image and trigger a new download | ||
make distclean | ||
``` | ||
|
||
### Build layout | ||
MainsailOS/emulation - Contains dependencies for emulation testing | ||
MainsailOS/src/image - Contains our base raspbian image | ||
MainsailOS/src/workspace - Created during build, and output for compiled images | ||
|
||
```bash | ||
fluiddpi/ | ||
/emulation - Contains dependencies for emulation testing | ||
/src/image - Contains our base raspbian image | ||
/src/workspace - Created during build, and output for compiled images | ||
``` | ||
|
||
### With Thanks | ||
|
||
FluiddPI wouldn't be possible without the hard work of Raymond Himle, Stefan Dej | ||
and the team behind CustomPiOS. Thank you! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
export DIST_NAME=MainSailOS | ||
export DIST_NAME=FluiddPI | ||
export DIST_VERSION=0.4.0 | ||
export BASE_IMAGE_ENLARGEROOT=2000 | ||
export BASE_IMAGE_RESIZEROOT=500 | ||
export MODULES="base(network,raspicam,klipper,moonraker,mainsail,mjpgstreamer,password-for-sudo)" | ||
export MODULES="base(network,raspicam,klipper,moonraker,fluidd,mjpgstreamer,password-for-sudo)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
FLUIDD_VAR="This is a module variable" |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env bash | ||
# Fluidd installation script | ||
# Installs Fluidd and nginx | ||
# Originally Written by Raymond Himle | ||
# With contributions from Meteyou and Cadriel | ||
# With thanks to KevinOConnor & Arksine | ||
# GPL V3 | ||
######## | ||
|
||
|
||
# Source error handling, leave this in place | ||
set -x | ||
set -e | ||
|
||
source /common.sh | ||
install_cleanup_trap | ||
|
||
unpack /filesystem/home/pi /home/pi pi | ||
|
||
echo "Installing Fluidd" | ||
|
||
apt update | ||
apt install nginx -y | ||
rm /etc/nginx/sites-enabled/default | ||
ln -s /etc/nginx/sites-available/fluidd /etc/nginx/sites-enabled/ | ||
cd /home/pi/ | ||
[ ! -d /home/pi/gcode_files ] && su -c "mkdir /home/pi/gcode_files" - pi | ||
su -c "mkdir /home/pi/fluidd" - pi | ||
su -c "wget -q -O fluidd.zip https://github.com/cadriel/fluidd/releases/latest/download/fluidd.zip" - pi | ||
su -c "unzip fluidd.zip -d /home/pi/fluidd" - pi | ||
rm /home/pi/fluidd.zip | ||
|
||
# link logfiles to klipper_logs | ||
ln -s /var/log/nginx/fluidd-access.log /home/pi/klipper_logs/ | ||
ln -s /var/log/nginx/fluidd-error.log /home/pi/klipper_logs/ | ||
|
||
# Run installation steps defined above | ||
|
||
# Unpack root at the end, so files are modified before | ||
unpack /filesystem/root / |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/modules/mjpgstreamer/filesystem/root/etc/systemd/system/webcamd.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.