server.crt - The main certificate file
server.key - The private key for the certificate file
-chain.crt - The certificate chain, if needed (config will be updated to include it if necessary)
+chain.crt - The certificate chain, if needed
+
+For websocketd to function, you must combine the server.crt and
+chain.crt files in the following manner:
+
+[source, bash]
+--------------
+cat server.crt chain.crt > combined.crt
+mv combined.crt server.crt
+rm chain.crt
+--------------
+
+Be sure to backup your files beforehand as the above steps are
+destructive. You also need to make sure that there is a newline at
+the end of the server.crt file before doing the concatenation.
+
+NOTE: The combined certificate and chain files also work with Apache
+since at least version 2.2.
CPANCONFIG
sudo make -f OpenSRF/src/extras/Makefile.install ubuntu-$EGVMSUITE
-sudo make -f Evergreen/Open-ILS/src/extras/Makefile.install ubuntu-$EGVMSUITE postgres-server-ubuntu-$EGVMSUITE
+sudo make -f Evergreen/Open-ILS/src/extras/Makefile.install ubuntu-$EGVMSUITE ubuntu-$EGVMSUITE-developer postgres-server-ubuntu-$EGVMSUITE
+
+# Clean up from Node.js installation
+sudo chown -R opensrf:opensrf /home/opensrf/.configure
cd /home/opensrf/OpenSRF
autoreconf -i
export PATH=\$PATH:/openils/bin
+# Build the web staff client:
+cd /home/opensrf/Evergreen/Open-ILS/web/js/ui/default/staff/
+npm install
+npm run build
+# Build new, Angular eg2, if present
+if [ -d "/home/opensrf/Evergreen/Open-ILS/src/eg2" ]; then
+ cd /home/opensrf/Evergreen/Open-ILS/src/eg2
+ npm install
+ ng build
+fi
+
cd /home/opensrf/Evergreen
autoreconf -i
./configure --prefix=/openils --sysconfdir=/openils/conf $EGVMCONFIGHOST
--user evergreen --password $EGVMPGPASS --hostname localhost --port 5432 \\
--database evergreen --admin-user $EGVMEGUSER --admin-pass $EGVMEGPASS --load-all-sample
+# Install and start websocketd
+cd /home/opensrf
+wget https://github.com/joewalnes/websocketd/releases/download/v0.3.0/websocketd-0.3.0-linux_amd64.zip
+sudo unzip websocketd-0.3.0-linux_amd64.zip websocketd -d /usr/local/bin/
+sudo -b /usr/local/bin/websocketd --port 7682 --ssl \
+ --sslcert=/etc/apache2/ssl/server.crt \
+ --sslkey=/etc/apache2/ssl/server.key \
+ --loglevel=error /openils/bin/osrf-websocket-stdio
+
# Start Evergreen up!
osrf_control --localhost --start-all
/openils/bin/autogen.sh