Jump to content

How to connect to a wifi network on ubuntu server 17.04?

hi,

i have a computer that runs Ubuntu server 17.04, and a wifi expedition card.

after i searched on google i found this command

Quote

sudo iwconfig wlp1s0 essid "nameofap"

but after i did

Quote

sudo iwconfig wlp1s0 key password

its says

Quote

Error for wireless request "Set Encode" (8B2A) :

                         invalid argument "password".

can anyone help me with this?

Link to comment
Share on other sites

Link to post
Share on other sites

If you will always be connecting to the same router add this to /etc/network/interfaces and reboot, restart networking service or use sudo ifup -v <wifi_interface_name>

auto <wifi_interface_name>
iface <wifi_interface_name> inet dhcp
wpa-ssid <ssid>
wpa-psk <password>

else, use network-manager

sudo apt-get install network-manager
nmcli dev wifi list
nmcli dev wifi connect <ssid> password <password>

or wicd if you don't want the unneeded GUI-packages, I just have never tried it myself.

(you can also use ssh -X and nm-applet to control your servers wifi from another pc running linux with a DE or WM)

Be safe, don't drink and sudo

 

Laptop: ASUS K541UA (i5-6198DU, 8GB RAM, 250GB 850 EVO) OS: Debian Buster (KDE)

Desktop: i7-7700, ASUS Strix H270F, 16GB RAM, 128GB SSD from laptop, some HDD's, iGPU, some NIC's, OS: Debian Buster (KDE)

 

Link to comment
Share on other sites

Link to post
Share on other sites

12 hours ago, 101dmrs said:

If you will always be connecting to the same router add this to /etc/network/interfaces and reboot, restart networking service or use sudo ifup -v <wifi_interface_name>


auto <wifi_interface_name>
iface <wifi_interface_name> inet dhcp
wpa-ssid <ssid>
wpa-psk <password>

else, use network-manager


sudo apt-get install network-manager
nmcli dev wifi list
nmcli dev wifi connect <ssid> password <password>

or wicd if you don't want the unneeded GUI-packages, I just have never tried it myself.

(you can also use ssh -X and nm-applet to control your servers wifi from another pc running linux with a DE or WM)

ok, thank you, will go to try it

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×