How to Install an IPFS Node on a Virtual Private Server by gray00

View this thread on steempeak.com
· @gray00 · (edited)
$5.32
How to Install an IPFS Node on a Virtual Private Server
IPFS is a peer to peer file sharing network similar to torrents. The software can create a decentralized network boosting speed and redundancy with multiple nodes. Decentralized networks also reduce bandwidth costs for the end content provider.  The protocol is currently used by websites like, Dlive, Dsound, and Dtube. While it is still under development, you can still install and test it out for yourself  if you would like.

I recommend using a  minimum of 2gb ram. Their are many paid hosting options, or you can host the files on your own connection and hardware. I recommend having a minimum of 10mbps upload for IPFS. One popular host within the steem community is Privex, they have been active supporters of steem by running nodes. Some other budget options are Digital Ocean, OVH, and Kimsufi.  These providers start around $2.50 USD per month, giving 10gb of disk space and 2TB of traffic.

You will need a terminal emulator if you are on windows like Putty to make the connection to the server. I used Ubuntu 14.04 for the operating system.
__________

sudo apt-get update

sudo apt-get install golang-go -y

wget https://dist.ipfs.io/go-ipfs/v0.4.14/go-ipfs_v0.4.14_linux-386.tar.gz

tar xvfz go-ipfs_v0.4.14_linux-386.tar.gz

sudo mv go-ipfs/ipfs /usr/local/bin/ipfs

sudo adduser ipfs
su ipfs

ipfs init

ipfs config --json Discovery.MDNS.Enabled false

ipfs config --json Swarm.AddrFilters '[
  "/ip4/10.0.0.0/ipcidr/8",
  "/ip4/100.64.0.0/ipcidr/10",
  "/ip4/169.254.0.0/ipcidr/16",
  "/ip4/172.16.0.0/ipcidr/12",
  "/ip4/192.0.0.0/ipcidr/24",
  "/ip4/192.0.0.0/ipcidr/29",
  "/ip4/192.0.0.8/ipcidr/32",
  "/ip4/192.0.0.170/ipcidr/32",
  "/ip4/192.0.0.171/ipcidr/32",
  "/ip4/192.0.2.0/ipcidr/24",
  "/ip4/192.168.0.0/ipcidr/16",
  "/ip4/198.18.0.0/ipcidr/15",
  "/ip4/198.51.100.0/ipcidr/24",
  "/ip4/203.0.113.0/ipcidr/24",
  "/ip4/240.0.0.0/ipcidr/4"
]'

<- edit config file in located in "/.ipfs" and change strategy to "pinned" as  and change "10gb" to how much space you want the node to consume.
![unknown.png](https://steemitimages.com/DQmchdmH78LoFfBAjuuMMM2jax8AvDSnDTsaLerR4Q4vyP4/unknown.png)
< start ipfs 
ipfs daemon &

<- Log in to the root account and run the command below if you would like to run ipfs during boot.

sed -i -e '$i /bin/su ipfs -c "/usr/local/bin/ipfs daemon &"\n' /etc/rc.local


Useful commands:

< add a file on ipfs network
ipfs get hash
< pin a file to keep it on the server
ipfs pin add hash
< update the operating system
sudo apt-get update
sudo apt-get upgrade
< full list of ipfs commands
 https://ipfs.io/docs/commands/
< guide for vps by ipfs https://ipfs.io/blog/22-run-ipfs-on-a-vps/
< in case you do an upgrade on ipfs and need to migrate
https://github.com/ipfs/fs-repo-migrations/blob/master/run.md
< show disk space 
df -h
< show running processes and memory use
top
< check ipfs bandwidth usage
ipfs stats bw
< tool to pin dtube links
https://github.com/johnn3y/ipfs-pin-steem
< video resources
<iframe width="560" height="315" src="https://www.youtube.com/embed/b6Epn_-vaqQ" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/pap18o5Ntxw" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
IPFS install on Mac
<iframe width="560" height="315" src="https://www.youtube.com/embed/xoZ1v7G_ZFg" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<center><a href='https://d.tube/#!/v/techcoderx/crsqgnpx'><img src='https://ipfs.io/ipfs/QmcjUzWNDsztnG4iXU1ijyeEwXed5LjKu9cQo2RReq1Yba'></a></center><hr>

IPFS install on Windows
<iframe width="560" height="315" src="https://www.youtube.com/embed/4O053XvP3fs" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
<iframe width="560" height="315" src="https://www.youtube.com/embed/lFC9l2Za9i0" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
properties (23)
post_id41,920,970
authorgray00
permlinkhow-to-install-an-ipfs-node-on-a-virtual-private-server
categoryonelovedtube
json_metadata"{"app": "steemit/0.1", "format": "markdown", "links": ["https://dist.ipfs.io/go-ipfs/v0.4.14/go-ipfs_v0.4.14_linux-386.tar.gz", "https://ipfs.io/docs/commands/", "https://ipfs.io/blog/22-run-ipfs-on-a-vps/", "https://github.com/ipfs/fs-repo-migrations/blob/master/run.md", "https://github.com/johnn3y/ipfs-pin-steem", "https://www.youtube.com/embed/b6Epn_-vaqQ", "https://www.youtube.com/embed/pap18o5Ntxw", "https://www.youtube.com/embed/xoZ1v7G_ZFg", "https://d.tube/#!/v/techcoderx/crsqgnpx", "https://www.youtube.com/embed/4O053XvP3fs", "https://www.youtube.com/embed/lFC9l2Za9i0"], "image": ["https://steemitimages.com/DQmchdmH78LoFfBAjuuMMM2jax8AvDSnDTsaLerR4Q4vyP4/unknown.png"], "tags": ["onelovedtube", "ipfs", "dtube"]}"
created2018-04-03 19:49:33
last_update2018-04-04 03:08:45
depth0
children4
net_rshares1,758,998,203,089
last_payout2018-04-10 19:49:33
cashout_time1969-12-31 23:59:59
total_payout_value4.151 SBD
curator_payout_value1.168 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length3,948
author_reputation4,233,179,328,088
root_title"How to Install an IPFS Node on a Virtual Private Server"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (63)
@minnowsupport ·
<p>Congratulations!  This post has been upvoted from the communal account, @minnowsupport, by Graylan | gray00 from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows.  Please find us at the <a href="https://discord.gg/HYj4yvw"> Peace, Abundance, and Liberty Network (PALnet) Discord Channel</a>.  It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.</p> <p>If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=102530.639667%20VESTS">50SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=205303.639667%20VESTS">100SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=514303.639667%20VESTS">250SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=1025303.639667%20VESTS">500SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=2053030.639667%20VESTS">1000SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=10253030.639667%20VESTS">5000SP</a>. <br><strong>Be sure to leave at least 50SP undelegated on your account.</strong></p>
properties (22)
post_id41,923,522
authorminnowsupport
permlinkre-how-to-install-an-ipfs-node-on-a-virtual-private-server-20180403t201005
categoryonelovedtube
json_metadata{}
created2018-04-03 20:10:06
last_update2018-04-03 20:10:06
depth1
children0
net_rshares0
last_payout2018-04-10 20:10:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length1,712
author_reputation104,981,098,086,561
root_title"How to Install an IPFS Node on a Virtual Private Server"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
@jrswab ·
<center>🚀 This is a stellar post! 🚀

I will be featuring it in my weekly #technology and #science curation post for the @minnowsupport project and the [Creators' Guild](https://discord.gg/C9UEHPs)!  The @creatorsguild is a new group of Steem bloggers and content creators looking to improve the overall quality of their niche.

If you wish not to be featured in the curation post this Saturday, please let me know. Keep up the hard work, and I hope to see you at the Creators' Guild!

---
Also, if you have a free witness vote and like what I am doing for the Steem blockchain it would be an honor to have your vote for my witness server. Either [click this SteemConnect link](https://steemconnect.com/sign/account-witness-vote?witness=jrswab&approve=1) or head over to [steemit.com/~witnesses](https://steemit.com/~witnesses) and enter my username it the box at the bottom.</center>
👍  
properties (23)
post_id41,951,796
authorjrswab
permlinkre-gray00-how-to-install-an-ipfs-node-on-a-virtual-private-server-20180404t010055693z
categoryonelovedtube
json_metadata"{"app": "steemit/0.1", "users": ["minnowsupport", "creatorsguild"], "links": ["https://discord.gg/C9UEHPs", "https://steemconnect.com/sign/account-witness-vote?witness=jrswab&approve=1", "https://steemit.com/~witnesses"], "tags": ["onelovedtube", "technology", "science"]}"
created2018-04-04 01:00:54
last_update2018-04-04 01:00:54
depth1
children0
net_rshares692,047,439
last_payout2018-04-11 01:00:54
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length883
author_reputation45,243,433,466,167
root_title"How to Install an IPFS Node on a Virtual Private Server"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000
author_curate_reward""
vote details (1)
@steemitboard ·
Congratulations @gray00! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

[![](https://steemitimages.com/70x80/http://steemitboard.com/notifications/commented.png)](http://steemitboard.com/@gray00) Award for the number of comments received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard)

If you no longer want to receive notifications, reply to this comment with the word `STOP`

> Upvote this notification to help all Steemit users. Learn why [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!

Do not miss the [last announcement](https://steemit.com/easter/@steemitboard/celebrate-easter-with-steemitboard-the-eggs-opened-and-guess-what-popped-out) from @steemitboard!
properties (22)
post_id42,405,625
authorsteemitboard
permlinksteemitboard-notify-gray00-20180406t212320000z
categoryonelovedtube
json_metadata"{"image": ["https://steemitboard.com/img/notifications.png"]}"
created2018-04-06 21:23:18
last_update2018-04-06 21:23:18
depth1
children0
net_rshares0
last_payout2018-04-13 21:23:18
cashout_time1969-12-31 23:59:59
total_payout_value0.000 SBD
curator_payout_value0.000 SBD
pending_payout_value0.000 SBD
promoted0.000 SBD
body_length861
author_reputation38,705,954,145,809
root_title"How to Install an IPFS Node on a Virtual Private Server"
beneficiaries[]
max_accepted_payout1,000,000.000 SBD
percent_steem_dollars10,000