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

Update guide for chmod in windows #39

Open
emizzle opened this issue Nov 12, 2024 · 3 comments
Open

Update guide for chmod in windows #39

emizzle opened this issue Nov 12, 2024 · 3 comments

Comments

@emizzle
Copy link
Contributor

emizzle commented Nov 12, 2024

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

@veaceslavdoina
Copy link
Contributor

veaceslavdoina commented Nov 12, 2024

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
Copy link
Contributor

veaceslavdoina commented Nov 12, 2024

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
Copy link
Contributor

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

A PR for main documentation was created - codex-storage/codex-docs#53.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants