How to set up SAP Cloud Connector on Linux?

How to set up SAP Cloud Connector on Linux?

First go to https://tools.hana.ondemand.com/#cloud and download the corresponding SCC, SAP_JVM and jco files.

Put all of the files in a folder on your Linux machine.

We will first install the JAVA_JVM using following command (don’t use the “ they are indicating the usage of text that you have to change in this document):
sudo zypper install “path the the java_jvm file”

We will unzip the scc file:
unzip “scc zip file”

Install the scc:
sudo zypper isntall “scc .rmp file“

Install the tomcat:
sudo zypper install tomcat

We will have to do some extra config for the tomcat:
sudo yast

follow these installation steps from the Installing Tomcat part:
https://www.suse.com/c/deploying-web-applications-tomcat/

If you are unable to find the search option in the second paragraph.
You have to go to configuration and launch online update configuration:

 loading=

This should fix it.

download the cloud agent following this link:
https://help.sap.com/viewer/00f68c2e08b941f081002fd3691d86a7/release/en-US/7c35129451f5432194773adac7f89598.html

Place the C4A_AGENT.war file somewhere on the Linux machine.

Move the WAR file to the correct folder:
sudo mv C4A_AGENT.war usr/share/tomcat/webapps/

The file will not have permission to be extracted by the tomcat, go to the webapps folder and change the permissions for the file (this is probably not a good way to do it but I don’t know how the authorization on Linux works so I gave it full permission since we can delete it later on):
chmod -R 777 C4A_AGENT.war

Stop and start the tomcat, this will automatically deploy the WAR file:
sudo systemctl stop tomcat
sudo systemctl start tomcat

go to conf file of the tomcat “usr/share/tomcat/conf”
add following using:
sudo vi tomcat-users.xml
i

Uncomment following:

 loading=

also uncomment the admin user and change its default password.

Add following role:
<role rolename=”Services”/>

add following user:
<user name=”cloudadmin” password=”adminadmin” roles=”Services”/>

Change the cloudadmin password.

Save the file using esc :wq enter

Now we will put the jco files in the correct folder.
First extract the tar file:
tar -zxvf “.gz jco file”

Move both files to the correct folder:
sudo mv sapjco3.jar usr/share/tomcat/lib/sapjco3.jar
sudo mv libsapjco3.so usr/share/tomcat/lib/libsapjco3.so

afterwards you can clean the files that we downloaded in the beginning and the WAR file.

When installing the Tomcat you might encounter an error on the default ports. By default the tomcat will use 8080 for HTTP and 8443 for HTTPS. If these are already used by your Linux setup you’ll have to change them in the server.xml file of the conf folder.

After this setup is done you’ll have to whitelist a windows computer or server that you work on to allow communication between the Linux machine and the Windows one. From here on you should do the configuration of the Cloud Connector on the windows gui.

You can open the cloud connector config on the Windows machine by using: https://”yourLinuxMachine”:8443 (if you changed your port number don’t forget to adjust it here).

If you want to test if the cloud agent is correctly installed you can go to:
http://”YourLinuxMachine”:8080/C4A_AGENT/deploymentInfo.
You’ll be asked for the credentials that you put into the tomcat-users.xml file.
When filled in you should get the version of the cloud agent returned.