Skip to content

m4recek/Node-MongoDb-Pi

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 

Repository files navigation

Node-MongoDb-Pi

This is a simple shell script that will install NodeJs v5.3.0, and MongoDB. The "Latest version" of Node in the raspberry pi repo is some really old version like 1.4.0 or something. Too old, and this script will compile v5.3.0.

The script will then compile the MongoDB binary, and the process will take about four to five hours. Thank you Willi Thiel @ https://ni-c.github.io/heimcontrol.js/get-started.html All I did was place this in a shell script for easy downloading and install via a bash script, and write some extra code that will clean up the downloaded files. I also updated the version of node, as the version on his site is not optimized for the Raspberry Pi 2. The cool thing about this script is that you can just walk away from your pi for four hours, and everything will be ready to go when you get back. I will try to keep this script up-to-date as new versions of Node are released for the ARM7. You will need git installed before you run the script.

You can install everything on your pi by:

going into you Raspberry Pi 2 terminal, and running:

sudo apt-get install git;

git clone git://github.com/audstanley/Node-MongoDb-Pi;

cd Node-MongoDb-Pi;

sudo bash Install-Node-MongoDb-Pi-sh;

After the install you can control mongodb anywhere on the system with:

sudo service mongodb start|stop|restart

Please note that this is SPECIFICALLY for the raspberry pi 2, as NodeJS has a compiled ARM7 version available. If you have an older Raspberry Pi, just change eveywhere in the shell script (Node-MongoDb-Pi.sh) that says, "arm7l" with "arm6l"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%