{"id":5084,"date":"2015-03-25T05:40:37","date_gmt":"2015-03-25T05:40:37","guid":{"rendered":"https:\/\/ephesoft.com\/docs\/?p=5084"},"modified":"2020-06-01T16:00:15","modified_gmt":"2020-06-01T23:00:15","slug":"linux-silent-installer","status":"publish","type":"docs","link":"https:\/\/ephesoft.com\/docs\/products\/transact\/install-and-upgrade\/4-5-0-0\/install-upgrade-single-server\/installing-on-linux\/linux-silent-installer\/","title":{"rendered":"Linux Silent Installer"},"content":{"rendered":"
Silent-mode installation allows user to define an installation configuration only once and then use the configuration to duplicate the installation on many machines. During installation in silent mode, the installation program reads the settings for user\u2019s configuration from a config.properties file that user create before beginning the installation. The installation program does not display any configuration options during the installation process. Silent installer supports fresh as well as upgrade.<\/p>\n
config.properties<\/strong>\u00a0file which defines the installation configuration that user would normally enter during an interactive installation process. For example, in\u00a0config.properties<\/strong>, user can supply the configuration for the installation directory, the shared folder path, and the components to be installed.<\/p>\n When using silent mode, keep following considerations in mind:<\/p>\n The installation program uses config.properties file (config.properties<\/strong>) to determine which installation options should be implemented. Before running the installation program, user must first edit a\u00a0config.properties<\/strong>\u00a0file.<\/p>\n To edit a\u00a0config.properties<\/strong>\u00a0file:<\/p>\n Following table describes keys available in silent installer.<\/p>\n Silent Installer can also be configured as custom installer. In custom installer, linux admin can create preprocessing and post processing script.<\/p>\n In pre\/post processing script, user can populate the config.properties<\/strong> file, and execute the silent install script command as background process. It is recommended to execute the install script as background process to skip trail logs on terminal.<\/p>\n For example, Linux admin can use following script to install Ephesoft in background silently:<\/p>\n <\/p>\n In this script, user can check if the process is finished via $pid or using installation.log<\/strong> which is created a in the present working directory as soon as silent installation process is finished. In case of successful installation \u201cinstallation_status<\/strong>\u201d property will be set as \u2018success\u2019 and in case any error or exception occurs this property will be set as \u2018failure\u2019 in log file with error message.<\/p>\n This section describes how to start silent mode installation\/uninstallation.<\/p>\n To configure the Silent installer, please follow following steps:<\/p>\n NOTE:<\/strong><\/p>\n The following sample\u00a0config.properties<\/strong>\u00a0file installs all default configuration of product Server.<\/p>\n #This takes the input of product name.<\/p>\n input_product_name=Product<\/p>\n #This takes the input of service name.<\/p>\n input_service_name=ProductService<\/p>\n #This takes the input of installation directory.<\/p>\n input_installation_directory=\/opt<\/p>\n #This takes the input of whether to change shared folder path or not. ‘y’ [without quotes] changes the default shared folder path and ‘n’ [without quotes] will install the shared folders at default path.<\/p>\n input_change_shared_folder_path=n<\/p>\n #If in above switch input_change_shared_folder_path value is ‘y’ then this will act as an input for shared folder path.<\/p>\n input_changed_shared_folder_path=\/opt\/Ephesoft<\/p>\n #This takes the input of tomcat port number.<\/p>\n input_tomcat_port_number=8080<\/p>\n #This takes the input whether to change the server name or not. ‘y’ [without quotes] changes the server name and ‘n’ [without quotes] do not change the default server name.<\/p>\n input_change_server_name=n<\/p>\n #If in above switch input_change_server_name value is ‘y’ then this will act as an input for server name.<\/p>\n input_changed_server_name=turbo-VirtualBox<\/p>\n #This takes the input of whether to make a new database instance or not. ‘y’ [without quotes] make a new instance of mariadb and ‘n’ [without quotes] do not make a new instance of mariadb.<\/p>\n input_new_database_instance=y<\/p>\n #This takes the input of ip name.<\/p>\n input_system_ip_name=localhost<\/p>\n #This takes the input of database user name.<\/p>\n input_database_username=root<\/p>\n #This takes the input of database port number.<\/p>\n input_database_port_number=3306<\/p>\n #This takes the input of database password.<\/p>\n input_database_password=turbo<\/p>\n #This takes the input of application database name.<\/p>\n input_application_database_name=ephesoft<\/p>\n #This takes the input of report database name.<\/p>\n input_report_database_name=report<\/p>\n #The installation of tesseract is optional. This takes the input whether to install tesseract or not. ‘y’ [without quotes] installs the tesseract and ‘n’ [without quotes] do not install the tesseract.<\/p>\n input_install_tesseract=n<\/p>\n #This takes the input of whether to use existing shared folder or not. ‘y’ [without quotes] uses existing shared folder and ‘n’ [without quotes] do not use existing shared folders.<\/p>\n input_existing_shared_folder=n<\/p>\n #This takes the input of existing shared folder path if in above switch input_existing_shared_folder value is ‘y’.<\/p>\n input_existing_shared_folder_path=\/opt\/SharedFolders<\/p>\n #This takes the input of whether to enable database patch or not. ‘y’ [without quotes] enables the database patch and ‘n’ [without quotes] do not enable the database patch.<\/p>\n input_database_patch_enable=y<\/p>\n #This takes the input of whether to upgrade the application or not. ‘y’ [without quotes] upgrades the application and ‘n’ [without quotes] do not upgrade the application.<\/p>\n input_upgrade_application=y<\/p>\n #This takes the input of whether to stop the server if it is running during upgrade installation or not. ‘y’ [without quotes] stops the server and ‘n’ [without quotes] do not stop the server and exit the script.<\/p>\n input_forcefully_stop_running_server=y<\/p>\n #This takes the input of whether to install as a multi server or not. ‘y’ [without quotes] will install as a multi server and ‘n’ [without quotes] installs as a single server.<\/p>\n input_install_multiserver=n<\/p>\n #If in above switch input_install_multiserver value is ‘y’ then this will takes the input as a path for mounted shared folder path.<\/p>\n input_mounted_sharedfolder_path=\/opt\/Ephesoft\/SharedFolders<\/p>\n The process for upgrading an installation in silent mode is similar to the process for a full installation in silent mode, except that the\u00a0config.properties<\/strong>\u00a0file is much simpler. Please note the following issues when performing an upgrade in silent mode:<\/p>\n <\/p>\n <\/p>\n","protected":false},"featured_media":0,"parent":21090,"menu_order":2,"comment_status":"closed","ping_status":"open","template":"","doc_tag":[],"yoast_head":"\nConsiderations for Silent Installation<\/h2>\n
\n
Editing a config.properties File for customized Installation<\/h2>\n
\n
\n\n
\n Keys<\/td>\n Description<\/td>\n<\/tr>\n \n input_product_name<\/td>\n Product name.<\/td>\n<\/tr>\n \n input_service_name<\/td>\n Service name of the product.<\/td>\n<\/tr>\n \n input_installation_directory<\/td>\n Product installation directory.<\/td>\n<\/tr>\n \n input_change_shared_folder_path<\/td>\n \n \n
\n
\n input_changed_shared_folder_path<\/td>\n The full path for the directory where user want to install SharedFolders.<\/td>\n<\/tr>\n \n input_tomcat_port_number<\/td>\n Tomcat port number.<\/td>\n<\/tr>\n \n input_change_server_name<\/td>\n \n \n
\n
\n input_changed_server_name<\/td>\n Server name<\/td>\n<\/tr>\n \n input_new_database_instance<\/td>\n \n \n
\n
\n input_system_ip_name<\/td>\n System IP of the server where database is present.<\/td>\n<\/tr>\n \n input_database_username<\/td>\n Username of the database if using existing database instance.<\/td>\n<\/tr>\n \n input_database_port_number<\/td>\n Database port number<\/td>\n<\/tr>\n \n input_database_password<\/td>\n Password of the database.<\/td>\n<\/tr>\n \n input_application_database_name<\/td>\n Database name for Ephesoft application.<\/td>\n<\/tr>\n \n input_report_database_name<\/td>\n Database name for Ephesoft reports.<\/td>\n<\/tr>\n \n input_install_tesseract<\/td>\n \n \n
\n
\n input_existing_shared_folder<\/td>\n \n \n
\n
\n input_existing_shared_folder_path<\/td>\n The full path for the directory where SharedFolders are present, if user wants to use existing shared folders.<\/td>\n<\/tr>\n \n input_database_patch_enable<\/td>\n \n \n
\n
\n input_upgrade_application<\/td>\n \n \n
\n
\n input_forcefully_stop_running_server<\/td>\n \n \n
\n
\n input_install_multiserver<\/td>\n \n \n
\n
\n input_mounted_sharedfolder_path<\/td>\n The full path for the mounted shared folder.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n Configuring Silent Installer as Custom Installer<\/h1>\n
Starting Silent Mode Installation\/Uninstallation<\/h1>\n
Configuring the Silent installer<\/h2>\n
\n
\nAnd\u00a0input_service_name<\/strong>=ProductService<\/li>\n
\nIf user wants to install Ephesoft silently then run the installation script using command \u201c.\/install -silentinstall\u201d<\/strong>.<\/li>\n\n
\n\u201c.\/uninstall<\/strong> -product<\/strong>\u201d.
\nThe script must be run as a super user. Uninstallation will be interrupted if script is not run with super user permission.
\n<\/li>\n\n
Sample config.properties File for Silent Installation<\/h3>\n
Running the Upgrade Installer in Silent Mode<\/h2>\n
\n
\n\n
\n input_database_patch_enable<\/td>\n \n \n
\n
\n input_upgrade_application<\/td>\n \n \n