View previous topic :: View next topic |
Author |
Message |
ksachan n00b

Joined: 08 Oct 2022 Posts: 2
|
Posted: Sat Oct 08, 2022 2:49 am Post subject: First install wireless internet issue |
|
|
I am stuck on the second step of the Gentoo install: Connecting my laptop to wireless internet (WPA, not WPA2/3). I'm installing with a USB. net-setup didn't work for me:
Code: | # ping 8.8.8.8
ping: connect: Network is unreachable
# ping www.gentoo.org
ping: www.gentoo.org: Temporary failure in name resolution
# iw wlp4s0 link
Not connected.
|
So I've been following the manual instructions: https://wiki.gentoo.org/wiki/Handbook:AMD64/Networking/Wireless. My /etc/wpa_supplicant/wpa_supplicant.conf file is:
Code: | network={
ssid="MyWifiNetwork"
#psk="very secret passphrase"
psk=[hex for passphrase]
}
|
Then I get the error message:
Code: | # wpa_supplicant -B -i wlp4s0 -c /etc/wpa_suplicant/wpa_supplicant.conf
Successfully initialized wpa_supplicant
# wpa_cli
wpa_cli v2.10
...
Could not connect to wpa_supplicant: (nil) - re-trying
^C
# iw wlp4s0 link
Not connected.
|
I've also tried adding these lines to the top of my wpa_supplicant.conf according to the docs, but there's no file at /var/run/wpa_supplicant so I'm assuming these are more relevant post-install?:
Code: |
ctrl_interface=/var/run/wpa_supplicant
# Ensure that only root can read the WPA configuration
ctrl_interface_group=0
# Let wpa_supplicant take care of scanning and AP selection
ap_scan=1
|
Other things I've checked:
- SSID and password are correct
- Network interface is up (wlp4s0 has UP flag)
I've spent a few days on this bug and have no idea what to try next, so I'd love some help!! |
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55441 Location: 56N 3W
|
Posted: Sat Oct 08, 2022 8:41 am Post subject: |
|
|
ksachan,
Welcome to Gentoo.
If you ace using the Gentoo minimal CD, it has very poor support for Wifi. That's by design most wifi needs firmware and all the firmware files possible would fill a CD.
To continue with the minimal CD, use a wired connection for the install. Wifi will be made to work during the course of the install.
If you must use wifi for the install, use another bootable Linux image to install Gentoo.
None of the code from the boot media goes into your install. It's just a toolkit to allow you to accomplish the install.
With non Gentoo boot media, you will have two extra steps before you can follow the handbook.
1. Get a root shell, if you are not at a root shell already.
2. to create the mount point that the install guide expects to exist.
You have a third option too. Sneakernet.
That sneakernet guide is from 2006, the method is correct but some of the detail has changed. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
ksachan n00b

Joined: 08 Oct 2022 Posts: 2
|
Posted: Sun Oct 09, 2022 10:51 am Post subject: |
|
|
Thanks NeddySeagoon
The handbook never said the minimal CD doesn't have Wifi support!! Good to know. |
|
Back to top |
|
 |
Ran.Rutenberg n00b

Joined: 23 Mar 2007 Posts: 28
|
Posted: Sun Oct 09, 2022 12:25 pm Post subject: |
|
|
The Gentoo LiveUSB worked well for me with wifi. I would give it a try. |
|
Back to top |
|
 |
GrandeGrabois n00b

Joined: 16 Oct 2019 Posts: 47
|
Posted: Sun Oct 09, 2022 1:45 pm Post subject: |
|
|
ksachan wrote: | The handbook never said the minimal CD doesn't have Wifi support!! Good to know. |
It does have Wifi support, but it is limited because of the amount of firmware packages you would need to put in the "minimal install cd" in order to support a wide range of wifi cards.
Your card, however, seems to be functioning correctly on the minimal environment (if the interface is listed and up).
How did you generate the psk in you wpa_supplicant.conf file?
Code: | $ wpa_passphrase [net_ssid] [password] > my_network.conf |
Should give you the correct configuration file. You then should be able to:
Code: | # wpa_supplicant -B -i [iface_name] -c my_network.conf |
|
|
Back to top |
|
 |
|