====== Installation Guide Linux EN ====== Source : [[https://www.need4viz.com/documents/install/Installation%20Guide%20Linux_EN.pdf|install/Installation Guide Linux_EN.pdf]] N4V For Webi Installation guide (Linux) %%Rev. (Y-M-D): 2025-03-28%% Need4viz.com N4V for Webi installation guide N4V for Webi Installation guide Linux 1 Table of Contents 1. PREREQUISITE .............................................................................................................................................. 3 1.1. Creating the Need4Viz account ........................................................................................................................ 3 1.2. Internet access from the server ....................................................................................................................... 3 1.3. Installing MongoDB ........................................................................................................................................ 4 1.3.1. Redhat Installation ...................................................................................................................................... 4 1.3.2. Debian Installation ...................................................................................................................................... 4 1.3.3. Common installation ................................................................................................................................... 4 1.4. Node version .................................................................................................................................................. 5 1.5. Node installation with NVM.............................................................................................................................. 5 1.6. NPM configuration .......................................................................................................................................... 5 1.7. Node standalone installation ............................................................................................................................ 6 1.7.1. Redhat Installation ...................................................................................................................................... 6 1.7.2. Debian Installation ...................................................................................................................................... 6 1.8. Installation of PM2 .......................................................................................................................................... 6 1.9. Installation of Node modules for Need4Viz ....................................................................................................... 7 1.10. Configuration of the Puppeteer module ............................................................................................................ 7 1.10.1. Installing the missing libraries on RedHat ..................................................................................................... 7 1.10.2. Installing the missing libraries on Debian ...................................................................................................... 7 1.11. N4V environment promotion on an existing nodejs installation .......................................................................... 9 1.11.1. Installing the missing libraries on RedHat ..................................................................................................... 9 1.11.2. Installing the missing libraries on Debian ...................................................................................................... 9 2. INSTALLATION AND CONFIGURATION OF N4V FOR WEBI ......................................................................... 10 2.1. Installing sources manually ........................................................................................................................... 10 %%2.1.1. Deploying the N4V node_module ................................................................................................................ 10%% 2.1.2. Deploying the web application ..................................................................................................................... 10 2.1.2.1. Installing Apache on RedHat ........................................................................................................................ 10 2.1.2.2. Installing Apache on Debian ........................................................................................................................ 11 2.1.3. Creating folders ............................................................................................................................................ 11 2.2. Installing sources using configuration script ................................................................................................... 11 2.2.1. Configure the installation ............................................................................................................................. 11 2.2.2. Install N4V .................................................................................................................................................... 11 2.3. System Configuration .................................................................................................................................... 12 2.3.1. Installing the license key .............................................................................................................................. 12 2.3.2. Configuring the config.js file ......................................................................................................................... 12 %%2.3.3. Configuring the config_charts.js file ............................................................................................................. 13%% %%2.3.4. Configuring the apps_ce.js file ..................................................................................................................... 14%% 3. LAUNCH OF N4V FOR WEBI SERVICES ........................................................................................................ 15 3.1. Starting services under PM2 .......................................................................................................................... 15 3.2. Verifying the launch of services ..................................................................................................................... 15 3.3. Registration for the automatic start of PM2 .................................................................................................... 16 %%3.4. Manual stop/restart of services ...................................................................................................................... 17%% 4. CONFIGURING N4V FOR WEBI SERVICES IN THE CMC .............................................................................. 18 4.1. Additional configuration for SAPBI 4.2 SP07 patch 05 up to SAPBI 4.2 SP08 patch 05 ....................................... 18 4.2. Additional setting on 4.2 SP08 patch 05+ and 4.2 SP09 patch 00+ .................................................................. 19 4.3. Additional configuration for SAPBI 4.2 SP07 patch 06+, SAPBI 4.2 SP08 patch 05+and 4.3 .............................. 20 %%4.4. Additional setting on 4.3 SP2+ / BI2025 ........................................................................................................ 21%% 4.5. Creating N4V Services ................................................................................................................................... 23 N4V for Webi installation guide N4V for Webi Installation guide Linux 2 4.6. Verification of the proper functioning of the services ....................................................................................... 25 5. ANNEXE ........................................................................................................................................................ 26 5.1. Install multi N4V node environments on the same server ................................................................................ 26 %%5.1.1. Duplicate the Tomcat/Apache webapp ....................................................................................................... 26%% 5.1.2. Logs configuration .................................................................................................................................... 26 5.1.3. Duplicate and configure the N4V engine ..................................................................................................... 26 5.1.4. Setup, start & register the new node deployment ....................................................................................... 27 5.1.5. BOBJ CMC Configuration ........................................................................................................................... 27 6. SUPPORT ...................................................................................................................................................... 28 N4V for Webi installation guide N4V for Webi Installation guide Linux 3 1. Prerequisite In this installation process under Linux, the following will be considered: %%- A specific user account will be created to install/configure/pilot the component. This user will have the extended%% rights on the system (super user) %%- The user account will configure its own NodeJS instance needed to run the component. Thus, other NodeJS instances%% can independently already be installed on the same server without the risk of interacting with each other. %%- The flows from the server to the internet are opened (list of accessible URLs provided in the documentation). A proxy%% can be configured to access the outside %%- A web application server (Apache or Tomcat type) is already installed on the server (or on another server)%% 1.1. CREATING THE NEED4VIZ ACCOUNT Under root, create a new account "need4viz": adduser need4viz %%Add the account to the sudo group of super user: usermod -aG sudo need4viz%% The following actions will be performed once logged in under the need4viz account 1.2. INTERNET ACCESS FROM THE SERVER Whether for the installation of the various components (mongoDB, node, ...) or for the use of certain N4V components (Google Maps georeferencing ...), it is necessary that the "need4viz" account can access certain URLs from the server. The following URLs will need to be accessible: %%- https://*mongodb.* [optional] (temporarily, the time of installation)%% %%- https://*githubusercontent.* https://*npmjs.* (temporarily, the time of installation)%% %%- https://*nodesource.* (temporarily, the time of installation, if installation of nodejs in standalone mode)%% %%- https://www.google.com/jsapi https://maps.googleapis.com (permanent opening for the use of N4V components)%% %%If using a proxy (user/mdp), the following configurations should be made in the user's .bash_profile « need4viz » :%% %%https_proxy=https://user_proxy:mdp_proxy@ip:port%% %%http_proxy=http://user_proxy:mdp_proxy@ip:port%% %%export https_proxy%% %%export http_proxy%% To test the correct consideration of the proxy, we can launch the following command: %%curl -i https://www.google.com/jsapi%% N4V for Webi installation guide N4V for Webi Installation guide Linux 4 1.3. INSTALLING MONGODB MongoDB is the database used by the Need4Viz component for the storage of certain information (logs, Google georeferencing, etc.). %%MongoDB may optionally not be installed/used. In this case, proceed to the next step.%% 1.3.1. REDHAT INSTALLATION %%Create a file in /etc/yum.repos.d/mongodb-org-7.0.repo that will allow us to directly install MonGoDB with YUM:%% Contents of the file %%[mongodb-org-4.4]%% %%name=MongoDB Repository%% %%baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/7.0/x86_64/%% %%gpgcheck=1%% %%enabled=1%% %%gpgkey=https://www.mongodb.org/static/pgp/server-7.0.asc%% Installing the package mongoDb %%sudo yum install -y mongodb-org%% 1.3.2. DEBIAN INSTALLATION The complete installation process of MongoDB on Debian is available here: %%https://docs.mongodb.com/manual/tutorial/install-mongodb-on-debian/%% In summary: %%1. Import the public key used by the package management system: wget -qO -%% %%https://www.mongodb.org/static/pgp/server -7.0.asc | sudo apt-key add –%% %%The answer must be OK. If this is not the case, you must install GNUPG: sudo apt-get install gnupg%% %%Then import the key again: wget -qO - https://www.mongodb.org/static/pgp/server -7.0.asc |%% %%sudo apt-key add –%% 2. Create the file listing the resources needed to import MongDB, under Debian 10 : echo "deb %%http://repo.mongodb.org/apt/debian buster/mongodb -org/7.0 main" | sudo tee%% %%/etc/apt/sources.list.d/mongodb -org-7.0.list%% %%On Debian 9 : echo "deb http://repo.mongodb.org/apt/debian stretch/mongodb -org/7.0 main" |%% %%sudo tee /etc/apt/sources.list.d/mongodb -org-7.0.list%% %%3. Update the package repository : sudo apt-get update%% %%4. Install MongoDB packages: sudo apt-get install -y mongodb-org%% 1.3.3. COMMON INSTALLATION To work, MongoDB requires an ulimit valeur for the number of open files greater than or equal to 64000. To update this %%value : ulimit -n 64000%% N4V for Webi installation guide N4V for Webi Installation guide Linux 5 To start the MongoDB process: sudo systemctl start mongod To check the status of the process: sudo systemctl status mongod To start the process automatically: sudo systemctl enable mongod 1.4. NODE VERSION The node version depends on your environnement version. Generally speaking the current version of node supported for the installation of N4V is Node 20. The modules used by N4V, embedded with the N4V Setup release are compatible with Node 20. This guide refers to the version 20 of Node but you can adapt it to your version. 1.5. NODE INSTALLATION WITH NVM NVM is a version manager for Node to manage different Node installations on the same server. NVM may not be installed (in the case of a single installation of nodejs on the server, cf next chapter). %%Add NVM to repo: curl -o- https://raw.githubusercontent.com/nvm -sh/nvm/v0.35.3/install.sh | bash%% Close and log on again to run the following command to install Node v20.18.1 : nvm install 20.18.1 1.6. NPM CONFIGURATION When using a proxy, you must configure npm (Node Package Manager) to use this proxy as follows (here an http proxy defined for both http and https calls): %%npm config set proxy http://your -username:your-password@Proxy-address:port-number%% %%npm config set https -proxy http://your-username:your-password@Proxy-address:port-number%% To verify that the configuration is considered correctly, run the following command (which must return the list of defined proxies): npm config get proxy %%Note that in case of special character in the user's password, it will be necessary to replace this character by its%% %%corresponding hexa code (e.g., "#" will be replaced by « %23 »).%% The registry where npm can retrieve the different modules to install may be set by the command : %%npm config set registry http://registry.npmjs.org/%% N4V for Webi installation guide N4V for Webi Installation guide Linux 6 If you receive an error “self signed certificate in certificate chain” from a npm install command, try to ignore the SSL with the following command : %%npm config set strict -ssl false%% 1.7. NODE STANDALONE INSTALLATION If you decide to not install NVM, you can follow these steps to install Node in a standalone mode. If you have installed NVM (previous chapter), you can skip this section. 1.7.1. REDHAT INSTALLATION In RHEL 8, Node.js is available as a module called nodejs. You can install it through the commands : %%dnf module install nodejs:%% where stream is the release to install. To list the available releases : dnf module list nodejs Example to install Node.js 20 : dnf module install nodejs:20 %%On other systems, add Node to repo : curl –silent --location https://rpm.nodesource.com/setup_ 20.x |%% bash Close and log on again to run the following command to install Node: %%sudo yum -y install nodejs%% %%When node is installed in a standalone installation, the modules are commonly installed in /usr/local/lib/node or%% %%/usr/local/lib/node_modules or /lib/node_modules%% 1.7.2. DEBIAN INSTALLATION %%Add Node to repo: curl –silent --location https://deb.nodesource.com/setup_20.x | bash%% Close and log on again to run the following command to install Node: %%Apt-get install -y nodejs%% 1.8. INSTALLATION OF PM2 PM2 is the Node process manager to optimize the proper execution of NodeJS processes in a production environment (automatic restart in case of crash, log...) %%Installing pm2 in the Node repository: npm install pm2 --save -g%% %%Logrotate is an additional PM2 module to manage the rotation of logs generated by PM2/Node to optimize their%% %%historization. By default, logs will be time-stamped daily.%% N4V for Webi installation guide N4V for Webi Installation guide Linux 7 %%Installing the logrotate module: pm2 install pm2-logrotate%% 1.9. INSTALLATION OF NODE MODULES FOR NEED4VIZ Download the package « N4V Setup For Linux » from the support site and drop it in the home of the user need4viz. Unzip the archive. 3 folders are present in the archive: %%- N4VCustomElements%% %%- nodejs%% %%- scripts%% The N4V component requires several additional Node modules. All required modules are included in the N4V release (in the %%folder N4V_LIN_20xx.x.x\nodejs\node_modules\20), copy all the modules in the%% %%/home/need4viz/.nvm/versions/node/v20.18.1/lib/node_modules folder.%% 1.10. CONFIGURATION OF THE PUPPETEER MODULE The Need4Viz component relies on the Puppeteer module (based on Chromium) to manage the printing (pdf...) of the charts. This module requires dependencies of libraries that may not be present on the server and that should therefore be installed in addition. Checking for missing dependencies once the module is installed: move to the module installation folder %%node_modules/puppeteer/.local -chromium/linux-XXXXX/chrome-linux%% %%Start dependency checking: ldd chrome | grep not%% Install all missing dependencies. 1.10.1. INSTALLING THE MISSING LIBRARIES ON REDHAT For information, on a Linux server untouched by any installation, the list of missing dependencies to install is as follows: yum install libnss3.so libnssutil3.so libsmime3.so libnspr4.so libdrm libgbm libxshmfence %%pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64%% %%libXi.x86_64 libXtst.x86_64 cups -libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_64%% %%GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 xorg -x11-fonts-100dpi xorg-x11-fonts-%% %%75dpi xorg-x11-utils xorg-x11-fonts-cyrillic xorg-x11-fonts-Type1 xorg-x11-fonts-misc atk%% %%java-atk-wrapper at-spi2-atk gtk3 libXt%% Restart the dependency check again once the libraries are installed to confirm their correct consideration. 1.10.2. INSTALLING THE MISSING LIBRARIES ON DEBIAN For information, on a Debian 10 server without any installation, the list of missing dependencies to install is as follows: sudo %%apt-get install gconf-service libasound2 libatk1.0 -0 libatk-bridge2.0-0 libc6 libcairo2%% %%libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libgconf -2-4 libgdk-pixbuf2.0-0%% %%libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6%% %%libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6%% N4V for Webi installation guide N4V for Webi Installation guide Linux 8 %%libxrandr2 libxrender1 libxss1 libxtst6 ca -certificates fonts-liberation libappindicator1%% %%libnss3 lsb-release xdg-utils wget%% N4V for Webi installation guide N4V for Webi Installation guide Linux 9 1.11. N4V ENVIRONMENT PROMOTION ON AN EXISTING NODEJS INSTALLATION In this case, it will be assumed that N4V is already installed and operational on a source environment (e.g. development environment). The goal is to promote the installation of N4V without going through the installers of npm modules (no opening of external flows for example) on a target system that already has a NodeJS environment. %%It is considered that nvm (optional), nodejs (npm in a version >= 20.x.y) and pm2 are already installed and operational on the%% target system. Copy all the folders and their contents from the source system folder %%/home/need4viz/.nvm/versions/node/v20.18.1/lib/node_modules in the target system folder [node_path]/%% %%lib/node_modules.%% Checking for missing puppeteer dependencies after the module is installed: move to the module installation folder %%node_modules/puppeteer/.local -chromium/linux-XXXXX/chrome-linux%% %%Start dependency checking: ldd chrome | grep not%% Install all missing dependencies. 1.11.1. INSTALLING THE MISSING LIBRARIES ON REDHAT For information, on a Linux server untouched by any installation, the list of missing dependencies to install is as follows: yum install libnss3.so libnssutil3.so libsmime3.so libnspr4.so libdrm libgbm libxshmfence %%pango.x86_64 libXcomposite.x86_64 libXcursor.x86_64 libXdamage.x86_64 libXext.x86_64%% %%libXi.x86_64 libXtst.x86_64 cups -libs.x86_64 libXScrnSaver.x86_64 libXrandr.x86_6 4%% %%GConf2.x86_64 alsa-lib.x86_64 atk.x86_64 gtk3.x86_64 xorg -x11-fonts-100dpi xorg-x11-fonts-%% %%75dpi xorg-x11-utils xorg-x11-fonts-cyrillic xorg-x11-fonts-Type1 xorg-x11-fonts-misc atk%% %%java-atk-wrapper at-spi2-atk gtk3 libXt%% Restart the dependency check again once the libraries are installed to confirm their correct consideration. 1.11.2. INSTALLING THE MISSING LIBRARIES ON DEBIAN For information, on a Debian 10 server without any installation, the list of missing dependencies to install is as follows: sudo %%apt-get install gconf-service libasound2 libatk1.0 -0 libatk-bridge2.0-0 libc6 libcairo2%% %%libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libgconf -2-4 libgdk-pixbuf2.0-0%% %%libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6%% %%libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6%% %%libxrandr2 libxrender1 lib xss1 libxtst6 ca-certificates fonts-liberation libappindicator1%% %%libnss3 lsb-release xdg-utils wget%% N4V for Webi installation guide N4V for Webi Installation guide Linux 10 2. Installation and configuration of N4V for Webi Once the prerequisites have been completed and validated, the installation of N4V for Webi can begin. 2.1. INSTALLING SOURCES MANUALLY %%2.1.1. Deploying the N4V node_module%% %%Copy the main N4V module folder nodejs/node_modules/custom_element in the folder%% %%/home/need4viz/.nvm/versions/node/v20.18.1/lib/node_modules%% 2.1.2. Deploying the web application %%Copy the N4VCustomElements folder to the webapps directory of the application server (for instance, /var/www/html/ for%% %%Apache, or tomcat/webapps for Tomcat).%% Check that the web application is accessible from the domain by opening a browser and accessing the following file (for example): %%http://yourSAPBIURL/N4VCustomElements/res/images/green_tick.png%% with URLNodeJSServer and PORTTomcat referring to the variables configured in the config.js file (below). The result must be If an error appears, check the rights on the webapp files. It is imperative that this test is successful before going any further. On a dedicated server for N4V component, you can install for instance an Apache server following the steps below : 2.1.2.1. Installing Apache on RedHat Apache packages should be available in the default RedHat repositories. To check the availability : yum list httpd If not present, to add the package to the repo : %%rpm -ivh https://dl.fedoraproject.org/pub/epel/epel -release-latest-7.noarch.rpm%% To install Apache : N4V for Webi installation guide N4V for Webi Installation guide Linux 11 yum install httpd %%httpd -v%% to manage the httpd daemon: %%systemctl start|stop|status httpd.service%% 2.1.2.2. Installing Apache on Debian Apache packages are available in the default Debian repositories. To install it : sudo apt update sudo apt install apache2 2.1.3. Creating folders Copy the scripts folder to the home of the user need4viz. Create a log folder in the home of the user need4viz. 2.2. INSTALLING SOURCES USING CONFIGURATION SCRIPT 2.2.1. Configure the installation Complete the config.sh file before performing the update. Fill in the following fields: %%- MODE: ‘INSTALL’%% %%- USER: Name of the specific user used to run/install N4V%% %%- PATCH_VERSION: Version of the patch located in Need4Viz_Linux_%% %%- BKP_VERSION: Leave empty%% %%- NODE_VERSION: Version of NodeJS (run 'nvm current' to find your version)%% %%- NODE_PATH: Path to the node_modules folder%% %%- NODECE_PATH: Path to the custom_element folder%% %%- WEBAPP_PATH: Path to the Path to the webapps folder in the web application. “/var/www/html” for Apache and%% %%“tomcat/webapps” for Tomcat%% %%- PM2_PATH: Path to pm2%% Upload your key to your Need4Viz support download area. It can be found at the bottom of the downloads page. Rename the key.txt file to key.js Place the key.js file in the home of the user need4viz. 2.2.2. Install N4V Ensure that the config.sh and key.js files are in the same folder as script.sh. Run the update through the following command: %%sudo ./script.sh%% N4V for Webi installation guide N4V for Webi Installation guide Linux 12 2.3. SYSTEM CONFIGURATION Once the installation is complete, it is necessary to proceed with the initial configuration of the system by updating the configuration files. 2.3.1. Installing the license key This step can be skipped for an update using a configuration script. Upload your key to your Need4Viz support download area. It can be found at the bottom of the downloads page. Rename the key.txt file to key.js %%Place the key.js file in the /home/need4viz/.nvm/versions/node/v20.18.1/lib/node_modules/custom_element/ce_libs%% 2.3.2. Configuring the config.js file For manual installation, create a backup copy of the file %%/home/need4viz/.nvm/versions/node/v20.18.1/lib/node_modules/custom_element/ce_libs/config.js%% Open the config file.js and fill in the following: %%- URLNodeJSServer: enter here the URL of access to the web portal where is deployed the N4VCustomElements folder%% (usually the URL of access to the SAPBI portal). Be careful to specify the http or https protocol and do not enter a %%port in this URL. Do not end the URL with a ‘/’.%% %%- LocalCEPath: fill in here the path to the need4Viz node_module custom_element (e.g.:%% %%/home/need4viz/.nvm/versions/node/v20.18.1/lib/node_modules/custom_element). Do not end the path with a%% %%‘/’.%% %%- PORTTomcat: enter here the listening port of the application server (80 or 8080 for example for http, 443 or 8443 for%% https). %%- SAPBI_ver: set here the SAPBI version used (set 42 for a SAPBI 4.2 version, 43 for a SAPBI 4.3 / BI2025)%% %%- GoogleKey: enter here your Google key (to be retrieved on your Google space). This key will be used for Google%% graphic components (Google Maps, Google HeatMap, Sankey simple). %%- LogUsageFile: fill in the path of the logs folder created in the home of the need4viz account and add a csv file name%% %%(e.g.: /home/need4viz/logs/chart_usage.csv)%% %%- Locale: choose the product locale (menu language and component settings). FR for French, EN for English.%% %%- Use_MongoDB: change to false if mongoDB should not be used%% %%- URLmongoDB: fill in here, if necessary, the URL of access to the MongoDB database. If MongoDB was installed on%% the same server as N4V, leave the default URL. %%- NoExternalWebAccessAllowed: Set to true if no external web access can be provided for the N4V server (false if the%% %%server has access to the internet). Internet access is needed for Google Localisation (addresses -> lat/lon%% %%coordinates) and for printing (pdf/xls) of some charts (Google maps, simple Sankey, OpenStreetmap)%% %%- ProxyHost: set here the name of the proxy used by the server to access to internet (should be for instance%% %%http://your.proxy:8080)%% %%- ProxyAccount: account used for the proxy access (proxy with account is only supported for Google Localisation, it is%% not supported for printing – only anonymous proxy authorized for printing). N4V for Webi installation guide N4V for Webi Installation guide Linux 13 %%- export_FTP: choose here whether to enable the FTP export menu in the need4Viz component settings (true to%% enable, false to disable) %%- export_HTML: choose here whether to enable the HTML export menu in the need4Viz component settings (true to%% enable, false to disable) %%- use_external_webapp_FTP: in the case of FTP export it is possible to switch the URL of the N4V webapp by another%% (accessible from an external domain for example). Enable this option here (true) or disable (false) %%- URL_PORT_WebApp_ext_FTP: if the use of an external webapp has been activated for FTP export, enter here the%% %%URL to be substituted for the default one (fill in the full URL in the form 'http://url.exterieur.com:port')%% %%- use_external_webapp_HTML: in the case of HTML export it is possible to switch the URL of the N4V webapp to%% another (accessible from an external domain for example). Enable this option here (true) or disable (false) %%- URL_PORT_WebApp_ext_HTML: if the use of an external webapp has been activated for HTML export, enter here%% %%the URL to be substituted for the default one (fill in the full URL in the form 'http://url.exterieur.com:port')%% %%- FTPHost: If FTP export is enabled, enter here the host to use for FTP exports%% %%- FTPPort: If FTP export is enabled, enter here the port to use for FTP exports%% %%- FTPUser: If FTP export is enabled, enter here the account (user) to use for FTP exports%% %%- FTPPass: If FTP export is enabled, enter here the password of the account to be used for FTP exports%% %%- FTPBaseDir: If FTP export is enabled, enter here the default folder assigned to the account to be used for FTP%% %%exports. The folder cannot be empty and must always end with '/'. If it is the root, fill in ‘/’.%% %%- Enable_N4Vconsole : this setting enable (or not) the N4V admin console (accessible throught%% %%http://your_URL:8201/admin)%% %%- Multi_servers : You can administrate muli servers from the same N4V admin console (ex. Dev, Int, Prod… or cluster%% 1, cluster2…). List here all the servers (IP or hostname) separated by comma (ex. : “server1.domain1,serveur2.domain2,…”) %%- Display_nodata: When there is no data to display in the charts, a "no data to display" message is displayed. You can%% disable this message by setting this setting to false (leave true to enable it). %%- MSG_Display_nodata: If you want to customize the “no data to display” message, insert here your text%% %%- LogDebug: In the event of a support request, you may be asked to enable the application's debug mode in order to%% retrieve as much information as possible from the logs and help with problem solving. To enable debug mode, change this setting to true. Do not leave this parameter on true, change it to false as soon as possible, so as to avoid overloading logs on the system. %%- PORTNode_Maps: enter here the first port to use for the 13 different nodes of the N4V application. Only the first%% port needs to be filled in, the next 12 will be incremented automatically. %%2.3.3. Configuring the config_charts.js file%% For manual installation, create a backup copy of the file %%/home/need4viz/.nvm/versions/node/v20.18.1/lib/node_modules/custom_element/ce_libs/config_charts.js%% %%Open the file config_charts.js in editing and fill in if necessary, the following elements for each of the charts :%% %%- Nom_chart_activate: allows you to enable or not enable the chart in the list of graphical components of the Webi%% interface. Set to true to enable the chart, to false to disable it. %%- Nom_chart_limit_lines: allows you to set a maximum number of rows as input accepted by the Need4Viz engine to%% generate the chart. Significantly increasing the number of rows max makes it possible to display graphs with more data but tends to reduce the performance of the browser (size of the graph too large). An internal Webi limit already exists and is set at 50,000 lines (but the Webi rendering engine can however display an error – red cross – with a lower number of lines). N4V for Webi installation guide N4V for Webi Installation guide Linux 14 %%2.3.4. Configuring the apps_ce.js file%% %%For manual installation, create a backup copy of the file /home/need4viz/scripts/apps_ce.json%% %%If the log folder created in the folder creation step is not /home/need4viz/logs, update the node launch file apps_ce.json%% %%changing it in all instances out_file and err_file with the correct log path.%% If the N4V installation folder is not %%/home/need4viz/.nvm/versions/node/v20.18.1/lib/node_modules/custom_element/ce_libs, update the apps_ce.json%% node launch file by changing "script" paths in all instances N4V for Webi installation guide N4V for Webi Installation guide Linux 15 3. Launch of N4V for Webi services %%The start-up and auto-launch registration process is done as follows:%% 3.1. STARTING SERVICES UNDER PM2 Once the installation and configuration is complete, the N4V services can be started. Launch the pm2 list command to verify that the PATH is configured correctly. At this stage, the result must be: %%Move to the scripts folder and run the pm2 start apps_ce.json command. The result must be:%% When the services are started, the list of services can be saved in the PM2 configuration by the pm2 save command. The result must be : 3.2. VERIFYING THE LAUNCH OF SERVICES Once the services are launched, you can check their accessibility by opening a browser and going to the following URL for each of the 13 services: N4V for Webi installation guide N4V for Webi Installation guide Linux 16 %%http://URLNodeJSServer:PORTNode_Maps/about%% %%with URLNodeJSServer and PORTNode_Maps referring to the variables configured in the config.js file.%% %%E.g. http://localhost:8201/about the result must be of the form:%% %%Test the following 12 ports (PORTNode_Maps+1, PORTNode_Maps+2, ..., PORTNode_Maps+12) to verify that each service%% is up and running. 3.3. REGISTRATION FOR THE AUTOMATIC START OF PM2 As soon as the N4V services are properly started and operational, it remains to register the PM2 service (which manages all %%N4V services) for automatic start-up.%% To do this, run the pm2 startup command. The result must be %%To save the service, in automatic start, copy/paste the indicated command, e.g. here:%% %%sudo env PATH=$PATH:/home/need4viz/.nvm/versions/node/v 20.18.1/bin%% %%/home/need4viz/.nvm/versions/node/v 20.18.1/lib/node_modules/pm2/bin/pm2 startup systemd -u%% %%need4viz --hp /home/need4viz%% The result must be: N4V for Webi installation guide N4V for Webi Installation guide Linux 17 Following this registration, the N4V services will be automatically started after each reboot of the server. %%3.4. MANUAL STOP/RESTART OF SERVICES%% To manually stop or restart N4V services, simply run the following commands: Stopping services: pm2 stop all Launch of services: pm2 start all To list the running services and their status: pm2 list N4V for Webi installation guide N4V for Webi Installation guide Linux 18 4. Configuring N4V for Webi Services in the CMC As soon as the services are started and operational, the configuration of the CMC can be performed. 4.1. ADDITIONAL CONFIGURATION FOR SAPBI 4.2 SP07 PATCH 05 UP TO SAPBI 4.2 SP08 PATCH 05 On a SAPBI version between 4.2 SP07 patch 06 and 4.2 SP08 patch 05, the following actions must be performed to enable navigation between N4V components In the "Users and Groups" menu, select "Everyone" and %%right-click.%% Then select Personalization In the "Extensions" tab, enable "Extension Sample 1.0.0" N4V for Webi installation guide N4V for Webi Installation guide Linux 19 Click on "Save and Close" 4.2. ADDITIONAL SETTING ON 4.2 SP08 PATCH 05+ AND 4.2 SP09 PATCH 00+ On version 4.2 SP08 patch 05+ and 4.2 SP09 patch 00+, in accordance to the SAP Note, you must run the following steps to enable navigation in N4V components: %%A new way has been implemented which allows to force Web Intelligence enabling those services even if there isn't any%% extension point enabled in the CMC: %%1. Go to folder SAP BusinessObjects\tomcat\webapps\BOE\WEB-%% %%INF\eclipse\plugins\webpath.AnalyticalReporting\web\WEB-INF\classes%% %%2. Edit webiviewer.properties and set ENABLE_EXTENSIONS_SERVICES=yes%% %%3. Go to folder SAP BusinessObjects\tomcat\work\Catalina\localhost%% 4. Delete folder BOE 5. Restart Tomcat N4V for Webi installation guide N4V for Webi Installation guide Linux 20 4.3. ADDITIONAL CONFIGURATION FOR SAPBI 4.2 SP07 PATCH 06+, SAPBI 4.2 SP08 PATCH 05+AND 4.3 For versions greater than SAPBI 4.2 SP07 patch 06, SP08 and 4.3, the following steps must be performed to configure N4V services in the CMC Add URLs to the WhiteList: Connect to the CMC of the server that will access the N4V components. Go to "Applications" and select "Web Intelligence". %%Right-click on "Properties".%% On the URL White List menu, click the Add URL button. Fill in all URLs with ports UNLESS you specify localhost (a single declaration is enough) N4V for Webi installation guide N4V for Webi Installation guide Linux 21 %%4.4. ADDITIONAL SETTING ON 4.3 SP2+ / BI2025%% %%On version 4.3 SP02+ / BI2025, you must run the following steps to configure N4V%% Log in to CMC, in the %%"Applications" menu, double-%% click on "RESTful Web Service" Select the "Use relative URL path" checkbox. Save and close. N4V for Webi installation guide N4V for Webi Installation guide Linux 22 The URL is well added and enabled. Repeat until all URLs are filled). If N4V is installed on the same server as Webi Processing, %%simply fill in http://localhost%% N4V for Webi installation guide N4V for Webi Installation guide Linux 23 4.5. CREATING N4V SERVICES Log in to the CMC, in the %%"Applications" menu, double-%% click on "Web Intelligence" From the left menu, select "Custom Items" Then, add a service Select "Dedicated Service", Service Name "N4V Gauges", and %%then select http://Serveur%% Service URL: 8102 as described in the README file. TXT file that is %%located in the Need4viz/script%% directory. Click "Test" to verify that it works properly. N4V for Webi installation guide N4V for Webi Installation guide Linux 24 Depending on the version of SAP BI, you may have to accept the risk by checking the box "I accept the risk" Click "OK" to finish configuring the service Check the box to enable the new service Repeat the procedure for each of the 13 services "Save and Exit" N4V for Webi installation guide N4V for Webi Installation guide Linux 25 4.6. VERIFICATION OF THE PROPER FUNCTIONING OF THE SERVICES Connect to the BI LaunchPad and open or create a new Webi document In Design view, navigate to %%Report Elements / Custom%% %%Element => Insert Custom%% Element The service is visible in the report items window and displays the charts The service works properly! You will find on each graph, the information about the license key Setup is complete N4V for Webi installation guide N4V for Webi Installation guide Linux 26 5. Annexe 5.1. INSTALL MULTI N4V NODE ENVIRONMENTS ON THE SAME SERVER You can configure multi N4V node deployments on the same standalone server. For example, consider a configuration %%of one N4V instance to connect to BOE Non-Production environment and one N4V instance to connect to BOE%% Production environment. Once the first installation of N4V is done and correctly configured (sections 1 to 4 have been successfully realized), we will consider, it is the Production N4V env. %%To configure a second deployment of N4V to connect to the BOE Non-Production environment (suffixe _NP will be%% used in the config to distinguish this second deployment), do the following steps: %%5.1.1. DUPLICATE THE TOMCAT/APACHE WEBAPP%% %%Duplicate the N4VCustomElements folder in the webapps directory of the application server (/var/www/html/ for Apache%% %%for example, or tomcat/webapps for Tomcat) and rename the copy as N4VcustomElements_NP.%% 5.1.2. LOGS CONFIGURATION %%Create a new folder /home/need4viz/logs_NP.%% 5.1.3. DUPLICATE AND CONFIGURE THE N4V ENGINE %%Duplicate the /home/need4viz/.nvm/versions/node/v20.18.1/lib/node_modules/custom_element folder (in the%% %%node_modules folder) and rename the copy as%% %%/home/need4viz/.nvm/versions/node/v20.18.1/lib/node_modules/custom_element_NP.%% %%Open the /home/need4viz/.nvm/versions/node/v20.18.1/lib/node_modules/custom_element_NP/ce_libs/config.js file%% and update the settings to adapt the new environment. The following settings should be updated: %%- URLNodeJSServer: enter here the URL of access to the web portal where is deployed the N4VcustomElements_NP%% folder (usually the URL of access to the SAPBI portal). Be careful to specify the http or https protocol and do not %%enter a port in this URL. Do not end the URL with a ‘/’.%% %%- LocalCEPath: fill in here the path to the need4Viz node_module custom_element_NP (e.g.:%% %%/home/need4viz/.nvm/versions/node/v20.18.1/lib/node_modules/custom_element_NP). Do not end the path%% %%with a ‘/’.%% %%- PORTTomcat: enter here the listening port of the application server (80 or 8080 for example for http, 443 or 8443 for%% https). %%- LogUsageFile: fill in the path of the logs folder created in the home of the need4viz account and add a csv file name%% %%(e.g.: /home/need4viz/logs_NP/chart_usage.csv)%% %%- Locale: choose the product locale (menu language and component settings). FR for French, EN for English.%% %%- URLmongoDB: fill in here, if necessary, the URL of access to the MongoDB database. If MongoDB was installed on%% %%the same server as N4V, change the default URL to 'mongodb://localhost/NON_PRODUCTION' (for instance)%% %%- PORTNode_Maps: enter here the first port to use for the 13 different nodes of the N4V application. Only the first%% port needs to be filled in, the next 12 will be incremented automatically. Select a range different form the first deployment of N4V on the same server (for instance start to 8201) N4V for Webi installation guide N4V for Webi Installation guide Linux 27 %%- FullURLJSServer: update the N4VCustomElements value to N4VCustomElements_NP%% %%- FullURLIMGServer: update the N4VCustomElements value to N4VCustomElements_NP%% %%- FullURLCSSServer: update the N4VCustomElements value to N4VCustomElements_NP%% %%- Check in section 2.2.2 if other parameter should be adapted to this new deployment node%% 5.1.4. SETUP, START & REGISTER THE NEW NODE DEPLOYMENT %%Duplicate /home/need4viz/scripts/apps_ce.json file and rename the copy as apps_ce_NP.json%% %%Update in the apps_ce_NP.json file, all instances out_file and err_file with the correct log path /home/need4viz/logs_NP.%% %%Update in the apps_ce_NP.json file, all instances “script” with the correct path%% %%/home/need4viz/.nvm/versions/node/v20.18.1/lib/node_modules/custom_element_NP/ce_libs%% %%Update in the apps_ce_NP.json file, all instances "name" with a distinguished name (for instance "n4v_maps" →%% %%“n4v_NP_maps”, "n4v_bars" → “n4v_NP_bars”…).%% %%Start the new node with pm2 by running the following command: pm2 start apps_ce_NP.json%% You should now see the 13 nodes for the first and the 13 nodes for the second deployment of N4V. Save the launching configuration by running the pm2 save command. Now the 2 nodes will start automatically when you %%enter pm2 stop / pm2 start command (or after a reboot of the server).%% 5.1.5. BOBJ CMC CONFIGURATION In the CMC of the Non Production BOE system, create the 13 N4V services with EXACTLY THE SAME NAME as for the Production system but with the new 13 ports (8202…). N4V for Webi installation guide N4V for Webi Installation guide Linux 28 6. Support %% Once your support account is created, you can access it via the URL https://www.need4viz.com/support/.%%  You can also contact support at support@need4viz.com  The documentation for each chart is available at the following %%site:https://www.need4viz.com/dokuwiki/doku.php%%