Wireless under Ubuntu Server 16.04: Difference between revisions

From myWiki
Created page with "1. Install wpasupplicant if not already installed: sudo apt install wpasupplicant 2. Find out your Wireless interface name using "iwconfig" command. If it is not installed,..."
 
No edit summary
Line 1: Line 1:
1. Install wpasupplicant if not already installed:
Install wpasupplicant if not already installed:


  sudo apt install wpasupplicant
  sudo apt install wpasupplicant
2. Find out your Wireless interface name using "iwconfig" command.
Find out your Wireless interface name using "iwconfig" command.
If it is not installed, install it using
If it is not installed, install it using


Line 8: Line 8:
The interface name will be like wlp3s0 or wlp3s0b1 or something similar to this.
The interface name will be like wlp3s0 or wlp3s0b1 or something similar to this.


3. Add the Wireless interface configuration to /etc/network/interfaces.
Find the interface name
iwconfig
 
Add the Wireless interface configuration to /etc/network/interfaces.
For example, taking wlp3s0b1 as Wireless interface name:
For example, taking wlp3s0b1 as Wireless interface name:


# wifi interface
  auto wlp3s0b1
  auto wlp3s0b1
  iface wlp3s0b1 inet dhcp
  iface wlp3s0b1 inet dhcp
         wpa-ssid <YOUR WIFI NETWORK NAME>
         wpa-ssid <YOUR WIFI NETWORK NAME>
         wpa-psk <YOUR WIFI NETWORK PASSWORD>
         wpa-psk <YOUR WIFI NETWORK PASSWORD>
4. Save /etc/network/interfaces and run
# usb tethering to phone
auto wlp3s0b2
iface wlp3s0b2 inet dhcp
 
Save /etc/network/interfaces and run


  sudo service networking restart
  sudo service networking restart

Revision as of 13:50, 3 January 2018

Install wpasupplicant if not already installed:

sudo apt install wpasupplicant

Find out your Wireless interface name using "iwconfig" command. If it is not installed, install it using

sudo apt install wireless-tools

The interface name will be like wlp3s0 or wlp3s0b1 or something similar to this.

Find the interface name

iwconfig

Add the Wireless interface configuration to /etc/network/interfaces. For example, taking wlp3s0b1 as Wireless interface name:

# wifi interface
auto wlp3s0b1
iface wlp3s0b1 inet dhcp
       wpa-ssid <YOUR WIFI NETWORK NAME>
       wpa-psk <YOUR WIFI NETWORK PASSWORD>

# usb tethering to phone
auto wlp3s0b2
iface wlp3s0b2 inet dhcp

Save /etc/network/interfaces and run

sudo service networking restart


For more detailed instructions, see https://wiki.debian.org/WiFi/HowToUs...K_and_WPA2-PSK