---
title: "Installing NetMirror"
canonical: "https://thoughtdata.refined.site/space/TUD/55643201/Installing%20NetMirror"
format: markdown
---
## Installing NetMirror software on application server VM

**Important **: NetMirror installer package is part of Netsense Sensor package. The binary package and installation steps for NetMirror are same as Netsense, however starting the NetMirror process and configuration is different

IT teams can install NetMirror software on their application server VMs running in any of the following popular flavors of the Linux operating system:

- Ubuntu 20.04 or above
- Fedora 31 or above
- CentOS/Redhat 8 or above

**Important **: This section describes the steps in the installation procedure in the Ubuntu 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 NetMirror installer package for your OS type and version.
- Updating the current operating system files and libraries.

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

Perform the following steps exactly as directed to complete installing NetMirror software.

Copy the NetMirror software 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-netsense_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-netsense_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.

Internet connectivity is required during NetMirror installation as the installer installs dependent libraries from OS repositories. Internet connectivity is however not required post installation for NetMirror functions

A. If you are installing on Ubuntu, copy the file  

      td-netsense_1.0-2_20.04.amd64.deb and install script(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://ef215772-3d17-427c-a29b-b32efdf62c77)

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

B. If you are installing on fedora copy td-netsense_1.0-1.fc32.x86_64.rpm and install script(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://8cb18c22-3deb-4b58-b0bf-ce01f9d3e664)

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://98ca55d1-cacd-48de-a0e3-1f4b7140e98f)

The files are copied in the specified directory

A. In the Ubuntu environment, execute the software update command  

      **‎sudo apt-get update -y**  

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

![image](media://9b0dd380-43f3-424a-95a8-82ad89bd5636)

Update the Ubuntu Operating System

B. 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://81c7203b-d87c-483e-a411-2132554ef6bf)

Update the Fedora Operating System

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

**Note:** The remaining steps of the installation procedure are the same across operating environments. Perform these steps as described irrespective of whether the machine selected for installation runs on Ubuntu, Fedora or CentOs.

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

![image](media://49be17f7-ee1b-44cd-accf-55acb554b941)

Change installer shell script to executable

**Note**: The installer script and the NetMirror 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** **netsense** as illustrated, to begin the installation.

![image](media://7c3c38ef-798d-4664-bebf-790b7d9c2ddd)

Execute installer

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

![image](media://a932f76a-86d8-45c5-a8f7-f6f0feabdf17)

Installation complete

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

Go to the default installation directory /usr/local/thoughtdata/netsense

![image](media://b9254542-d3d2-4026-a715-21356718e1b4)

Default directory with the sub directory netsense

The following directories in the default installation directory contain the files that power NetMirror

bin (binary) – all the binaries that run the software

etc – the files used to set configuration

**Note**: At this point the installation is complete. You can now proceed to complete configuration settings for NetMirror.

  

      ‎