Changes for page Nightscout on Linux
Last modified by Richard Johnson on 2022/08/30 16:31
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -11,8 +11,19 @@ 11 11 ** You can't install a 64 bit Ubuntu onto a Raspberry PI Zero or Zero W, because it requires ARMv7 processor and the Zero series is based on ARMv6. 12 12 *** Probably the smallest choice would be Raspberry Pi Model 3 A+. 13 13 14 -When installing "nodejs", make sure you're using a more recent version such as 16.x.x. Run "node -v" to verify your node version. If you're running an older version of Linux, you may have to manually override the installed version in order to get the version you need .[[Here's a web pagetellingyouhow to do that.>>https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-16-04]]Followingtheinstructionsinthesection"Option2 — Installing Node.js withAptUsinga NodeSourcePPA" workedfor me and gavemeversion 16.17.0.14 +When installing "nodejs", make sure you're using a more recent version such as 16.x.x. Run "node -v" to verify your node version. If you're running an older version of Linux, you may have to manually override the installed version in order to get the version you need; currently nodejs 14, 12, or 10. I ran this command to setup apt-get to install version 14: 15 15 16 +(% class="box" %) 17 +((( 18 +curl -sL https:~/~/deb.nodesource.com/setup_14.x -o nodesource_setup.sh 19 +))) 20 + 21 +You also need to make sure you have Mongo version 3.x or later. You can setup the apt-get install for version 4.x here: 22 + 23 +[[https:~~/~~/www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/>>https://www.mongodb.com/docs/manual/tutorial/install-mongodb-on-ubuntu/]] 24 + 25 +(If you end up with the wrong version, use "dpkg -l" to see the package name. There were probably other packages also installed at the same time, so remove all all "mongo" pages using "apt-get remove", then check "dpkg -l" to see if any are in the "rc" state. If so, purge them with "dpkg ~-~-purge". Finally, you can reinstall the correct version again.) 26 + 16 16 I finally ended up using a Raspberry Pi model 3 A+. This is an ARMv7 processor, so it can do 64 bit Linux, it has built-in Wifi, and it's still small and cheap. The system doesn't have a lot of memory, so I purchased a 32Gb micro-SD card and [[created a 16Gb swapfile>>https://linuxize.com/post/how-to-add-swap-space-on-ubuntu-18-04/]]. I installed Ubuntu 19 from here: 17 17 18 18 [[https:~~/~~/ubuntu.com/download/raspberry-pi>>https://ubuntu.com/download/raspberry-pi]]