More than 5 years have passed since last update.
posted at 2016-07-29
複数のラズパイを使うことになったので、識別するためにそれぞれのホスト名を変更してみた。
Raspberry Pi 2 Raspbian
/etc/hostname /etc/hosts の両方のファイルの「raspberrypi」を任意のホスト名に置き換える。 変更後、rebootすると反映される。
/etc/hostname
/etc/hosts
※/etc/hostnameのみの変更だとrebootした後に元に戻ってしまうため、必ず2つとも変更する