Views: 1011

Abstract

This document explains how users can contribute their idle storage space to earn BTT on different operating systems, including how to install BTFS and become a BTFS node.

Image for post

Mac operating system

Hi there, today we will talk about how to earn BTT by contributing idle storage space. Before becoming a Host, please make sure that your device meet the following hardware requirements: CPU: 2Core; RAM: 2 GB. Then you may follow the steps below:

1. Open “Terminal” program and execute the following steps: (users can view https://docs.btfs.io/)

a. Download BTFS intall script install.sh (Make sure you have installed wget command in the system. If not, you can install it using brew install wget; if you don’t have brew command either, you can search Homebrew and install it):

wget https://raw.githubusercontent.com/TRON-US/btfs-binary-releases/master/install.sh

b. Run install.sh script. Parameter -o indicates the type of the opreating system. macOS is represented by darwin. Parameter -a refers to system architecture (amd64 or 386, etc., available macOS should all adopt amd64, so select amd64):

bash install.sh -o darwin -a amd64

c. Add BTFS executable program path to PATH environment variable:

export PATH=${PATH}:${HOME}/btfs/bin

The change to PATH environment variable above is only valid in the current terminal session. To make it permanent, you can put the command into ~/.bash_profile and reopen the terminal to make it valid (subject to specific shell type used):

echo ‘export PATH=${PATH}:${HOME}/btfs/bin’ >> ~/.bash_profile

ofile initialize BTFS:

btfs init

Command output should be something similar to this:

Generating TRON key with BIP39 seed phrase…

Master public key: xpub661MyMwAqRbcFcLXfbrSPYJfTi89JjvTzh6HuMH13F6NEuto4vPw8XYDhxEiPHtVC72h3mRGSKpHkUTR3D7M5SQbo2NetQtNfoMkrKFjnG1

initializing BTFS node at /Users/leo.li/.btfs

generating btfs node keypair with TRON key…done

peer identity: 16Uiu2HAm7JiQCT295HfrLrCBbYinyfbroTerZ11m2rA5HVkid7KA

to get started, enter:

btfs cat /btfs/QmZjrLVdUpqVU6Pnc8pBnyQxVdpn9J8tfcsycP84W6N93C/readme

d. Apply the configuration file for BTFS Host (If BTFS daemon is enabled, you need to restart BTFS daemon after running the command; check the next step to see how to enable and restart BTFS daemon):

btfs config profile apply storage-host

You may run the following command to check if the config file has been successfully applied:

btfs config show

Confirm StorageHostEnabled is set as true in the output:

“StorageHostEnabled”: true,

e. Enable BTFS daemon:

btfs daemon

Command output should be something similar to this:

Initializing daemon…

go-btfs version: 1.2.1-

Repo version: 7

System version: amd64/darwin

Golang version: go1.14.4

Swarm listening on /ip4/10.8.0.42/tcp/4001

Swarm listening on /ip4/127.0.0.1/tcp/4001

Swarm listening on /ip4/172.16.130.1/tcp/4001

Swarm listening on /ip4/172.16.139.1/tcp/4001

Swarm listening on /ip4/192.168.0.102/tcp/4001

Swarm listening on /ip6/::1/tcp/4001

Swarm listening on /p2p-circuit

Swarm announcing /ip4/10.8.0.42/tcp/4001

Swarm announcing /ip4/127.0.0.1/tcp/4001

Swarm announcing /ip4/172.16.130.1/tcp/4001

Swarm announcing /ip4/172.16.139.1/tcp/4001

Swarm announcing /ip4/192.168.0.102/tcp/4001

Swarm announcing /ip6/::1/tcp/4001

API server listening on /ip4/127.0.0.1/tcp/5001

WebUI: http://127.0.0.1:5001/webui

HostUI: http://127.0.0.1:5001/hostui

Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080

Remote API server listening on /ip4/127.0.0.1/tcp/5101

Daemon is ready

How to turn off and restart BTFS daemon: press Ctrl+C in the terminal window of BTFS daemon to exit and re-run BTFS daemon

3. After the node is enabled, visit BTFS Host UI address http://127.0.0.1:5001/hostui/#/. Follow the friendly instruction on the page to become a BTFS Host and earn generous BTT rewards. Try out now!

Image for post

Windows operating system (1)

Hi there, today we will talk about how to earn BTT by contributing idle storage space. Before becoming a Host, please make sure that your device meet the following hardware requirements: CPU: 2Core; RAM: 2 GB. Then you may follow the steps below:

1. To download: https://www.bittorrent.com/

This is the official address of BitTorrent client. Open the page and click “BitTorrent Classic” to download it. Since you have downloaded the BitTorrent client, you no longer have to turn on the BTFS node via command line. This is user-friendly for those who know little about command line operations.

Image for post

2. After you have installed BT client, open BT client dashboard. Click “Options”>”Settings”>”BTFS”, check “Enable BTFS”>”Confirm”. The BTFS node will then automatically be turned on.

Image for post

Since BTFS has not been shipped to all BT clients, you may find that there is no BTFS option on your Windows client dashboard. If there is, simply click it; if not, you can access BTFS Host UI via http://127.0.0.1:5001/hostui/#/ and follow the friendly instructions on the page to be a BTFS Host and earn BTT. Try out now!

Windows operating system (2)

Hi there, today we will talk about how to earn BTT by contributing idle storage space. Before becoming a Host, please make sure that you meet the following hardware requirements: CPU: 2Core; RAM: 2 GB. Then you may follow the steps below:

1. To download: https://github.com/TRON-US/go-btfs/releases

Open the link, select the latest version and download the file matching your operating system and architecture. For example, you can download btfs-windows-amd64.zip for 64-bit Windows. The package can be unzipped to two files: btfs-windows-amd64.exe和config_windows_amd64.yaml

Create “btfs” folder in D drive or any disk with sufficient space, copy the two unzipped files into the folder and rename them btfs.exe and config.yaml

Add this btfs folder to PATH environment variable for Windows (you may search how to modify Windows environment variables).

2. Open command prompt or PowerShell and execute the following steps: (users can viewhttps://docs.btfs.io/)

a,Apply the configuration file for BTFS Host (If BTFS daemon is enabled, you need to restart BTFS daemon after running the command; check the next step to see how to enable and restart BTFS daemon):

btfs.exe config profile apply storage-host

You may run the following command to check if the config file has been successfully applied:

btfs.exe config show

Confirm StorageHostEnabled is set as true in the output:

“StorageHostEnabled”: true,

b, Enable BTFS daemon:

btfs.exe daemon

Command output should be something similar to this:

Initializing daemon…

go-btfs version: 1.2.1-

Repo version: 7

System version: amd64/darwin

Golang version: go1.14.4

Swarm listening on /ip4/10.8.0.42/tcp/4001

Swarm listening on /ip4/127.0.0.1/tcp/4001

Swarm listening on /ip4/172.16.130.1/tcp/4001

Swarm listening on /ip4/172.16.139.1/tcp/4001

Swarm listening on /ip4/192.168.0.102/tcp/4001

Swarm listening on /ip6/::1/tcp/4001

Swarm listening on /p2p-circuit

Swarm announcing /ip4/10.8.0.42/tcp/4001

Swarm announcing /ip4/127.0.0.1/tcp/4001

Swarm announcing /ip4/172.16.130.1/tcp/4001

Swarm announcing /ip4/172.16.139.1/tcp/4001

Swarm announcing /ip4/192.168.0.102/tcp/4001

Swarm announcing /ip6/::1/tcp/4001

API server listening on /ip4/127.0.0.1/tcp/5001

WebUI: http://127.0.0.1:5001/webui

HostUI: http://127.0.0.1:5001/hostui

Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080

Remote API server listening on /ip4/127.0.0.1/tcp/5101

Daemon is ready

How to turn off and restart BTFS daemon: press Ctrl+C in the terminal window of BTFS daemon to exit and re-run BTFS.exe daemon

3. After the node is enabled, visit BTFS Host UI address http://127.0.0.1:5001/hostui/#/. Follow the friendly instructions on the page to become a BTFS Host and earn generous BTT rewards. Try out now!

Linux operating system

Hi there, today we will talk about how to earn BTT by contributing idle storage space. Before becoming a Host, please make sure that your device meet the following hardware requirements: CPU: 2Core; RAM: 2 GB. Then you may follow the steps below:

Open local “Terminal” or connect remotely to Linux host through SSH client and execute the steps below: (users can check https://docs.btfs.io/)

a. Download BTFS intall script install.sh (Make sure you have installed wget command in the system. If not, you can install it using the system’s package manager):

wget https://raw.githubusercontent.com/TRON-US/btfs-binary-releases/master/install.sh

b. Run install.sh script. Parameter -o indicates the type of the opreating system. Linux system is represented by linux. Parameter -a refers to system architecture (amd64 or 386, etc. Most devices adopt amd64 architecture, but still, check your own device):

bash install.sh -o linux -a amd64

c. Add BTFS executable program path to PATH environment variable:

export PATH=${PATH}:${HOME}/btfs/bin

The change to PATH environment variable above is only valid in the current terminal session. To make it permanent, you can put the command into ~/.bash_profile and reopen the terminal to make it valid (subject to specific shell type used):

echo ‘export PATH=${PATH}:${HOME}/btfs/bin’ >> ~/.bash_profile

d. Initialize BTFS:

btfs init

Command output should be something similar to this:

Generating TRON key with BIP39 seed phrase…

Master public key: xpub661MyMwAqRbcFcLXfbrSPYJfTi89JjvTzh6HuMH13F6NEuto4vPw8XYDhxEiPHtVC72h3mRGSKpHkUTR3D7M5SQbo2NetQtNfoMkrKFjnG1

initializing BTFS node at /Users/leo.li/.btfs

generating btfs node keypair with TRON key…done

peer identity: 16Uiu2HAm7JiQCT295HfrLrCBbYinyfbroTerZ11m2rA5HVkid7KA

to get started, enter:

btfs cat /btfs/QmZjrLVdUpqVU6Pnc8pBnyQxVdpn9J8tfcsycP84W6N93C/readme

e. Apply the configuration file for BTFS Host

Apply the configuration file for BTFS Host (If BTFS daemon is enabled, you need to restart BTFS daemon after running the command; check the next step to see how to enable and restart BTFS daemon):

btfs config profile apply storage-host

You may run the following command to check if the config file has been successfully applied:

btfs config show

Confirm StorageHostEnabled is set as true in the output:

“StorageHostEnabled”: true,

f. Start BTFS daemon (if you want to automatically run it upon startup or restart it after unexpected quit, you can set up through systemd service or other methods based on the current Linux system):

btfs daemon

Command output should be something similar to this:

Initializing daemon…

go-btfs version: 1.2.1-

Repo version: 7

System version: amd64/darwin

Golang version: go1.14.4

Swarm listening on /ip4/10.8.0.42/tcp/4001

Swarm listening on /ip4/127.0.0.1/tcp/4001

Swarm listening on /ip4/172.16.130.1/tcp/4001

Swarm listening on /ip4/172.16.139.1/tcp/4001

Swarm listening on /ip4/192.168.0.102/tcp/4001

Swarm listening on /ip6/::1/tcp/4001

Swarm listening on /p2p-circuit

Swarm announcing /ip4/10.8.0.42/tcp/4001

Swarm announcing /ip4/127.0.0.1/tcp/4001

Swarm announcing /ip4/172.16.130.1/tcp/4001

Swarm announcing /ip4/172.16.139.1/tcp/4001

Swarm announcing /ip4/192.168.0.102/tcp/4001

Swarm announcing /ip6/::1/tcp/4001

API server listening on /ip4/127.0.0.1/tcp/5001

WebUI: http://127.0.0.1:5001/webui

HostUI: http://127.0.0.1:5001/hostui

Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080

Remote API server listening on /ip4/127.0.0.1/tcp/5101

Daemon is ready

How to turn off and restart BTFS daemon: press Ctrl+C in the terminal window of BTFS daemon to exit and re-run BTFS daemon

3. After the node is enabled, visit BTFS Host UI address http://127.0.0.1:5001/hostui/#/. Follow the friendly instructions on the page to become a BTFS Host and earn generous BTT rewards. Try out now!