Setup Guide: Raspberry Pi | Maintaining your Software Stack w Updates & Upgrades
Austin St. Aubin edited this page Apr 17, 2019
·
3 revisions
# Update System
sudo apt-get update
sudo apt-get upgrade -y # Should also update Node.js if you used method #1
sudo apt-get dist-upgrade -y
# sudo rpi-update. # Update Raspberry Pi kernel and firmware, [is already done with 'apt-get update / upgrade'](github.com/cncjs/cncjs/issues/97)
sudo reboot
If you experience problems after rebooting, see Upgrade Problems for possible solutions.
# Update Node Package Manager (NPM)
sudo npm install npm@latest -g
# Get Version info
echo "[NPM] ============"; which npm; npm -v;
echo "[NODE] ============"; which node; node -v
# Stop CNCjs in PM2
pm2 stop cncjs
# Update CNCjs
#sudo npm update -g cncjs --unsafe-perm # Tends to fail to update CNCjs, so we will reinstall CNCjs will the command bellow (no settings will be lost)
sudo npm install -g cncjs --unsafe-perm # Install CNCjs again, if this fails or causes issue then run (sudo npm uninstall -g cncjs; sudo npm install -g cncjs --unsafe-perm ) https://github.com/cncjs/cncjs/issues/78
# Restart CNCjs in PM2
pm2 start cncjs
# First make sure that you save all your processes:
pm2 save
Then install the latest PM2 version from NPM:
sudo npm install pm2 -g
And finally update the in-memory PM2 process:
pm2 update
Join CNCjs Users Group on Facebook to share your experiences with other people.
Site: https://cnc.js.org
- Introduction
- Installation
- Using Pendants
-
Raspberry Pi Setup Guide
- System Setup & Preparation
- Install Node.js & CNCjs
- Install Node.js via Package Manager (Recommended)
- Install Node.js via Node Version Manager (NVM) (Alternative)
- Install Node.js Manually (Alternative)
- Use PM2 to auto-start CNCjs (Optional)
- Use Port 80 (Optional)
- Maintain
- Additional Setup Options:
- CNCjs UI on Pi - Adventures in PiLand
- Pi with Arduino Due
- Electron App
- User Guide
- Tool Change
- Troubleshooting
-
FAQ
- Forgot your password?
- How can I enable WebGL in my browser?
- Raspberry Pi: Error opening serial port "ttyAMA0"
- Webcam Streaming with Raspberry Pi
- Restream RTSP to M-JPEG
- Connect to an Arduino using WiFi
- Install Native Addons with Node.js v4
- Install Serialport on OS X El Capitan
- Kernel panic issue on macOS Sierra for devices using the CH340G, CH34G or CH34X chipset
- Testing without Arduino board
- Development
- API
- Wiki History
- Resources
- About