IPFS (InterPlanetary File System) is a protocol and network designed to create a global, decentralized, and peer-to-peer file storage and sharing system. Go IPFS is an implementation of IPFS written in the Go programming language. In this tutorial, we will show you how to install Go IPFS on Ubuntu Server latest.
Before we proceed with the installation process, make sure you have the following:
The first step is to update your Ubuntu server. Open the terminal and run the following command:
sudo apt update
sudo apt upgrade
Go IPFS requires the Go programming language. To install Go, run the following commands:
sudo apt install build-essential
curl -O https://golang.org/dl/go1.17.1.linux-amd64.tar.gz
tar -xvf go1.17.1.linux-amd64.tar.gz
sudo mv go /usr/local
Next, set the Go paths. Add the following lines to the ~/.profile
file:
export GOPATH=$HOME/go
export PATH=/usr/local/go/bin:$PATH:$GOPATH/bin
Save the file and run the following command to apply the changes:
source ~/.profile
Verify the installation with the following command:
go version
The output should show the installed Go version.
To install IPFS, follow these steps:
cd ~
git clone https://github.com/ipfs/go-ipfs.git
cd go-ipfs
make build
sudo make install
ipfs init
To run the IPFS daemon, use the following command:
ipfs daemon
The daemon will start and show a log of its activity.
In this tutorial, we have shown you how to install Go IPFS on Ubuntu Server latest. Now you can use IPFS as a decentralized and distributed file storage and sharing system.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!