motolaps-motobox
v0.3.6
Published
# motolaps-motobox
Downloads
44
Readme
motolaps-motobox
Description
Installation
Zu installieren:
apt-get update
apt-get dist-upgrade
apt-get install ufw
apt-get install -y git libudev-dev libusb-dev libusb-1.0-0 libusb-1.0-0-dev
Hyper: apt-get install hyperv-daemons Install node and npm on linux:
Hyper v: curl -sL https://deb.nodesource.com/setup_8.x | sudo bash - sudo apt-get install -y nodejs
Node auf armv6: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash nvm install 10.15.3
Raspi v3?: curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash nvm install 10.15.3
sudo npm install -g gulp-cli dotup-node-app-installer dotup-ts-node-mifare-usb pm2 --unsafe-perm noin -u dotupNET -r motolaps-motobox (als app)
oder: (EACCESS Error!) cd ~ wget https://nodejs.org/dist/v10.15.3/node-v10.15.3-linux-armv6l.tar.gz tar -xzf node-v10.15.3-linux-armv6l.tar.gz cd node-v10.15.3-linux-armv6l sudo cp -R * /usr/local rm -R node-v10.15.3-linux-armv6l rm node-v10.15.3-linux-armv6l.tar.gz export PATH=$PATH:/usr/local/bin
#############################################################
Boot to terminal:
https://stackoverflow.com/questions/30044035/starting-node-app-at-startup-on-raspberry-pi
https://raspberrypi.stackexchange.com/questions/34060/raspberry-pi-autostart-terminal-running-nodejs-for-lxde-environment/34061
https://ubuntu-mate.community/t/solved-boot-raspberry-pi-2-image-directly-to-terminal-console/1569/3
https://www.raspberrypi-spy.co.uk/2014/05/how-to-autostart-apps-in-rasbian-lxde-desktop/
#############################################################
Firewall:
RDP 3389/tcp
Bonjour 5353/udp
SSDP 1900/udp
Node Remote debug 9229/tcp
ufw default deny incoming ufw default allow outgoing ufw allow ssh ufw allow 3389/tcp ufw allow 1900/udp ufw allow 9229/udp ufw enable
#############################################################
Device discovery service:
Status anzeigen: systemctl status motoboard.service
Neustart: systemctl restart motoboard
Logs anzeigen: sudo journalctl --follow -u motoboard.service
Deinstallieren: sudo systemctl stop [servicename] sudo systemctl disable [servicename] rm /etc/systemd/system/[servicename] sudo systemctl daemon-reload sudo systemctl reset-failed
systemd service: After=network-online.target Wants=network-online.target
#############################################################
GPIO Access:
https://www.raspberrypi.org/forums/viewtopic.php?f=117&t=208748
https://www.raspberrypi.org/forums/viewtopic.php?t=5185#p161013
Configuration
Usage
Release Notes
1.0.0
Fixes/Features:
- Initial release
License
MIT © Peter Ullrich
Enjoy!