Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old December 16th, 2005   #1
foxy123
Dark Roasted Ubuntu
 
Join Date: Apr 2005
Beans: 1,165
THIS TOPIC IS OUTDATED
The version in the repositories is 1.1 which is a bit outdated. So I decided to update it to a current version. I hope it may help someone. This HOWTO is based on ndiswrapper Wiki Page

1. Install kernel headers:
Code:
sudo apt-get install linux-headers-$(uname -r)
and dependencies:
Code:
sudo apt-get install dh-make fakeroot gcc-3.4 build-essential
2. Download the current version of ndiswrapper from here

3. Untar
Code:
tar xvfz ndiswrapper-[current version].tar.gz
cd ndiswrapper-[current version]
4. Build deb packages:
Code:
fakeroot debian/rules binary-modules
fakeroot debian/rules binary-utils
cd ..
5. Install
Code:
sudo dpkg -i ndiswrapper-modules-[your kernel]_[current version]-1_i386.deb ndiswrapper-utils_[current version]-1_i386.deb
That's it. I installed it over an old version available from repositories but if you want to do a clean install then uninstall the previous version and remove old dirs:
Code:
sudo rmmod ndiswrapper
sudo apt-get remove ndiswrapper-utils
sudo rm -r /etc/ndiswrapper/
sudo rm -r /etc/modprobe.d/ndiswrapper
Taken from ihavenoname's post here

I may have left some dependencies, since I did not have a fresh Breezy installation.

THIS TOPIC IS OUTDATED

Last edited by foxy123; December 12th, 2009 at 11:59 AM..
foxy123 is online now   Reply With Quote
Old December 17th, 2005   #2
nelposto
Just Give Me the Beans!
 
Join Date: Oct 2005
Beans: 40
Re: HOWTO: Compile new ndiswrapper from the source

Hi, thanks for this HOWTO.

I have a question before I try .. will this work with custom compiled kernels?

In this case would I change the line:

linux-headers-$(uname -r)

to linux -headers-$ and then the kernel on which my custom one is based?

Thanks for this.
nelposto is offline   Reply With Quote
Old December 18th, 2005   #3
curtis
Way Too Much Ubuntu
 
Join Date: Sep 2005
Beans: 123
Re: HOWTO: Compile new ndiswrapper from the source

If you compiled the kernel your self, the headers are already there.
You can build seperate kernel headers if you want though...
curtis is offline   Reply With Quote
Old December 24th, 2005   #4
Lambert
Fresh Brewed Ubuntu
 
Lambert's Avatar
 
Join Date: Jun 2005
Location: Ashland Virginia (usa)
My beans are hidden!
Send a message via ICQ to Lambert
Re: HOWTO: Compile new ndiswrapper from the source

You may want to add to your instructions all the packages needed to complete this howto.

dh_make
fakeroot
gcc-3.4
build-essential
Lambert is offline   Reply With Quote
Old December 24th, 2005   #5
greenway
A Carafe of Ubuntu
 
greenway's Avatar
 
Join Date: Sep 2005
Location: Hat Yai, Thailand
Beans: 93
Kubuntu Breezy 5.10
Send a message via MSN to greenway Send a message via Yahoo to greenway
Re: HOWTO: Compile new ndiswrapper from the source

Quote:
Originally Posted by Lambert
You may want to add to your instructions all the packages needed to complete this howto.

dh_make
fakeroot
gcc-3.4
build-essential
Hey Lambert,

Just wondering; aren't the kernel-tree package needed here?? I always thought they did but I am not sure...
__________________
"The concern for man and his destiny must always be the chief interest of all technical effort. Never forget it between your diagrams and equations." -AE

HOWTO:basic ethernet troubleshooting
Learn how to work the shell-Up to date repositories
greenway is offline   Reply With Quote
Old December 24th, 2005   #6
foxy123
Dark Roasted Ubuntu
 
Join Date: Apr 2005
Beans: 1,165
Re: HOWTO: Compile new ndiswrapper from the source

Quote:
Originally Posted by Lambert
You may want to add to your instructions all the packages needed to complete this howto.

dh_make
fakeroot
gcc-3.4
build-essential
thanks a lot, done...
foxy123 is online now   Reply With Quote
Old December 24th, 2005   #7
foxy123
Dark Roasted Ubuntu
 
Join Date: Apr 2005
Beans: 1,165
Re: HOWTO: Compile new ndiswrapper from the source

Quote:
Originally Posted by greenway
Hey Lambert,

Just wondering; aren't the kernel-tree package needed here?? I always thought they did but I am not sure...
I do not think it is required... I have not got it installed on my box and still I did not have any problems with compiling ndiswrapper...
foxy123 is online now   Reply With Quote
Old December 24th, 2005   #8
greenway
A Carafe of Ubuntu
 
greenway's Avatar
 
Join Date: Sep 2005
Location: Hat Yai, Thailand
Beans: 93
Kubuntu Breezy 5.10
Send a message via MSN to greenway Send a message via Yahoo to greenway
Re: HOWTO: Compile new ndiswrapper from the source

Quote:
Originally Posted by foxy123
I do not think it is required... I have not got it installed on my box and still I did not have any problems with compiling ndiswrapper...
Yeah, you might well be right there. I always made sure I the packages were installed because I was taught so, never checked without them though... Anyway, nice howto!

grtz

-mattijs
__________________
"The concern for man and his destiny must always be the chief interest of all technical effort. Never forget it between your diagrams and equations." -AE

HOWTO:basic ethernet troubleshooting
Learn how to work the shell-Up to date repositories
greenway is offline   Reply With Quote
Old December 24th, 2005   #9
Lambert
Fresh Brewed Ubuntu
 
Lambert's Avatar
 
Join Date: Jun 2005
Location: Ashland Virginia (usa)
My beans are hidden!
Send a message via ICQ to Lambert
Re: HOWTO: Compile new ndiswrapper from the source

I'm not that knowledge here but this is how I understand the linux-tree. Anybody who knows better can correct me.

Quote:
This meta package is used as a build-time dependency of prepackaged
Ubuntu linux-image packages. Its dependencies are structured so that a
complete kernel tree with Ubuntu patches applied will be available after
this package is installed
Kernel tree is just source of the kernel it's self. With the linux-tree package installed, it's only used when building a new kernel so there is a kernel tree of the new image with any patches.
Lambert is offline   Reply With Quote
Old December 24th, 2005   #10
greenway
A Carafe of Ubuntu
 
greenway's Avatar
 
Join Date: Sep 2005
Location: Hat Yai, Thailand
Beans: 93
Kubuntu Breezy 5.10
Send a message via MSN to greenway Send a message via Yahoo to greenway
Re: HOWTO: Compile new ndiswrapper from the source

Quote:
Originally Posted by Lambert
I'm not that knowledge here but this is how I understand the linux-tree. Anybody who knows better can correct me.



Kernel tree is just source of the kernel it's self. With the linux-tree package installed, it's only used when building a new kernel so there is a kernel tree of the new image with any patches.
Tnx for clearing that up and a merry christmas to you all!
__________________
"The concern for man and his destiny must always be the chief interest of all technical effort. Never forget it between your diagrams and equations." -AE

HOWTO:basic ethernet troubleshooting
Learn how to work the shell-Up to date repositories
greenway is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:43 PM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry