Outdoor Technologist

Random thoughts spewed in the digital realm

Raspberry Pi 3 Setup – WiFi using command line

Steps I used to set up my Raspberry Pi 3

  • To flash OS:
    • https://www.raspberrypi.org/documentation/installation/installing-images/windows.md
    • Follow directions without modifications

NOTE: Raspberry Pi devices typically do NOT come with an SD card!

  • Command Line WiFi
    • I tried to do this: https://www.maker.io/en/blogs/raspberry-pi-3-how-to-configure-wi-fi-and-bluetooth/03fcd2a252914350938d8c5471cf3b63
    • Which is simply typing this command
      • sudo iwlist wlan0 scan
    • BUT
      • I have too many WiFi devices around so I wanted to pipe ‘|’ this to more,  but the RPi wouldn’t allow it so I ‘have’ to solve this first!
        • I ‘needed’ pipe so I can look for my WiFi (Actually I can edit this file without looking at the information, but I really want to ensure all my steps work if my brother gets a Pi, so I’m documenting it all here!)
  • Sidebar to fix pipe ‘|’
    • This link contains the solution:
      • https://www.raspberrypi.org/forums/viewtopic.php?f=26&t=39806&p=331516#p331516
    • Basically edit /etc/default/keyboard to contain the following.
          XKBMODEL=”pc105”
            XKBLAYOUT=”us”
            XKBVARIANT=””
            XKBOPTIONS=””
           BACKSPACE=”guess”

      • Note that mine had XKLAYOUT=”gb”
    • Reboot the raspberry pi by typing
      • sudo shutdown -r now
    • Log back in & Test that pipe works by typing it
  • Back to WiFi Command line
    • I type in the sudo iwlist wlan0 scan
    • The logo cuts off much of the data with the 4 raspberry pi logos on top so…
  • Detour to fix this led me here:
    • https://www.raspberrypi.org/forums/viewtopic.php?f=66&t=120414
    • Basically you edit /boot/cmdline.txt and add “logo.nologo” to the only line in the file
  • Back to WiFi Command line
    • sudo iwlist wlan0 scan
      • SUCCESS!
      • reboot again:
        • sudo shutdown -r now

John • 2016-12-05


Previous Post

Next Post