Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPFS desktop on Windows 10 and Windows Subsystem for Linux (WSL) simultaneously #2463

Closed
valen320 opened this issue Apr 18, 2023 · 3 comments
Labels
kind/discussion Topical discussion; usually not changes to codebase

Comments

@valen320
Copy link

I've installed the IPFS desktop for Windows 10 and there is a need to enter some Linux-based scripts to run IPFS node correctly. I was suggested a solution to install Windows Subsystem for Linux (WSL) to be able to run these scripts.

I've installed WSL, and now if to enter the WSL terminal, the 'ipfs' is not recognized as it is not installed.

Do I need also to install IPFS to the WSL separately? And then enter a path to the existing repo?
I'm afraid to try to install it, that could possibly damage existing Windows installation.

Is there a correct way to run IPFS in Windows machine and WSL simultaneously?

@valen320 valen320 added the need/triage Needs initial labeling and prioritization label Apr 18, 2023
@valen320
Copy link
Author

valen320 commented Apr 19, 2023

I've figured that out. Just anyone need it.
I need to additionally install Kubo for go in WSL. Instructions for Linux
In my case it was (in WSL):
wget https://dist.ipfs.tech/kubo/v0.19.1/kubo_v0.19.1_linux-amd64.tar.gz
tar -xvzf kubo_v0.19.1_linux-amd64.tar.gz
cd kubo
sudo bash install.sh
then I need to change the repo path to existing one:
to do this, edit the .bashrc or .profile (I don't know which one is more correct to edit, buth both works) file by adding IPFS_PATH
(In my case it was D:\IPFS\.ipfs\) environmental variable with any editor, for example vim:
vim ~/.bashrc or vim ~/.profile
use arrow key to go to bottom and add this line at the end:
IPFS_PATH="/mnt/d/IPFS/.ipfs"; export IPFS_PATH
press escape, type
:wq
and press enter to save and exit.
if you want the changes to take place immediately, type
source ~/.bashrc or source ~/.profile
to load it into the current shell
type
ipfs init

Moreover, starting of IPFS daemon in WSL solved the problem of random daemon quiting with ipfs : panic: expected chan in accept muxer message.

@whizzzkid
Copy link
Contributor

Thanks for submitting this issue @valen320 and solving it in the next comment. I am closing this issue as done, please feel free to add more details for anyone facing a similar issue or opening a new issue if your concerns are still unresolved!

@whizzzkid whizzzkid added kind/discussion Topical discussion; usually not changes to codebase and removed need/triage Needs initial labeling and prioritization labels Apr 20, 2023
@valen320
Copy link
Author

valen320 commented May 12, 2023

just another newbie instruction:
to update Kubo in WSL one need install ipfs-updater
change directory to user's [username]:
cd /home/[username]
then install lastest version, in my case it was 1.9.0:
wget https://dist.ipfs.tech/ipfs-update/v1.9.0/ipfs-update_v1.9.0_linux-amd64.tar.gz
tar -xvzf ipfs-update_v1.9.0_linux-amd64.tar.gz
cd ipfs-update
sudo bash install.sh
ipfs-update --version to check if installed correctly

if ok, run:
sudo ipfs-update install latest
in my case I need to run it several times, as there were some errors in downloading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/discussion Topical discussion; usually not changes to codebase
Projects
No open projects
Status: Done
Development

No branches or pull requests

2 participants