hardware:raspberry_pi:dietpi:dietpi-imager

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
hardware:raspberry_pi:dietpi:dietpi-imager [2022/08/01 08:15] ともやんhardware:raspberry_pi:dietpi:dietpi-imager [2022/08/03 18:04] (現在) – [DietPi の初回起動処理を手動設定する場合] ともやん
行 1: 行 1:
 ====== DietPi での配布イメージの作成 (DietPi-Imager) ====== ====== DietPi での配布イメージの作成 (DietPi-Imager) ======
  
 +===== DietPi-Imager の実行 =====
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
行 37: 行 38:
 </WRAP> </WRAP>
  
-<WRAP color_term>+<WRAP color_term tblcell>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
 </pre></html></WRAP> </pre></html></WRAP>
-<WRAP color_result><html><div class=BScBLU><pre>+<WRAP color_result><html><div class=BScBLU><pre style="font-family: 'HackGenNerd Console';font-size: 8px;zoom:70%;">
 <b class=BScBLU>RPi Zero W (armv6l) | IP: 192.168.1.203 <b class=BScBLU>RPi Zero W (armv6l) | IP: 192.168.1.203
  
行 54: 行 55:
  
  
-<div class=BScHGRY><b class="Bo"><b class="GRY">┌──────────────────────────────────────────────────┤ DietPi-Imager ├───────────────────────────────────────────────────┐ +<div class=BScHGRY><b class="Bo"><b class="GRY">┌──────────────────────────────────────────────────┤ <b class=ScRED>DietPi-Imager</b> ├───────────────────────────────────────────────────┐ 
-│ Please select how the input OS is stored:                                                                            │+│ <b class=BLK>Please select how the input OS is stored:</b>                                                                            │
 │                                                                                                                      │ │                                                                                                                      │
-│                                    Drive : The OS is stored on an attached drive.                                    │ +│                                    <b class=BLK>Drive : The OS is stored on an attached drive.</b>                                    │ 
-│                                    Image : The OS is stored as an image file.                                        │+│                                    <b class=BScRED><b class=ScHGRY>Image : The OS is stored as an image file.</b></b>                                        │
 │                                                                                                                      │ │                                                                                                                      │
 │                                                                                                                      │ │                                                                                                                      │
-│                                  <Ok>                                      <Cancel>                                  │+│                                  <b class=BLK>&lt;Ok>                                      &lt;Cancel></b>                                  │
 │                                                                                                                      │ │                                                                                                                      │
 └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘</b></b></div> └──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘</b></b></div>
行 78: 行 79:
 </b> </b>
 </pre></div></html></WRAP> </pre></div></html></WRAP>
 +</WRAP>
 +
 +===== 起動用 SD 配布イメージ作成時に削除したい機密情報🤔 =====
 +起動用 SD をセッティングする時残る痕跡を調べる🤤\\
 +※機密情報が含まれる可能性があるものを整理してみます🤔\\
 +
 +DietPi 公式起動イメージの初期設定(未起動)\\
 +<WRAP mincode><code autoconf /etc/network/interfaces>
 +# Location: /etc/network/interfaces
 +# Please modify network settings via: dietpi-config
 +# Or create your own drop-ins in: /etc/network/interfaces.d/
 +
 +# Drop-in configs
 +source interfaces.d/*
 +
 +# Ethernet
 +#allow-hotplug eth0
 +iface eth0 inet dhcp
 +address 192.168.0.100
 +netmask 255.255.255.0
 +gateway 192.168.0.1
 +#dns-nameservers 9.9.9.9 149.112.112.112
 +
 +# WiFi
 +#allow-hotplug wlan0
 +iface wlan0 inet dhcp
 +address 192.168.0.100
 +netmask 255.255.255.0
 +gateway 192.168.0.1
 +#dns-nameservers 9.9.9.9 149.112.112.112
 +wireless-power off
 +wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
 +</code></WRAP>
 +
 +<WRAP mincode><code autoconf /etc/wpa_supplicant/wpa_supplicant.conf>
 +# Grant all members of group "netdev" permissions to configure WiFi, e.g. via wpa_cli or wpa_gui
 +ctrl_interface=DIR=/run/wpa_supplicant GROUP=netdev
 +# Allow wpa_cli/wpa_gui to overwrite this config file
 +update_config=1
 +</code></WRAP>
 +
 +===== DietPi の初回起動処理を手動設定する場合 =====
 +**dietpi-firstboot.service** を有効化する🤤\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +$ sudo systemctl enable dietpi-firstboot.service
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +Created symlink /etc/systemd/system/multi-user.target.wants/dietpi-firstboot.service → /etc/systemd/system/dietpi-firstboot.service.
 +</pre></html></WRAP>
 +</WRAP>
 +
 +この時、**/boot/dietpi-wifi.txt** のパスワードが暗号化処理されて **/var/lib/dietpi/dietpi-wifi.db** が生成されるので **dietpi-wifi.txt** を用意しておく😉\\
 +<wrap em>※dietpi-wifi.txt は初回起動で処理されたら削除されて消える🤔</wrap>\\
 +<WRAP mincode_long><code autoconf /boot/dietpi-wifi.txt>
 +#---------------------------------------------------------------
 +# Entry 0
 +# - WiFi SSID: required, case sensitive
 +aWIFI_SSID[0]=''
 +# - WiFi key: If no key/open, leave this blank
 +aWIFI_KEY[0]=''
 +# - Key type: NONE (no key/open) | WPA-PSK | WEP | WPA-EAP (then use settings below)
 +aWIFI_KEYMGR[0]='WPA-PSK'
 +# - WPA-EAP options: Only fill if WPA-EAP is set above
 +aWIFI_PROTO[0]=''
 +aWIFI_PAIRWISE[0]=''
 +aWIFI_AUTH_ALG[0]=''
 +aWIFI_EAP[0]=''
 +aWIFI_IDENTITY[0]=''
 +aWIFI_PASSWORD[0]=''
 +aWIFI_PHASE1[0]=''
 +aWIFI_PHASE2[0]=''
 +# - Path to the certificate file, e.g.: /boot/mycert.cer
 +aWIFI_CERT[0]=''
 +#---------------------------------------------------------------
 +# Entry 1
 +# - WiFi SSID: required, case sensitive
 +aWIFI_SSID[1]=''
 +# - WiFi key: If no key/open, leave this blank
 +aWIFI_KEY[1]=''
 +# - Key type: NONE (no key/open) | WPA-PSK | WEP | WPA-EAP (then use settings below)
 +aWIFI_KEYMGR[1]='WPA-PSK'
 +# - WPA-EAP options: Only fill if WPA-EAP is set above
 +aWIFI_PROTO[1]=''
 +aWIFI_PAIRWISE[1]=''
 +aWIFI_AUTH_ALG[1]=''
 +aWIFI_EAP[1]=''
 +aWIFI_IDENTITY[1]=''
 +aWIFI_PASSWORD[1]=''
 +aWIFI_PHASE1[1]=''
 +aWIFI_PHASE2[1]=''
 +# - Path to the certificate file, e.g.: /boot/mycert.cer
 +aWIFI_CERT[1]=''
 +#---------------------------------------------------------------
 +# Entry 2
 +# - WiFi SSID: required, case sensitive
 +aWIFI_SSID[2]=''
 +# - WiFi key: If no key/open, leave this blank
 +aWIFI_KEY[2]=''
 +# - Key type: NONE (no key/open) | WPA-PSK | WEP | WPA-EAP (then use settings below)
 +aWIFI_KEYMGR[2]='WPA-PSK'
 +# - WPA-EAP options: Only fill if WPA-EAP is set above
 +aWIFI_PROTO[2]=''
 +aWIFI_PAIRWISE[2]=''
 +aWIFI_AUTH_ALG[2]=''
 +aWIFI_EAP[2]=''
 +aWIFI_IDENTITY[2]=''
 +aWIFI_PASSWORD[2]=''
 +aWIFI_PHASE1[2]=''
 +aWIFI_PHASE2[2]=''
 +# - Path to the certificate file, e.g.: /boot/mycert.cer
 +aWIFI_CERT[2]=''
 +#---------------------------------------------------------------
 +# Entry 3
 +# - WiFi SSID: required, case sensitive
 +aWIFI_SSID[3]=''
 +# - WiFi key: If no key/open, leave this blank
 +aWIFI_KEY[3]=''
 +# - Key type: NONE (no key/open) | WPA-PSK | WEP | WPA-EAP (then use settings below)
 +aWIFI_KEYMGR[3]='WPA-PSK'
 +# - WPA-EAP options: Only fill if WPA-EAP is set above
 +aWIFI_PROTO[3]=''
 +aWIFI_PAIRWISE[3]=''
 +aWIFI_AUTH_ALG[3]=''
 +aWIFI_EAP[3]=''
 +aWIFI_IDENTITY[3]=''
 +aWIFI_PASSWORD[3]=''
 +aWIFI_PHASE1[3]=''
 +aWIFI_PHASE2[3]=''
 +# - Path to the certificate file, e.g.: /boot/mycert.cer
 +aWIFI_CERT[3]=''
 +#---------------------------------------------------------------
 +# Entry 4
 +# - WiFi SSID: required, case sensitive
 +aWIFI_SSID[4]=''
 +# - WiFi key: If no key/open, leave this blank
 +aWIFI_KEY[4]=''
 +# - Key type: NONE (no key/open) | WPA-PSK | WEP | WPA-EAP (then use settings below)
 +aWIFI_KEYMGR[4]='WPA-PSK'
 +# - WPA-EAP options: Only fill if WPA-EAP is set above
 +aWIFI_PROTO[4]=''
 +aWIFI_PAIRWISE[4]=''
 +aWIFI_AUTH_ALG[4]=''
 +aWIFI_EAP[4]=''
 +aWIFI_IDENTITY[4]=''
 +aWIFI_PASSWORD[4]=''
 +aWIFI_PHASE1[4]=''
 +aWIFI_PHASE2[4]=''
 +# - Path to the certificate file, e.g.: /boot/mycert.cer
 +aWIFI_CERT[4]=''
 +</code></WRAP>
 +
 +初回起動の場合は **dietpi-wifi.db** は存在しなくて良い🤔\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +$ sudo rm /var/lib/dietpi/dietpi-wifi.db
 +</pre></html></WRAP>
 </WRAP> </WRAP>
  
  • hardware/raspberry_pi/dietpi/dietpi-imager.1659309326.txt.gz
  • 最終更新: 2022/08/01 08:15
  • by ともやん