|
1 |
| -## 🛠️ Description of Shell Scripts |
2 |
| -- **apache.sh**: Installs Apache 2.4.49. This process usually takes about 20-30 minutes. |
3 |
| -- **webcam.sh**: Sets up the necessary configurations for the application's execution and copies resources like HTML, CSS, JavaScript, and CGI programs. |
4 |
| -- **client-setup.sh**: Connects to the server and downloads configuration files. |
5 |
| - |
6 |
| -## 🚀 Setup Instructions |
7 |
| -Execute the following scripts in order: |
8 |
| - ```sh |
9 |
| - sudo sh apache.sh |
10 |
| - sudo sh webcam.sh |
11 |
| - sudo bash client-setup.sh |
| 1 | +# Raspberry Pi Zero/Zero 2用カスタムイメージセットアップガイド |
| 2 | + |
| 3 | +このガイドでは、Raspberry Pi ZeroまたはRaspberry Pi Zero 2を使用してカスタムイメージのセットアップ方法を説明します。セットアップ完了後やサーバー起動時に行う手順も含まれます。 |
| 4 | + |
| 5 | +## Raspberry Pi Imagerの使用方法 |
| 6 | + |
| 7 | +1. 公式サイトからRaspberry Pi Imagerをダウンロードし、インストールします。[Raspberry Pi Imagerダウンロードページ](https://www.raspberrypi.com/software/) |
| 8 | + |
| 9 | +## 含まれるもの |
| 10 | + |
| 11 | +- カスタムイメージ |
| 12 | +- 環境構築用スクリプトとファイル |
| 13 | + |
| 14 | +## カスタムイメージをダウンロードする際の注意 |
| 15 | + |
| 16 | +カスタムイメージはGithub LFSを使用して管理されているため、コマンドライン上でリポジトリをクローンする前に準備が必要です。詳細な手順は[GitHub LFSのインストールガイド](https://docs.github.com/ja/repositories/working-with-files/managing-large-files/installing-git-large-file-storage)を参照してください。 |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +## Git LFSのインストール |
| 21 | + |
| 22 | +- **Linuxディストリビューション** |
| 23 | + - Debian系の場合: `sudo apt-get install git-lfs` |
| 24 | + - Red Hat系の場合: `sudo yum install git-lfs` |
| 25 | +- **Windows**: `git lfs install` |
| 26 | +- **MacOS**: `brew install git-lfs` |
| 27 | + |
| 28 | +### 共通の手順 |
| 29 | + `git lfs install |
| 30 | + git clone <リポジトリのURL> |
| 31 | + git lfs fetch |
| 32 | + git lfs checkout` |
| 33 | + |
| 34 | + |
| 35 | +Imagerを開き、「Use custom」を選択して、ダウンロードしたカスタムイメージをMicroSDカードにインストールします。MicroSDカードは8GB以上のものを使用してください。 |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | +## 実行手順 |
| 40 | + |
| 41 | +1. Raspberry Piの起動とログイン(ID: `pi` / PW: `raspberry`) |
| 42 | +2. ネットワーク設定(`sudo raspi-config`の実行から可能) |
| 43 | +3. `/home/pi/WebCam/client_setup.sh`の実行 |
| 44 | +4. 実行後、サーバーのIPアドレスを入力してください。 |
| 45 | + |
| 46 | +このガイドに従って、Raspberry Pi ZeroまたはZero 2でカスタムイメージのセットアップを完了させることができます。 |
0 commit comments