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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-27-2007, 09:54 AM
|
#1
|
Member
Registered: Aug 2004
Location: Puerto Rico
Distribution: Xubuntu (too scared to install FreeBSD)
Posts: 34
Rep:
|
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!!!
|
|
|
11-28-2007, 03:59 AM
|
#2
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
what does iwconfig say?
linux sadly is not great with a variety of wireless card support
|
|
|
11-28-2007, 08:25 AM
|
#3
|
Member
Registered: Aug 2004
Location: Puerto Rico
Distribution: Xubuntu (too scared to install FreeBSD)
Posts: 34
Original Poster
Rep:
|
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.
|
|
|
11-28-2007, 09:08 AM
|
#4
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
try:
Code:
iwconfig key open
iwconfig key s:WEP_KEY
|
|
|
11-28-2007, 10:43 AM
|
#5
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
11-28-2007, 04:41 PM
|
#6
|
Member
Registered: Aug 2004
Location: Puerto Rico
Distribution: Xubuntu (too scared to install FreeBSD)
Posts: 34
Original Poster
Rep:
|
How do I go about doing that?
|
|
|
11-28-2007, 04:54 PM
|
#7
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
11-29-2007, 07:51 AM
|
#8
|
Member
Registered: Aug 2004
Location: Puerto Rico
Distribution: Xubuntu (too scared to install FreeBSD)
Posts: 34
Original Poster
Rep:
|
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.
|
|
|
11-29-2007, 08:09 AM
|
#9
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
11-29-2007, 10:18 AM
|
#10
|
Member
Registered: Aug 2004
Location: Puerto Rico
Distribution: Xubuntu (too scared to install FreeBSD)
Posts: 34
Original Poster
Rep:
|
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?
|
|
|
11-29-2007, 11:33 AM
|
#11
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
11-29-2007, 12:36 PM
|
#12
|
Member
Registered: Aug 2004
Location: Puerto Rico
Distribution: Xubuntu (too scared to install FreeBSD)
Posts: 34
Original Poster
Rep:
|
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.
|
|
|
11-29-2007, 12:53 PM
|
#13
|
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
|
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.
|
|
|
11-30-2007, 02:46 AM
|
#14
|
Senior Member
Registered: Mar 2004
Location: england
Distribution: Mint, Armbian, NetBSD, Puppy, Raspbian
Posts: 3,516
|
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:49 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|