Meteor Server Installation instructions
These instructions are as per instructions provided on the Meteor Server website along with my comments.
Make a directory for the Meteor Server and cd into it.
We begin with getting and unpacking Meteor Server:
tar zxvf latest.tgz
Alas, this doesn’t work. There is no file at the provided url, and I had to use the url provided for download. So this should work.
At this point, check the name of the file you got.
if it is “meteor-latest.tgz?raw=true”, then
mv meteor-latest.tgz?raw=true meteor-latest.tgz
before proceeding, or the next step won’t work. Now
should give you “meteor-latest.tgz”. Ready to move on.
tar zxvf meteor-latest.tgz
Now to set it up.
Copy the init script to
cp daemoncontroller.dist /etc/init.d/meteord
You will need to edit the file to change the path if you did not install meteor in
/usr/local/meteor. If you wish to use this to start/stop Meteor, you will need to edit line 14 to specify which user account will be used to run it. The default is
meteor, so if you want to create that user account now, type:
Now copy the configuration file to
cp meteord.conf.dist /etc/meteord.conf
To start meteor at boot, they recommend
chkconfig meteord on
This part didn't work for me, as I don't have chkconfig installed - the instructions seem "Fedora-ish" - I have no idea how Fedora works. Never used it. Instead, I did
update-rc.d meteord defaults
update-rc.d meteord enable
At this stage, you should be able to start meteor in debug mode (according to them).
For me, it didn't. I needed to
chmod +x meteord
as they have suggested. I also did
I could start meteor in debug mode successfully, but
I was getting "/bin/sh^M: bad interpreter: No such file or directory"
Found two problems. The first was that
/etc/init.d/meteord script refers to
/etc/init.d/functions which didn't exist. I edited the file to change the line
By checking what file was being referred by scripts that were working.
About the "^M" in the error, I discovered that it was caused by the file having dos line endings. It should have been unix line endings.
I opened it in vi
and in the command mode itself (hit ESC if you've switched to INSERT) entered:
Then saved and exited