commit(auto)
This commit is contained in:
parent
d3cc11f2e6
commit
fb0ff20fa9
5 changed files with 58 additions and 6 deletions
|
@ -14,7 +14,7 @@
|
|||
|
||||
## 20240204 最初のセットアップ
|
||||
|
||||
[[20240204221756 Raspberry Pi Imagerを使ってSDカードを作成]]
|
||||
[[20240204221756 raspberry Pi Imagerを使ってSDカードを作成]]
|
||||
|
||||
### ルーターの設定
|
||||
- DHCPスタティックIP設定 を追加
|
||||
|
@ -41,3 +41,5 @@ $ sudo apt full-upgrade
|
|||
$ sudo reboot (最新にしたので再起動)
|
||||
```
|
||||
`
|
||||
### WEBサーバーを入れる
|
||||
[[20240205150537 Caddyをraspi4にインストール|Caddyをraspi4にインストール]]
|
|
@ -1,5 +1,5 @@
|
|||
### 20240204221756 Raspberry Pi Imagerを使ってSDカードを作成
|
||||
#raspberrypi
|
||||
### 20240204221756 raspberry Pi Imagerを使ってSDカードを作成
|
||||
#raspi
|
||||
[Install Raspberry Pi OS using Raspberry Pi Imager](https://www.raspberrypi.com/software/) のDownload for * で自分の環境用のRaspberry Pi Imagerをダウンロード、インストール
|
||||
|
||||
起動したら、
|
17
content/20240205150537 Caddyをraspi4にインストール.md
Executable file
17
content/20240205150537 Caddyをraspi4にインストール.md
Executable file
|
@ -0,0 +1,17 @@
|
|||
# 20240205150537 Caddyをraspi4にインストール
|
||||
#raspi #caddy #web_server
|
||||
[How to Setup a Raspberry Pi Caddy Web Server - Pi My Life Up](https://pimylifeup.com/raspberry-pi-caddy-web-server/) の方法が現在 20240205 は利用できない。
|
||||
```
|
||||
Err:4 https://dl.cloudsmith.io/public/caddy/stable/deb/debian any-version InRelease
|
||||
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY ABA1F9B8875A6661
|
||||
```
|
||||
このgpgエラーは、鍵が公開されていないのか、解決不能。
|
||||
|
||||
仕方ないのでソースからビルド。
|
||||
|
||||
まずgoが必要
|
||||
[[20240205152229 raspi4にgoをインストールする]]
|
||||
|
||||
```
|
||||
$ sudo apt install git
|
||||
```
|
28
content/20240205152229 raspi4にgoをインストールする.md
Executable file
28
content/20240205152229 raspi4にgoをインストールする.md
Executable file
|
@ -0,0 +1,28 @@
|
|||
# 20240205152229 raspi4にgoをインストールする
|
||||
#raspi #go
|
||||
|
||||
[All releases - The Go Programming Language](https://go.dev/dl/) ここからバイナリをダウンロード。 raspi4の場合は、linux-arm64。
|
||||
```
|
||||
$ wget https://go.dev/dl/go1.21.6.linux-arm64.tar.gz
|
||||
$ sudo tar -C /usr/local -xvf go1.21.6.linux-arm64.tar.gz
|
||||
```
|
||||
|
||||
グローバルにパスを通しておく
|
||||
```
|
||||
sudo nano /etc/profile
|
||||
```
|
||||
で、
|
||||
`PATH="${PATH}:/usr/local/go/bin"`
|
||||
を追加。`export PATH`の前
|
||||
![[Pasted image 20240205153644.png]]
|
||||
syncして再起動。
|
||||
|
||||
```
|
||||
$ go version
|
||||
go version go1.21.6 linux/arm64
|
||||
```
|
||||
などと表示されればOK。
|
||||
|
||||
cf.
|
||||
[【備忘録】RaspberryPiにGoをインストールする #Go - Qiita](https://qiita.com/Noctiluca/items/eb8a6b879b988e5f3ed1)
|
||||
|
|
@ -7,8 +7,13 @@ kazboのpublic notesにようこそ。
|
|||
|
||||
## これは何?
|
||||
|
||||
kazboことKazuki Saita/斉田一樹の書きちらかしたメモが堆積したものから、ある程度有用かもしれない内容を、publicに公開しようとしているものです。
|
||||
kazboことKaz(uki) Saita/斉田一樹の書きちらかしたメモが堆積したものから、ある程度有用かもしれない内容を、publicに公開しようとしているものです。
|
||||
|
||||
### 方針のようなもの
|
||||
- [[20240122201309 全体的な書き方の方針|全体的な書き方の方針]]
|
||||
- [[000000000002 メモ ノートの書き方|メモ ノートの書き方]]
|
||||
|
||||
|
||||
|
||||
|
||||
[[20240122201309 全体的な書き方の方針|全体的な書き方の方針]]
|
||||
[[000000000002 メモ ノートの書き方|メモ ノートの書き方]]
|
||||
|
||||
|
|
Loading…
Reference in a new issue