- Wearable:Tech Projects with the Raspberry Pi Zero
- Jon Witts
- 207字
- 2021-07-02 19:46:26
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.
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!
- Learning Selenium Testing Tools with Python
- JavaScript+jQuery開(kāi)發(fā)實(shí)戰(zhàn)
- Python進(jìn)階編程:編寫更高效、優(yōu)雅的Python代碼
- Scratch真好玩:教小孩學(xué)編程
- R的極客理想:工具篇
- 網(wǎng)絡(luò)爬蟲(chóng)原理與實(shí)踐:基于C#語(yǔ)言
- C#程序設(shè)計(jì)
- Mathematica Data Analysis
- 程序設(shè)計(jì)基礎(chǔ)教程:C語(yǔ)言
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)案例教程
- Training Systems Using Python Statistical Modeling
- 程序員的成長(zhǎng)課
- 軟件測(cè)試分析與實(shí)踐
- 計(jì)算機(jī)應(yīng)用基礎(chǔ)案例教程(第二版)
- SQL Server 2008實(shí)用教程(第3版)