You'll first have to install Jetty, you can use the one shipped with Ubuntu or you can also download Jetty and install it yourself. If you want to install Jetty yourself, you will have to take a look at their own documentation here.
Next up we want to add some required configuration in our Jetty `/etc/jetty9/start.d/start.ini` file. Don't forget to change the parameters to your needs, at ISW we have given Jetty 3GB of RAM instead of the default 1.5GB. Note: this file and or folder might not exists yet, you'll have to create it yourself.
# Allows setting Java system properties (-Dname=value)
# and JVM flags (-X, -XX) in this file
# NOTE: spawns child Java process
# Uncomment if IdP is installed somewhere other than /opt/shibboleth-idp
# Newer garbage collector that reduces memory needed for larger metadata files
# Maximum amount of memory that Jetty may use, at least 1.5G is recommended
# for handling larger (> 25M) metadata files but you will need to test on
# your particular metadata configuration
# Prevent blocking for entropy.
# Set Java tmp location
# ISW Note: Make sure that this directory exists! You could change it to /tmp forexample
Now once you have configured some general parameters for Jetty, you will need to specify where Jetty can find the Shibboleth war file. Make a directory in `/etc/jetty9` called `webapps`, create a file called `idp.xml` and add the following contents.