3 Replies Latest reply on May 3, 2017 6:59 AM by jay07920

    Connect to wireless network via Ubuntu terminal on Joule board

    YanivSheffer

      Hi,

       

      I'm trying to connect to my enterprise network at work with my Intel Joule board.

      I need to do that by using Ubuntu 16.04 terminal commands.

      The wireless network is a WPA/WPA2 security type.

      The interface name is 'wlp1s0' (not 'wlan0')

       

      I read some guidelines about running commands from terminal and I followed steps from (wireless - How do I connect to a WPA wifi network using the command line? - Ask Ubuntu):

       

      Here are the steps I took:

       

      1) run sudo apt-get install wpasupplicant

       

      2) I put my SSID (the network name/title as shown in wireless network list in upper right icon tray) and my password into /etc/wpa_supplicant.conf like so:

      network={

           ssid="ssid_name"

           psk="password"

      }

       

      3) Run the following commands:

      sudo wpa_supplicant -B -iwlp1s0 -c/etc/wpa_supplicant.conf -Dwext
      sudo dhclient wlp1s0

       

      ** Nothing happens, the terminal is stuck and I exit with "Ctrl+Z"

       

      Can anyone help me understand how to connect my Joule to the wifi via terminal commands?

       

      Thanks in advance,

      Yaniv

        • 1. Re: Connect to wireless network via Ubuntu terminal on Joule board
          jay07920

          Some things I did that might help. Steps below are mixed (network manager and mods to interfaces file):

          1. I used the GUI to connect to the Joule to AP. This created a /etc/NetworkManager/system-connections/<My AP> file.  This file contains details to connect the AP, including the passphrase. This step may not be needed but I didn't experiment.

          2. I also used wpa_supplicant to create /etc/wpa_supplicant file

          3. Modified /etc/network/interfaces file. Mine is pasted below.

           

           

          test@joule:/etc/network$ cat interfaces

          # interfaces(5) file used by ifup(8) and ifdown(8)

          auto lo

          iface lo inet loopback

           

           

          auto wlp1s0

          wpa-conf /etc/wpa_supplicant.conf

          test@joule:/etc/network$

          • 2. Re: Connect to wireless network via Ubuntu terminal on Joule board
            YanivSheffer

            I didn't quite understood what to write where and what command to execute after?

            Here is my interfaces file:

            ################## /etc/Network/interfaces ###################

            #interfaces(5) file used by ifup(8) and ifdown(8)

            auto lo

            iface lo inet loopback

             

            iface wlp1s0-<SSID NAME> inet dhcp

                 wpa-psk <PSK>

                 wpa-ssid <SSID>

                 wireless-channel auto

            ########################################################

             

            1) Where to write "auto wlp1s0"? running it in terminal, "auto" command is not recognize

            2) Where to write "wpa-conf /etc/wpa_supplicant,conf"? after the auto command?

            3) After the configuration are all done, what command did you run in terminal?

            • 3. Re: Connect to wireless network via Ubuntu terminal on Joule board
              jay07920

              My file looks like this:

              ################

              # interfaces(5) file used by ifup(8) and ifdown(8)

              auto lo

              iface lo inet loopback

               

               

              auto wlp1s0

              wpa-conf /etc/wpa_supplicant.conf

              ################

               

              The /etc/wpa_supplicant.conf file is created by using wpa_passphrase tool

               

              After above changes, reboot.