Meteor is an ultra-simple environment for building modern web applications.
This project aims to get Meteor running on UDOO, including the node.js package node-udoo.
Read more about Meteor on Meteors GitHub project page, and about node-udoo on the node-udoo GitHub project page.
- Download and install Debian Wheezy armHF
- Configure WiFi so that it gets connected automatically
- (optional) Give the UDOO a fixed IP on your router
- (optional) Assign the local IP to DMZ and assign a dynamic DNS to it
- Enable the two network interfaces in /etc/network/interfaces. You'll probably want to install your favorite text editor (maybe vim) at this point so that you can edit the interface file. After having edited it; reboot to activate the interfaces.
- Set the locale
- Enable the debian testing and unstable repositories. You can probably get away with just enabling the testing repo, but I followed the instructions precisely.
sudo apt-get install screen(optional, but using screen makes everything easier. I recommend you run all of the following steps through screen.)sudo apt-get update && sudo apt-get upgradesudo apt-get install mongodb mongodb-server mongodb-clients mongodb-devsudo apt-get install nodejs npmsudo ln --symbolic /usr/bin/nodejs /usr/bin/nodeNode.JS is installed as "nodejs" instead of the more common "node" for some reason.sudo apt-get install authbindsudo touch /etc/authbind/byport/80 /etc/authbind/byport/81sudo chown debian:debian /etc/authbind/byport/80 /etc/authbind/byport/81chmod +x /etc/authbind/byport/80 /etc/authbind/byport/81(MongoDB will bind to one port above your HTTP port which is why we need to make 81 available)
sudo apt-get install gitcd ~ && git clone https://github.com/josteinaj/meteor-udoo.gitcd ~/meteor-udoo && ./scripts/generate-dev-bundle.sh without-dependenciessudo ln --symbolic ~/meteor-udoo/meteor /usr/bin/meteor- Now you should be able to use the
meteorcommand to your hearts content! Useauthbind --deep meteor --port 80to bind to port 80
- TODO: installing udoo npm
- Edit
~/meteor-udoo/run-service.shand setPROJECT_DIRto the absolute path to your meteor project. For instance, try setting it to the meteor "docs" project. - Run
crontab -e(as a normal user) and add* * * * * /home/debian/meteor-udoo/run-service.shto the end of the file
Once a minute, this will check if your meteor project is running, and start it if it isn't. So if for some reason it crashes it will restart; but most importantly, it will start automatically on boot.