codex-storage / codex-testnet-starter

Codex Testnet Starter
https://testnet.codex.storage
4 stars 4 forks source link

Update guide for chmod in windows #39

Open emizzle opened 6 days ago

emizzle commented 6 days ago

chmod does not work as expected in msys2 and we should use native icacls for Windows

veaceslavdoina commented 6 days ago

A general note how we can run codex in Windows(msys2)

change eth.key file permissions

icacls eth.key /inheritance:r /grant:r `whoami`:F

check eth.key file permission - msys does not reflect the changes

stat -c %a eth.key
# 644

ls -la eth.key
# -rw-r--r-- 1 Administrator None 67 Nov 12 01:05 eth.key

icacls eth.key
# eth.key WIN-1IH42UQQI3C\Administrator:(F)

disable argument conversion to Windows path

export MSYS_NO_PATHCONV=1

run codex

curl -s https://get.codex.storage/run.sh | bash
veaceslavdoina commented 6 days ago

I will check existing guides and most probably we will update one-liners and then can rely on them

# Linux, macOS, Windows (msys2)
curl -s https://get.codex.storage/install.sh  | bash
curl -s https://get.codex.storage/generate.sh | bash
curl -s https://get.codex.storage/run.sh      | bash
veaceslavdoina commented 6 days ago

Fixes for Windows (msys2) were added to the generate.sh and run.sh and tested.

A PR for main documentation was created - https://github.com/codex-storage/codex-docs/pull/53.