JReport provides two files for installing JReport Server silently without user participation in the installation process. It is ServerInstall_typical.properties for the Typical Installation for Standalone Server type and ServerInstall_custom.properties for the Custom Installation for Standalone Server type.
Follow the steps below to install JReport Server silently:
So, if you have an X server installed, you should set the Display variable so that this step can be performed successfully.
$ DISPLAY=hostname(or IP address):0.0
$ export DISPLAY
Note: If you do not have X server or a pure text environment, this step can be ignored. However, you may find that the demo reports will not be able to run after you start the JReport Server due to having the wrong default data source path. In this case, you can use JReport Designer to publish some working reports for testing purposes.
$ ./jrserver-xxx-linux.bin -i silent -f ServerInstall_typical.properties
(change jrserver-xxx-linux.bin to the real file name of the installation file)
Notes:
<install_root>\help\samples\SilentInstall
to your own requirements. This file is used to create an option file (that is, response file) for the Installation Wizard. It predefines all the information that is required for the installation.
You can also create a property file and save it as follows:
USER_INSTALL_DIR=/usr/local/JReport/Server
USER_KEY=UID
USER_PASSWORD=Password
Modify the above lines according to your own environment and configurations.