SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
I installed Slackware 12 yesterday. I have a couple of what I hope are small questions, that my trawling through forums has so far left unresolved.
I am still using the huge kernel. Is it desirable/necessary that I change to generic?
The only particular problem that I have and which I haven't resolved is the fact that I can't modprobe ndiswrapper to get wireless going, to wit: installation of drivers works, depmod -a works but 'modprobe ndiswrapper' returns the message 'FATAL: module ndiswrapper not found'.
I used ndiswrapper.SlackBuild to install ndiswrapper; all seemed to go well no error messages after running the SlackBuild file.
A bit of digging unearthed the possibility that I may not have kernel headers installed.
So my questions are this:
- is that a likely correct diagnosis?
- If so, is it connected to the fact that I am still using the installation kernel?
I don't have net on Slackware - is there a way I can use my other Linux OS to download kernel headers so I don't have to move my PC downstairs to download any software I might need?
Thanks in advance for any help.
Last edited by Bazzaah; 04-08-2008 at 04:39 PM.
Reason: change of title
If you had no kernel headers installed, the ndiswrapper module would not have built.
If you are using a non-smp kernel (you indicated 'huge' and not 'hugesmp') then you need to apply a small patch to your kernel sources or else the kernel modules that you compile will not load into your non-smp kernel because they expect a SMP kernel. See http://slackware.osuosl.org/slackwar...1.5-nosmp-sdk/ for instance - it will be on your Slackware DVD or CD too.
You say you have no net on Slackware - is this because you did not install a kernel-modules package? Or is it because you only have a wireless card? You can check what packages you installed by looking at the /var/log/packages directory. There should be a kernel-headers-* and kernel-modules-* package mentioned in that directory.
If you download anything on another computer, the easiest transport medium in the absense of a network connection is a USB stick.
I have no wireless on Slackware but triple boot with PCLOS and, ahem, Vista; both have functioning wireless. To use wired net I would have to move my desktop downstairs, sub-optimal.
It's easy to download to PCLOS and I can read and copy from PCLOS to Slackware. Thought maybe i'd have to access a repo to get the patch but seems not which is good.
The patch should be the solution since ndiswrapper has definitely installed my wireless drivers.
Just one small question - how do I run a script ./xyz?
update - I copied the relevant folder from the DVD, opened a terminal as root, cd /folder I had just copied from the DVD and ran the patch as ./patchetc
The patch seemed to install just fine.
So I rebooted - just the same message (FATAL: etc) after rerunning ndiswrapper.SlackBuild
I'll reinstall and run the patch before I do anything else, then run the SlackBuild once I've patched.
After patching the kernel sources you have to rebuild the ndiswrapper package and run "upgradepkg --reinstall ndiswrapper-*.tgz" to replace the old with the new ndiswrapper package.
Then reboot and see if it works. Do not forget to also install the Windows NDIS driver or else you still won't have wireless access.
I reinstalled Slackware and lost X for some reason so will try again later on today.
All good fun and thanks for the help! I've certainly learnt a few things with my largely unsuccessful foray into Slackware - might take a few goes but will get there!
While I have your attention, what is the best way to swap to the generic smp kernel?
Switching to the generic kernel is not too hard. That kernel will already have been installed to your computer as part of a full Slackware install.
You need to create an initrd file (initial ramdisk) that contains the driver for the filesystem of your root (that is '/') partition because the generic kernel does not contain that driver. In some cases, you will also need to include drivers for USB support if your root partition is on a USB disk.
Read more about mkinitrd command which creates the initrd in /boot/README.initrd .
After creating the initrd (default generated file will be /boot/initrd.gz) you will have to add a couple of lines to your /etc/lilo.conf file and then run the command "lilo" to add these changes to your bootloader.
Typically it looks like:
Try this shell script: http://www.slackware.com/~alien/tool...d_generator.sh , it will analyze your system and propose a "mkinitrd" commandline that generates this initrd.gz file. You can take that as an example - it may add more modules than you really need but usually not less modules than you really need...
I have ndiswrapper installed with the right drivers so thanks again - all is well, apart from the fact that I can't connect to my network, lol.
This is what iwconfig wlan0 returns -
IEEE 802.11g ESSIDff/any Nickname:"Barry"
Mode:Managed Channel:0 Access Point: Not-Associated
Bit Rate=1 Mb/s Sensitivity=-200 dBm
RTS thr=2346 B Fragment thr=2346 B
Encryption keyff
Power Managementff
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Kwifimanager tells me that my network is there but won't let me connect to it.
Any pointers appreciated. Everything's there I think, card, drivers, router and network so I need something to bring them all together. Perhaps there are some scripts available that I could use?
I will look around of course but thanks in advance if you're able to shorten that process for me.
It depends of course on the type of Access Point you want to connect to. If that is encrypted you will need a WEP or WPA key.
I am not a fan of network configuration using Kwifimanager (this is Slackware) so you should look at /etc/rc.d/rc.inet1.conf for network configuration in general and /etc/wpa_supplicant.conf in case you have to enter a WPA key.
You can see what Access Points are in range by running:
Code:
ifconfig wlan0 up
iwlist wlan0 scan
You may have to run the second comand multiple times.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.