chirimen-oh / chirimen

CHIRIMEN for Raspberry Pi
https://chirimen.org/chirimen/
13 stars 17 forks source link

Raspberry Pi OS 2024-07-04 32bit 版 setup.sh #125

Open gurezo opened 1 year ago

gurezo commented 1 year ago
gurezo commented 3 months ago

2024.05.11 memo

``` cp: '/etc/apache2/sites-available/000-default.conf' を stat できません: そのようなファイルやディレクトリはありません sh: 1: cannot create /etc/apache2/sites-available/000-default.conf: Directory nonexistent cp: '/etc/apache2/apache2.conf' を stat できません: そのようなファイルやディレクトリはありません sh: 1: cannot create /etc/apache2/sites-available/vhost-ssl.conf: Directory nonexistent sudo: a2ensite: コマンドが見つかりません sudo: a2enmod: コマンドが見つかりません Failed to restart apache2.service: Unit apache2.service not found. ./setup.sh: 行 309: certutil: コマンドが見つかりません E: パッケージ fonts-noto-cjk が見つかりません uim, uim-mozc install パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています... 完了 状態情報を読み取っています... 完了 E: パッケージ uim が見つかりません E: パッケージ uim-mozc が見つかりません apache2 install パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています... 完了 状態情報を読み取っています... 完了 パッケージ apache2 は使用できませんが、別のパッケージから参照されます。 これは、パッケージが欠落しているか、廃止されたか、または別のソース からのみ利用可能であることを意味します。 E: パッケージ 'apache2' にはインストール候補がありません arduino install パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています... 完了 状態情報を読み取っています... 完了 E: パッケージ arduino が見つかりません vim emacs install パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています... 完了 状態情報を読み取っています... 完了 パッケージ vim は使用できませんが、別のパッケージから参照されます。 これは、パッケージが欠落しているか、廃止されたか、または別のソース からのみ利用可能であることを意味します。 E: パッケージ 'vim' にはインストール候補がありません E: パッケージ emacs が見つかりません libnss3-tools install パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています... 完了 状態情報を読み取っています... 完了 E: パッケージ libnss3-tools が見つかりません パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています... 完了 状態情報を読み取っています... 完了 アップグレード: 0 個、新規インストール: 0 個、削除: 0 個、保留: 10 個。 パッケージリストを読み込んでいます... 完了 依存関係ツリーを作成しています... 完了 状態情報を読み取っています... 完了 E: パッケージ 'nodejs' のインストール済みまたは候補のバージョンはいずれも存在しないので選べません E: パッケージが見つかりません sudo: npm: コマンドが見つかりません ```
gurezo commented 3 months ago

2024.05.12 memo

検証OK

ftp サイトを国内に限定しなければ、 apt-get install は、正常終了する

book mark

gc 設定

検証NG

一時的にスリープを無効

server does not have extension for -dpms option
DO NOT EDIT THIS FILE consoleblank=0

The file you are looking for has moved to /boot/firmware/cmdline.txt
DO NOT EDIT THIS FILE consoleblank=0

The file you are looking for has moved to /boot/firmware/cmdline.txt

vscode の日本語設定

設定自体はできているように見える

カメラを有効化

参考

grep: /etc/modprobe.d/bcm2835-v4l2.conf: No such file or directory
options bcm2835-v4l2 gst_v4l2src_is_broken=1
bcm2835-v4l2

apache2

Forbidden
You don't have permission to access this resource.

Apache/2.4.59 (Raspbian) Server at localhost Port 80

非推奨(deprecated)

found 0 vulnerabilities
npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm warn deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies

memo

gurezo commented 3 months ago

シェルを分割しての動作確認

cf. 分割コミット

00

server does not have extension for -dpms option
DO NOT EDIT THIS FILE consoleblank=0

The file you are looking for has moved to /boot/firmware/cmdline.txt
DO NOT EDIT THIS FILE consoleblank=0

The file you are looking for has moved to /boot/firmware/cmdline.txt

01

02

03

argv.json

04

05

found 0 vulnerabilities
npm warn deprecated glob@7.2.3: Glob versions prior to v9 are no longer supported
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported
npm warn deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm warn deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm warn deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm warn deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies

added 282 packages in 27s

06

03

pi@raspberrypi:~/work/chirimen-feature-2024-03-15-32bit $ ./07.setup.sh 
Apache設定 @@@@@@@@@@@@@@@@@@@@@@@@@
apache2 restart @@@@@@@@@@@@@@@@@@@@@@@@@
Enabling site vhost-ssl.
To activate the new configuration, you need to run:
  systemctl reload apache2
Considering dependency setenvif for ssl:
Module setenvif already enabled
Considering dependency mime for ssl:
Module mime already enabled
Considering dependency socache_shmcb for ssl:
Enabling module socache_shmcb.
Enabling module ssl.
See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates.
To activate the new configuration, you need to run:
  systemctl restart apache2
証明書追加 @@@@@@@@@@@@@@@@@@@@@@@@@
Notice: Trust flag u is set automatically if the private key is present.
pi@raspberrypi:~/work/chirimen-feature-2024-03-15-32bit $ ls -la /home/pi/Desktop/gc/
total 36
drwxr-xr-x  8 pi pi 4096 Jan 21  2023 .
drwxr-xr-x  3 pi pi 4096 Jun  1 13:33 ..
drwxr-xr-x  3 pi pi 4096 Jan 21  2023 contrib
drwxr-xr-x  8 pi pi 4096 Jan 12  2023 gpio
drwxr-xr-x 17 pi pi 4096 Jan 12  2023 i2c
drwxr-xr-x  2 pi pi 4096 Jan 21  2023 polyfill
drwxr-xr-x  4 pi pi 4096 Jan 21  2023 testSet
drwxr-xr-x  5 pi pi 4096 Jan 21  2023 top
-rw-r--r--  1 pi pi   55 Jan 21  2023 version.txt
pi@raspberrypi:~/work/chirimen-feature-2024-03-15-32bit $ 

対策?

log.txt error.log

sudo vi /var/log/apache2/error.log

[Sat Jun 01 06:13:34.102409 2024] [mpm_event:notice] [pid 26242:tid 4152285120] AH00489: Apache/2.4.59 (Raspbian) configured -- resuming normal operations
[Sat Jun 01 06:13:34.102654 2024] [core:notice] [pid 26242:tid 4152285120] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jun 01 06:31:50.715364 2024] [mpm_event:notice] [pid 26242:tid 4152285120] AH00492: caught SIGWINCH, shutting down gracefully
[Sat Jun 01 14:31:50.761893 2024] [ssl:warn] [pid 29423:tid 4154021824] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 01 14:31:50.770216 2024] [ssl:warn] [pid 29424:tid 4154021824] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sat Jun 01 14:31:50.771859 2024] [mpm_event:notice] [pid 29424:tid 4154021824] AH00489: Apache/2.4.59 (Raspbian) OpenSSL/3.0.11 configured -- resuming normal operations
[Sat Jun 01 14:31:50.771912 2024] [core:notice] [pid 29424:tid 4154021824] AH00094: Command line: '/usr/sbin/apache2'
[Sat Jun 01 14:32:02.325044 2024] [core:error] [pid 29426:tid 4133483456] (13)Permission denied: [client ::1:57022] AH00035: access to / denied (filesystem path '/home/pi/Desktop') because search permissions are missing on a component of the path
[Sat Jun 01 14:32:02.410592 2024] [core:error] [pid 29426:tid 4125090752] (13)Permission denied: [client ::1:57022] AH00035: access to /favicon.ico denied (filesystem path '/home/pi/Desktop') because search permissions are missing on a component of the path, referer: http://localhost/

sudo tail -f /var/log/apache2/error.log

sudo systemctl restart apache2