Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cannot connect to internet through wifi
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
chdslv
n00b
n00b


Joined: 25 Sep 2015
Posts: 2

PostPosted: Fri Sep 25, 2015 10:21 pm    Post subject: Cannot connect to internet through wifi Reply with quote

I had installed Gentoo using System Rescue iso. As I don't have Ethernet, I had to install through wifi. Once, installed, I can't connect to the Internet. What app should I install to get wifi working? I have to do this through chroot. Thanks.
Back to top
View user's profile Send private message
The Doctor
Moderator
Moderator


Joined: 27 Jul 2010
Posts: 2574

PostPosted: Fri Sep 25, 2015 10:31 pm    Post subject: Reply with quote

Too vague.

Generally, you need dhcpcd for any networking and wpa_supplicant for wireless specifically. For a GUI front end there are many options to choose from including wicd, networkmanager, or even the one supplied with wpa_supplicant.

To get the card working you may need linux-firmware as most cards require this and you need the specific kernel driver, of course.

More specific and probably helpful material in the handbook. https://wiki.gentoo.org/wiki/Handbook:X86/Networking/Wireless
_________________
First things first, but not necessarily in that order.

Apologies if I take a while to respond. I'm currently working on the dematerialization circuit for my blue box.
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1654
Location: United Kingdom

PostPosted: Fri Sep 25, 2015 10:32 pm    Post subject: Re: Cannot connect to internet through wifi Reply with quote

What WiFi hardware does your machine have? When you installed Gentoo, did you build the relevant driver into the kernel or as an external module?

If you built the driver as a module, reboot the SystemRescueCd LiveCD and use the lsmod command to see which modules are loaded. One of those will be for the WiFi controller in your machine. Then reboot your HDD and repeat the lsmod command to see which modules are not loaded but were loaded when you were using the SystemRescueCd LiveCD. Then try loading the wireless driver module (assuming you configured the kernel to build the driver as a module when you installed Gentoo) using the modprobe command. If that gets a wireless connection working, you can add the module name to the file /etc/conf.d/modules like so:

Code:
modules="<modulename1> <modulename2> <modulename2> <etc.>"

_________________
Clevo W230SS: amd64 OpenRC elogind nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 OpenRC elogind xf86-video-ati. Dual boot Win 7 Pro 64-bit.
KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
chdslv
n00b
n00b


Joined: 25 Sep 2015
Posts: 2

PostPosted: Sat Sep 26, 2015 1:48 pm    Post subject: Reply with quote

Thank you both for replies. Wpa_supplicant was installed. My /etc/portage/make.conf looks like this,
Code:
# These settings were set by the catalyst build script that automatically
# built this stage.
# Please consult /usr/share/portage/config/make.conf.example for a more
# detailed example.
CFLAGS="-O2 -pipe"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="bindist mmx sse sse2"
PORTDIR="/usr/portage"
DISTDIR="${PORTDIR}/distfiles"
PKGDIR="${PORTDIR}/packages"
MAKEOPTS="-j5"
## (For mouse, keyboard, and Synaptics touchpad support)
INPUT_DEVICES="evdev synaptics"
## (For Intel cards)
VIDEO_CARDS="intel"
## (For AMD/ATI cards)
VIDEO_CARDS="intel"


$ ip addr shows
Code:
wlp4s0:<NO-CARRIER, BROADCAST,MULTICAST,UP> mfu 1500 qdisk mq state DOWN group default qlen 1000

#ifconfiq -v wlp4s0 up doesn't do anything.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Sep 26, 2015 4:46 pm    Post subject: Reply with quote

chdslv,

That wlp4s0 suggests that the kernel driver is there but says nothing about the correct firmware beinc loaded.
Look in dmen for firmware loading errors and succeses. Not all drivers confirm success but all the ones I know of tell the file name they need when firmware loaditg fails.

Does dmesg show any associating and/or authenticating messages for wlp4s0?
Both steps must succeed before you can get an IP address.
_________________
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
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