LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 03-21-2006, 02:30 AM   #1
sdmike6
Member
 
Registered: Mar 2006
Distribution: Ubuntu, Gentoo, OpenBSD
Posts: 43

Rep: Reputation: 15
ndiswrapper and sudo trouble.


Alright so I installed the newest version of Kubuntu onto my Gateway M320X laptop. I soon found out that damn my onboard intell wifi chip wasn't working. So I downloaded ndiswrapper and tried to install it but I could login as root to do make install. So what is going on here?
 
Old 03-21-2006, 06:22 AM   #2
Dr. Device
LQ Newbie
 
Registered: Jul 2005
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
Hello. I'm not terribly familiar with Ubuntu, it doesn't want to install on my system, but I just wrangled ndiswrapper, so I'll take a crack here. When running "make install" did you "sudo" or "su"? "sudo" often gives me trouble, so I normally just use "su". I'd suggest trying that...
 
Old 03-21-2006, 10:40 AM   #3
sdmike6
Member
 
Registered: Mar 2006
Distribution: Ubuntu, Gentoo, OpenBSD
Posts: 43

Original Poster
Rep: Reputation: 15
I can't use su because then it ask me for a password and when installing kubuntu it never gives you a root password so that's why you gotta use sudo when using commands that ask for root actions.

I guess that's how I interpreted it.
 
Old 03-21-2006, 07:35 PM   #4
Dr. Device
LQ Newbie
 
Registered: Jul 2005
Distribution: Slackware
Posts: 11

Rep: Reputation: 0
No root access? Wow... Well, try "sudo bash" then, that'll open up a root shell for ya, like "su". Be careful now, power corrupts and all.
 
Old 03-21-2006, 08:31 PM   #5
petespin27
Member
 
Registered: Aug 2005
Location: Lansing, IL
Distribution: Opensuse 11
Posts: 140

Rep: Reputation: 16
All you need to do is: sudo make install
When it asks for a password, enter the password you set up Kubuntu with. Sudo grants you temporary root status. It takes a bit to get used to with Ubuntu and the like, but it's not that bad.
 
Old 03-22-2006, 01:47 AM   #6
sdmike6
Member
 
Registered: Mar 2006
Distribution: Ubuntu, Gentoo, OpenBSD
Posts: 43

Original Poster
Rep: Reputation: 15
But I did type sudo make install and I put in my password and it didn't work. I think I shall go through it again and I will paste what I did.
 
Old 03-22-2006, 01:03 PM   #7
ollywompus
Member
 
Registered: Feb 2005
Posts: 43

Rep: Reputation: 15
Whoa, ok hold on a second, WHERE did you download Ndiswrapper from? Do this isntead of compiling it, see how it works for you:

First off, make sure you have your Kubuntu Install CD in your drive when you do this. If you have a fresh install, and haven't mucked around with your repositories at all, you should still have the CD-ROM as a repo. Go to the command line and do the following:

Quote:
sudo -s
This will put you at a password prompt. Enter your normal password, now you are root.

Quote:
apt-get install ndiswrapper-utils
Make sure that you have your install CD in the drive, apt will pull the ndiswrapper-utils package from the CD and install it, no muss no fuss.

Quote:
ndiswrapper -i <path to your windows driver file>
So for example, I type in ndiswrapper -i /home/olly/drivers/bcmwl5.inf

Quote:
ndiswrapper -m
modprobe ndiswrapper
So, at this point, if everything has worked without errors, you will have installed your wireless driver. Check this by:

Quote:
iwconfig
This will show all the available network devices... you should see one that is your card, and will return a bunch of info about it. To connect to your Wireless AP, type:

Quote:
iwconfig <cardname, i.e. wlan0, eth0, whatever> essid <SSID name>
Now if you run iwconfig again, you will see that your card is associated with your AP. The last step then is:

Quote:
dhclient <cardname>
This will get you an IP.

So for a real world example, if I was doing this on my laptop, it would like like this:

Quote:
sudo -s
<enter my password>
apt-get install ndiswrapper-utils
ndiswrapper -i /home/olly/drivers/bcmwl5.inf
ndiswrapper -m
modprobe ndiswrapper
iwconfig eth0 essid <my essid> key <my wep key>
dhclient eth0
That would get me on the internet after a fresh Ubuntu/Kubuntu install. You could also skip the 'sudo -s' and just type 'sudo' in front of every command, either way works fine.

Cheers, let me know if you have any questions, need any clarification.

Once you make it this far, let me know, and I'll write up a guide on editin your /etc/network/interfaces file so that you can have it grab your wireless signal automatically on boot.

-olly

Last edited by ollywompus; 03-22-2006 at 01:09 PM.
 
Old 03-24-2006, 02:19 PM   #8
sdmike6
Member
 
Registered: Mar 2006
Distribution: Ubuntu, Gentoo, OpenBSD
Posts: 43

Original Poster
Rep: Reputation: 15
I feel so happy now that I got it to work. So now how do I make it boot up with wifi without having to punch in dhclient everytime?
 
Old 03-24-2006, 02:21 PM   #9
sdmike6
Member
 
Registered: Mar 2006
Distribution: Ubuntu, Gentoo, OpenBSD
Posts: 43

Original Poster
Rep: Reputation: 15
ok there's one problem I gotta keep typing in dhclient from time to time because it seems like it just loses the IP but I know I have %100 connection were I'm at.
 
  


Reply



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
Restricting Editing in Sudo (Advanced Sudo Question) LinuxGeek Linux - Software 4 11-04-2006 03:20 PM
Have trouble with Ndiswrapper and wireless setup LeetChris Linux - Wireless Networking 1 02-08-2006 03:25 PM
a little trouble with sudo vardhan Linux - Newbie 1 11-30-2005 09:55 PM
ndiswrapper: trouble connecting to router nvidiausr Linux - Wireless Networking 1 11-03-2004 12:34 AM
Trouble installing ndiswrapper in redhat digislime Linux - Software 0 08-12-2004 09:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 02:20 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
Open Source Consulting | Domain Registration