Installing m-Power on a Linux Server
In the following example, we will be installing m-Power on Ubuntu, a popular “flavor” of Linux.
- Install JDK and JRE through Synaptic Package Manager
- System -> Administration -> Synaptic Package Manager
- Once in the Synaptic Package Manager, go to Settings -> Repositories
- Under the Ubuntu Tab, check the “Software restricted by copyright or legal issues (multiverse)”
- Click Close
- You should now be back to the Synaptic Package Manager
- Click the Search Icon
- Type JDK
- Select the sun-java5-jre and the sun-java5-jdk and select the “Mark for Installation”
- Other components will also be selected — this is OK
- Click the Apply green check button
- A summary pop up box will appear, click the “Apply” button
- The appropriate Java tools will now be installed onto your system properly.
- Once finished, you can verify they have been installed successfully by going to a command line and entering the command “java” and “javac”. If many argument options appear for these commands, you have succeed in Step 1.
- Next we need to tell Ubuntu where your new JDK can be found
- Hit ALT+F2 to bring up the “Run Application” window, and enter “gksudo nautilus” (allows you “windows explorer” view and full authority on all files and folders)
- Navigate to /etc, and edit the file profile
- Enter the following text
#Arguments for Tomcat for m-Power
export JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun-1.5.0.08
export CATALINA_HOME=/usr/local/tomcat
export PATH=$JAVA_HOME/bin:$PATH
- Click Save.
- Configure mrc Tool Properties File
- Rename \m-power\proddata\conf\mrctool.properties to mrctoolWIN.properties
- Rename \m-power\proddata\conf\mrctool400.properties to mrctool.properties
- Modify mrctool.properties to verify that the location of the target and classpath are correct.
- Be sure to change the “;” in the classpath to “:”, as this is the proper syntax needs on all Linux or Mac setups.
- Getting Tomcat
- Download and extract m-Power. It can be found at this link: Download m-Power here .
- Now that you have extracted the .zip file, there should now be an m-Power folder. Within that there is a Tomcat folder. Copy and Paste this directory on your Linux server in the /usr/local directory
- The easiest way to do this is to hit ALT+F2 and type gksudo nautilus (allows you “windows explorer” view and full authority on all files and folders)
- Simply navigate to /usr/local and paste the Tomcat directory there.
- Within the /usr/local/tomcat/conf directory, edit the server.xml file with text editor. Scroll to the bottom of the document. Notice where it says:
<Host name="localhost" appBase="webapps">
- Modify the following section to look like this:
<Host name="localhost" appBase="webapps">
<!-- m-power for windows/NT
<Context path="/webapp/mrc" docBase="C:/m-power/mrcwebgui" debug="0" reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="mrcps_log" suffix=".txt" timestamp="true"/>
</Context>
-->
<Context path="/webapp/mrc" docBase="/m-power/mrcwebgui" debug="0" reloadable="true" >
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="mrcps_log" suffix=".txt" timestamp="true"/>
</Context>
<Context path="/mrcjava" docBase="/m-power/mrcjava" debug="0" reloadable="true">
<Logger className="org.apache.catalina.logger.FileLogger"
prefix="mrcjava_log" suffix=".txt" timestamp="true"/>
</Context>
</Host>
- Click Save.
- Starting Tomcat
- Once at a command line, run a cd\
- CD $CATALINA_HOME/bin
- Sh Catalina.sh start
- Accessing m-Power
- http://999.999.999.999:8011/webapp/mrc/servlet/MRCPS.MRC001 (where 999.999.999.999 is the IP address of your Linux Server).
- Stopping Tomcat
- At a command line, run a cd\
- CD $CATALINA_HOME/bin
- Sh Catalina.sh stop