# 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="https://934886813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjQ2LiNEFvdY09gfwcysG%2Fuploads%2FKwIXIDuT7umQYotFwPoj%2FScreenshot%202025-02-22%20at%2016.22.28.png?alt=media&#x26;token=1572be18-292e-4c1b-a980-30b939e68f09" 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="https://934886813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjQ2LiNEFvdY09gfwcysG%2Fuploads%2FLqIK6Pb3aI94OIvfkYmK%2FScreenshot%202025-02-22%20at%2016.23.21.png?alt=media&#x26;token=d888c9c5-83ba-4dfd-86ad-41cb8d1e9ee6" alt="" width="375"><figcaption></figcaption></figure>

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

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

```

<figure><img src="https://934886813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjQ2LiNEFvdY09gfwcysG%2Fuploads%2FAjshSdFKB5gmsNEg4HEZ%2FScreenshot%202025-02-22%20at%2016.23.57.png?alt=media&#x26;token=23b5b810-5ba2-4c68-b937-03d401ced66f" 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="https://934886813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjQ2LiNEFvdY09gfwcysG%2Fuploads%2F8Z9I98EFL6wA3Y8SU7ye%2FScreenshot%202025-02-22%20at%2016.24.50.png?alt=media&#x26;token=6a7c6f3d-2bc6-4296-9d81-1168e47a15b1" 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="https://934886813-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjQ2LiNEFvdY09gfwcysG%2Fuploads%2FWKIecmyftSmZGcuPpcAX%2FScreenshot%202025-02-22%20at%2016.33.04.png?alt=media&#x26;token=8ffb90ce-ff32-4a70-91f4-169461990a14" alt="" width="375"><figcaption></figcaption></figure>
