[Tutorial] How to setup IPFS

Before starting make sure you have public IP without this ipfs cannot run in server mode
(If use vps/dedicated server don’t worry you have public IP)

Windows

  1. Download IPFS-GO
  2. Unpack and go to the directory where you find ipfs.exe
  3. Open cmd in this directory shift+right click Open command line here
  4. Type ipfs.exe init (dont close we will use this later)
  5. Open explorer and go to “C:\Users\YOUR.USER.NAME\ .ipfs”
  6. Create new text file and type this

/key/swarm/psk/1.0.0/
/base16/
fdb4684a58cda3f34aa289e603751631e6526f4ca332e876eca163b6b91a37d7

  1. Save this file with name swarm and .key extension
  2. Back to console and type
 ipfs.exe bootstrap rm --all
 ipfs.exe bootstrap add /dnsaddr/bootstrap.ipfs.fivem.net/ipfs/QmVF7Z9FN7mcPWUgKPyTeZ2ifwWoBoGN5UuJSoZdnwSCkN
 ipfs.exe bootstrap add /dnsaddr/bootstrap.ipfs.fivem.net/ipfs/QmSgqKMRP2AmtuWRqEchD2HE3eWkto2doGpfSbHr7DTaVD
 ipfs.exe bootstrap add /dnsaddr/bootstrap.ipfs.fivem.net/ipfs/QmRD8YyRjfwwhLFRZ2ePBpg8LuNyFyFRP8jGWEUwbyuxN1
 ipfs.exe bootstrap add /dnsaddr/bootstrap.ipfs.fivem.net/ipfs/QmYVmpAkZRRjwsKz3ZheSrLk99eZBsSTKiXTVD8fZTzCHN
 ipfs.exe bootstrap add /dnsaddr/bootstrap.ipfs.fivem.net/ipfs/QmU3pKtrpuFpiQQ2WERaYzKeKE97Rx8x4uuV2wJCf55137

9.Now we can add files to ipfs.
( See below if you want to download files from the ipfs network)

b1311

 ipfs.exe add --pin=true --cid-version=1 update.rpf_835a767055cfbf2c2ad86cf4462c7dfb931970fd
 ipfs.exe add --pin=true --cid-version=1 shaders_x64.rpf_77bad0ab74cd1ef7c646206ea12152449ec56cdf 
 ipfs.exe add --pin=true --cid-version=1 appdata0_update.rpf_1715741785ce3c28adf9a78633e57f478229bb84
 ipfs.exe add --pin=true --cid-version=1 RDR2.exe_ac3c2abd80bfa949279d8e1d32105a3d9345c6c8

b1355

 ipfs.exe add --pin=true --cid-version=1 update.rpf_5a087ef32e6b30b4fde8bbeda7babc45f2c1cf4d 
 ipfs.exe add --pin=true --cid-version=1 shaders_x64.rpf_a7a45988a6067964214cc4b3af21797249817469 
 ipfs.exe add --pin=true --cid-version=1 appdata0_update.rpf_307609c164e78adaf4e50e993328485e6264803f
 ipfs.exe add --pin=true --cid-version=1 RDR2.exe_c2fab1d25daef4779aafd2754ec9c593e674e7c3

b1436

 ipfs.exe add --pin=true --cid-version=1 update_1.rpf_0853366e69b29daf01c05d643557e75d610933e7 
 ipfs.exe add --pin=true --cid-version=1 update_2.rpf_3550ce534b2997306ae1bc13fc3abeec4573389f
 ipfs.exe add --pin=true --cid-version=1 update_3.rpf_5f2f26d9eb31f51a21a15f6466814c289906ca35
 ipfs.exe add --pin=true --cid-version=1 update_4.rpf_39ca2bbb7a0ab8d8e09288ca8783b91654c9b91b
 ipfs.exe add --pin=true --cid-version=1 shaders_x64.rpf_f4f06c18701d66958eb6f0ac243c8467033b864b
 ipfs.exe add --pin=true --cid-version=1 appdata0_update.rpf_9d1d6bbe5aa65adf030ec38c5ab9ecc082840207
 ipfs.exe add --pin=true --cid-version=1 RDR2.exe_3c7a863dd71ee4dc66b3ee2f031616c53ceb5090

If you have files in other localization just use it

ipfs.exe add --pin=true --cid-version=1 C:\Users\root\Downloads\game-storage\RDR2.exe_c2fab1d25daef4779aafd2754ec9c593e674e7c3
  1. Now you can start your ipfs daemon. Type in console
    ipfs.exe daemon
    Make sure you see this in cmd window this mean you created swarm key correctly
    image

  2. You can check ipfs status with this command
    (You cant do this in the same cmd window so you need to open a new cmd and go to ipfs.exe localization and use it)

ipfs.exe stats bw

Linux by Mido

wget https://dist.ipfs.io/go-ipfs/v0.8.0/go-ipfs_v0.8.0_linux-amd64.tar.gz
tar xzvf go-ipfs_v0.8.0_linux-amd64.tar.gz 
cd go-ipfs/
sudo make install
sudo ./install
ipfs init
apt-get install screen
screen -dm ipfs daemon

ipfs bootstrap add /dnsaddr/bootstrap.ipfs.fivem.net/ipfs/QmVF7Z9FN7mcPWUgKPyTeZ2ifwWoBoGN5UuJSoZdnwSCkN
ipfs bootstrap add /dnsaddr/bootstrap.ipfs.fivem.net/ipfs/QmSgqKMRP2AmtuWRqEchD2HE3eWkto2doGpfSbHr7DTaVD
ipfs bootstrap add /dnsaddr/bootstrap.ipfs.fivem.net/ipfs/QmRD8YyRjfwwhLFRZ2ePBpg8LuNyFyFRP8jGWEUwbyuxN1
ipfs bootstrap add /dnsaddr/bootstrap.ipfs.fivem.net/ipfs/QmYVmpAkZRRjwsKz3ZheSrLk99eZBsSTKiXTVD8fZTzCHN
ipfs bootstrap add /dnsaddr/bootstrap.ipfs.fivem.net/ipfs/QmU3pKtrpuFpiQQ2WERaYzKeKE97Rx8x4uuV2wJCf55137

ipfs add --pin=true --cid-version=1 update.rpf_5a087ef32e6b30b4fde8bbeda7babc45f2c1cf4d 
ipfs add --pin=true --cid-version=1 shaders_x64.rpf_a7a45988a6067964214cc4b3af21797249817469 
ipfs add --pin=true --cid-version=1 appdata0_update.rpf_307609c164e78adaf4e50e993328485e6264803f
ipfs add --pin=true --cid-version=1 RDR2.exe_c2fab1d25daef4779aafd2754ec9c593e674e7c3

ipfs stats bw
ipfs log tail

Do you want pin files without manually move it to your server?
(After using this commands files will download and pin)

b1311

ipfs pin add bafybeihtqz54b4or4xxqyvrih5wi4il7ni72e7qxg6mtt2c47s6bbkgy4q
ipfs pin add bafybeiapjt7ifvkqrtscmbgghgq2jz7ptpdxvvyqwcrxzqqoqolh45ybwq
ipfs pin add bafybeidgpk6as7ebr4sakax2cy5mulmjr6gbb32mj74i3apbfbjbeoi2ki
ipfs pin add bafybeia5ol2sjowvyfzyncn4wiyp5wtr6tdb6hlq3imbh4ed5v5hgll6jm

b1355

ipfs pin add bafybeigcudahnyogfbavh2fldp5irtm3jxvseysqyarkgibf75wcsmxo4i
ipfs pin add bafybeieesm4cgypcfesnlr4n3q5ruxbjywarnarq75bso77nu6chapktbu
ipfs pin add bafybeie4roojrcitremf2mdsavxqkzjhwmtbj5la3lkr5wreexaybq7q4e
ipfs pin add bafybeib2dprijqsp7xoauqsueboj4xs7kmxiwy4m4uksw2zlgp6w63zqne

b1436

ipfs pin add bafybeigsscjuvgk7bz4hryhxrphzmchrrg4trsise2bbvq3utqdryqyddy
ipfs pin add bafybeifjzvqpiybxsqvukwa6upnddkgoccsl5okg3hgvw3yyzxz7vca7f4
ipfs pin add bafybeihfgavfbsihf65dtv6vyipphbcfrrytcj53hulzkoy7nonpwh4h74
ipfs pin add bafybeihk27hp3wz3ud4pzlyobloievuk3xrntxhl26exec3pgrhlplnmly
ipfs pin add bafybeiaum2y7k6gzsde2xwlstdidcp5vyb6vyqgl5djkwjpb4uesvz2fde
ipfs pin add bafybeic6gss2v42cuc2xol23lc6s36rgoqnmeuuzf72z4wuxdwda4svvf4
ipfs pin add bafybeiefr5ayhajox2zcfwrkjvhoqt7c4ebcfiaxr3grjtrtvefd4en3fy
5 Likes

Good job! I’m sure this tutorial will help a lot of people.

1 Like

great tutorial, i had deployed one myself

1436 support in RedM will use 1436.26 build instead of 1436.25. Use ipfs hashes from this commit: Add crossbuild support of b1436 for RedM by Disquse · Pull Request #899 · citizenfx/fivem · GitHub

UPD: hashes was updated.

1 Like

Updated b1436.28 hashes

Windows - Pre-loaded Files

ipfs.exe add --pin=true --cid-version=1 RDR2.exe_5c474d04c0d8e8f0573be31ec015da2d54e27ff9
ipfs.exe add --pin=true --cid-version=1 appdata0_update.rpf_a3721e37521597daec336ee7872e45fb9b286bab
ipfs.exe add --pin=true --cid-version=1 shaders_x64.rpf_d5c4b9b845165a473da344d2b29ac5546b3f2b50
ipfs.exe add --pin=true --cid-version=1 update_1.rpf_77a30e21b549048a6186f337a6cd6ad6699d460d
ipfs.exe add --pin=true --cid-version=1 update_2.rpf_3550ce534b2997306ae1bc13fc3abeec4573389f
ipfs.exe add --pin=true --cid-version=1 update_3.rpf_a2d3a0e6908b2834b6fd204e6de89e63788d927a
ipfs.exe add --pin=true --cid-version=1 update_4.rpf_39ca2bbb7a0ab8d8e09288ca8783b91654c9b91b

Windows - Download Files

ipfs.exe pin add bafybeignxmbrmkhzkpvupziem6qpm33lm27xku6ag4pmzsafyo2fcksgg4
ipfs.exe pin add bafybeie2ge4mwttdhaneydf2ylsn3tp2bfwmon3rd34j5lo4zjepbfpub4
ipfs.exe pin add bafybeialsn5kxkokbfdz6odouazfntw6y3abvf2qylge3gwlhtortsuvlm
ipfs.exe pin add bafybeid36os6iw26laqzau3lfe23zfkk42dzsy4o65jln2yneetvrxmcsu
ipfs.exe pin add bafybeiaum2y7k6gzsde2xwlstdidcp5vyb6vyqgl5djkwjpb4uesvz2fde
ipfs.exe pin add bafybeibhenxfkjsie7knqxrlk6bflhh57qbf7lrs7wr5f47kiavcfnt7mq
ipfs.exe pin add bafybeiefr5ayhajox2zcfwrkjvhoqt7c4ebcfiaxr3grjtrtvefd4en3fy

Linux - Pre-loaded Files

ipfs add --pin=true --cid-version=1 RDR2.exe_5c474d04c0d8e8f0573be31ec015da2d54e27ff9
ipfs add --pin=true --cid-version=1 appdata0_update.rpf_a3721e37521597daec336ee7872e45fb9b286bab
ipfs add --pin=true --cid-version=1 shaders_x64.rpf_d5c4b9b845165a473da344d2b29ac5546b3f2b50
ipfs add --pin=true --cid-version=1 update_1.rpf_77a30e21b549048a6186f337a6cd6ad6699d460d
ipfs add --pin=true --cid-version=1 update_2.rpf_3550ce534b2997306ae1bc13fc3abeec4573389f
ipfs add --pin=true --cid-version=1 update_3.rpf_a2d3a0e6908b2834b6fd204e6de89e63788d927a
ipfs add --pin=true --cid-version=1 update_4.rpf_39ca2bbb7a0ab8d8e09288ca8783b91654c9b91b

Linux - Download Files

ipfs pin add bafybeignxmbrmkhzkpvupziem6qpm33lm27xku6ag4pmzsafyo2fcksgg4
ipfs pin add bafybeie2ge4mwttdhaneydf2ylsn3tp2bfwmon3rd34j5lo4zjepbfpub4
ipfs pin add bafybeialsn5kxkokbfdz6odouazfntw6y3abvf2qylge3gwlhtortsuvlm
ipfs pin add bafybeid36os6iw26laqzau3lfe23zfkk42dzsy4o65jln2yneetvrxmcsu
ipfs pin add bafybeiaum2y7k6gzsde2xwlstdidcp5vyb6vyqgl5djkwjpb4uesvz2fde
ipfs pin add bafybeibhenxfkjsie7knqxrlk6bflhh57qbf7lrs7wr5f47kiavcfnt7mq
ipfs pin add bafybeiefr5ayhajox2zcfwrkjvhoqt7c4ebcfiaxr3grjtrtvefd4en3fy
3 Likes

is this still worth setting up to help the network?

Yes, especially now when the latest supported RedM build doesn’t match the latest Red Dead Redemption 2 build.

Trying to set this up on a Debian-Based host right now, however it seems on my end ipfs pin add just gets stuck doing seemingly nothing, see no network or i/o load, am i doing something wrong? or is there a way to pre-load the files without having downloaded them before? as i dont have a local redm copy either :confused:

1 Like

i’m having the same exact issue on ubuntu

Figured it out! you have to create a swarm.key file in ~/.ipfs/ with the contents of

/key/swarm/psk/1.0.0/
/base16/
fdb4684a58cda3f34aa289e603751631e6526f4ca332e876eca163b6b91a37d7

then it’ll start churning away!

additionally since the files are outdated on the original topic, here’s a (as of nov 1st 2022) complete list of files used by RedM, may change in the future

ipfs pin add bafybeidi57jjjtenbp7tyiyqkwbsqs7kkl5oipvonvygijaohg7lmaedqu --progress
ipfs pin add bafybeiegcuomoefqoknwgnopx4kucknabzbpceqkqpyiovnkygbk5qox6i --progress
ipfs pin add bafybeibw6nbijjs3y5jbt6s2xr5neo6c6u7ryqbnbftp3vbtnogwdorvoy --progress
ipfs pin add bafybeicpau23p5xeiv24f3wknofzcbzcmzhggohazvnunh3wictpevrhni --progress
ipfs pin add bafybeiaqwolwlyvn6lrs7y57xiwqx4fdqfxgrbo54ofrysecrs5cnc4nou --progress
ipfs pin add bafybeiewhm7gcx7zjfine3lx3mohnx764nwm2sfc6dqqgxtdhyewkesze4 --progress
ipfs pin add bafybeieclgpinpfipgqdgrc6dlqovexfdclq6js44ph4ttfn6ng444le5q --progress
ipfs pin add bafybeignvzbrnkq35qa2jypvrcbx73qsiknqhhkv57lkwhkmnixsq5bn7e --progress
ipfs pin add bafybeihevef6cp25uczabosbvna4uc5idifctitzwuhped4l5ntk7ruqoa --progress 
ipfs pin add bafybeihfgavfbsihf65dtv6vyipphbcfrrytcj53hulzkoy7nonpwh4h74 --progress 
ipfs pin add bafybeifqlaf6vvjbp76ofdvju57oirz74pkm7f62srf36pljgjoo2b3hni --progress 
ipfs pin add bafybeigewsce6w5mtwtywykb7eg2mhey4phhbvkw7cftdjrsowpnebzoxq --progress 
ipfs pin add bafybeibzrkqunak23ppqkk54lkkmmtojqke5pc73f2mfodhwkg7vwrh6pm --progress 
ipfs pin add bafybeic6e75dlx2ynxek5gb7qy3tl7ysmj4xqt4un3c6efrckxxtqtskke --progress 
ipfs pin add bafybeigcudahnyogfbavh2fldp5irtm3jxvseysqyarkgibf75wcsmxo4i --progress 
ipfs pin add bafybeieesm4cgypcfesnlr4n3q5ruxbjywarnarq75bso77nu6chapktbu --progress 
ipfs pin add bafybeie4roojrcitremf2mdsavxqkzjhwmtbj5la3lkr5wreexaybq7q4e --progress 
ipfs pin add bafybeib2dprijqsp7xoauqsueboj4xs7kmxiwy4m4uksw2zlgp6w63zqne --progress 
ipfs pin add bafybeihtqz54b4or4xxqyvrih5wi4il7ni72e7qxg6mtt2c47s6bbkgy4q --progress 
ipfs pin add bafybeiapjt7ifvkqrtscmbgghgq2jz7ptpdxvvyqwcrxzqqoqolh45ybwq --progress 
ipfs pin add bafybeidgpk6as7ebr4sakax2cy5mulmjr6gbb32mj74i3apbfbjbeoi2ki --progress 
ipfs pin add bafybeia5ol2sjowvyfzyncn4wiyp5wtr6tdb6hlq3imbh4ed5v5hgll6jm --progress
2 Likes

Ayyy, thanks mate! People such as you are the reasons we have nice things.

how to do this in an updated way?
into a docker container (or not)
but with the new redm builds

You can find the latest IPFS files/hashes here: fivem/GameCache.cpp at master · citizenfx/fivem · GitHub