Download packages/web/src/content/docs/ko/windows-wsl.mdx from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 3.6 kB
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/web/src/content/docs/ko/windows-wsl.mdx
- Command line
-
hf download hf://SaylorTwift/opencode/packages/web/src/content/docs/ko/windows-wsl.mdx
-
curl -L -o windows-wsl.mdx https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/web/src/content/docs/ko/windows-wsl.mdx
3.6 kB
| --- | |
| title: Windows (WSL) | |
| description: WSL๋ก Windows์์ opencode๋ฅผ ๋ ํธํ๊ฒ ์ฌ์ฉํ์ธ์. | |
| --- | |
| import { Steps } from "@astrojs/starlight/components" | |
| opencode๋ Windows์์ ์ง์ ์คํํ ์ ์์ง๋ง, ๊ฐ์ฅ ์ข์ ์ฌ์ฉ ๊ฒฝํ์ ์ํด [Windows Subsystem for Linux (WSL)](https://learn.microsoft.com/en-us/windows/wsl/install) ์ฌ์ฉ์ ๊ถ์ฅํฉ๋๋ค. WSL์ opencode ๊ธฐ๋ฅ๊ณผ ์์ฐ์ค๋ฝ๊ฒ ๋์ํ๋ Linux ํ๊ฒฝ์ ์ ๊ณตํฉ๋๋ค. | |
| WSL์ธ๊ฐ์?] | |
| WSL์ ๋ ๋์ ํ์ผ ์์คํ ์ฑ๋ฅ, ์์ ํ terminal ์ง์, ๊ทธ๋ฆฌ๊ณ opencode๊ฐ ์์กดํ๋ ๊ฐ๋ฐ ๋๊ตฌ์์ ํธํ์ฑ์ ์ ๊ณตํฉ๋๋ค. | |
| --- | |
| ## ์ค์ | |
| <Steps> | |
| 1. **WSL ์ค์นํ๊ธฐ** | |
| ์์ง ์ค์นํ์ง ์์๋ค๋ฉด Microsoft ๊ณต์ ๊ฐ์ด๋๋ฅผ ๋ฐ๋ผ [WSL์ ์ค์น](https://learn.microsoft.com/en-us/windows/wsl/install)ํ์ธ์. | |
| 2. **WSL์ opencode ์ค์นํ๊ธฐ** | |
| WSL ์ค์ ์ด ๋๋๋ฉด WSL terminal์ ์ด๊ณ [์ค์น ๋ฐฉ๋ฒ](/docs/) ์ค ํ๋๋ก opencode๋ฅผ ์ค์นํ์ธ์. | |
| ```bash | |
| curl -fsSL https://opencode.ai/install | bash | |
| ``` | |
| 3. **WSL์์ opencode ์คํํ๊ธฐ** | |
| ํ๋ก์ ํธ ๋๋ ํฐ๋ฆฌ๋ก ์ด๋ํ ๋ค(opencode์์ Windows ํ์ผ์ `/mnt/c/`, `/mnt/d/` ๋ฑ์ผ๋ก ์ ๊ทผ) opencode๋ฅผ ์คํํ์ธ์. | |
| ```bash | |
| cd /mnt/c/Users/YourName/project | |
| opencode | |
| ``` | |
| </Steps> | |
| --- | |
| ## ๋ฐ์คํฌํฑ ์ฑ + WSL ์๋ฒ | |
| opencode ๋ฐ์คํฌํฑ ์ฑ์ ์ฐ๋ฉด์ ์๋ฒ๋ WSL์์ ์คํํ๊ณ ์ถ๋ค๋ฉด ๋ค์์ฒ๋ผ ์งํํ์ธ์. | |
| 1. **WSL์์ ์๋ฒ ์์ํ๊ธฐ** | |
| ์ธ๋ถ ์ฐ๊ฒฐ์ ํ์ฉํ๋ ค๋ฉด `--hostname 0.0.0.0` ์ต์ ์ ์ฌ์ฉํ์ธ์. | |
| ```bash | |
| opencode serve --hostname 0.0.0.0 --port 4096 | |
| ``` | |
| 2. **๋ฐ์คํฌํฑ ์ฑ ์ฐ๊ฒฐํ๊ธฐ** | |
| `http://localhost:4096`๋ก ์ฐ๊ฒฐํ์ธ์. | |
| ํ๊ฒฝ์ ๋ฐ๋ผ `localhost`๊ฐ ๋์ํ์ง ์์ผ๋ฉด WSL์ IP ์ฃผ์๋ฅผ ์ฌ์ฉํ์ธ์(WSL์์ `hostname -I` ์คํ). ์ดํ `http://<wsl-ip>:4096`๋ก ์ ์ํ๋ฉด ๋ฉ๋๋ค. | |
| `--hostname 0.0.0.0`์ ์ฌ์ฉํ ๋๋ `OPENCODE_SERVER_PASSWORD`๋ฅผ ์ค์ ํด ์๋ฒ๋ฅผ ๋ณดํธํ์ธ์. | |
| ```bash | |
| OPENCODE_SERVER_PASSWORD=your-password opencode serve --hostname 0.0.0.0 | |
| ``` | |
| --- | |
| ## ์น ํด๋ผ์ด์ธํธ + WSL | |
| Windows์์ ์น ์ฌ์ฉ ๊ฒฝํ์ ๊ฐ์ฅ ์ข๊ฒ ํ๋ ค๋ฉด: | |
| 1. **PowerShell ๋์ WSL terminal์์ `opencode web` ์คํํ๊ธฐ** | |
| ```bash | |
| opencode web --hostname 0.0.0.0 | |
| ``` | |
| 2. **Windows ๋ธ๋ผ์ฐ์ ์์ ์ ์ํ๊ธฐ** | |
| `http://localhost:<port>`๋ก ์ ์ํ์ธ์(opencode๊ฐ URL์ ์ถ๋ ฅํฉ๋๋ค). | |
| WSL์์ `opencode web`๋ฅผ ์คํํ๋ฉด ์ฌ๋ฐ๋ฅธ ํ์ผ ์์คํ ์ ๊ทผ๊ณผ terminal ํตํฉ์ ์ ์งํ๋ฉด์๋ Windows ๋ธ๋ผ์ฐ์ ์์ ๋ฐ๋ก ์ฌ์ฉํ ์ ์์ต๋๋ค. | |
| --- | |
| ## Windows ํ์ผ ์ ๊ทผ | |
| WSL์์๋ `/mnt/` ๋๋ ํฐ๋ฆฌ๋ฅผ ํตํด Windows ํ์ผ ์ ์ฒด์ ์ ๊ทผํ ์ ์์ต๋๋ค. | |
| - `C:` drive โ `/mnt/c/` | |
| - `D:` drive โ `/mnt/d/` | |
| - ๋ค๋ฅธ ๋๋ผ์ด๋ธ๋ ๊ฐ์ ๋ฐฉ์์ ๋๋ค | |
| ์์: | |
| ```bash | |
| cd /mnt/c/Users/YourName/Documents/project | |
| opencode | |
| ``` | |
| ๊ฐ์ฅ ๋งค๋๋ฌ์ด ๊ฒฝํ์ ์ํ๋ค๋ฉด ์ ์ฅ์๋ฅผ WSL ํ์ผ์์คํ (์: `~/code/`)์ผ๋ก ๋ณต์ ํ๊ฑฐ๋ ๋ณต์ฌํ ๋ค ๊ทธ ์์น์์ opencode๋ฅผ ์คํํด ๋ณด์ธ์. | |
| --- | |
| ## ํ | |
| - Windows ๋๋ผ์ด๋ธ์ ์๋ ํ๋ก์ ํธ๋ผ๋ opencode๋ WSL์์ ์คํํ๋ฉด ํ์ผ ์ ๊ทผ์ด ๋ ์์ฐ์ค๋ฝ์ต๋๋ค | |
| - ํตํฉ๋ ๊ฐ๋ฐ ์ํฌํ๋ก๋ฅผ ์ํด opencode์ ํจ๊ป VS Code์ [WSL ํ์ฅ](https://code.visualstudio.com/docs/remote/wsl)์ ์ฌ์ฉํด ๋ณด์ธ์ | |
| - opencode ์ค์ ๊ณผ ์ธ์ ์ WSL ํ๊ฒฝ์ `~/.local/share/opencode/`์ ์ ์ฅ๋ฉ๋๋ค | |