> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dwe.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# dweOS Legacy

<Warning>
  dweOS Legacy는 [dweOS 2.0](/ko/dwe-os)으로 대체되어 단계적으로 폐지되었습니다.
</Warning>

## 설치

<Tabs>
  <Tab title="옵션 1: Raspberry Pi 이미지 굽기(권장)">
    <Steps>
      <Step title="첫 번째 단계">
        최신 이미지를 [여기](https://github.com/DeepwaterExploration/dweOS/releases/)에서 다운로드합니다.
      </Step>

      <Step title="두 번째 단계">
        이미지를 SD 카드에 플래시하기 위해 [Raspberry Pi Imager](https://www.raspberrypi.com/software/)를 다운로드합니다.
      </Step>

      <Step title="장치 선택">
        <video controls={true} autoPlay loop height="300px" className="w-full aspect-video" src="https://cdn.shopify.com/videos/c/o/v/ce746d70d36443e4b5dcbab6a2e89a87.webm" />
      </Step>

      <Step title="dweOS 이미지 선택">
        <video controls={true} autoPlay loop height="300px" className="w-full aspect-video" src="https://cdn.shopify.com/videos/c/o/v/7cc23a4b35724451886fb1eea783edf8.webm" />
      </Step>

      <Step title="SD 카드 선택">
        <video controls={true} autoPlay loop height="300px" className="w-full aspect-video" src="https://cdn.shopify.com/videos/c/o/v/70b76e866efd4757ac16f1d1cf577395.webm" />
      </Step>

      <Step title="완료!">
        ![dweOS 성공](https://cdn.shopify.com/s/files/1/0575/8785/9626/files/dwe_os_1_step_4.png)
      </Step>
    </Steps>
  </Tab>

  <Tab title="옵션 2: SSH 및 설치">
    ## 연결

    <Card title="SSH 안내" icon="link" href="/ko/dwe-os/guides/ssh-rpi">
      먼저 Raspberry Pi에 SSH로 접속합니다.
    </Card>

    <Steps>
      <Step title="설치 스크립트">
        Raspberry Pi에 설치하려면 다음 명령을 실행할 수 있습니다:

        ```sh theme={null}
        sudo apt update

        sudo apt upgrade

        curl -fsSL https://raw.githubusercontent.com/DeepwaterExploration/dweOS/main/scripts/install.sh | sudo -E bash -
        ```
      </Step>

      <Step title="완료.">
        설치가 완료되면, 스크립트는 다음 메시지와 함께 종료되어야 합니다:

        ```
        Installation of dweOS was successful.
        ```
      </Step>
    </Steps>
  </Tab>

  <Tab title="옵션 3: 수동 설치">
    <Warning> 전문가인 경우에만 이 가이드를 따르세요. </Warning>

    아래 설치 스크립트의 개별 지침을 따라 수동으로 설치할 수 있습니다(`Raspberry Pi` 또는 다른 `ARM`/`x86` 시스템용).

    ### NodeJS 20 및 NPM 설치

    ```sh theme={null}
    sudo apt update
    sudo apt upgrade
    curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
    sudo apt install nodejs
    curl -L https://npmjs.org/install.sh | sudo sh
    ```

    ### 기타 의존성 설치:

    ```sh theme={null}
    sudo apt install libudev-dev libgstreamer-plugins-base1.0-dev libgstreamer1.0-dev gstreamer1.0-plugins-good gstreamer1.0-plugins-bad
    ```

    ### dweOS 설치:

    ```sh theme={null}
    sudo npm install -g @dwe.ai/dwe-os-1
    ```

    ### dweOS 수동 실행:

    셸에 다음을 입력합니다:

    ```sh theme={null}
    dwe-os-1
    ```

    그런 다음 `Enter`를 누릅니다. 더 많은 옵션을 보려면 끝에 `--help`를 추가하세요.

    ### 자동 시작(RPi)

    자동 시작을 활성화하려면(Raspberry Pi에 권장):

    1. [pm2](https://www.npmjs.com/package/pm2)를 설치합니다:

    ```sh theme={null}
    sudo npm install -g pm2
    ```

    2. pm2에서 dwe-os-1을 시작합니다:

    ```sh theme={null}
    pm2 start dwe-os-1
    ```

    3. 프로세스 목록을 저장합니다:

    ```sh theme={null}
    pm2 save
    ```

    4. Raspberry Pi에서 pm2 자동 시작을 활성화합니다:
       Raspberry Pi:

       ```sh theme={null}
       sudo pm2 startup systemd -u pi --hp /home/pi
       ```

       사용자 정의 시스템:

       ```sh theme={null}
       sudo pm2 startup systemd -u <your username> --hp /home/<your username>
       ```
  </Tab>
</Tabs>
