# Installation

## Prerequisite

**Update system and install dependencies**

```
sudo apt -q update
sudo apt -qy install curl git jq lz4
sudo apt -qy upgrade
```

**Clone Installation**&#x20;

```
git clone https://github.com/cortensor/installer
cd installer
```

<figure><img src="/files/4g1BdTyCsOx462uzY3Jo" alt="" width="375"><figcaption></figcaption></figure>

**Install Docker (located on installer folder)**

```
#For Ubuntu 22.04
./install-docker-ubuntu.sh


#For Debian 9
./install-docker-debian.sh

```

<figure><img src="/files/ezjYM5YC0MLPjNxoj5Hu" alt="" width="375"><figcaption></figcaption></figure>

**Install IPFS (located on installer folder)**

```
./install-ipfs-linux.sh

```

<figure><img src="/files/pHnB0aUBLGbNYTF6uHma" alt="" width="375"><figcaption></figcaption></figure>

**Install Cortensord (located on installer folder)**

```
./install-linux.sh

#this command will generate new user "deploy"
```

<figure><img src="/files/kVPtCbGlupO6mdbS78X9" alt="" width="375"><figcaption></figcaption></figure>

**Copy installer folder to deploy home**

```
cd ~/
cp -Rf ./installer /home/deploy/installer
chown -R deploy.deploy /home/deploy/installer
```

#### Switch to user "deploy" and Verify the installation

```
sudo su deploy
cd ~/

ls -al /usr/local/bin/cortensord
ls -al $HOME/.cortensor/bin/cortensord
ls -al /etc/systemd/system/cortensor.service
ls -al $HOME/.cortensor/bin/start-cortensor.sh
ls -al $HOME/.cortensor/bin/stop-cortensor.sh
docker version
ipfs version

Note : If the output similiar this and no error found your installation is success
```

<figure><img src="/files/zWoLPaa1MSwOK7unclLZ" alt="" width="375"><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.logosnodos.online/testnet-node/cortensor/installation.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
