Configuration C3Fire Server on Mac

From C3LearningLabs

Start - Server Installation -> Server Configuration -> Client Installation -> Client Configuration -> Test C3Fire - Mac Help - Troubleshooting

Configure Server

Before you configure the C3Fire server do the Test C3Fire server on the Server installation page so that you know that the first installation step did work.

The configuration you need to do is only to set the IP number that your server computer have.

Find the server computer's IP number

To get a computers IP number open Network window: Launchpad -> System Preferences -> Network

It will open the following window.

Network Info

The IP number are the IPv4 Address

Run the configuration program

The IP numbers can be set by running a program that updates the IP number in all C3Fire configuration files.
The configuration program is located in folder <C3LEARNINGLABS-ROOT>/Tools/Config/.
Example: /Applications/C3System/C3LearningLabs/Tools/Config/

Finder config



You should edit the configuration file. The configuration file is located at <C3LEARNINGLABS-ROOT>/Tools/Config/config.xml.
Example : /Applications/C3System/C3LearningLabs/Tools/config.xml .
Change the IP number in the argument that is labeled New and save the file.
The configuration program search for all occurrences of the Find ip number and replace it with the New ip number.


Example, If your server computer have the ip number 192.168.1.37 :

<Search>
Replace Find="127.0.0.1" New="192.168.1.37"
</Search>

Run the configuration program <C3LEARNINGLABS-ROOT>/Tools/Config/config.sh

Example:
cd /Applications/C3System/C3LearningLabs/Tools/Config
sudo sh config-mac.sh

The configuration program changes the IP number in all configuration files from the value in argument Find to the value defined in the argument New.

Finder config

Now, configuration is done. It is now time to try if the system is working on the server computer.
This is done by doing the steps in Test C3Fire Server and Test C3Fire Client from the server computer below.

Test C3Fire Server

Restart The Computer!
You can start C3Fire server with the command below in a terminal window.

Start with shell script
Go to the C3Fire server folder: <C3LEARNINGLABS-ROOT>/C3Fire/Server/
Example: cd /Applications/C3System/C3LearningLabs/C3Fire/Server

Start the server with the following command:
sudo sh C3FireServer-Start-Mac.sh
sudo sh C3FireServer-Start-Mac-NoUI.sh Use this if the server should not view user interface.

StartServer

Start with command
Go to the C3Fire server folder: <C3LEARNINGLABS-ROOT>/C3Fire/Server/
Example: cd /Applications/C3System/C3LearningLabs/C3Fire/Server

java -Xmx256m -Xms128m -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser -Djava.security.policy=C3Fire.policy -classpath ./Lib/C3Systems.jar c3systems.server.server.Server -c C3FireServerConfig.xml -ui Yes

java -Xmx256m -Xms128m -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser -Djava.security.policy=C3Fire.policy -classpath ./Lib/C3Systems.jar c3systems.server.server.Server -c C3FireServerConfig.xml -ui No Use this if the server should not view user interface.



After some startup time the C3Fire server should write 'C3Fire Server Running', and 'Waiting On Manager'.

StartServer StartServer

When the server start if write a process listing on what is happening during the start.
In this listing the server should write the IP number and the Port number used by the server.
Early in the process it will write the IP number configuration for the servar and the http server.
Later in the process it will write the IP number when it is created.

Example:

StartServer StartServer


If the server did start you should test the web server.

If the C3Fire server does not start go to Troubleshooting C3Fire Server on Mac.

Test Web Server

When the C3Fire server is started, a preconfigurated Jetty web server also, automatically, is started.
The Jetty web server uses the standard web server port 8380.

You can test the web server by surfing to the server computer with a web browser.
http://<IP-Number>:8380/

Example Surf to : http://192.168.1.34:8380/


The browser should show the following page.

Web page
If the Jetty web server does not start go to Start Web Server Manually and try to start it.

Test C3Fire Client on Server Computer

Start C3Fire client on the server computer.

You can start a C3Fire client with the command below in a terminal window.

Start with shell script
Start a new terminal window.
Go to the C3Fire client application folder: <C3LEARNINGLABS-ROOT>/C3Fire/Client/Application/
Example: cd /Applications/C3System/C3LearningLabs/C3Fire/Client/Application

Start the client with the following command:
sudo sh C3FireClient-Start-Mac.sh

Start Client

Start with command
Go to the C3Fire client files folder: <C3LEARNINGLABS-ROOT>/C3Fire/Client/Files/ROOT/
Example: cd /Applications/C3System/C3LearningLabs/C3Fire/Client/Files/ROOT

Start the client with the following command:
java -Xmx256m -Xms128m -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser -Djava.security.policy=C3Fire.policy -classpath ./Lib/C3Systems.jar c3systems.client.client.applet.Application Config=C3FireClientConfig.xml




After some startup processes the C3Fire client should open the following window.

C3Fire Client

If the C3Fire client does not start go to Troubleshooting C3Fire.

Start - Server Installation -> Server Configuration -> Client Installation -> Client Configuration -> Test C3Fire - Mac Help - Troubleshooting