Announcement

Collapse
No announcement yet.

2019 - PI24 (Image) QuickStart Guide

Collapse
This is a sticky topic.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Originally posted by abcd567 View Post
    How To Enable WiFi
    This should be done while the microSD Card is still in the Laptop/Desktop's card reader after writing the Pi24 image.

    If you want your Pi to connect to local network/internet using a wired connection to router, skip this step.
    If you want your Pi to connect to local network/internet using WiFi, enable Wifi as given below.
    Use only one connection at a time, either wired or WiFi.
    It is not recommended to use both simultaneously


    1 - After image is written, and while the microSD Card is still in the Laptop/Desktop, open File Explorer (Windows) or Finder (Mac), and open the microSD card.

    NOTE:
    If you have used Etcher, it will automatically eject the microSD card after writing the image.
    Physically remove the microSD card or USB adapter and plug it back into the computer before you carry-out steps below.


    2 - The microSD card will appear with name "boot" as shown in screenshot below.
    PI24 - microSD in Windows - 1.png


    3 - Open the drive named "boot". This will open the /boot folder of PI24. In this folder you will see a file wpa_supplicant.conf, as shown in screenshot below

    PI24 - microSD in Windows - 5A.png



    4 - Open the file wpa_supplicant.conf using Notepad (Windows) or TextEdit (Mac)
    In the opened text file, you will see following text:

    Code:
    ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
    update_config=1
    
    network={
    ssid="YOUR_SSID"
    psk="YOUR_PASSWORD"
    }


    Replace:
    • YOUR_SSID by your router’s wifi ssid
    • YOUR_PASSWORD by your router’s wifi password.


    NOTE:
    In some countries, WiFi may not work if country is not included in above file. In such case add following line at the top of the file wpa_supplicant.conf:

    country=XX

    Replace XX by two letter code for your country e.g. GB for UK, US for USA, DE for Germany, FR for France, SE for Sweden, CH for Switzerland, NL for Netherland, AU for Australia, NZ for New Zealand, etc etc. (click here for complete list)


    5 - Save file.


    6 - To Reconfigure WiFi at later stage:
    The file wpa_supplicant.conf exists in /boot folder at the time image is written to microSD card. When the microSD card is slipped into Pi and booted, this file is moved to folder /etc/wpa_supplicant. Therefore after booting the Pi, you will NOT find it in /boot folder.

    For editing the WiFi config later, open config file by following command:
    Code:
    sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
    Should there be a space between = and your ssid or user name? I can't for the life of me get this work.

    Comment


    • #32
      Post your config with the ssid / password replaced.
      Most common issue is the editor you are using is replacing "" with other similar symbols.

      Comment


      • #33
        I used notepad ++ to change it. I also created a VM of ubuntu and changed it. Is it supposed to look like this?


        ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="tombstone" psk="BIGBOY" }

        Comment


        • #34
          looks like the country isn't set?
          Add this line below update_config:

          country=DE

          Find your country code on this webpage: https://www.arubanetworks.com/techdo...Codes_List.htm

          Comment


          • #35
            Thank you. Where does this line go?

            country=US

            Comment


            • #36
              Originally posted by flightradar45005 View Post
              Thank you. Where does this line go?

              country=US

              country=US
              ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
              update_config=1

              network={
              ssid="xxxxxxxxxx"
              psk="yyyyyyyyyyy"
              }

              Comment


              • #37
                So I use the "" marks around the "ssid" and "password"

                Comment


                • #38
                  FLIGHT radar 45005

                  Quote from post #3 of this thread:


                  Originally posted by abcd567 View Post
                  How To Enable WiFi

                  4 - Open the file wpa_supplicant.conf using Notepad (Windows) or TextEdit (Mac)
                  In the opened text file, you will see following text:

                  Code:
                  ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
                  update_config=1
                  
                  network={
                  ssid="YOUR_SSID"
                  psk="YOUR_PASSWORD"
                  }
                  Replace:
                  • YOUR_SSID by your router's wifi ssid
                  • YOUR_PASSWORD by your router's wifi password.

                  NOTE:
                  In some countries, WiFi may not work if country is not included in above file. In such case add following line at the top of the file wpa_supplicant.conf:

                  country=XX


                  Replace XX by two letter code for your country e.g. GB for UK, US for USA, DE for Germany, FR for France, SE for Sweden, CH for Switzerland, NL for Netherland, AU for Australia, NZ for New Zealand, etc etc. (click here for complete list)

                  5 - Save file.

                  6 - To Reconfigure WiFi at later stage:
                  The file wpa_supplicant.conf exists in /boot folder at the time image is written to microSD card. When the microSD card is slipped into Pi and booted, this file is moved to folder /etc/wpa_supplicant. Therefore after booting the Pi, you will NOT find it in /boot folder.

                  For editing the WiFi config later, open config file by following command:
                  Code:
                  sudo nano /etc/wpa_supplicant/wpa_supplicant.conf

                  Comment


                  • #39
                    Originally posted by flightradar45005 View Post
                    So I use the "" marks around the "ssid" and "password"
                    Did you add Country=US at top of file wpa_supplicant.conf?

                    Comment


                    • #40
                      Originally posted by abcd567 View Post

                      Did you add Country=US at top of file wpa_supplicant.conf?
                      Like this?

                      Country=US
                      ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="YOUR_SSID" psk="YOUR_PASSWORD" }

                      Comment


                      • #41
                        it doesn't matter which line as long as you don't put it in the network block.

                        It's country=US not Country=US

                        And those other things need to be on their own lines like in the example.
                        (well not sure if they need to be but it sure makes it easier to read.)

                        Comment


                        • #42
                          Originally posted by wiedehopf View Post
                          it doesn't matter which line as long as you don't put it in the network block.

                          It's country=US not Country=US

                          And those other things need to be on their own lines like in the example.
                          (well not sure if they need to be but it sure makes it easier to read.)
                          Thank you I'll give this a try. Thanks again for your help.

                          Comment


                          • #43
                            Originally posted by wiedehopf View Post
                            it doesn't matter which line as long as you don't put it in the network block.

                            It's country=US not Country=US

                            And those other things need to be on their own lines like in the example.
                            (well not sure if they need to be but it sure makes it easier to read.)
                            The FR24 programmers have in older version of Pi24 image put everything in one single line with tabbed spaces. It was very inconvinient to scroll all the way to end to enter ssid & passwd.

                            In the current version of Pi4, it is split into lines like the example in my post above.

                            Yes, country, not Country

                            Comment


                            • #44
                              Originally posted by abcd567 View Post

                              The FR24 programmers have in older version of Pi24 image put everything in one single line with tabbed spaces. It was very inconvinient to scroll all the way to end to enter ssid & passwd.

                              In the current version of Pi4, it is split into lines like the example in my post above.

                              Yes, country, not Country
                              Okay here is a screen shot of my
                              wpa_supplicant.conf.
                              What am I missing.

                              flightradar_wifi_LI.jpg

                              Comment


                              • #45
                                Interface only for Buster?..
                                https://www.raspberrypi.org/document...ireless-cli.md
                                Posts not to be taken as official support representation - Just a helpful uploader who tinkers

                                Comment

                                Working...
                                X