I have created this as a reference for myself.
MongoDB on Ubuntu:
Location of log file /var/log/mongodb/mongodb.log
Location of config file /etc/mongodb.conf
Find out why Mongo won’t start
sudo -u mongodb mongod -f /etc/mongodb.conf --repair
How to stop a Mongo server from becoming Primary for 120 seconds – rs.freeze(120)
How to step down a Mongo server – rs.stepdown(120)
I have tried a few ways to upgrade, including removing the current install, and then using apt-get to install the newest version, but the Ubuntu repositories are sometimes out of date, and also a few things have gone wrong.
Here is the method I prefer which involves manually downloading, unzipping and then copying the new binaries over the existing ones:
1. Go to your temp directory : cd /tmp
2. Download the latest package from the MongoDB website to /tmp : sudo wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.1.tgz
3. Unzip the package: sudo tar -zxvf mongodb-linux-x86_64-2.4.1.tgz
4. Stop MongoDb – sudo service mongodb stop
5. Go to the folder where you just unzipped the files: cd /tmp/mongodb-linux-x86_64-2.4.1/bin
6. Copy the new files and overwrite the existing files: sudo cp -i * /usr/bin
7. Start the mongo service: sudo service mongodb start
8. Check that MongoDB is running and your MongoDB version : mongo
From the command line , type the following
SUDO dpkg-reconfigure tzdata
Follow the on screen prompts to set the time zone
I decided to run Boinc on a spare P4 desktop I had laying around that has Ubuntu Linux installed on it for browser testing. I wanted to attach to the seti@home project and continue the search for aliens (well extraterrestrials anyway) which I am prone to do with spare systems.
I created a new folder called boinc in my home folder then I went to the Boinc website here and grabbed the latest client software. You need permissions to be able to extract the archive, so right click and choose properties, then permissions and then click Execute: Allow executing file as a program then click on close.
I then double clicked on the file and extracted it and it created a folder called Boinc with the files in it. I then ran Boincmger and added the Seti@homeproject and I was of and number crunching!