Mango, open source Machine to Machine on Ubuntu

I just share my experience about installing Mango on Ubuntu 9.10. This article is only copying from various sources.


BE AWARE: My experience is very limited. I am not sure these codes are perfect. I just want say that they work for me. Thanks


Graphic Views


Watch List

http://www.java.com/en/download/help/linux_install.xml#selfextracting

Download java jre-6u20-linux-i586.bin from http://javadl.sun.com/webapps/download/AutoDL?BundleId=39485

To install the Linux (self-extracting) file
Follow these instructions:
1. Change the permission of the file you downloaded to be executable. Type:
chmod a+x jre-6u20-linux-i586.bin
2. Verify that you have permission to execute the file. Type:
ls -l

3. Change to the directory in which you want to install. Type:
cd
For example, to install the software in the /usr/java/ directory, Type:
cd /usr/java/

Note about root access: To install Java in a system-wide location such as /usr/local, you must login as the root user to gain the necessary permissions. If you do not have root access, install the Java in your home directory or a subdirectory for which you have write permissions.

4. Run the self-extracting binary Type:
./jre-6u20-linux-i586.bin

The license agreement is displayed. Review the agreement. Press the spacebar to display the next page. At the end, enter yes to proceed with the installation.

5. Java is installed into its own directory. In this example, it is installed in the /usr/java/jre1.6.0_20 directory. When the installation has completed, you will see the word Done.

6. Verify that the jre1.6.0_20 sub-directory is listed under the current directory. Type:
ls

Enable and Configure
Firefox or Mozilla

1. Create a symbolic link to the libjavaplugin.so file in the browser plugins directory
* Go to the plugins sub-directory under the Firefox installation directory
cd /plugins

* Create the symbolic link
ln -s /plugin/i386/
ns7/libjavaplugin_oji.so

In the ln command line above, use ns7-gcc29 if Firefox was compiled with gcc2.9.

If you install Firefox 1.5 or later, you can enable the Java Console menu item in the Tools menu. Change directories to the Firefox extensions directory, then unzip ffjcext.zip there.

cd /usr/lib/firefox-1.4/extensions
unzip /usr/java/jre1.6.0/lib/deploy/ffjcext.zip

Example
* If Firefox is installed at this directory:
/usr/lib/firefox-1.4/
* And if the Java is installed at this directory:
/usr/java/jre1.6.0_20
* Then type in the terminal window to go to the browser plug-in directory:
cd /usr/lib/firefox-1.4/plugins
* Enter the following command to create a symbolic link to the Java Plug-in for the Mozilla browser.
ln -s /usr/java/jre1.6.0_20/plugin/i386/ns7/libjavaplugin_oji.so

2. Start the Firefox browser, or restart it if it is already up.

In Firefox, type about:plugins in the Location bar to confirm that the Java Plugin is loaded. If the version is Firefox 1.5 or later, click the Tools menu to confirm that Java Console is there

http://ubuntuforums.org/showthread.php?p=226828

Download Tomcat from http://mango.serotoninsoftware.com/downloads/apache-tomcat-6.0.20.tar.gz

Add tomcat
Place the uncompressed package in:
/usr/tomcat/

Step 1 – Set JAVA_HOME and CLASSPATH

You need to point out where you installed Java SDK. You will have to edit the file ‘.bashrc’. Backup this file first!

In terminal type:

Code:

gedit ~/.bashrc

Add the following lines to the file:

Code:

#Stuff we added to make tomcat go
export JAVA_HOME=/usr/java/jre1.6.0_20/
export CLASSPATH=/usr/tomcat/apache-tomcat-6.0.20/lib/jsp-api.jar:/usr/tomcat/apache-tomcat-6.0.20/lib.jar
#endStuff we added to make tomcat go

N.B. remember to change the word tomcat to the name of the package you placed in /usr/tomcat

Step 2 – Start tomcat

Tomcat should now be ready to run.

In terminal type:

Code:

sh /usr/tomcat/apache-tomcat-6.0.20/bin/startup.sh

If everything is working fine, you will see the following lines:

Code:

Using CATALINA_BASE: /usr/tomcat/apache-tomcat-6.0.20
Using CATALINA_HOME: /usr/tomcat/apache-tomcat-6.0.20
Using CATALINA_TMPDIR: /usr/tomcat//apache-tomcat-6.0.20/temp
Using JRE_HOME: /usr/lib/j2sdk1.5-sun/

In your browser head to http://localhost/ and test if it is serving. If you didn’t change the port number it was serving on, head to http://localhost:8080/

If Tomcat started successfully, you should see a Tomcat welcome page when you direct your browser to http://localhost:8080/ (if you did not change the port in server.xml).

Shut down Tomcat before continuing with the installation. Either close the Tomcat window, or execute either /bin/shutdown.bat (Windows) or /bin/shutdown.sh (*nix), depending on your host system type.

To stop tomcat type:

Code:

sh /usr/tomcat/apache-tomcat-6.0.20/bin/shutdown.sh

http://mango.serotoninsoftware.com/download.jsp

Download Mango http://mango.serotoninsoftware.com/downloads/mango-1.8.2.tar.gz

These instructions assume that you will be installing Mango as the root application within Tomcat. Mango can also be installed in an application path if desired, but such an installation is not described here.

You may optionally clear out the applications that are shipped with Tomcat, as they are not required. To do so, delete all directories under /webapps. Then, recreate the ROOT subdirectory.

Unzip the Mango binary archive into the /webapps/ROOT directory. When you start Tomcat next (see above), Mango will be started as well. Depending on the speed of your system it could take a few minutes to create the database tables. Tomcat (and Mango) will have completed starting up when the Tomcat console displays the message “INFO: Server startup in xxx ms” (where “xxx” is the number of milliseconds it took to start up). When you direct your browser to your Tomcat installation, you should now see the Mango login page.

Upon installation, Mango creates a single login account with username “admin” and password “admin”. Once you log in, you are strongly encouraged to change at least the password for this account on the “Users” p
age (). Also, you can set various system properties on the “System settings” page ().

Congratulations! Mango is now ready to use!

Facebooktwittergoogle_plusredditpinterestlinkedinmail

147 thoughts on “Mango, open source Machine to Machine on Ubuntu”

  1. I tried setting up my Zoom 3095 56K USB external modem with Ubuntu 9.10, but the pppconfig will only list the COM ports for dial up configurations, no USB ports are in that list. Can anyone figure out how to do this with my USB modem?

  2. Thanks for taking the time to discuss this, I feel strongly about it and love learning more on this topic. If possible, as you gain expertise, would you mind updating your blog with extra information? It is extremely helpful for me.

  3. A Data Communication Protocol for Building Automation and Control Networks – see bacnet.org. BACnet is a standard data communication protocol for Building Automation and Control Networks.

  4. This information is very interesting, I really enjoyed, I would like get more information about this, because is very beautiful, thanks for sharing !

  5. I precisely wanted to thank you so much once more. I am not sure the things that I could possibly have carried out without the type of techniques revealed by you directly on my subject matter. Previously it was an absolute alarming matter for me, nevertheless taking note of your well-written manner you managed it forced me to jump for happiness. I’m just happier for this support and as well, have high hopes you realize what a powerful job you are always undertaking teaching the mediocre ones using your web page. Most likely you've never got to know all of us.

  6. I am glad capture idea out of your article. It has information I have been seeking a long time. This looks absolutely perfect. Each one of these tiny information and facts are made with lot of background knowledge. I love it a good deal.

  7. This is often a amazing blog, would you be interested in doing an interview regarding just how you created it? If so e-mail me and my friends!

  8. The post is very nicely written and it contains many useful facts. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement. Thanks for sharing with us.

  9. Who would have thought to make a unique decoration out of the coconut tree? genius! The only thing i can say is that if ever i will be using this coconut husk, i would probably use this in a restaurant or disco houses where lights are sparkling, glitters and all that.

  10. hey that's really a great post and i like this and thanks for sharing it with us!I have read a few of the articles on your website now because I was looking for information aboutgames App. and I really like your style of blogging.

  11. Quite possibly the most succinct and current info I came across about this subject. Sure pleased that I discovered that site by accident. I’ll probably be subscribing for your feed so that I will get the most current updates. Like the information here.

  12. Excellent stuff from you, man I’ve read your things before and you are just too awesome. I adore what you have got right here. You make it entertaining and you still manage to keep it smart. This is truly a great blog thanks for sharing…

  13. Write more, thats all I have t? say. Literall?, it seems as th?ugh ?ou relied on the vi?eo to make you? po?nt.?ou clearly kn?w ?hat your? talking about, wh? throw aw?y your intelligence on just posting video? to your ?it? when y?u c?uld be giving u? ?om?th?ng enlightening to read?My weblogvapornine.com

  14. Prett? n?c? p?st.? just stumbled u?on y?u? blog and wished to say that I hav? re?lly enjoyed surf?ng ?roun? your weblog p??ts.In ?ny cas? I ?ill be subs?ribing to y?ur rss feed ?n? I am hoping you write ?gain very so?n!Feel free to visit my homepage :: ecn broker forex

  15. D? you mind if ? quote a fe? ?f your posts ?s l?ng as I ??ovide ?r?dit and sources bac? to your bl?g? M? bl?g sit? i? in th? ?xact same ar?? ?f ?nte?est as yours and my user? would cert?inl? benefit fr?m a lot ?f the inf??mati?n ?ou pres?nt her?.Pl?ase let me kno? ?f this alright with you. A?p?eci?te it!my site > galaxy note 2

  16. This is a good posting, I was wondering if I could use this write-up on my website, I will link it back to your website though. If this is a problem please let me know and I will take it down right away.

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image