Raspberry Pi Zero W: Difference between revisions

Line 71: Line 71:
<syntaxhighlight lang="bash" enclose="div">
<syntaxhighlight lang="bash" enclose="div">
shutdown -r now
shutdown -r now
</syntaxhighlight>
最低限の初期設定をコマンドラインで実行するには
<syntaxhighlight lang="bash" enclose="div">
passwd
echo "Asia/Tokyo" | sudo tee /etc/timezone
sudo dpkg-reconfigure --frontend noninteractive tzdata
sudo systemctl restart rsyslog
sudo systemctl restart cron
sudo apt-get update
sudo apt-get -y upgrade
sudo sed -i --follow-symlinks "s/^country=.*/country=JP/g" /etc/wpa_supplicant/wpa_supplicant.conf
sudo systemctl enable ssh
sudo systemctl start ssh
sudo shutdown -r now
</syntaxhighlight>
</syntaxhighlight>