Great writeup on setting up wifi VLAN and DMZ using pfsense and Ubuquti.
To ensure fileshares are not super slow, do some basic Samba perf tuning in /etc/samba/smb.conf
:
[global]
socket options = TCP_NODELAY SO_RCVBUF=524288 SO_SNDBUF=524288 IPTOS_LOWDELAY
Install latest go and add /usr/local/go/bin
to PATH
in /etc/environment
curl -O https://dl.google.com/go/go1.11.1.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.11.1.linux-amd64.tar.gz
Runs on port 3000
- Install from source.
- Use the Debian startup (init.d) script: gogs-init-script.sh and setup gogs service
vi /etc/init.d/gogs sudo chmod 755 /etc/init.d/gogs sudo update-rc.d gogs defaults
- Navigate to host:30000 and setup
- Update
/go/src/github.com/gogs/gogs/custom/conf/app.ini
as needed (link to full config)
Runs on port 5000
-
Install Python, build tools and virtualenv
sudo apt update sudo apt install python-pip python-dev python-setuptools python-virtualenv git libyaml-dev build-essential mkdir ~/OctoPrint && cd ~/OctoPrint virtualenv venv source venv/bin/activate
-
Install OctoPrint in
~/OctoPrint
pip install pip --upgrade pip install https://get.octoprint.org/latest
-
Add our user to the dialout group and tty so that the user can access the serial ports:
sudo usermod -a -G tty poe sudo usermod -a -G dialout poe
-
Use the Debian startup (init.d) script: octoprint-init-script.sh and setup octoprint service
vi /etc/init.d/octoprint sudo chmod 755 /etc/init.d/octoprint sudo update-rc.d octoprint defaults
-
Install CuraEngine via this guide
sudo apt-get install dh-autoreconf cmake git python3-setuptools python3-sip-dev sudo apt-get install cd ~ wget https://github.com/google/protobuf/releases/download/v3.1.0/protobuf-python-3.1.0.tar.gz tar zxf protobuf-python-3.1.0.tar.gz cd protobuf-3.1.0 ./autogen.sh ./configure make sudo make install cd python python3 setup.py build sudo python3 setup.py install sudo ldconfig cd ~ git clone https://github.com/Ultimaker/libArcus.git cd libArcus mkdir build cd build cmake .. make sudo make install sudo ldconfig cd ~ git clone https://github.com/Ultimaker/CuraEngine.git cd CuraEngine mkdir build cd build cmake .. make sudo make install sudo ldconfig
-
Install support for a USB webcam using
mjpg-streamer
, I used a Logittech C920.sudo apt-get install cmake libjpeg8-dev git clone https://github.com/jacksonliam/mjpg-streamer.git cd mjpg-streamer/mjpg-streamer-experimental make sudo make install sudo ldconfig
Run streamer on port
8000
to test using flags for your device:export LD_LIBRARY_PATH=/home/poe/mjpg-streamer/mjpg-streamer-experimental mjpg_streamer -i "input_uvc.so -r 1280x720 -d /dev/video0 -f 30 -q 80" -o "output_http.so -p 8000 -w /home/poe/mjpg-streamer/mjpg-streamer-experimental/www"
-
Use the Debian startup (init.d) script: mjpg-streamer-init-script.sh
vi /home/poe/mjpg-streamer/mjpg-streamer-experimental/mjpg-streamer.sh vi /etc/init.d/mjpg-streamer sudo chmod 755 /etc/init.d/mjpg-streamer sudo update-rc.d mjpg-streamer defaults
Validate the stream service starts:
- Stream URL:
http://192.168.1.25:8000/?action=stream
- Snapshot URL:
http://192.168.1.25:8000/?action=snapshot
- Path to FFMPEG:
/usr/bin/ffmpeg
- Stream URL: