LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (https://www.linuxquestions.org/questions/arch-29/)
-   -   can't get wireless to work (https://www.linuxquestions.org/questions/arch-29/cant-get-wireless-to-work-4175601555/)

BW-userx 03-13-2017 08:35 AM

ifconfig to get your interphase name. The psy0 is just a psychical connection 0 - I'd say a zero based numbering system.

BW-userx 03-13-2017 09:29 AM

WPA supplicant

bsth123 03-13-2017 01:39 PM

As I stated in an earlier post the problem starts with the n and the numbers after it. I don't know what to put. and as I discovered it is not wan0. it has a different name but at the moment I can't tell you because I was in a chroot enviroment.

BW-userx 03-13-2017 01:56 PM

wlan0 for most -- I have a distro that names my wifi card bsd style -- I do not know how Arch names its devices.

again sudo ifconfig gets you the device name
this gives detailed step by step on how to it is ArchLinux how to
https://wiki.archlinux.org/index.php/WPA_supplicant

bsth123 03-13-2017 02:12 PM

I have followed the wpa_supplicant and everything else I could find until I think I am losing my mind. Literally for two days I got up at 5 a.m. skipped breakfast and lunch so I could keep working on what to do. And once gain arch uses iw.

BW-userx 03-13-2017 02:13 PM

Quote:

Originally Posted by bsth123 (Post 5682960)
I have followed the wpa_supplicant and everything else I could find until I think I am losing my mind. Literally for two days I got up at 5 a.m. skipped breakfast and lunch so I could keep working on what to do. And once gain arch uses iw.

that ArchLinux webpage is for archlinux by archlinux you show you're using wpa_supplicant not iw if they are not the same. I do not use wpa_supplicant I stop doing that a long long time ago. Opted for something easier to setup.

bsth123 03-13-2017 02:25 PM

I meant it does not use ifcong it uses iw. I'm through with arch. Onto something else.

BW-userx 03-13-2017 02:43 PM

Quote:

Originally Posted by bsth123 (Post 5682966)
I meant it does not use ifcong it uses iw. I'm through with arch. Onto something else.

are you sure you spelt it right wlan0 not wan0
google what arch uses for name wifi device.

in my /etc/wpa_supplicant.conf is this
Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root
#i ran this
userx@slackwhere⚡️~⚡️$ sudo  wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
Successfully initialized wpa_supplicant
#then ran this
userx@slackwhere⚡️~⚡️$ sudo wpa_cli
wpa_cli v2.6

Selected interface 'wlan0'

Interactive mode

> scan
OK


BW-userx 03-13-2017 02:46 PM

Code:

userx@slackwhere⚡️~⚡️$ sudo iw dev
phy#0
        Interface wlan0
                ifindex 2
                wdev 0x1
                addr 00:24:d7:cf:9e:a4
                type managed
                channel 11 (2462 MHz), width: 20 MHz (no HT), center1: 2462 MHz
                txpower 15.00 dBm


bsth123 03-13-2017 03:12 PM

I tried what you said but it must be different in arch. Accordung to the arch wiki everything worked fine until I got to wpa_cli. After that I'm supposed to get > instead I get
Code:

wpa_cli
wpa_cli v2.6
Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.



Interactive mode

Could not connect to wpa_supplicant: (nil) - re-trying


bsth123 03-13-2017 03:12 PM

double post

BW-userx 03-13-2017 03:20 PM

use sudo -- (root) see if that works. it is a root thing --

you did all of this right right?
Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=root

Code:

userx@slackwhere⚡️~⚡️$ sudo  wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf
where in their instructions it states to create a .conf file with this
Code:

/etc/wpa_supplicant/example.conf

ctrl_interface=/run/wpa_supplicant
update_config=1

are you using sudo or root user to issue your commands?

BW-userx 03-13-2017 03:26 PM

Code:

                          interface  -c path to conf file
 sudo  wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant.conf

#so yours should look like this

 sudo  wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/example.conf


BW-userx 03-13-2017 03:38 PM

Enabling and disabling network interfaces

You can activate or deactivate network interfaces using:
Code:

# ip link set eth0 up
# ip link set eth0 down

where your wifi should then be this
as root or using sudo
Code:

#ip link set wlan0 up
#wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/example.conf
#wpa_cli


bsth123 03-13-2017 04:04 PM

Code:

wpa_cli
wpa_cli v2.6
Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi> and contributors

This software may be distributed under the terms of the BSD license.
See README for more details.



Interactive mode

Could not connect to wpa_supplicant: (nil) - re-trying

I'm running this as root


All times are GMT -5. The time now is 05:17 PM.