![]() Sudo apt-get install iptables-persistent -y Sudo iptables -t nat -I PREROUTING -p tcp -dport 80 -j REDIRECT -to-port 8000 Iptables (allow access to port 8000 from port 80) # Iptables (allow access to port 8000 from port 80) Pm2 start $(which cncjs) -port 8000 -m /tinyweb:/home/pi/tinyweb # Start CNCjs (on port 8000, /w Tinyweb mount point) with PM2 Sudo env PATH= $PATH:/usr/bin /usr/lib/node_modules/pm2/bin/pm2 startup systemd -u pi -hp /home/pi Pm2 startup # To start PM2 as pi / current user # Setup PM2 Startup Script # sudo pm2 startup # To Start PM2 as root # Install Specific Version of CNCjs # sudo npm install -g -unsafe-perm # Installs Specific Version based on TAG Install Production Process Manager # Install PM2 Npm install serialport Install CNCjs # Install Latest Release Version of CNCjs # Install Node.JS Serial Port application first (OPTIONAL) Sudo apt-get install -y nodejs # npm nodejs-legacy # ( Installed with nodesource) Update Node Package Manager (NPM) # Update Node Package Manager (NPM) sudo npm install npm -gĮcho " =" which npm npm -v Įcho " =" which node node -v Install Node.js via Package Manager # Install Node.js via Package Manager & Add Package SourceĬurl -sL | sudo -E bash - # Install NodeJS v7 Install Node.js via Node Version Manager (NVM).Install Node.js via Package Manager (Recommended).PAUSE HERE!!!, decide on which method to use: Sudo apt- get install htop iotop nmon lsof screen -y Sudo apt- get install -y build-essential git # Update Raspberry Pi kernel and firmware, (/cncjs/cncjs/issues/97) # Install Build Essentials & GIT ![]() # Change Timezone # Change Hostname # Change Boot Option: Boot to CLI (No GUI) Updates & Upgrade System # Update System Raspberry Pi Install: System Preparation Install NOOBS & RASPBIAN on your Raspberry Pi Kiri:Moto (converts 3D models to 3D mesh CNC cutting paths).jscut (converts SVG files to CNC cutting paths).Recommed Software (for a full web capatable CNC software stack): If you a buying a raspberry pi, buy a Raspberry Pi 3 or latest model. We recommend that you use a Raspberry Pi 3 or Raspberry Pi 2 because of the performance requirements of the Node.js application.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |