A window will pop up and click on Uninstall button
Verify stucked services
List and kill all TiNa and MyCatalog services if they still exist:
$ ps aux | grep -E 'tina|myCatalog'
Install in batch mode
Files tree
The directory tree looks like:
Binary and config files └── opt ├── Atempo-Tina-xxx-Server-Agent-Linux.bin └── tina_agent_deploy.sh
The bash script
The bash script contains:
#!/bin/bash # # Update 2023-05-24 # #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # Vars definition #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ARCH=`uname -m` # Get Architecture of the OS CFile=/tmp/tina.tmp # Temp Configuration File tinaServ=myServerName.hostname.org # TiNa server hostname x64="$(pwd)/Atempo-Tina-xxx-Server-Agent-Linux.bin" # Path of Tina Binary #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # TiNa Client vars definition creation file #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ cat > ${CFile} << 'EOF' INSTALLER_UI=silent SILENT_UI=1 INSTALL_MODE_IS_UPGRADE=0 TINA_SELECTED=1 AWI_SELECTED=0 FlexLM_SELECTED=0 USER_INSTALL_DIR=/usr/Atempo TINA_INSTALL_TYPE=AGENT TINA_ENV_NAME=myCatalog TINA_TCP_PORT=2525 TINA_UDP_PORT=2526 TINA_AGT_CATALOG_FILE_CONTENT=catalog:\n\tname = myCatalog,\n\tserver =\"myServerName.hostname.org\",\n\tcomment = \"Catalog MYCATALOG\".\n\n TINA_INSTALL_ALL_APPS=0 LICENSE_FILE_LATER=1 ALM_LICENSE= EOF #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # MAIN PROGRAM #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #++++ CHECK IF YOU ARE ON SERVER OR NOT ++++++++++++++++++++++++++++++++++++++++++++++++++++++ if [[ `hostname -a` = ${tinaServ} ]] ; then echo -e '\n ================================================' echo -e '\n \033[;1;31m You can't install the TiNa's Client ON the server \033[0m \n' exit 1 else echo -e '\n ================================================' echo -e '\n Your are not on TiNa server -> So you can install the TiNa Client' echo -e '\n \033[;1;32m > > > > Preparing installation.... \033[0m \n' fi #++++ CHECK IF YOU USE THE RIGHT BINARY FILE +++++++++++++++++++++++++++++++++++++++++++++++++ while [ "$answer" != "y" ] && [ "$answer" != "n" ] ; do echo -e ' ================================================' echo -e "\n Binary file used is\033[;1;31m ${x64} \033[0m \n" read -r -p ' Is it ok ? (answer 'y' or 'n') : ' answer done [[ $answer == 'n' ]] && exit 1 #++++ CHECK IF THE HOSTNAME IS DEFINED IN /etc/hosts +++++++++++++++++++++++++++++++++++++++++ if grep -q 999SRV-TST-0001 /etc/hosts ; then sleep 0 else echo "@IP 999SRV-TST-0001 myServerName.hostname.org" >> /etc/hosts fi #++++ INFO DEBUG MESSAGE +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ echo -e '\n \033[;1;35m In case of issue with these libs: libXext, libXrender, dejavu-sans-fonts.' echo -e ' Please run :\033[38;5;183m yum install -y libXext libXrender dejavu-sans-fonts \033[0m \n' #++++ LAUNCH PROGRAM WITH CONFIG FILE ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ echo -e '\n\033[;1;32m > Installing TiNa Agent, please wait... \033[0m ' /bin/chmod +x $(pwd) $x64 $x64 -f ${CFile} >/dev/null 1>&- 2>&- # with output InstStatus=$? rm -f ${CFile} #+++ CHECK TINA USER CREDENTIALS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ echo -e '\n\033[;1;32m > Checking for TiNa credentials, please wait... \033[0m ' TINA_USER=` cat /etc/passwd | grep tina && echo 1 || echo 0` if [ "$TINA_USER" = 0 ]; then echo -e '\n > Need to add TiNa user, please wait...' useradd -M -o -u 0 -g 0 -p "LeHashUtilisé" -s /sbin/nologin tina 2>/dev/null else echo -e '\n > TiNa user already exist, please wait...' fi #+++ CHECK THE INSTALLATION STATUS +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ if [ "$InstStatus" != 0 ]; then echo -e ' \n\n ================================================' echo -e '\033[;1;31m INSTALLATION FAILED \033[0m' echo -e ' ================================================\n' exit 1 else echo -e ' \n\n ================================================' echo -e '\033[;1;32m INSTALLATION COMPLETED \033[0m' echo -e ' ================================================\n' exit 0 fi
############################################################################### # This is a sample batch file to install Atempo-Atempo products in batch mode. # # Edit the parameters in this file according to your needs. # # On Unix unset the DISPLAY environment variable # # Then run the install using: # <installer_path> -f /full_path_to_batch_file # For instance: # /tmp/ATN432-P4232-Linux-X64.bin -f /tmp/my_batch_file.txt # or: # C:\temp\ATN432-P4232-Windows-X64.exe -f C:\temp\my_batch_file.txt # # Note that the batch file must be an ABSOLUTE path. # *** The most common error when using the batch mode is to specify a relative # path. It does not work! *** # # If you want to force a local language, add the option : -l <language> # Where language is : # de : German # en : English # es : Spanish # fr : French # ja : Japanese # ko : Korean # zh_CN : Chinese # ############################################################################### ############################################################################### # GENERAL PARAMETERS: # # Necessary for the batch mode - do not change this line! INSTALLER_UI=silent SILENT_UI=1 # # # Installation mode, 0: install, 1: upgrade # it's inherited by all products -- you cannot install a product and upgrade # another at the same time. INSTALL_MODE_IS_UPGRADE=0 # # # Choose the products to install: # 0 means not installed, 1 means it will be installed/upgraded # #------------------------------------------------------------------------------ # IMPORTANT: each installer that you can download from the Atempo Portal server # contains one or more products. Typically, the following installers are # available: # # ATN_*.*: Tina, Atempo Web Interfaces, Atempo License Manager # # ALM_*.*: Atempo License Manager # #------------------------------------------------------------------------------ # # # Tina -- only available in TN_*.* installers TINA_SELECTED=0 # Atempo Web Interfaces -- only available in ATN_*.* installers AWI_SELECTED=0 # Atempo License Manager -- available in ATN_*.* and ALM_*.* installers FlexLM_SELECTED=0 # # Note that if you select a product that is not available in the installer, # the installer will not warn you. The product will simply not be installed. # # # Main installation directory, each product is installed in a sub-directory of # this directory USER_INSTALL_DIR=/usr/Atempo # # or, on Windows: #USER_INSTALL_DIR=C:\\Program Files\\Atempo # BE CAREFUL: USE DOUBLE-BACKSLASHES ON WINDOWS! # # or, on macOS: #USER_INSTALL_DIR=/Applications/Atempo ############################################################################### # Tina PARAMETERS: # # Installation type: SERVER or AGENT TINA_INSTALL_TYPE=SERVER #TINA_INSTALL_TYPE=AGENT # Tina install name. If for any reason you install several versions # of Tina on the same machine, each must have its own name. TINA_ENV_NAME=tina # Specify the Tina service parameters: TCP and UDP port numbers TINA_TCP_PORT=2525 TINA_UDP_PORT=2526 # SERVER INSTALL ONLY: # If you do not want to specify a license server, leave this parameter empty LICENSE_SERVER= # If you want to use the default port number, leave this parameter empty LICENSE_SERVER_PORT= # Note: the catalog creation is not supported in the batch mode setup # it is simpler and safer to use the Catalog creation wizard, or the tina_init # command, # to create the catalog once Tina Server is installed. # For Agent install: # # Enter the contents of the TINA_HOME/Conf/catalog file like that # catalog:\n\tname = <catalog_name>,\n\tserver = \"<server_name>\",\n\tcomment = \"<comment>\".\n\n # Example: TINA_AGT_CATALOG_FILE_CONTENT=catalog:\n\tname = my_catalog,\n\tserver = \"my_server\",\n\tcomment = \"...\".\n\n TINA_AGT_CATALOG_FILE_CONTENT= # (this is only for install, it's ignored when upgrading) # # # Select the applications you want to install. We recommend installing all # applications using the variable: TINA_INSTALL_ALL_APPS=1 # # Choosing not to install an application will not save much disk space, because # they are just small modules which take care of backing up one particular # application # To select some applications use the following variable, listing the # applications to install: #TINA_INSTALLED_APPLS=ORACLE,DB2,SYBASE,SAP,INFORMIX,EXCHANGE,NOTES,MS_SQL,WSS, # VMWARE_SDK ############################################################################### # ATEMPO WEB INTERFACES PARAMETERS: # # Specify the Atempo web interfaces installation name # To avoid confusion, you should use the same name as the Tina # environment AWI_ENV_NAME=tina # # Specify the host, catalog and port numbers that you want to administrate # (Where Tina is installed) # NOTE: If you have also selected a Tina Server installation, do not # specify these parameters, # they are filled in automatically. # # Name of the Tina server AWI_HOST_NAME= # Name of the Tina catalog AWI_CATALOG_NAME= # TCP and UDP port numbers of the Tina server AWI_TCP_PORT= AWI_UDP_PORT= # # The first time you install the Web Interfaces, you need to specify the port # & protocol for the Web Server itself # (the Web Server is shared by all installations of the Atempo Web Interfaces) # # IMPORTANT: select the protocol to use for the web connections. # to use HTTP (less secure but more compatible): TOMCAT_USES_HTTPS=0 # to use HTTPS (in this case, you must use "https://..." addresses to connect # to the Atempo Web Interfaces): #TOMCAT_USES_HTTPS=1 # # Web Server administration port (we recommend that you do not modify this port) TOMCAT_DEFAULT_CONNECTOR_PORT=25088 # # If you install Tina and Atempo Web Interfaces at the *same* time, # the Web Restore will be installed too. # In this case, you may specify a mail server which is used to send mail to # Web Restore users (when a restore completes) AWI_SMTP_SERVER_NAME= ############################################################################### # ATEMPO LICENSE MANAGER PARAMETERS: # # If you do not have the license file, set LICENSE_FILE_LATER to 1 LICENSE_FILE_LATER=1 # else, set LICENSE_FILE_LATER to 0 #LICENSE_FILE_LATER=0 # # The full path of the license server file (if you have it) ALM_LICENSE=