LoginSignup
34
30

More than 5 years have passed since last update.

Raspberry Piのホスト名を変更する

Posted at

概要

複数のラズパイを使うことになったので、識別するためにそれぞれのホスト名を変更してみた。

環境

Raspberry Pi 2 Raspbian

方法

/etc/hostname
/etc/hosts
の両方のファイルの「raspberrypi」を任意のホスト名に置き換える。
変更後、rebootすると反映される。

/etc/hostnameのみの変更だとrebootした後に元に戻ってしまうため、必ず2つとも変更する

34
30
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
34
30