diff options
author | Bradley Taunt <bt@btxx.org> | 2024-07-05 16:39:27 -0400 |
---|---|---|
committer | Bradley Taunt <bt@btxx.org> | 2024-07-05 16:39:27 -0400 |
commit | b3bf04932880e9f984675cff5d70da58167316cc (patch) | |
tree | db30313e5cd51988af36e480077e6456b8590b62 /posts/cheap-portable-pi.md | |
parent | cc72ef25c6de2b0004c163d06486d949acf3c78c (diff) |
Start converting code samples into cleaner markdown chunks
Diffstat (limited to 'posts/cheap-portable-pi.md')
-rw-r--r-- | posts/cheap-portable-pi.md | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/posts/cheap-portable-pi.md b/posts/cheap-portable-pi.md index d571e0d..d77c110 100644 --- a/posts/cheap-portable-pi.md +++ b/posts/cheap-portable-pi.md @@ -96,16 +96,17 @@ I will be setting up this "portable pi" via [headless installation](https://www. - Next add an empty file named `wpa_supplicant.conf` - Open the `wpa_supplicant.conf` file in a code / text editor and paste the following (be sure to change `country` to your proper country code, as well as properly setting your network name / password): +~~~sh +ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev +update_config=1 +country=US - ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev - update_config=1 - country=US - - network={ - ssid="Your network name/SSID" - psk="Your WPA/WPA2 security key" - key_mgmt=WPA-PSK - } +network={ + ssid="Your network name/SSID" + psk="Your WPA/WPA2 security key" + key_mgmt=WPA-PSK +} +~~~ - Unmount the microSD device, then place the microSD card in your RPi Zero @@ -118,9 +119,9 @@ I will be setting up this "portable pi" via [headless installation](https://www. Open the terminal on your Raspberry Pi desktop and enter the following command: - - ssh pi@raspberrypi.local - +~~~sh +ssh pi@raspberrypi.local +~~~ You will then be asked if you wish to trust this device (say yes), then prompted for the `pi` user's password - which is `raspberry`. After a moment you will be directly connected to your Raspberry Pi Zero. Hooray! @@ -138,17 +139,19 @@ That's it! Next we will need to download and run the drivers needed for our 3.5-inch display to play nicely with our Pi Zero (just a blank white screen doesn't help us much). While connected to our RPi Zero via SSH, run the following commands: - wget http://kedei.net/raspberry/v6_1/LCD_show_v6_1_3.tar.gz +~~~sh +wget http://kedei.net/raspberry/v6_1/LCD_show_v6_1_3.tar.gz +~~~ If you have snail-paced rural internet like I do, now is a good time to go and grab a coffee while this download completes. Once the download has finished, extract the contents and navigate to the new directory and install the driver: - - sudo tar xzf LCD_show_v6_1_3.tar.gz - cd LCD_show_v6_1_3 - sudo ./LCD35_v - +~~~sh +sudo tar xzf LCD_show_v6_1_3.tar.gz +cd LCD_show_v6_1_3 +sudo ./LCD35_v +~~~ Once completed, the RPi Zero will reboot and everything should work as expected! |