---
title: "Installing InfraSense (Log Sensor)"
canonical: "https://thoughtdata.refined.site/space/TUD/55481374/Installing%20InfraSense%20(Log%20Sensor)"
format: markdown
---
##  Installing Infrasense

IT teams can install Infrasense in any of the following popular flavors of the Linux operating system:

- Ubuntu(Recommended and tested) 20.04 and above
- Fedora 31 and above
- CentOS 8 and above

**Important **: This section only describes the steps in the installation procedure in the Ubuntu/Fedora environment. It is important to note that except the following 2 steps the rest of the procedure is identical across operating environments.

- Identifying the right Infrasense installer package/binary for your Linux OS
  - debian packages ".deb" are for Ubuntu/debian OS
  - rpm packages ".rpm" are for fedora/redhat/centos OS
- Updating the current operating system files and libraries

***Note****: These differences are called out at the related step for users to perform the right action.*

***Important ****: Internet connectivity is required on the Infrasense machine during the installation as the installer installs relevant libraries and dependencies from respective OS repositories. Internet connectivity however is not required post installation for Infrasense functions. Root/Super user privileges are required to perform these steps*

Perform the following steps exactly as directed to complete installing Infrasense.

Copy the Infrasense software binary file to the home directory of the machine identified as part of the pre-requisites. For example use the scp command as illustrated.

**Important**: The file name td-infra-sensor_1.0-2_20.04.amd64.deb indicates that this installer file is for the ubuntu OS in the machine assigned for this installation. The file name td-infra-sensor_1.0-1.fc32.x86_64.rpm indicates that indicates that this installer file is for the Fedora OS in the machine assigned for installation.The sensor binary software versions mentioned below are for illustration purposes.

If you are installing on Ubuntu, copy the file **td-infra-sensor_1.0-2_20.04.amd64.deb** and **install.sh** to the home directory of the machine identified as part of the pre-requisites.  

      ‎For example use the scp command as illustrated below.

![image](media://078f1b0f-71f6-465d-92ad-def63ece1c05)

Use scp to bring the ubuntu installer file to the selected machine

If you are installing on fedora, copy **td-infra-sensor_1.0-1.fc32.x86_64.rpm **and** install.sh**, to the home directory of the machine identified as part of the pre-requisites. Use the scp command as illustrated below.

![image](media://9ef8fae4-183b-47a2-b11d-7686033767a4)

Use scp to bring the fedora installer file to the selected machine

View the copied files in the target machine’s directory. Use the command ls to list the files.

![image](media://d71441c2-efbd-46ba-9dc5-3bcba5c5dba5)

 The files are copied in the specified directory

Before beginning to install the software. In the Ubuntu environment, execute the software update command  

      **"‎sudo apt-get update"**  

      ‎The files are updated from Ubuntu’s network repository. When update is complete the status is displayed as “done” as illustrated.
    

![image](media://fb3f5eeb-7add-4f89-aa99-8279fe03d79d)

Update the Ubuntu Operating System

In the Fedora environment, execute the software update command  

      **"‎sudo dnf update"**  

      ‎The files are updated from Fedora’s network repository. When update is complete the status is displayed as “done”.
    

![image](media://7e9a3511-30ea-47cf-8f5e-a9ac7382065c)

Update the Fedora Operating System

In the Redhat/CentOS environment, execute the software update command  

      **"yum update -y"**  

      ‎The files are updated from Redhat/CentOS repository. When update is complete the status is displayed as “done”.
    

**Note**: This step is very important during the installation. Make sure to run this step. It updates all the packages, libraries and dependencies in the operating system. Failing to run this step causes errors during installation, forcing you to repeat steps 1 to 4 after updating the OS dependencies.

The remaining steps of the installation procedure are the same across different OS environments other than the relevant binary file for respective OS. Below steps are described for Ubuntu OS

Convert the install shell script file to an executable file using **"chmod 777 install.sh" **as illustrated. The file install.sh changes color from red to green as illustrated.

![image](media://9485b258-5588-4bd4-86ec-58830f34cd19)

 Installer shell script to executable

**Note**: The installer script and the Infrasense installer files must reside in the same folder.  

      ‎Make sure that you copy them to the same folder – as illustrated in Steps 2 and 3.

Execute the installer using the command **./install.sh** **infrasense** as illustrated, to begin the installation.

![image](media://f8a2fd54-ac81-4aba-8bfe-754c2a41570a)

 Execute installer

Wait for the installer to complete and display the cursor at the home directory as illustrated.

![image](media://ac02d692-242a-4bb4-a63b-957a55c000b1)

Installation complete

**Note**: The installation procedure completes successfully without prompting for any user inputs.

Go to the default installation directory /usr/local/thoughtdata/ to see the components in the sub directory infrasense, as illustrated.

![image](media://a413cfa5-29b5-413f-a328-5cf1e1b158a1)

Default directory with the sub directory bin and etc

The directories in the default installation directory contain the files that power Infrasense:

- bin (binary) - the folder path of Infrasense binaries and relevant script files to start and stop Infrasense
- etc – the files used for Infrasense configuration

**Note**: At this point your installation is complete. You can now start the configuration for Infrasense.