Running the unattended installer

The following sections describes how to execute the Silent Installer.
Prerequisites:

You have edited the silent.properties file.

Perform the following steps:
  1. Copy the silent.properties file under the root of the installation directory.
  2. Launch the Linux Terminal and in the command prompt change directory to the root folder of the installation.
  3. Enter the filename (possibly the full file path depending on where the file is located) as a parameter to the install.sh script. Linux installer does not automatically look for the properties file in any specific location. Running install.sh file does require root or sudo permissions.
    Image
    While the process is running, the unattended installation outputs information to the terminal window . The difference to using the install.sh file without the silent.properties file is that the script uses the parameters from the file to answer the questions which would normally pause the installation process waiting on user input to proceed.
The output of the installer provides the same information regardless of manual or unattended execution. The following text is from the installation output and indicates tasks that you still need to complete.
You will need to source the .niagara script at

  /opt/Niagara/Niagara-4.13.0.184/bin/.niagara

before you will be able to use Workbench or Nre from a terminal. We advise
linking this script to your home directory and including it in the execution of
your .bash_profile and .bashrc scripts.

"Sourcing" the script is accomplished by typing 

  . /opt/Niagara/Niagara-4.13.0.184/bin/.niagara

at the prompt.

You will also need to allow UDP traffic on port 1911 and TCP traffic on ports
4911, 5011 and 8443 to pass through your local firewall if you intend to
connect to the local Niagara Daemon and Niagara Station.

  iptables -A INPUT -p udp -m state --state NEW --destination-port 1911 -j ACCEPT
  iptables -A INPUT -p tcp -m state --state NEW --destination-port 4911 -j ACCEPT
  iptables -A INPUT -p tcp -m state --state NEW --destination-port 5011 -j ACCEPT
  iptables -A INPUT -p tcp -m state --state NEW --destination-port 8443 -j ACCEPT

Add the following if you wish to redirect traffic for port 443 to port 8443:

  iptables -t nat -A PREROUTING -p tcp -m tcp --destination-port 443 -j 
REDIRECT --to-ports 8443

If you intend to make IPv6 connections to Niagara instances, please modify your
IPv6 firewall, using the "ip6tables" command, as well.

If you selected to create desktop shortcuts, the installation output indicates there are additional steps required to enable (trust) the shortcuts for each user.

Adding GNOME desktop shortcuts for user james...                WARNING

Could not programmatically trust desktop shortcut 'Workbench 4.13.0.184.desktop' for 
user 'james'.

Please run:

  'gio set "/home/james/Desktop/Workbench 4.13.0.184.desktop" "metadata::
trusted" yes'or right click "Trust and Launch" or "Allow Launching" 
this desktop icon.

                                                                WARNING

Could not programmatically trust desktop shortcut 'Alarm Portal 
4.13.0.184.desktop' for user 'james'.

Please run:

  'gio set "/home/james/Desktop/Alarm Portal 4.13.0.184.desktop" 
"metadata::trusted" yes'

or right click "Trust and Launch" or "Allow Launching" this desktop icon.