Linux - NewbieThis 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!
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.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
jomen, thank you for the tip on using make menuconfig. That made it MUCH easier =). Unfortunately, I had already downloaded all the files emerge needed before I read your post about wget and the emerge to file options.
So, now there's a new problem. Emerge wants ndiswrapper-1.2, but my card isn't supported until ndiswrapper-1.6 (they're up to 1.11 beta now). I thought it was because I needed to update portage, so I downloaded the current version, ran tar -xvzf /path -C /usr then emerge regen. When that was finished running I tried to emerge ndiswrapper again, but it still wanted v.1.2.
I tried running make in the ndiswrapper-1.10 dir, and got the same errors as before. I copied all of my kernel source files to /lib/modules/2.6.15-gentoo-r5/build. No change. Then I looked through all the Makefile code in ndiswrapper and subdirectories to see if there was a KSRC variable I could change, but there wasn't.
What am I missing? I think I've recompiled my kernel (even though I'm not sure yet how to configure GRUB to boot it, need to do more research), I have a .config file and a system.map file now.
you need to be running the kernel you just made for all this to work...
There is lots of info on how to set up grub to boot your new kernel -
-add it to the file /boot/grub/grub.conf - take the line already there as a reference...
I tried running make in the ndiswrapper-1.10 dir, and got the same errors as before.
What error did you get?
If you really need the newer version - you need to "unmask" the package net-wireless/ndiswrapper
by giving this command (for example - you can as well copy and paste it to this file...: echo "net-wireless/ndiswrapper" >> /etc/portage/package.keywords (if it is masked by "keyword") echo "net-wireless/ndiswrapper" >> /etc/portage/package.unmask (if it is hard-masked ) man portage for more info.
It could happen that it still will not work - because ndiswrapper might (I didn't check...) need other masked packages as a dependency - do the same with them: echo "some_package" >> /etc/portage/package.keywords
along with instructions on how to manually apply an ebuild on gentoo.org. I added ACCEPT_KEYWORDS="~x86" to /etc/make.conf
This is what happened:
localhost portage # ebuild /ndiswrapper-1.9.ebuild fetch
Traceback (most recent call last):
File "/usr/bin/ebuild", line 48, in ?
portage_ebuild = portage.portdb.findname(cpv)
File "/usr/lib/portage/pym/portage.py", line 5227, in findname
File "/usr/lib/portage/pym/portage.py", line 5235, in findname2
IndexError: list index out of range
I have no idea what this means, and it wasn't mentioned in any of the man pages that I checked. If anyone can tell me what this means exactly, and how I can fix it, I would appreciate it. Thanks.
Don't do this! This will make your _entire_ system make use testing packages and very likely lead to problems you are not ready to solve!
Do it as I suggested - then only the _one_ file you really need from testing/unstable branch is allowed but the rest of the system stays untouched.
use /etc/portage/package.keywords for what you want to do!
BTW: you already have this ebuild in your portage-tree!
No need to fetch is separately from somewhere!
Run: emerge --sync regularily - or at least before you want to build something new.
And pay attention to the messages at the end - when it finishes - sometimes it reminds you to something like:
An update to portage is available! It is highly recommended that you update portage now - before updating any other packages on your system.
Do that and you will stay out of trouble!
Last edited by jomen; 03-24-2006 at 04:48 AM.
Reason: added something important...
It was masked by keyword, as you said. I will go back and remove the variable in make.conf. I don't need any more problems than I already have lol.
But, on the bright side, it worked! ndiswrapper sees my card and driver. Of course, now there are more problems. I have still been booting my older kernel, which does not have wireless_radio set. I set grub to boot my new kernel (keeping the old one as a menu choice, of course) but during boot sequence, a "Kernel Panic" error occurs and my system locks up. Maybe I don't have grub.conf configured right. Probably I made a mistake during make menuconfig.
Grub.conf looks like this (actually, this is menu.lst):
GNU nano 1.3.9 File: menu.lst
kernel /kernel-genkernel-x86-2.6.15-gentoo-r5 root=/dev/ram0 init=/linuxrc ramd$
title=Gentoo New Kernel
kernel /vmlinuz-2.6.15-gentoo-r5 root=/dev/ram0 init=/linuxrc ramd$
If it is a problem in the config, I will probably just reinstall Gentoo to clean up the mess, since I haven't done much that's been productive and I have files copied everywhere. I have learned alot though, in a large part due to this forum, and I should be able to get my system to the point it's at now in no time.
No need to reinstall just because of a missing line in the bootloaders configuration - a reinstall would leave you with exactly the same and more work to do...
It seems you used genkernel - and you missed to give the initrd - like the one you have for the old kernel.
Find the initrd - copy it to /boot (where the other already is) and add the line to the grub-configuration-file.
Once again, thanks for all your help jomen . Since everything seems to be working, except for the new kernel (which I am almost positive I configured wrong in the first place), I am planning to recompile using gentoo-sources, and try to make the most basic, working kernel I can. Once I have it running, I'll tweak it and play around with it as I learn more.
I was hoping to have gentoo online before spring break was over...just over a day left!
Thanks to everyone who helped out. I ended up just installing SuSE, and had my wireless connection going in a couple hours. BTW, SuSE is incredibly easy to install...almost too easy. I'll be going back to Gentoo (maybe try Slackware first) once I enjoy some Linux internet