# IPFS

The InterPlanetary File System is a protocol and peer-to-peer network for storing and sharing data in a distributed file system. IPFS uses content-addressing to uniquely identify each file in a global namespace connecting all computing devices. The DSPs utilize this as the storage layer to request and serve information to and from vRAM <> RAM as a caching solution.

### Standalone

[go-ipfs](https://dist.ipfs.io/#go-ipfs)

#### Hardware Requirements

#### Prerequisites

* golang
* systemd

**Ubuntu/Debian**

```
sudo apt-get update
sudo apt-get install golang-go -y
```

**Centos/Fedora/AWS Linux v2**

```
sudo yum install golang -y
```

#### Install

```
sudo su -
VERS=0.4.22
DIST="go-ipfs_v${VERS}_linux-amd64.tar.gz"
wget https://dist.ipfs.io/go-ipfs/v$VERS/$DIST
tar xvfz $DIST
rm *.gz
mv go-ipfs/ipfs /usr/local/bin/ipfs
exit
```

#### Configure systemd

```
sudo su -
ipfs init
ipfs config Addresses.API /ip4/0.0.0.0/tcp/5001
ipfs config Addresses.Gateway /ip4/0.0.0.0/tcp/8080
cat <<EOF > /lib/systemd/system/ipfs.service
[Unit]
Description=IPFS daemon
After=network.target
[Service]
ExecStart=/usr/local/bin/ipfs daemon
Restart=always
[Install]
WantedBy=multi-user.target
EOF

systemctl start ipfs
systemctl enable ipfs

exit
```

## More information

For information on adding additional peers, bootstrapping from an existing IPFS node, or running a private network, see the following links:

{% content-ref url="/pages/-MZILCrcenGGU\_qdwQp3" %}
[Adding peers](/liquidapps-documentation/dapp-service-providers/dsps/setup-dsp/ipfs/adding-peers.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MZILn7FRge45SZZsr-e" %}
[Bootsrapping from an existing IPFS Cluster](/liquidapps-documentation/dapp-service-providers/dsps/setup-dsp/ipfs/bootsrapping-from-an-existing-ipfs-cluster.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MZILdkcxEW4qXs4wPRW" %}
[Running a private network](/liquidapps-documentation/dapp-service-providers/dsps/setup-dsp/ipfs/running-a-private-network.md)
{% endcontent-ref %}

####


---

# 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.liquidapps.io/liquidapps-documentation/dapp-service-providers/dsps/setup-dsp/ipfs.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.
