Table of Contents

TC Agent Installation



Introduction

In some cases, the TeamCity agent stops working and does not recover even after attempting to restart it. In such situations, the agent must be removed and a new one created.

When setting up a new agent, it is necessary to install specific packages to ensure it can run the MIB project's builds.

The following section outlines the process for installing the agent.



Install a new TC Agent

Click on Agents in the top menu and after loading the page click on Install Agent.


After installation, open the terminal to start installing the necessary packages:



Commands

Below are the commands to be executed in the TC Agent command prompt:

#### Install dotnet 8
apt-get install wget

wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb

sudo dpkg -i packages-microsoft-prod.deb

rm packages-microsoft-prod.deb

sudo apt-get update

sudo apt-get install -y dotnet-sdk-8.0


#### Install node 20 and nvm 10
sudo apt install -y ca-certificates curl gnupg

sudo mkdir -p /etc/apt/keyrings

curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg

NODE_MAJOR=20

echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list

sudo apt-get update

sudo apt install -y nodejs

#### aws cli (MibDocs)
apt install awscli