Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
More help with wifi please
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
diddydom
n00b
n00b


Joined: 20 Jul 2019
Posts: 8

PostPosted: Sat Jul 20, 2019 4:12 pm    Post subject: More help with wifi please Reply with quote

So I followed this guide https://wiki.gentoo.org/wiki/Sakaki%27s_EFI_Install_Guide/Setting_Up_Networking_and_Connecting_via_ssh, got to

Code:
wpa_supplicant -Dnl80211,wext -iwlp2s0 -c/etc/wpa.conf -B


With the successful output of:

Code:
Successfully initialized wpa_supplicant


But I still can't ping anything.

So I've been looking at https://wiki.gentoo.org/wiki/Handbook:AMD64/Networking/Wireless#WPA_supplicant but I'm stuck straight away. This command:
Code:
emerge --ask net-wireless/wpa_supplicant
is not recognized. And I have no idea how to enable the CONFIG_PACKET in the kernel.

Please help.


Last edited by diddydom on Sat Jul 20, 2019 5:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
stoffepojken
n00b
n00b


Joined: 11 Jun 2006
Posts: 12
Location: Stockholm, Sweden

PostPosted: Sat Jul 20, 2019 4:44 pm    Post subject: Reply with quote

Do you use DHCP? If so run

Code:
dhcpcd wlp2s0
Back to top
View user's profile Send private message
diddydom
n00b
n00b


Joined: 20 Jul 2019
Posts: 8

PostPosted: Sat Jul 20, 2019 4:55 pm    Post subject: Reply with quote

stoffepojken wrote:
Do you use DHCP? If so run

Code:
dhcpcd wlp2s0


Okay I ran that command but I still can't ping anything.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43551
Location: 56N 3W

PostPosted: Sat Jul 20, 2019 5:32 pm    Post subject: Reply with quote

diddydom,

Wifi is is several pieces.

You need the kernel module for you wifi.
The firmware for your wifi, for most chipsets anyway.
wpa_supplicant with a configuration file that works with the Access Point you want to connect to.

After you have all those bits, getting wifi started is two steps.
Step 1 is getting associated and authenticated with your access point.
Step 2 is getting networking set up. This part is the same as wired.

Some things to check ...
Look in dmesg for missing wifi firmware. You will see "failed to load firmware .... name of file"
If that is there, you must fix that before you progress.

How do you know that your wifi is wlp2s0?
Again, dmesg will have a udev message "Renamed interface X to Y" You need to be sure to use Y is the commands to start your interface.

Lastly a popular problem is dmesg showing "disconnected reason code=3"
This means that several things are trying to control your wifi and none can succeed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
diddydom
n00b
n00b


Joined: 20 Jul 2019
Posts: 8

PostPosted: Sat Jul 20, 2019 10:03 pm    Post subject: Reply with quote

NeddySeagoon wrote:
diddydom,

Wifi is is several pieces.

You need the kernel module for you wifi.
The firmware for your wifi, for most chipsets anyway.
wpa_supplicant with a configuration file that works with the Access Point you want to connect to.

After you have all those bits, getting wifi started is two steps.
Step 1 is getting associated and authenticated with your access point.
Step 2 is getting networking set up. This part is the same as wired.

Some things to check ...
Look in dmesg for missing wifi firmware. You will see "failed to load firmware .... name of file"
If that is there, you must fix that before you progress.

How do you know that your wifi is wlp2s0?
Again, dmesg will have a udev message "Renamed interface X to Y" You need to be sure to use Y is the commands to start your interface.

Lastly a popular problem is dmesg showing "disconnected reason code=3"
This means that several things are trying to control your wifi and none can succeed.


"You need the kernel module for you wifi.
The firmware for your wifi, for most chipsets anyway"

Can you do these things without an internet connection? I don't have an ethernet cable and once I do I don't want to have to set it up sitting in my hallway.

"How do you know that your wifi is wlp2s0?"

By running
Code:
iwconfig
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43551
Location: 56N 3W

PostPosted: Sun Jul 21, 2019 8:58 am    Post subject: Reply with quote

diddydom,

You can install all of Gentoo on a system without a network connection. Its called sneakernet.

The kernel module for your wifi and all the other kernel things that wifi requires are kernel configuration options.
That wlp2s0 appears at all is encouraging.

The firmware you need, if any is probably in linux-firmware. If you don't have that and need it, see my sneakernet link.

To help us help you better, mount a usb stick at say /mnt/usb_stick and perform the following commands
Code:
lspci -k >  /mnt/usb_stick/lspci.txt
lsusb >  /mnt/usb_stick/lsusb.txt
dmesg >  /mnt/usb_stick/dmesg.txt
cp /usr/src/linux/.config /mnt/usb_stick/kernel.txt


This will give you four text files.
Code:
umount  /mnt/usb_stick/

Put each file onto a pastebin site and post the four links.

Between them lspci and lsusb will identify your hardware.
dmesg will tell how far your kernel and firmware is correct.
kernel.txt will let us advise exactly what kernel options need to be changed.

If you don't have lsusb or lspci sneakernet is your friend.
lsbutils and pciutils are the packages you need.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
diddydom
n00b
n00b


Joined: 20 Jul 2019
Posts: 8

PostPosted: Fri Jul 26, 2019 10:14 am    Post subject: Reply with quote

I just used an ethernet cable in the end.
Back to top
View user's profile Send private message
klok
n00b
n00b


Joined: 23 Jul 2019
Posts: 7

PostPosted: Fri Jul 26, 2019 12:57 pm    Post subject: Re: More help with wifi please Reply with quote

diddydom wrote:
So I followed this guide https://wiki.gentoo.org/wiki/Sakaki%27s_EFI_Install_Guide/Setting_Up_Networking_and_Connecting_via_ssh, got to

Code:
wpa_supplicant -Dnl80211,wext -iwlp2s0 -c/etc/wpa.conf -B


With the successful output of:

Code:
Successfully initialized wpa_supplicant


But I still can't ping anything.

Taking for granted your wifi interface is working and there are no fimware issues, has your router DHCP enabled?
If so, you should wait ~60secs to let wpa_supplicant hooks an IP.



I wonder why wireless-during-install have always been so annoying to setup, for example on ArchLinux minimalCD or Gentoo minimal CD... :evil:
WPA2, DHCP wpa_supplicant, firmware and so on... A pain in the a**

I mean, why is wifi seen as so arabesque? I think a lot of people use it in their homes!

Btw... Just my 2 cents.
_________________
- Am I here or is my guitar (over) there?
- Thou should be wherever your guitar needs!
Back to top
View user's profile Send private message
kingoftherats
n00b
n00b


Joined: 02 Aug 2019
Posts: 5
Location: The Rat Den, Ohio

PostPosted: Sat Aug 03, 2019 12:34 am    Post subject: Reply with quote

If nothing else resolves your issue, it might be worth checking wpa_supplicant. To do so add this to your config file (/etc/wpa.conf in your case)
Code:
ctrl_interface=/var/run/wpa_supplicant

and run wpa_cli. Once in that, you can run list_networks to see if wpa_supplicant is still connected and authenticated with your network.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 5878

PostPosted: Sat Aug 03, 2019 2:50 pm    Post subject: Re: More help with wifi please Reply with quote

klok wrote:
I wonder why wireless-during-install have always been so annoying to setup, for example on ArchLinux minimalCD or Gentoo minimal CD... :evil:
WPA2, DHCP wpa_supplicant, firmware and so on... A pain in the a**

I mean, why is wifi seen as so arabesque? I think a lot of people use it in their homes!

Btw... Just my 2 cents.

Wifi hardware manufacturers are hostile toward anything that isn't win32 or OS X. They like to cheat and cut corners and then paper over the damage in software/firmware, but in FOSS all that shoddy workmanship is on view for everyone to see (and avoid).

It's much more evident in ethernet drivers, where Realtek makes no effort to disguise how unreliable and CPU-hungry their hardware really is (in fact, motherboard manufacturers make a big deal of advertising when they *don't* use those chips). For some reason it's tolerated more when it comes to wireless.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum