Standing up a LInux LMS server in AWS

Good Morning,

I am Thom and Linux noob. I am trying to stand up a linux server on AWS for an educational platform. I am going to use Sakai as the LMS application. They have specific requirements in setting up Java, Maven, and Tomcat before loading their application. While I understand the meaning of the instructions, I am unclear on the procedure to accomplish them. In searching for some the files in question, I cannot find them or while I see them and try to access them, I am told the file doesn’t exit. Below is an example of the instructions.

Several environment variables and related properties must be set for Java. For UNIX operating systems one typically modifies a startup file like ~/.bash_login to set and export shell variables.

Set the JAVA_HOME environment variable to point to the base directory of your Java installation and add Java’s /bin directory to the PATH environment variable.

If the variable JRE_HOME is already set or if you want to use a particular JRE if you have more than one JRE installed on your machine then you’ll want to set the JRE_HOME variable as well. JRE_HOME is what Apache Tomcat uses when it starts up, but it defaults to use JAVA_HOME if JRE_HOME is not set. In most cases, setting JAVA_HOME should cover both cases sufficiently.

SDKMAN will update JAVA_HOME and PATH for you automatically

Variable Unix

JAVA_HOME export JAVA_HOME=/usr/java/java-current

PATH export PATH=$PATH:$JAVA_HOME/bin

Set JAVA_OPTS

The default Java virtual machine (JVM) settings are not sufficient to run Sakai’s for lots of users. As a result several JVM parameters should be tuned to run Sakai efficiently depending on the server environment others may need to be adjusted for optimal performance.

We recommend that you define these settings in Tomcat’s $TOMCAT_HOME/bin/setenv.sh (Unix/Mac) See the “Install Tomcat 9” section below for more details.

Specify a Language and Locale (optional)

You can define the default language/locale when starting Sakai by setting the system properties -Duser.language and -Duser.region. For information on supported languages see the release notes or visit the i18N Work Group space.

-Duser.language=es

-Duser.region=ES

Specify an HTTP Proxy (optional)

In environments where local network policy or firewalls require use of an upstream HTTP proxy/cache, Sakai needs to be configured accordingly.

-Dhttp.proxyHost=cache.some.domain 

-Dhttp.proxyPort=8080

There is no batch_login file. Does this mean I need to create it, or should there be one somewhere? Cany anyone help me figure this out? There is a similar set for Maven, and then specific instructions for Tomcat. I am learning quickly, but these are specifics that I cannot not find answers to in my searching for knowledge.