Difference between revisions of "Config/Install/Linux/Install Server"
(19 intermediate revisions by the same user not shown) | |||
Line 48: | Line 48: | ||
The installation is done with commands in a terminal window.<br> | The installation is done with commands in a terminal window.<br> | ||
− | We recommend that you install the system in folder / | + | We recommend that you install the system in folder /opt/C3System. <br> |
Create the installation folder with the following command.<br> | Create the installation folder with the following command.<br> | ||
<code>sudo mkdir /opt/C3System</code><br> | <code>sudo mkdir /opt/C3System</code><br> | ||
Line 57: | Line 57: | ||
<br> | <br> | ||
;Download and copy | ;Download and copy | ||
− | :Download and copy the installation file <b>"c3fire-vx.x.x.x-install- | + | :Download and copy the installation file <b>"c3fire-vx.x.x.x-install-linux.tgz"</b> to the install folder /opt/C3System.<br> |
:Go to that folder in the terminal window. | :Go to that folder in the terminal window. | ||
:<code>cd /opt/C3System</code> | :<code>cd /opt/C3System</code> | ||
Line 64: | Line 64: | ||
:Uncompress the c3fire system with the following command. | :Uncompress the c3fire system with the following command. | ||
:In the command replace the version V4.1.0.0 number to the version number in the downloaded file. | :In the command replace the version V4.1.0.0 number to the version number in the downloaded file. | ||
− | :<code>sudo tar zxvf c3fire-v4.1.0.0-install- | + | :<code>sudo tar zxvf c3fire-v4.1.0.0-install-linux.tgz</code> |
− | :The installation will create the C3Fire folder structure, see [[ | + | :The installation will create the C3Fire folder structure, see [[Config/Install#Folder Structure (Where to find things)|Folder Structure]] at installation start page. |
::/opt/C3System/C3LearningLabs/C3Fire/... | ::/opt/C3System/C3LearningLabs/C3Fire/... | ||
Line 78: | Line 78: | ||
The C3Fire server system needs a license file to be able to start.<br> | The C3Fire server system needs a license file to be able to start.<br> | ||
− | The license file is supplied by C3 Learning Labs. If you do not have a license file, require a system license at the [[ | + | The license file is supplied by C3 Learning Labs. If you do not have a license file, require a system license at the [[System/License|license page]]. |
<br> | <br> | ||
The license file should have the name<code>C3Fire.license</code>, the case of the letter is important.<br> | The license file should have the name<code>C3Fire.license</code>, the case of the letter is important.<br> | ||
<br> | <br> | ||
The license file should be copied to the folder: <C3LEARNINGLABS-ROOT>/C3Fire/Server/<br> | The license file should be copied to the folder: <C3LEARNINGLABS-ROOT>/C3Fire/Server/<br> | ||
− | Example: <code>/ | + | Example: <code>/opt/C3System/C3LearningLabs/C3Fire/Server/C3Fire.license</code><br> |
<br> | <br> | ||
With a correct C3Fire license file it is now time to try if the system is working on the server computer.<br> | With a correct C3Fire license file it is now time to try if the system is working on the server computer.<br> | ||
<br> | <br> | ||
− | |||
− | |||
− | |||
= Test C3Fire Server = | = Test C3Fire Server = | ||
Line 99: | Line 96: | ||
;Start with shell script''' | ;Start with shell script''' | ||
:Go to the C3Fire server folder: <C3LEARNINGLABS-ROOT>/C3Fire/Server/ | :Go to the C3Fire server folder: <C3LEARNINGLABS-ROOT>/C3Fire/Server/ | ||
− | ::Example: <code>cd / | + | ::Example: <code>cd /opt/C3System/C3LearningLabs/C3Fire/Server</code> |
:Start the server with the following command: | :Start the server with the following command: | ||
− | ::<code>sudo sh C3FireServer-Start- | + | ::<code>sudo sh C3FireServer-Start-Linux.sh</code> |
− | ::<code>sudo sh C3FireServer-Start- | + | ::<code>sudo sh C3FireServer-Start-Linux-NoUI.sh</code> Use this if the server should not view user interface. |
− | |||
<blockquote style="background-color:#ddffdd; border: solid thin #aaddaa; font-size: 13px; color:000000;"> | <blockquote style="background-color:#ddffdd; border: solid thin #aaddaa; font-size: 13px; color:000000;"> | ||
<br> | <br> | ||
 '''Recommended commands to start C3Fire server'''<br> |  '''Recommended commands to start C3Fire server'''<br> | ||
− |  cd / | + |  cd /opt/C3System/C3LearningLabs/C3Fire/Server<br> |
− |  sudo sh C3FireServer-Start- | + |  sudo sh C3FireServer-Start-Linux.sh |
</blockquote> | </blockquote> | ||
After some startup time the C3Fire server should write 'C3Fire Server Running', and 'Waiting On Manager'.<br> | After some startup time the C3Fire server should write 'C3Fire Server Running', and 'Waiting On Manager'.<br> | ||
− | [[File:C3fire-config-install | + | [[File:C3fire-config-install-start-server-lin.png|800px|StartServer]] |
− | |||
<br> | <br> | ||
If the server did start you should test the web server.<br> | If the server did start you should test the web server.<br> | ||
− | If the C3Fire server does not start go to [[ | + | If the C3Fire server does not start go to [[Config/Install/Linux/Troubleshooting#Troubleshooting C3Fire Server|Troubleshooting C3Fire Server on Linux]]. |
Line 139: | Line 134: | ||
The browser should show the following page.<br> | The browser should show the following page.<br> | ||
<br> | <br> | ||
− | [[File:C3fire-config-install- | + | [[File:C3fire-config-install-start-web-server-lin.png|Web page]] |
<br> | <br> | ||
<br> | <br> | ||
− | If the Jetty web server does not start go to [[ | + | If the Jetty web server does not start go to [[Config/Install/Linux/Troubleshooting#Troubleshooting_Jetty_Web_Server|''Start Web Server Manually'']] and try to start it. |
If the web server does not start try to start it manually, see below. | If the web server does not start try to start it manually, see below. | ||
− | |||
− | |||
=== Test C3Fire Client on Server Computer === | === Test C3Fire Client on Server Computer === | ||
Line 157: | Line 150: | ||
:Start a new terminal window. | :Start a new terminal window. | ||
:Go to the C3Fire client application folder: <C3LEARNINGLABS-ROOT>/C3Fire/Client/Application/ | :Go to the C3Fire client application folder: <C3LEARNINGLABS-ROOT>/C3Fire/Client/Application/ | ||
− | ::Example: <code>cd / | + | ::Example: <code>cd /opt/C3System/C3LearningLabs/C3Fire/Client/Application</code> |
:Start the client with the following command: | :Start the client with the following command: | ||
− | ::<code>sudo sh C3FireClient-Start- | + | ::<code>sudo sh C3FireClient-Start-Linux.sh</code> |
<blockquote style="background-color:#ddffdd; border: solid thin #aaddaa; font-size: 13px; color:000000;"> | <blockquote style="background-color:#ddffdd; border: solid thin #aaddaa; font-size: 13px; color:000000;"> | ||
<br> | <br> | ||
 '''Recommended commands to start C3Fire client'''<br> |  '''Recommended commands to start C3Fire client'''<br> | ||
− |  cd / | + |  cd /opt/C3System/C3LearningLabs/C3Fire/Client/Application<br> |
− |  sudo sh C3FireClient-Start- | + |  sudo sh C3FireClient-Start-Linux.sh |
</blockquote> | </blockquote> | ||
− | [[File:C3fire-config-install- | + | [[File:C3fire-config-install-linux-start-client.png|800px|Start Client]]<br> |
After some startup processes the C3Fire client should open the following window.<br> | After some startup processes the C3Fire client should open the following window.<br> | ||
− | [[File:C3fire-config-install-start-client- | + | [[File:C3fire-config-install-start-client-select-user-type-manager-lin.png|C3Fire Client]]<br> |
− | If the C3Fire client does not start go to [[ | + | If the C3Fire client does not start go to [[Config/Install/Linux/Troubleshooting|Troubleshooting C3Fire]]. |
= Configure Server = | = Configure Server = | ||
Line 184: | Line 177: | ||
=== Configure === | === Configure === | ||
− | The Server configuration is defined in the file <C3FIRE-Server>\C3FireServerConfig.xml | + | :At the server computer you need to update both the server and the client configuration. |
+ | |||
+ | ;Server | ||
+ | :The Server configuration is defined in the file <C3FIRE-Server>\C3FireServerConfig.xml | ||
− | Example : / | + | :Example : /opt/C3System/C3LearningLabs/C3Fire/Server/C3FireServerConfig.xml |
− | <source> | + | :Set the IP number in the Connection and HttpServer configuration. |
+ | :Example: (C3Fire server is running on a computer with IP number 192.168.1.8)<br> | ||
+ | |||
+ | :<source> | ||
<Connection | <Connection | ||
− | IPNr = " | + | IPNr = "192.168.1.8" |
Port = "8382" | Port = "8382" | ||
... /> | ... /> | ||
Line 196: | Line 195: | ||
<HttpServer | <HttpServer | ||
Type = "Jetty" | Type = "Jetty" | ||
− | IPNr = " | + | IPNr = "192.168.1.8" |
Port = "8380" | Port = "8380" | ||
... /> | ... /> | ||
</source> | </source> | ||
− | |||
− | + | :It is also possible to change the the ports if needed. | |
− | + | :Write down the local area network (LAN) IP number.<br> | |
+ | :You need to configure that IP number in the Manager's client installation. | ||
− | + | ;Client | |
− | + | :To be able to start a Manager on the server computer configure the client part in the server computer | |
+ | :Edit the client configuration file in the server computer <C3FIRE-CLIENT>\C3FireClientConfig.xml | ||
+ | :Example : /opt/C3System/C3LearningLabs/C3Fire/Client/Files/Root/C3FireClientConfig.con | ||
+ | :Example: (C3Fire server is running on a computer with IP number 192.168.1.8)<br> | ||
+ | :<source> | ||
+ | <Connection | ||
+ | IPNrLan = "192.168.1.8" | ||
+ | |||
+ | ... | ||
+ | <HttpServer | ||
+ | IPNr = "192.168.1.8" | ||
+ | </source> | ||
=== Find the server computer's IP number === | === Find the server computer's IP number === | ||
Line 218: | Line 228: | ||
It will open the following window.<br> | It will open the following window.<br> | ||
<br> | <br> | ||
− | [[File:C3fire-config-install- | + | [[File:C3fire-config-install-linux-network-info.png|770px|border|Network Info]]<br> |
<br> | <br> | ||
The IP number are the IPv4 Address<br> | The IP number are the IPv4 Address<br> | ||
<br> | <br> | ||
+ | |||
+ | ;Terminal command | ||
+ | In a terminal enter:<br> | ||
+ | |||
+ | <code>ifconfig</code><br> | ||
+ | <br> | ||
+ | It will give information as:<br> | ||
+ | |||
+ | <source> | ||
+ | rego@Snorken:~$ ifconfig | ||
+ | enp2s0 Link encap:Ethernet HWaddr xx:xx:x:xx:xx:xx | ||
+ | inet addr:192.168.1.52 Bcast:192.168.1.255 Mask:255.255.255.0 | ||
+ | inet6 addr: 1234::95sd:e84f:5352:f550/64 Scope:Link | ||
+ | UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 | ||
+ | RX packets:726552 errors:0 dropped:1 overruns:0 frame:0 | ||
+ | TX packets:309495 errors:0 dropped:0 overruns:0 carrier:0 | ||
+ | collisions:0 txqueuelen:1000 | ||
+ | RX bytes:1026508788 (1.0 GB) TX bytes:23370486 (23.3 MB) | ||
+ | |||
+ | lo Link encap:Local Loopback | ||
+ | inet addr:127.0.0.1 Mask:255.0.0.0 | ||
+ | inet6 addr: ::1/128 Scope:Host | ||
+ | UP LOOPBACK RUNNING MTU:65536 Metric:1 | ||
+ | RX packets:2475 errors:0 dropped:0 overruns:0 frame:0 | ||
+ | TX packets:2475 errors:0 dropped:0 overruns:0 carrier:0 | ||
+ | collisions:0 txqueuelen:1 | ||
+ | RX bytes:415660 (415.6 KB) TX bytes:415660 (415.6 KB) | ||
+ | </source> | ||
+ | |||
+ | It will return a row containing some thing like <code>inet addr:192.168.1.52</code><br> | ||
+ | Then the IP number are: 192.168.1.52<br> | ||
=== Server on internet (WAN) === | === Server on internet (WAN) === | ||
Line 231: | Line 272: | ||
The default configuration uses port: | The default configuration uses port: | ||
− | :8380 | + | :8380 and 8382 |
− | |||
Write down the wide area network (WAN) IP number you got form the network administrator.<br> | Write down the wide area network (WAN) IP number you got form the network administrator.<br> | ||
You need to configure that IP number in the Manager's client installation. | You need to configure that IP number in the Manager's client installation. |
Latest revision as of 11:45, 7 October 2021
The C3Fire distribution contains all you need to run the system.
It contains The C3Fire environment, and the needed Java environment.
Download System
The system can be downloaded from the download page.
Require a system license at the license page.
Install C3Fire Server
Select Server Computer
Select the computer that you want to have as C3Fire server. It should be visible in the network that you use when you run C3Fire sessions.
Contact your network administrator and make sure that the C3Fire server and the C3Fire clients should be able to communicate in the network. The C3Fire server and the clients should be able to communicate on a port that you can select. The default port is 8382 but you can define port number in the C3Fire server configuration.
The C3Fire Server uses a Jetty web server to distribute files to the clients. The Jetty web server uses the port 8380, can be changed in the configuration. It is also possible to use an external web server, then you need have write access to that web server.
IP address and Port number
Every computer in a network have an IP address. If a computer program accepts calls from an other computer its open a port and starts listens on that port number.
In IPv4 the port number is a number between 1-65535. Specific port numbers are often used to identify specific services.
The C3Fire server uses port 8382 by default. The web server uses port 8380 by default.
Backup old sessions
If you have an old C3Fire installation on the computer backup the old session log files.
The log files are stored at ../C3LearningLabs/C3Fire/Server/SessionLogs
- Example:
/opt/c3system/C3LearningLabs/C3Fire/Server/SessionLogs
- Move Current installation
- Move the current installation to a backup folder by changing the folder name.
- Example:
cd /opt/c3system
sudo mv C3LearningLabs C3LearningLabs-b170208
Installation
The installation is done with commands in a terminal window.
We recommend that you install the system in folder /opt/C3System.
Create the installation folder with the following command.
sudo mkdir /opt/C3System
Set read write permissions for the folder. Depending on how you are using your system you may need to set the permissions to 777 while installing. Remember to set it correct after the installation process.
sudo chmod 777 /opt/C3System
or
sudo chmod 755 /opt/C3System
- Download and copy
- Download and copy the installation file "c3fire-vx.x.x.x-install-linux.tgz" to the install folder /opt/C3System.
- Go to that folder in the terminal window.
cd /opt/C3System
- Uncompress
- Uncompress the c3fire system with the following command.
- In the command replace the version V4.1.0.0 number to the version number in the downloaded file.
sudo tar zxvf c3fire-v4.1.0.0-install-linux.tgz
- The installation will create the C3Fire folder structure, see Folder Structure at installation start page.
- /opt/C3System/C3LearningLabs/C3Fire/...
- Set access rights
- Set read write permissions for the C3System folder structure.
- Depending on how you are using your system you may need to set the permissions to 777.
sudo chmod -R 777 /opt/C3System/C3LearningLabs
- or
sudo chmod -R 755 /opt/C3System/C3LearningLabs
License file
The C3Fire server system needs a license file to be able to start.
The license file is supplied by C3 Learning Labs. If you do not have a license file, require a system license at the license page.
The license file should have the nameC3Fire.license
, the case of the letter is important.
The license file should be copied to the folder: <C3LEARNINGLABS-ROOT>/C3Fire/Server/
Example: /opt/C3System/C3LearningLabs/C3Fire/Server/C3Fire.license
With a correct C3Fire license file it is now time to try if the system is working on the server computer.
Test C3Fire Server
This test should be performed now before you have configure the C3Fire server.
Before the configuration the server will run as local host using the ip number 127.0.0.1.
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 /opt/C3System/C3LearningLabs/C3Fire/Server
- Example:
- Start the server with the following command:
sudo sh C3FireServer-Start-Linux.sh
sudo sh C3FireServer-Start-Linux-NoUI.sh
Use this if the server should not view user interface.
Recommended commands to start C3Fire server
cd /opt/C3System/C3LearningLabs/C3Fire/Server
sudo sh C3FireServer-Start-Linux.sh
After some startup time the C3Fire server should write 'C3Fire Server Running', and 'Waiting On Manager'.
If the server did start you should test the web server.
If the C3Fire server does not start go to Troubleshooting C3Fire Server on Linux.
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.
Surf to : local host http://127.0.0.1:8380/
Recommended test
http://127.0.0.1:8380/
The browser should show the following page.
If the Jetty web server does not start go to Start Web Server Manually and try to start it.
If the web server does not start try to start it manually, see below.
Test C3Fire Client on Server Computer
Start C3Fire client on the server computer.
You can start a C3Fire client with the commands 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 /opt/C3System/C3LearningLabs/C3Fire/Client/Application
- Example:
- Start the client with the following command:
sudo sh C3FireClient-Start-Linux.sh
Recommended commands to start C3Fire client
cd /opt/C3System/C3LearningLabs/C3Fire/Client/Application
sudo sh C3FireClient-Start-Linux.sh
After some startup processes the C3Fire client should open the following window.
If the C3Fire client does not start go to Troubleshooting C3Fire.
Configure Server
Before you configure the C3Fire server test the un-configured C3Fire server described above, so that you know that the first installation step did work.
- The configuration you need to do:
- Set the IP number that the server computer have.
- If the server should be accessible from internet, outside the Local Area Network (LAN)
- Configure the router
- Open firewalls
Configure
- At the server computer you need to update both the server and the client configuration.
- Server
- The Server configuration is defined in the file <C3FIRE-Server>\C3FireServerConfig.xml
- Example : /opt/C3System/C3LearningLabs/C3Fire/Server/C3FireServerConfig.xml
- Set the IP number in the Connection and HttpServer configuration.
- Example: (C3Fire server is running on a computer with IP number 192.168.1.8)
<Connection IPNr = "192.168.1.8" Port = "8382" ... /> <HttpServer Type = "Jetty" IPNr = "192.168.1.8" Port = "8380" ... />
- It is also possible to change the the ports if needed.
- Write down the local area network (LAN) IP number.
- You need to configure that IP number in the Manager's client installation.
- Client
- To be able to start a Manager on the server computer configure the client part in the server computer
- Edit the client configuration file in the server computer <C3FIRE-CLIENT>\C3FireClientConfig.xml
- Example : /opt/C3System/C3LearningLabs/C3Fire/Client/Files/Root/C3FireClientConfig.con
- Example: (C3Fire server is running on a computer with IP number 192.168.1.8)
<Connection IPNrLan = "192.168.1.8" ... <HttpServer IPNr = "192.168.1.8"
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.
The IP number are the IPv4 Address
- Terminal command
In a terminal enter:
ifconfig
It will give information as:
rego@Snorken:~$ ifconfig
enp2s0 Link encap:Ethernet HWaddr xx:xx:x:xx:xx:xx
inet addr:192.168.1.52 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: 1234::95sd:e84f:5352:f550/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:726552 errors:0 dropped:1 overruns:0 frame:0
TX packets:309495 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1026508788 (1.0 GB) TX bytes:23370486 (23.3 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:2475 errors:0 dropped:0 overruns:0 frame:0
TX packets:2475 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:415660 (415.6 KB) TX bytes:415660 (415.6 KB)
It will return a row containing some thing like inet addr:192.168.1.52
Then the IP number are: 192.168.1.52
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, and open all firewalls.
This can only your network administrator do.
The default configuration uses port:
- 8380 and 8382
Write down the wide area network (WAN) IP number you got form the network administrator.
You need to configure that IP number in the Manager's client installation.