官术网_书友最值得收藏!

Changing the hour hostname

To change the hostname of our Pi Zero, we are going to make use of the raspi-config tool. Type the following command into your SSH connection:

sudo raspi-config

This will bring up the following menu:

Select option 2 using your cursor keys and press Enter to select it. Read and take note of the rules for allowed hostnames, and press Enter to select your new hostname. I am calling mine wearablepi. Once you have entered your new hostname, press Enter to save it. Press your Tab key twice to select <Finish> on the raspi-config menu and press Enter to close raspi-config. You will be prompted to reboot your Pi Zero. Press Enter with <Yes> selected, and your Pi Zero will reboot.

When your Pi Zero reboots, it should now show on your router's Attached Devices list, with its new hostname.

Reconnect to your Pi Zero via SSH and move onto the next section.

Downloading the example code

Detailed steps to download the code bundle are mentioned in the Preface of this book. The code bundle for the book is also hosted on GitHub at: https://github.com/PacktPublishing/Wearable-Tech-Projects-with-the-Raspberry-Pi-Zero . We also have other code bundles from our rich catalog of books and videos available at: https://github.com/PacktPublishing/ . Check them out!
主站蜘蛛池模板: 修水县| 蒙山县| 云霄县| 大足县| 乌兰察布市| 镇安县| 泌阳县| 班玛县| 通城县| 盘锦市| 得荣县| 商都县| 抚州市| 南江县| 中西区| 武夷山市| 江阴市| 永丰县| 德江县| 同江市| 泸州市| 祥云县| 奎屯市| 东宁县| 蒙城县| 连城县| 资溪县| 晴隆县| 布尔津县| 沙洋县| 墨玉县| 基隆市| 喀喇沁旗| 东源县| 禄丰县| 阿拉尔市| 龙泉市| 辽宁省| 乌拉特中旗| 龙岩市| 霍城县|