I have never posted on Steem. I have been in the community for quite awhile, peering from the shadows. Finally I have decided to start an IPFS node to support content on DTube. This guide will show you how to install IPFS alongside @techcoderx's Discord bot. This bot enables user backups of DTube videos, as well as backing up Dsound. It will also explain to you how to forward ports in a VM. Pre-requisite, [How to use NANO](https://www.youtube.com/watch?v=cLyUZAabf4) and [How to navigate](https://www.youtube.com/watch?v=IVquJh3DXUA) in the Linux terminal  We deployed this on the Lubuntu 18.04 Linux Distribution. ___________________________________________ ### Step One - Create a user name ``adduser username`` - Sudo the user. ``usermod -aG username`` ___________________________________________ ### Step Two: Install Node ``curl -sL https://deb.nodesource.com/setup_10.x | sudo bash -`` ``sudo apt-get install nodejs`` ___________________________________________ ### Step Three: Install Git, Clone Github Repo ``git clone https://github.com/techcoderx/DTube-IPFS-Bot.git`` ___________________________________________ ### Step Four: Install the Discord Bot ``cd DTube-IPFS-Bot`` ``npm install`` ___________________________________________ ### Step Five: Install IPFS ``wget https://dist.ipfs.io/go-ipfs/v0.4.19/go-ipfs_v0.4.19_linux-amd64.tar.gz`` ``tar xvfz go-ipfs_v0.4.19_linux-amd64.tar.gz`` ``cd go-ipfs`` ``sudo ./install.sh`` ``ipfs init`` ___________________________________________ ### Step Six: Configure IPFS Edit your config file with - Disable mDNS discovery ``ipfs config --json Discovery.MDNS.Enabled false`` - Filter out local network addresses ``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"`` ``]'`` ___________________________________________ ### Step Seven: Edit Your Configuration File Write down your port, and forward your local router or firewalls (if needed) for proper connection on said port. I suggest using high ports. 45,000+. Say your .ipfs folder is in your home directory you can bring up and edit your configuration file with a program called nano. See the commands below. ``cd .ipfs`` ``nano config`` Here is a screenshot of it in my configuration file for reference.  You may want to adjust high water and low water to suit your computers performance. An example for lower end computers, put high water at 65 and the low water at 25. For you reference the port configuration is under swarm. ______________________________________________ ### Step Eight Create/Configure/Find Discord Bot Token https://discordapp.com/developers/  Choose a good name for your bot.  Here you will see your client ID, this is very important. Make sure to copy it and save it for the time being. Take the client ID and create your invite link.  Next you will want to add your bot.  Here you will see how to get your bot token. You will need this to make your invite link.  Enter the token you got from the discord developers section into the "auth.json" file in the DTube-IPFS-Bot directory  _________________________________________ ### Step Nine: Configure the settings for the discord bot in config.json  _________________________________________ ### Step Ten: Invite the bot to the discord you would like (by creating an invite link) Right after client_id=, the zeroes represent where you need to put your client id. Which you can find in the discord developers section. This is how you make your invite link. https://discordapp.com/oauth2/authorize?client_id=000000000000000000&scope=bot&permissions=523328 _________________________________________ ### Step Eleven: Install pm2 software ``sudo npm install pm2@latest -g`` _________________________________________ ### Step Tweleve:Node Start This command starts your nodejs bot ``pm2 start bot.js`` This command starts your IPFS daemon ``pm2 start "ipfs daemon --enable-gc"`` _________________________________________ ### Step Thirteen: Test to see if your bot is responding with a !ping command. If successful, then test to see if the bot pins DTube/Dsound content. ________________________________________ ### Step Fourteen:Portr Forward in VM This website was very helpful in helping me forward my Virtual machine port. With the port you have selected, go into you router settings. If you do not know how to, you should have documentation on how to, or call you ISP. Input the IP address you obtained from your VM for the port forwarding IP. A video explaining how to [port forward](https://www.youtube.com/watch?v=2G1ueMDgwxw). To forward your port in your Virtual Machine, first you need to click on your connection.  As it states in the picture you only need the IP address and the port you have chosen to forward. https://www.howtogeek.com/122641/how-to-forward-ports-to-a-virtual-machine-and-use-it-as-a-server/ In the picture, where it says guest IP, input the IP from your VM. For host leave blank. The host port and guest port will be the port you have chosen to forward.  **Congratulations, you have successfully set up an IPFS node in a vm!!** Without @gray00's help none of this would have been possible.
author | necroth |
---|---|
permlink | how-to-install-ipfs-and-forward-ports-in-vm |
category | dtube |
json_metadata | {"community":"steempeak","app":"steempeak/1.8.4b","format":"markdown","tags":["dtube","ipfs","onelovedtube","oneloveipfs","guide"],"users":["techcoderx","latest","gray00"],"links":["/@techcoderx","https://www.youtube.com/watch?v=cLyUZAabf4","https://www.youtube.com/watch?v=IVquJh3DXUA","https://discordapp.com/developers/","https://discordapp.com/oauth2/authorize?client_id=000000000000000000&scope=bot&permissions=523328","https://www.youtube.com/watch?v=2G1ueMDgwxw","https://www.howtogeek.com/122641/how-to-forward-ports-to-a-virtual-machine-and-use-it-as-a-server/","/@gray00"],"image":["https://files.steempeak.com/file/steempeak/necroth/GafB7GNm-PortForwardIPFS.jpg","https://files.steempeak.com/file/steempeak/necroth/g34iR3Nh-IPFSconfigScreenshot.png","https://files.steempeak.com/file/steempeak/necroth/3bxW7nNS-DiscordDeveloper.PNG","https://files.steempeak.com/file/steempeak/necroth/mpqJ1yik-DiscordDevelopername.PNG","https://files.steempeak.com/file/steempeak/necroth/2p18jj2g-DiscorddeveloperID.PNG","https://files.steempeak.com/file/steempeak/necroth/kz5jfSyH-discordDeveloperADDBOT.PNG","https://files.steempeak.com/file/steempeak/necroth/5YhlYilM-DeveloperBotToken.PNG","https://files.steempeak.com/file/steempeak/necroth/pAUYyO1r-BotTOkenJSON.png","https://files.steempeak.com/file/steempeak/necroth/pvRhbycv-DiscordBot.PNG","https://files.steempeak.com/file/steempeak/necroth/FjlIdXkN-Step14connectionRevised.png","https://files.steempeak.com/file/steempeak/necroth/1wfoCCXU-portForwardGuestIP.PNG"]} |
created | 2019-03-12 09:10:09 |
last_update | 2019-03-12 09:10:09 |
depth | 0 |
children | 7 |
last_payout | 2019-03-19 09:10:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.862 HBD |
curator_payout_value | 0.146 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 6,880 |
author_reputation | 27,129,939,188 |
root_title | "How To Install IPFS and Forward Ports In VM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 81,124,851 |
net_rshares | 1,639,636,728,474 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
mammasitta | 0 | 502,767,761 | 0.1% | ||
neopatriarch | 0 | 24,029,826,380 | 50% | ||
frankbacon | 0 | 94,854,327,474 | 100% | ||
teamhumble | 0 | 83,193,143,353 | 100% | ||
humanearl | 0 | 279,430,829 | 10% | ||
steemitboard | 0 | 27,570,342,894 | 2% | ||
shermanedwards | 0 | 717,414,120 | 50% | ||
borislavzlatanov | 0 | 89,730,183,311 | 100% | ||
momogrow | 0 | 66,673,534,183 | 100% | ||
lunix | 0 | 0 | 100% | ||
valued-customer | 0 | 9,311,452,595 | 25% | ||
bearone | 0 | 12,653,884,241 | 10% | ||
st3llar | 0 | 3,820,021,394 | 25% | ||
eturnerx | 0 | 113,550,410,080 | 25% | ||
jrswab | 0 | 66,576,379,983 | 33% | ||
amymya | 0 | 4,048,496,706 | 10% | ||
kaleem345 | 0 | 156,563,523 | 50% | ||
veganroma | 0 | 5,743,964,144 | 25% | ||
rfeif | 0 | 107,230,407 | 50% | ||
paradigmprospect | 0 | 1,482,893,288 | 7.5% | ||
vladivostok | 0 | 1,627,849,747 | 8% | ||
cordeta | 0 | 2,840,651,761 | 50% | ||
laritheghost | 0 | 6,531,484,609 | 50% | ||
yusmi | 0 | 1,068,533,809 | 15% | ||
thecryptovlog | 0 | 158,953,778 | 50% | ||
adventuroussoul | 0 | 26,484,392,927 | 10% | ||
grizzle | 0 | 83,284,820 | 1% | ||
alexabsolute | 0 | 3,764,515,760 | 10% | ||
neeqi | 0 | 3,078,550,356 | 100% | ||
openmind3000 | 0 | 2,517,042,063 | 50% | ||
aperterikk | 0 | 16,160,362,062 | 50% | ||
fireguardian | 0 | 1,010,573,931 | 50% | ||
hasenmann | 0 | 1,205,840,555 | 100% | ||
lakawero | 0 | 255,133,933 | 20% | ||
happymichael | 0 | 2,487,011,462 | 100% | ||
cartel | 0 | 372,448,143 | 50% | ||
crowbarmama | 0 | 4,512,795,474 | 20% | ||
gjart | 0 | 651,078,913 | 30% | ||
digitokash | 0 | 124,408,299 | 30% | ||
andrespire | 0 | 368,493,351 | 50% | ||
scottshots | 0 | 6,163,231,634 | 15% | ||
jeffmcmullen | 0 | 2,680,266,793 | 40% | ||
nyakrahmat | 0 | 197,869,128 | 50% | ||
mrchef111 | 0 | 20,826,573,779 | 25% | ||
gisi | 0 | 4,154,393,689 | 10% | ||
scottychams | 0 | 1,571,373,576 | 50% | ||
bobaphet | 0 | 2,553,955,961 | 5% | ||
illuminationst8 | 0 | 6,340,968,679 | 25% | ||
ilazramusic | 0 | 5,554,023,675 | 100% | ||
ulqu3 | 0 | 3,883,501,907 | 20% | ||
vegan4theanimals | 0 | 649,427,862 | 20% | ||
brainpod | 0 | 744,582,423 | 25% | ||
saracampero | 0 | 2,851,542,271 | 10% | ||
dnews | 0 | 327,308,380 | 1% | ||
dlife | 0 | 65,761,015 | 1% | ||
phototutorials | 0 | 67,165,957 | 1% | ||
theaudgirl | 0 | 1,736,002,462 | 10% | ||
solominer | 0 | 11,913,067,614 | 100% | ||
smacommunity | 0 | 4,578,976,192 | 50% | ||
musicvoter | 0 | 3,335,350,244 | 1% | ||
techcoderx | 0 | 15,156,786,027 | 100% | ||
travellit | 0 | 31,555,867,373 | 5% | ||
reality-variance | 0 | 70,502,945 | 20% | ||
onelovedtube | 0 | 348,842,857,738 | 100% | ||
vincy | 0 | 7,798,206,757 | 5% | ||
izzymiyake | 0 | 245,947,868 | 50% | ||
devthedoodler | 0 | 221,548,203 | 45% | ||
toddmck | 0 | 5,851,394,391 | 100% | ||
apshamilton | 0 | 170,812,524,897 | 100% | ||
nuttapon | 0 | 252,097,622 | 50% | ||
romafedorov | 0 | 7,941,171,678 | 20% | ||
thnayeem1999 | 0 | 0 | 8% | ||
melor9 | 0 | 391,409,190 | 50% | ||
icepee | 0 | 15,928,340,136 | 50% | ||
brogamer | 0 | 190,668,502 | 40% | ||
lillywilton | 0 | 735,002,164 | 20% | ||
hamismsf | 0 | 139,655,574,117 | 25% | ||
chatwithkat | 0 | 252,012,462 | 50% | ||
necroth | 0 | 251,303,726 | 50% | ||
henryglowz | 0 | 250,434,601 | 50% | ||
masaitv | 0 | 70,763,803 | 20% | ||
inoobgamer | 0 | 1,503,979,622 | 20% | ||
graylan | 0 | 3,055,936,016 | 100% | ||
onelove.curation | 0 | 19,298,977,556 | 100% | ||
sshowoff | 0 | 75,651,499 | 50% | ||
cgp | 0 | 171,249,012 | 50% | ||
onelovecuration | 0 | 20,755,125,409 | 100% | ||
onelovestee | 0 | 109,106,436 | 100% | ||
steeminute | 0 | 284,926,626 | 50% | ||
spicereviews | 0 | 180,426,290 | 50% | ||
priyanarc | 0 | 4,640,832,984 | 10% | ||
nonsowrites | 0 | 6,079,128,654 | 5% | ||
pauliinasoilu | 0 | 2,065,740,566 | 50% | ||
deepsouthpiddlin | 0 | 22,548,967,932 | 33% | ||
raoufwilly | 0 | 1,932,831,289 | 30% | ||
beunconstrained | 0 | 0 | 100% | ||
jpbliberty | 0 | 919,653,427 | 25% | ||
blind-spot | 0 | 15,171,942,895 | 10% | ||
vaultec | 0 | 9,495,479,358 | 100% | ||
steemstreems | 0 | 24,309,678,115 | 30% | ||
acminer83 | 0 | 61,664,928 | 20% |
Great explanation and sorely needed. I just set up Dtube IPFS node and it was quite hard to do despite great help from @vaultec and @graylan. I wish I'd had this detailed description with screenshots last week!
author | apshamilton |
---|---|
permlink | re-necroth-how-to-install-ipfs-and-forward-ports-in-vm-20190312t121409795z |
category | dtube |
json_metadata | {"tags":["dtube"],"community":"steempeak","app":"steempeak/1.8.4b"} |
created | 2019-03-12 12:14:09 |
last_update | 2019-03-12 12:14:09 |
depth | 1 |
children | 0 |
last_payout | 2019-03-19 12:14:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.248 HBD |
curator_payout_value | 0.078 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 212 |
author_reputation | 214,010,912,760,441 |
root_title | "How To Install IPFS and Forward Ports In VM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 81,134,939 |
net_rshares | 472,889,579,985 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gingerninja | 0 | 1,457,428,601 | 3% | ||
gray00 | 0 | 12,712,320,419 | 100% | ||
jadabug | 0 | 1,305,112,436 | 1% | ||
hamismsf | 0 | 445,685,152,977 | 80% | ||
necroth | 0 | 540,685,031 | 100% | ||
jpbliberty | 0 | 1,883,566,547 | 50% | ||
vaultec | 0 | 9,305,313,974 | 100% |
author | frankbacon |
---|---|
permlink | re-necroth-how-to-install-ipfs-and-forward-ports-in-vm-20190312t175121560z |
category | dtube |
json_metadata | {"tags":["dtube"],"app":"steemit/0.1"} |
created | 2019-03-12 17:51:21 |
last_update | 2019-03-12 17:51:21 |
depth | 1 |
children | 0 |
last_payout | 2019-03-19 17:51:21 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 17 |
author_reputation | 36,630,927,301,955 |
root_title | "How To Install IPFS and Forward Ports In VM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 81,158,809 |
net_rshares | 13,398,055,308 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gray00 | 0 | 12,845,447,856 | 100% | ||
necroth | 0 | 552,607,452 | 100% |
Nice! Love how simple you kept it
author | solominer |
---|---|
permlink | re-necroth-how-to-install-ipfs-and-forward-ports-in-vm-20190313t154911554z |
category | dtube |
json_metadata | {"tags":["dtube"],"app":"steemit/0.1"} |
created | 2019-03-13 15:49:12 |
last_update | 2019-03-13 15:49:12 |
depth | 1 |
children | 0 |
last_payout | 2019-03-20 15:49:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 33 |
author_reputation | 1,906,760,901,359,236 |
root_title | "How To Install IPFS and Forward Ports In VM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 81,236,956 |
net_rshares | 28,862,637,473 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
freedomcoin | 0 | 16,021,263,521 | 100% | ||
gray00 | 0 | 12,288,766,500 | 100% | ||
necroth | 0 | 552,607,452 | 100% |
Congratulations @necroth! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) : <table><tr><td>https://steemitimages.com/60x60/http://steemitboard.com/notifications/firstpost.png</td><td>You published your First Post</td></tr> <tr><td>https://steemitimages.com/60x60/http://steemitboard.com/notifications/firstvoted.png</td><td>You got a First Vote</td></tr> <tr><td>https://steemitimages.com/60x70/http://steemitboard.com/@necroth/voted.png?201903120937</td><td>You received more than 50 upvotes. Your next target is to reach 100 upvotes.</td></tr> </table> <sub>_[Click here to view your Board](https://steemitboard.com/@necroth)_</sub> <sub>_If you no longer want to receive notifications, reply to this comment with the word_ `STOP`</sub> ###### [Vote for @Steemitboard as a witness](https://v2.steemconnect.com/sign/account-witness-vote?witness=steemitboard&approve=1) and get one more award and increased upvotes!
author | steemitboard |
---|---|
permlink | steemitboard-notify-necroth-20190312t121243000z |
category | dtube |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2019-03-12 12:12:42 |
last_update | 2019-03-12 12:12:42 |
depth | 1 |
children | 0 |
last_payout | 2019-03-19 12:12:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 982 |
author_reputation | 38,975,615,169,260 |
root_title | "How To Install IPFS and Forward Ports In VM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 81,134,832 |
net_rshares | 0 |
@necroth, thank you for supporting @steemitboard as a witness. [](http://steemitboard.com/@necroth) Here is a small present to show our gratitude <sub>_Click on the badge to view your Board of Honor._</sub> Once again, thanks for your support! **Do not miss the last post from @steemitboard:** <table><tr><td><a href="https://steemit.com/drugwars/@steemitboard/drugwars-early-adopter"><img src="https://steemitimages.com/64x128/https://cdn.steemitimages.com/DQmYGN7R653u4hDFyq1hM7iuhr2bdAP1v2ApACDNtecJAZ5/image.png"></a></td><td><a href="https://steemit.com/drugwars/@steemitboard/drugwars-early-adopter">Are you a DrugWars early adopter? Benvenuto in famiglia!</a></td></tr></table>
author | steemitboard |
---|---|
permlink | steemitboard-notify-necroth-20190313t091719000z |
category | dtube |
json_metadata | {"image":["https://steemitboard.com/img/notify.png"]} |
created | 2019-03-13 09:17:18 |
last_update | 2019-03-13 09:17:18 |
depth | 1 |
children | 0 |
last_payout | 2019-03-20 09:17:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 778 |
author_reputation | 38,975,615,169,260 |
root_title | "How To Install IPFS and Forward Ports In VM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 81,211,067 |
net_rshares | 0 |
Don't forget to configure the bot in `config.json` file :D And please change the node id to something that uniquely identifies your bot. It may be a string or a number. `1`, `2` and `3` have been taken.
author | techcoderx |
---|---|
permlink | re-necroth-how-to-install-ipfs-and-forward-ports-in-vm-20190312t094547578z |
category | dtube |
json_metadata | {"tags":["dtube"],"app":"steemit/0.1"} |
created | 2019-03-12 09:45:48 |
last_update | 2019-03-12 09:47:54 |
depth | 1 |
children | 1 |
last_payout | 2019-03-19 09:45:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.019 HBD |
curator_payout_value | 0.005 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 203 |
author_reputation | 48,655,732,596,186 |
root_title | "How To Install IPFS and Forward Ports In VM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 0 |
post_id | 81,126,963 |
net_rshares | 36,298,825,705 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
gray00 | 0 | 12,457,172,720 | 100% | ||
solominer | 0 | 11,720,732,277 | 100% | ||
necroth | 0 | 552,607,452 | 100% | ||
cityofstars | 0 | 11,568,313,256 | 29.6% |
Ah, good tip. :D I forgot about the config.json
author | graylan |
---|---|
permlink | re-techcoderx-re-necroth-how-to-install-ipfs-and-forward-ports-in-vm-20190312t104901845z |
category | dtube |
json_metadata | {"tags":["dtube"],"app":"steemit/0.1"} |
created | 2019-03-12 10:49:03 |
last_update | 2019-03-12 10:49:03 |
depth | 2 |
children | 0 |
last_payout | 2019-03-19 10:49:03 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 47 |
author_reputation | 2,589,357,790,031 |
root_title | "How To Install IPFS and Forward Ports In VM" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 81,129,893 |
net_rshares | 0 |