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

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!
主站蜘蛛池模板: 淮北市| 凌源市| 万州区| 郁南县| 临安市| 霸州市| 咸宁市| 祁连县| 天长市| 黄陵县| 宜章县| 黄平县| 将乐县| 庆城县| 屯昌县| 桃江县| 新密市| 新和县| 崇仁县| 田东县| 曲麻莱县| 界首市| 平湖市| 西平县| 盐津县| 淳化县| 乳源| 安福县| 乐业县| 亚东县| 边坝县| 石家庄市| 肥乡县| 南宫市| 巴南区| 二连浩特市| 神池县| 新宁县| 福建省| 武安市| 恭城|