[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
IPFS newbie guide
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 37
Thread images: 4
File: ipfs-logo-white.png (24 KB, 640x256) Image search: [Google]
ipfs-logo-white.png
24 KB, 640x256
Crossposting from Lain because there are only 800 users over there and this should be interesting to /g/ too.

Anyone familiar with the InterPlanetaryFileSystem?

Its a neat protocoll, based on torrents, blockchains and git that aims to replace the internet.

In practice its a nice tool to distribute all kinds of files, websites included.
The difference is that there is no single point of failure. And it is protected against sybill attacks (for those that care).

It is based not on resource location but on resource content. I.e. if I go to www.google.de/InterestingImage.png my browser will always give me whatever is at that location, be it the google logo or necro horseporn.
IPFS uses SHA-256 hashes instead. So the resource links that take the form of easy to remember strings like QmWsmdwbd2NLgyyB7FHLCCd3Qu8F7kXk19eZAdKGyFTdqv will always point me to the file whose hash corresponds to that value. Changing even one bit will yield a completely different hash.

The closest equivalent would be I2P or GnuNet, both extremely slow (as in pre 5,6kb/s slow)

Now the interesting part, how to get started.

First go to:

https://ipfs.io/docs/install/

download the binary for your platform, unpack and move to that directory. (I will assume you use Linux or a Linux-like OS during the following steps)

Inside that directory, make sure that you have set the execution rights for the .sh file, run it as sudo or su to install.

thats it, you have now installed IPFS on your computer.
Except its pretty useless as it is right now.
We need a few more steps.
First: add a repository, that will be where all the files and chunks of files will be saved.

you can do this using the following line in the Bash:

export IPFS_PATH=/home/YOURNAME/ipfsTestDir/ 


Part 1/x
(fucking 2000 character limit...)
>>
>>52154537
Part 2/2

this will create an IPFS repository inside this directory (the directory should exist and you should adapt your name of course).

Then you might want to add a bootstrap, a known address from where your IPFS installation can access the whole IPFS swarm, i.e. everyone else who has IPFS.
Like so:
ipfs bootstrap add /ip4/45.55.151.20/tcp/4001/ipfs/QmdkJZUWnVkEc6yfptVu4LWY8nHkEnGwsxqQ233QSGj8UP 

this is the access point of ipfspics: https://ipfs.pics/

Now initalize your IPFS:
ipfs init

(you can skip the export PATH and bootstrap part, in which case IPFS will use the default /.ipfs directory in your home directory as repository)

Now, to enable others to access the files you have added to IPFS (no we have not yet added anything, be patient pls) start the IPFS daemon in a terminal windows which you do not need:
ipfs daemon

(you can see that IPFS is legit rocket science here)

Now you can add files to your repo, for simplicity sake we will add a whole directory instead of file by file:
ipfs add -r /home/YOURNAME/TESTDIR/ > ipfsHashes.txt

As above, replace with your username and whatever nonempty directory you want to add to IPFS.
the ">" is of course a redirect, so that all hashes are neatly saved to a textfile, making the much easier to remember.

Congratulations, you just shared some files over IPFS.

A few neat tools to make your life easier:
The chrome/firefox addon "IPFS Gateway redirect", great for accessing IPFS stuff over your browser, works if the IPFS daemon is running in the background.

The link http://localhost:5001/webui
A more noobfriendly userinterface in your browser.
And of course the website of the project: www.ipfs.io with tons of resources to familiarize yourself further.
(the mailing list is especially nice, everyone is friendly and Juan Bennet, the inventor of IPFS is often active there)

Of note is that IPFS is still in alpha-stage, 0.3 to be precise, so expect bugs.
>>
>>52154587
now apparently 4chan thinks every filehash is spam, for whatever reason.
So I will try to chop up the first link, lets see if it works:

To access a small directory of files I uploaded go to:

http://127.0.0.1:8080/ipfs/ Qmd DKvbE BePMu VNDfc Vou6u Xdp71S 9KAQ QDoAx ySpT oULF

Remove the spaces.
>>
>>52155147
Oh good. finally.


Who else has experiences with IPFS, or knows a few good fileshashes?
Feel free to share them in this thread.
>>
What's Lain?
>>
>>52155170
another chan.
Sadly I get muted if I post the whole name. (at least that was the case during the mootesian reign of terror)
Lain Chan org (lets risk it)
>>
>>52155199
Seems down...
>>
>>52155222
Im on it right now, so no.
Just google it by adding lain chan together.
should point you to the right address.

Esp. the /lambda/ board is like /g/ minus the retarded part (though we are working on that).

Lisp general moved there months ago.
>>
>The closest equivalent would be I2P or GnuNet
It's not close equivalent at all, IPFS is not anonymous like them. Close equivalent would be Tahoe-LAFS.

There are plans to run IPFS on Tor/I2P to make it anonymous but it will make it slower.
>>
>>52155147
Thanks for the shares.
>>
>>52155436
>>IPFS is not anonymous
so what's the point of using it?
>>
>>52155540
The "on the record" reason is to prevent censorship/takedown of files/sites. IPFS can run over any networking stack, but it's in very early development so they've kept things simple for now and oriented towards performance.
>>
>>52155538
you are welcome.

>>52155436
I was referring to the "distributed" aspect of those softwares.

>>52155540
As >>52155617 said: much harder to take down files. Also a distributed system is much more efficient than a centralized one like the internet as it is right now.
>>
File: 2121.jpg (14 KB, 262x263) Image search: [Google]
2121.jpg
14 KB, 262x263
>>52154537
we know about this already, it was spammed to hell and deeper last month, it should be auto banned, now fuck off
>>
But how do you search for files?
>>
>>52156443
you don't
>>
>800 Users

800 users is alot, Here you will get no more than 80 users and 75 of them are bots or NSA Recruits, so...
>>
>>52156498
So you mean to tell me, there's no way to get a file if you don't have the hash? Isn't it just like torrents?
>>
>>52156228
stay cool recruit
>>
>>52156228
I dont go to /g/ regularly anymore, I would not know, sorry.

>>52156443
You dont (not yet anyway, as mentioned: early alpha), hence the invitation to post interesting hashes.
>>52156527
Its many thousand here.

>>52156545
no, it uses bittorrent as building block but is actualy a file system/Internet replacement.
>>
File: 1422298844955.png (782 KB, 801x601) Image search: [Google]
1422298844955.png
782 KB, 801x601
The chan numbered 2^3 has a /tech/ board with a good long running IPFS thread you should read if you're interested. I'm the anon from that thread that runs the ipfs.borg.moe gateway if you have any questions.

If you have any hashes that need pinning post them here!
>>
>>52156752
>regularly
nigga, this was spammed day by day for at least two months
>>
>>52156842
thanks for the info, will check it out.
>>
>>52156752
are there at least any hash trackers on ipfs? Can't you put a big file of hashes and what they correspond too on ipfs and update it with new hashes?
>>
>>52157152
> Can't you put a big file of hashes and what they correspond too on ipfs and update it with new hashes?
That is possible of course.

There are already website that switched to IPFS and it works seamlessly with normal users who access the site over https, for exampls ipfspics or neocities.
See this website for example:

http://127.0.0.1:8080/ipfs/QmNhFJjGcMPqpuYfxL62VVB9528NXqDNMFXiqN5bgFYiZ1/its-time-for-the-permanent-web.html
>>
>>52157202
>>That is possible of course.
so there aren't any?

So how the fuck do versioned files work on IPFS?
>>
>>52157617
it uses git for the versioning so thats no issue at all.

You know, you could just follow the links I posted in OP and read up a little bit of the documentation, that would take care of many questions I suspect.
>>
>>52157617
>so there aren't any?
/ipns/gindex.dynu.com/
>>
>>52157906
thank you, thats a great link.

Also googling it reveals the past IPFS threads here on /g/.
Looks like that hothead was right about this not being the first.
>>
If I want to install this via the AUR, should I use

https://aur.archlinux.org/packages/go-ipfs-git/
or
https://aur.archlinux.org/packages/go-ipfs-bin/

Or should I just get the binary builds from the main site?
>>
>>52158137
The binaries are static-except-for-libc Go binaries, so you can just use them.
>>
>>52158217
Gotcha. I'm just messing with it on Windows right now. Probably gonna try it on loonix when this VM finishes.
>>
>>52158137
git is always shit

the supposed development is just jewish trickery
>>
File: mfw.png (47 KB, 799x455) Image search: [Google]
mfw.png
47 KB, 799x455
>mfw ipfs leaks your ip to the other peers
>>
>>52158478
>le anonymoose leejun faec
Go post your CP on other p2p networks then, or use it over Tor.
>>
so is there an IPFS redirect plugin that works with palemoon?
>>
>>52158847
if palemoon is compatible with firefox (which it should be) then yes, use the one mentioned in OP.
Thread replies: 37
Thread images: 4

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.