Compare commits

..

No commits in common. "02fd5121982240f1cc229eaf290b1b032cafa2ac" and "78e9fa6bf3e940c290b57edd9326c2aebc571ee1" have entirely different histories.

1 changed files with 4 additions and 56 deletions

View File

@ -101,8 +101,6 @@ IPFS has applications in various areas, including content distribution, software
# How to install IPFS. # How to install IPFS.
## Linux. ## Linux.
Warning: You must execute the commands where indicated, and if it is not indicated it is preferable to execute it again in the root of the user, in this case the ipfs user.
1. Open the terminal and update the system packages: 1. Open the terminal and update the system packages:
```linux ```linux
sudo apt-get update sudo apt-get update
@ -141,18 +139,8 @@ ipfs add <path to file>
ipfs cat <hash of file> ipfs cat <hash of file>
``` ```
Warning: You must execute the commands where indicated, and if it is not indicated it is preferable to execute it again in the root of the user, in this case the ipfs user.
## Compiling Go ## Compiling Go
```linux
wget https://golang.org/dl/go1.20.linux-amd64.tar.gz
tar -xvf go1.20.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin
source ~/.bashrc
source ~/.zshrc
go version
```
```linux ```linux
apt install git gcc apt install git gcc
@ -164,8 +152,6 @@ git checkout go1.18
./make.bash ./make.bash
``` ```
Warning: You must execute the commands where indicated, and if it is not indicated it is preferable to execute it again in the root of the user, in this case the ipfs user.
Make sure to replace go1.18 with the latest Go version. Make sure to replace go1.18 with the latest Go version.
Edit your ~/.profile to access this new Go installation. Edit your ~/.profile to access this new Go installation.
@ -191,50 +177,12 @@ I follow exactly this guide install openssl:
```linux ```linux
git clone --depth 1 https://github.com/openssl/openssl git clone --depth 1 https://github.com/openssl/openssl
cd openssl cd openssl
./config enable-tls1_3 --prefix=/home/team1/openssl ./config enable-tls1_3 --prefix=/home/delia/openssl
sudo make make
sudo make install make install
sudo env GOTAGS=openssl make install GOTAGS=openssl make install
```
Warning: You must execute the commands where indicated, and if it is not indicated it is preferable to execute it again in the root of the user, in this case the ipfs user.
# Adding a service
Configure your service as follows (this is a sample since DECA was used).
Enter the following command to be able to configure the respective file (ipfs.service):
```linux
sudo vim /etc/systemd/system/ipfs.service
```
```linux
[Unit]
Description=InterPlanetary File System (IPFS) daemon
Documentation=https://docs.ipfs.io/
After=network.target
[Service]
Type=notify
ExecStart=/home/ipfs/go/bin/ipfs daemon --enable-gc=true --migrate=true
ExecStop=/home/ipfs/go/bin/ipfs shutdown
Restart=on-failure
KillSignal=SIGINT
[Install]
WantedBy=default.target
``` ```
# Licence.
```
Copyright (C) DECENTRALIZED CLIMATE FOUNDATION A.C.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3
or any later version published by the Free Software Foundation;
with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included in the section entitled "GNU
Free Documentation License".
```