Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Yaniv_S_Intel
Employee
1,503 Views

Connect to wireless network via Ubuntu terminal on Joule board

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 (https://askubuntu.com/questions/138472/how-do-i-connect-to-a-wpa-wifi-network-using-the-command-line 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

0 Kudos
3 Replies
Jitendra_S_Intel
Employee
176 Views

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/ 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$

Yaniv_S_Intel
Employee
176 Views

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-<<em>SSID NAME> inet dhcp

wpa-psk <<em>PSK>

wpa-ssid <<em>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?

Jitendra_S_Intel
Employee
176 Views

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.

Reply