LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-27-2007, 09:54 AM   #1
Fabyfakid
Member
 
Registered: Aug 2004
Location: Puerto Rico
Distribution: Xubuntu (too scared to install FreeBSD)
Posts: 34

Rep: Reputation: 15
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!!!
 
Old 11-28-2007, 03:59 AM   #2
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,420

Rep: Reputation: 198Reputation: 198
what does iwconfig say?

linux sadly is not great with a variety of wireless card support
 
Old 11-28-2007, 08:25 AM   #3
Fabyfakid
Member
 
Registered: Aug 2004
Location: Puerto Rico
Distribution: Xubuntu (too scared to install FreeBSD)
Posts: 34

Original Poster
Rep: Reputation: 15
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

Last edited by Fabyfakid; 11-28-2007 at 08:27 AM.
 
Old 11-28-2007, 09:08 AM   #4
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,420

Rep: Reputation: 198Reputation: 198
try:

Code:
iwconfig key open
iwconfig key s:WEP_KEY
 
Old 11-28-2007, 10:43 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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.
 
Old 11-28-2007, 04:41 PM   #6
Fabyfakid
Member
 
Registered: Aug 2004
Location: Puerto Rico
Distribution: Xubuntu (too scared to install FreeBSD)
Posts: 34

Original Poster
Rep: Reputation: 15
How do I go about doing that?
 
Old 11-28-2007, 04:54 PM   #7
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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.
 
Old 11-29-2007, 07:51 AM   #8
Fabyfakid
Member
 
Registered: Aug 2004
Location: Puerto Rico
Distribution: Xubuntu (too scared to install FreeBSD)
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
Old 11-29-2007, 08:09 AM   #9
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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.
 
Old 11-29-2007, 10:18 AM   #10
Fabyfakid
Member
 
Registered: Aug 2004
Location: Puerto Rico
Distribution: Xubuntu (too scared to install FreeBSD)
Posts: 34

Original Poster
Rep: Reputation: 15
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?
 
Old 11-29-2007, 11:33 AM   #11
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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.
 
Old 11-29-2007, 12:36 PM   #12
Fabyfakid
Member
 
Registered: Aug 2004
Location: Puerto Rico
Distribution: Xubuntu (too scared to install FreeBSD)
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
Old 11-29-2007, 12:53 PM   #13
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
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.
 
Old 11-30-2007, 02:46 AM   #14
bigearsbilly
Senior Member
 
Registered: Mar 2004
Location: england
Distribution: Debian, Mint, Puppy, Raspbian
Posts: 3,420

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

just search for the kernel source.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Need help accessing a wireless connection from my laptop. Fabyfakid Ubuntu 4 11-27-2007 11:50 AM
wireless connection on my laptop macjunior Linux - Laptop and Netbook 5 11-25-2007 06:47 AM
wireless connection with a laptop hermouche Linux - Laptop and Netbook 9 09-17-2007 12:21 AM
Problems accessing internet through wireless connection setilight Linux - Wireless Networking 2 01-25-2006 02:48 AM
New wireless AP, laptop connection broken Kropotkin Linux - Wireless Networking 1 07-22-2005 12:18 PM


All times are GMT -5. The time now is 08:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration