LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need help accessing a wireless connection from my laptop. (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-accessing-a-wireless-connection-from-my-laptop-602743/)

Fabyfakid 11-27-2007 09:54 AM

Need help accessing a wireless connection from my laptop.
 
I posted this first in the Ubuntu forum, but didn't get much help. I'm using Ubuntu Feisty, and my computer's an HP Pavilion ze2000. It connects by pressing a button (on Windows). However, on Linux that button appears to not be recognized, as it doesn't "turn on" by pressing it. The connection's from the campus, so I went over to the system administrator to see if he could help out. He confirmed that it was that button function, as the card was recognized. I typed less /etc/network/interfaces, and this is the output:

Quote:

auto lo
iface lo inet loopback


iface eth0 inet dhcp


auto eth2
iface eth2 inet dhcp

auto ath0
iface ath0 inet dhcp

auto wlan0
iface wlan0 inet dhcp





auto eth0
HELP!!!

bigearsbilly 11-28-2007 03:59 AM

what does iwconfig say?

linux sadly is not great with a variety of wireless card support

Fabyfakid 11-28-2007 08:25 AM

check it out:
Quote:

lo no wireless extensions.

eth0 no wireless extensions.

eth1 IEEE 802.11b/g ESSID:"" Nickname:"Broadcom 4318"
Mode:Managed Access Point: Invalid
RTS thr:off Fragment thr:off
Link Quality=0/100 Signal level=-256 dBm Noise level=-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

bigearsbilly 11-28-2007 09:08 AM

try:

Code:

iwconfig key open
iwconfig key s:WEP_KEY


Hangdog42 11-28-2007 10:43 AM

Quote:

Broadcom 4318
That chipset can be a bit difficult, do you know what driver you're using? There is a native Linux driver called bcm43xx, and I bet that is what is being used (check the output of lsmod to be sure). The problem with bcm43xx is that it doesn't work until you install firmware (which won't have shipped with Ubuntu) and it really doesn't work well with the 4318.

You'll probably need to install ndiswrapper and use the Windows drivers for this card.

Fabyfakid 11-28-2007 04:41 PM

How do I go about doing that?

Hangdog42 11-28-2007 04:54 PM

You might want to check your favorite Ubuntu repository for ndiswrapper. I'd bet that it is there. You'll also want to read the ndiswrapper wiki (see my sig for the link) for excellent instructions on how to install the Windows driver so ndiswrapper can use it. If bcm43xx is loading automatically, you'll have to blacklist it by adding it to your /etc/modprobe.d/blacklist file. Check the output of lsmod in the console to see if it is loading before you try to blacklist it.

Fabyfakid 11-29-2007 07:51 AM

Hey, thanks, just started installing ndiswrapper according to the project's intructions. I have a problem when I try to "make" the file. It says that I don't have an "include" directory on /lib/modules/'uname -r'/build. After making that directory, it asks for a ./conf file on that directory. After writing the instruction on making that file on that directory, it says that the kernel doesn't permit it.

Hangdog42 11-29-2007 08:09 AM

Do you happen to have the source code package installed for your kernel? Usually you get different errors when that is missing, but it kind of sounds like it isn't there. Since ndiswrapper is actually a kernel module, it needs the source code and .config file for your running kernel in order to compile.

Fabyfakid 11-29-2007 10:18 AM

I don't know, how can I find out if I do?

BTW, rereading my last post, I wasn't very good at explaining the issue, check out the whole process:

Quote:

fabian@fabian-laptop:~/Desktop/programs/ndiswrapper-1.50$ sudo make
Password:
make -C driver
make[1]: Entering directory `/home/fabian/Desktop/programs/ndiswrapper-1.50/driver'
make -C /usr/src/linux-headers-2.6.20-15-generic SUBDIRS=/home/fabian/Desktop/programs/ndiswrapper-1.50/driver
make[2]: Entering directory `/usr/src/linux-headers-2.6.20-15-generic'

ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.

Building modules, stage 2.
/usr/src/linux-headers-2.6.20-15-generic/scripts/Makefile.modpost:42: include/config/auto.conf: No such file or directory
make[3]: *** No rule to make target `include/config/auto.conf'. Stop.
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.20-15-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/fabian/Desktop/programs/ndiswrapper-1.50/driver'
make: *** [all] Error 2
fabian@fabian-laptop:~/Desktop/programs/ndiswrapper-1.50$ cd /usr/src/linux-headers-2.6.20-15-generic
fabian@fabian-laptop:/usr/src/linux-headers-2.6.20-15-generic$ sudo make oldconfig && make prepare
scripts/kconfig/conf -o arch/i386/Kconfig
ubuntu/Kconfig:5: can't open file "ubuntu/misc/Kconfig"
make[1]: *** [oldconfig] Error 1
make: *** [oldconfig] Error 2
fabian@fabian-laptop:/usr/src/linux-headers-2.6.20-15-generic$ ls; cd ubuntu
arch crypto fs init kernel Makefile Module.symvers scripts sound usr
block drivers include ipc lib mm net security ubuntu
fabian@fabian-laptop:/usr/src/linux-headers-2.6.20-15-generic/ubuntu$ ls
acpi block fs include Kconfig mactel Makefile media ms net ssb wireless
fabian@fabian-laptop:/usr/src/linux-headers-2.6.20-15-generic/ubuntu$
As you see, there's no directory named "misc". However, I find strange that there's a directory named "block"; here's what's inside:

Quote:

fabian@fabian-laptop:/usr/src/linux-headers-2.6.20-15-generic/ubuntu$ cd block; ls
Kconfig Makefile
fabian@fabian-laptop:/usr/src/linux-headers-2.6.20-15-generic/ubuntu/block$
Could it have something to do with the problem?

Hangdog42 11-29-2007 11:33 AM

Quote:

ERROR: Kernel configuration is invalid.
include/linux/autoconf.h or include/config/auto.conf are missing.
Run 'make oldconfig && make prepare' on kernel src to fix it.
Usually, the kernel source code is in /usr/src/linux. Either that or /usr/src/linux is a link to the source code.

I have to admit that I haven't seen the errors you're posting before. It looks like either the kernel headers haven't been installed (which would be really weird) or that the kernel source code wasn't (or maybe both). Did you do a full install of Ubuntu or did you leave out some stuff?

You might have a look in a Feisty repository for the kernel headers and the source code that matches your running kernel and install them. If they are already there, copying over with the same version shouldn't hurt and if they aren't there, installing them would be a good idea. Kernel headers should have been installed, but kernel source code is frequently optional as it takes up a bit of disk space that users might need for something else.

Fabyfakid 11-29-2007 12:36 PM

How do I go about doing that? Sorry for the constant questions, it's just that I'm new to this, and this a great learning experience.

Hangdog42 11-29-2007 12:53 PM

This is where my advice gets a little sketchy since I'm not very familiar with Ubuntu's package management system. However, essentially you need to use Synaptic (at least I think that is the right tool) and connect it to a repository. It may already have a basic one connected (in fact it may be able to work with the install CD/DVD you've got), but I'm not sure. Once you've got it going, you'll have to do some searching for the kernel source code package and the kernel header package and have Synaptic load those. Just be sure that they are the correct ones for your running kernel. Adding the wrong source code will cause minor problems, but adding the wrong kernel headers can cause some serious issues. In fact, you probably want to try doing just the kernel source code first and then see if that solves the ndiswrapper issues before you try the kernel headers.

You might want to do some reading either here or on the Ubuntu forums for how to use Synaptic. I'm sure this must have come up before and there may be some step-by-step instructions for loading kernel source packages.

bigearsbilly 11-30-2007 02:46 AM

synaptic's easy - peasy.
use synaptic itself, not the add/remove programs menu entry.

just search for the kernel source.


All times are GMT -5. The time now is 04:57 PM.