C3Fire

Configuration C3Fire Server on Mac

From C3LearningLabs

Template:MenuHeadC3Fire Template:C3fire/Config/Install/Mac/Install Menu Template:TOCright

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.

The Server configuration is defined in <C3FIRE-Server>\C3FireServerConfig.xml

Example : C:\C3LearningLabs\C3Fire\Server\C3FireServerConfig.xml

 <Connection
  IPNr = "127.0.0.1"
  Port = "8382" 
  ... />

Example set the IP number to IPNr = "192.168.1.2"

Server on internet (WAN)

If the C3Fire server should be accessed from internet (WAN), you need configure the Internet router to
port-forward, port 8382 and port 8380 to the C3Fire Server.


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




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


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.

Template:C3fire/Config/Install/Mac/Install Menu