Skip to content

Commit 776388a

Browse files
committedMar 5, 2024
Update
1 parent 0ae3249 commit 776388a

File tree

4 files changed

+50
-11
lines changed

4 files changed

+50
-11
lines changed
 

‎.DS_Store

0 Bytes
Binary file not shown.

‎README.md

+46-11
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,46 @@
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+
![GitHubページからのダウンロード方法](https://github.com/BB)
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+
![カスタムイメージのImagerによる書き込み方法](https://github.com/AA)
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でカスタムイメージのセットアップを完了させることができます。

‎bin/update.cgi

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ echo ""
66
# 定義する変数
77
DOWNLOAD_PATH="/usr/local/apache2/downloads/updatefile.tar.gz"
88
EXTRACT_DIR="/usr/local/apache2/cgi-bin"
9+
10+
#適切なサーバURLに変更
911
URL="https://handsoniotapp.com/downloads/updatefile.tar.gz"
1012
UPDATE_SCRIPT="/usr/local/apache2/cgi-bin/updatefile/update.sh"
1113

‎programs/update.sh

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ echo ""
66
# 定義する変数
77
DOWNLOAD_PATH="/usr/local/apache2/downloads/updatefile.tar.gz"
88
EXTRACT_DIR="/usr/local/apache2/cgi-bin"
9+
10+
#適切なURLに変更する
911
URL="https://handsoniotapp.com/downloads/updatefile.tar.gz"
1012
UPDATE_SCRIPT="/usr/local/apache2/cgi-bin/updatefile/update.sh"
1113

0 commit comments

Comments
 (0)
Please sign in to comment.