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 upgrade
sudo apt-get install mongodb mongodb-server mongodb-clients mongodb-dev
sudo apt-get install nodejs npm
sudo ln --symbolic /usr/bin/nodejs /usr/bin/node
Node.JS is installed as "nodejs" instead of the more common "node" for some reason.sudo apt-get install authbind
sudo touch /etc/authbind/byport/80 /etc/authbind/byport/81
sudo chown debian:debian /etc/authbind/byport/80 /etc/authbind/byport/81
chmod +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 git
cd ~ && git clone https://github.com/josteinaj/meteor-udoo.git
cd ~/meteor-udoo && ./scripts/generate-dev-bundle.sh without-dependencies
sudo ln --symbolic ~/meteor-udoo/meteor /usr/bin/meteor
- Now you should be able to use the
meteor
command to your hearts content! Useauthbind --deep meteor --port 80
to bind to port 80
- TODO: installing udoo npm
- Edit
~/meteor-udoo/run-service.sh
and setPROJECT_DIR
to 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.sh
to 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.