Discussion Locked

Linux diversity and ibuprofen

0 helpful
37 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Wow...what a difference.

Last night in my insomniatic fit for the month, I decided to work installing Debian.

apotheon wasn't kidding when he told me it wasn't a starter distro. I installed it...no GUI. I "apt-get install kde" and KDE didn't load after install.

hm...this is a way different beast than it was in 1999.

Then I installed Kubuntu. I went to the sourceforge site and tried following directions to install the driver for my wireless card. No luck. Couldn't compile...couldn't ifconfig...weird. Got the insmod to work, but Kubuntu didn't even find my wireless card on the PCI bus so the driver didn't associate to it.

So, I think it's either back to Mandrake or I might try Gentoo next. I don't know. I just know I need to have it detect a wireless card so that I can get updates and what not and start getting comfortable with the KDE/Gnome names for programs and what they do, and start learning the different packages and what they contain.

I gotta go buy Linux for Dummies...if that will even help.

37 replies

by rexworld

When you get around to trying the other distros I would love a comparo. I've got an ancient ThinkPad that really doesn't run XP that well so I was thinking of converting it into a Linux box. But I am no admin, I need one that can install and detect the wireless PCMCIA card and all that stuff.

by jaqui

is mandrake. ( sorry, mandriva now )

download specific drivers for network card beforehand though.
even if they find the card they may not have the drivers for that particular make / model.

either way you may need to have them to be able to build the driver yourself. since a lot of hardware manufacturers don't supply linux drivers it's not unusual for any type of device to need tweaking.

by jck

the RT2500 is a listed wireless device, but it won't load properly.

by jaqui

the xserver?
then, did you use startx?
or change default runlevel to 5?
( debian's default is 3 which is console mode )
runlevel 5 is graphics mode.

by jck

see...that's my weakness...never done any of that. I know that KDE did load the X libraries, cause I watched it all load and setup. It just never went into graphics mode on its own.

In the day that I used Linux in college, it was about loading X1186 or something like that on the machine, then running X11 or something...it's been 15 years.

When I did the work with Linux in 1999, it was just setting up the TCP/IP on Linux so that the PCs could talk to the Sun machine.

All the GUI starts and modes and such is new to me...I remember stuff from Unix too that isn't the same in Linux, which is frustrating. Too much AT&T System V in college I guess.

Thanks for the input tho. I'll keep those things in my head.

I'll reload Mandrake tonite (and I'll download the latest "Mandriva" version onto CD again, since I have over 200 blanks) and see if I can get it flying "out of the box".

by jmgarvin

Make sure to get either madwifi or ndiswrapper. Also, you wireless will probably be ath0 (or some such) rather than eth0, eth1, or whater...

by apotheon

Debian has an extremely steep learning curve for Linux beginners, but when you're familiar enough with what you're doing to understand what's going on when using the apt system Debian becomes about the easiest Linux distribution in existence. Thus, for people trying to learn how to use it, it can start out as an incredibly frustrating, difficult distribution, but upon gaining some familiarity it becomes so simple and easy to manage that everything else is frustrating and difficult in comparison.

At least, that's my experience.

Typically, for installation of a GUI system, one should first install the x-window-system package (and all required dependencies), then the window manager of choice, in that order. Thus, installation would look something like this:
[b]# apt-get install x-window-system
# apt-get install kde[/b]
In fact, unless you specify otherwise, that should change the default runlevel to 5 so that you automatically boot into a GUI system. After installing all that, you should be able to get into it without restarting the system, though -- simply by entering "startx" at the CLI. Depending on how KDE is set up and what you use as the display manager, though, the default setup may or may not need a little tweaking to make it work with the startx command without a restart (I only ever use xdm, so I can't really speak for kdm or gdm on Debian).

by jck

I reinstalled Mandrake 10.1 over Kubuntu last night, and Mandrake's harddrake (when I try to configure the Ralink RT2500 card) tells me that DrakX errored in configuring it.

I'm not sure why. I tried putting two different RT2500 drivers (one from RaLink, one from sourceforge) on the thing by using the typical command line stuff from the su account:
depmod, modprove, insmod, ifconfig, iwconfig, etc.

I even put the kernel source onto the machine and did the ndiswrapper stuff that worked for my ADMTek 802.11b card, but when I do ndiswrapper -l, it says "rt2500 Invalid driver!"

I am going to get a different driver I saw last night and the actual source code (if available) and try installing that driver and if that fails , I'll compile the source myself for the driver and try to get it working through the kernel again

by apotheon

It's admirable that you're trying all this nifty stuff but, if you're really running into a lot of difficulties getting wireless connectivity on your hardware, maybe you should just default to the distros that tend to work best with weird hardware. In particular, that seems to be MEPIS and Knoppix. Knoppix seems to work with a broader range of hardware than MEPIS, but MEPIS seems to be more friendly about how it works with the hardware.

One of the benefits of both MEPIS and Knoppix is that they are Debian based and thus allow for a reasonably easy way to investigate the setup and configuration of the system when it works with your hardware so that you'll better know what to do with a vanilla Debian system.

Here's some encouragement: Sometimes, Linux is kind of frustrating for the power user new to Linux systems. Sometimes, it takes several runs at the same thing before any joy is achieved, and several more before you understand WHY it works now. I suffered some pretty extensive frustration in my early experimentation with Linux, and I wasn't even dealing with wireless networking at the time. Ultimately, though, I learned enough so that I started to understand how to make sure that everything worked without having to always use the most user-obsequious distros, and ultimately it has become the OS that I wouldn't want to live without.

I guess what I'm trying to say is that there's a light at the end of the tunnel. Obviously, if all you wanted was a plug-and-play system that doesn't let you control any more of its internals than Windows does for the rank newbie, you could have it. If you want to understand what your computer is doing and be able to make the occasional decision for yourself, there'll be some frustration while learning it all. I think that'll end up being well worth it for you in the long run, and some day you may be writing something like this for someone else taking first steps into the realm of the Linux enthusiast.

Good luck, and if you have any specific questions for me you do have my email address.

by jck

if the OS isn't good.

Part of this whole thing is an experimentation. I'm a *very* pessimistic person when it comes to getting opinions from things like articles, reviews, etc., especially when it's about software. I did find for hardware that Tom's Hardware Guide is a very unbiased (but sometimes vague in their conclusions) website for that so I depend on them for finding out performance with things like motherboards and such.

When it came to Linux, there are mainly 2 general attitudes you'll hear about it in the context of what OS to use on your computer:

1) If I can't just click through and set it up, I'd rather stick with Windows.

2) Linux is much stronger and versatile than Windows if you know what you're doing.

Well, I'm not *exactly* a newb to Linux. I just haven't messed with it in long enough and with only one distro (Slackware circa 1996?) that I don't know all the tools and names from Knoppix, MEPIS, Debian, Mandrake, etc., plus all the interfaces like KDE, gnome, etc. Plus, I've got quite a bit of Unix experience including Informix, shell scripting (ksh, bsh, csh, etc)...so all in all, I'm probably what most would consider "good enough to cause trouble" with a system at work.

Keeping that in mind, I wanted to use this as a time not only to sharpen back up on a technology that I haven't used in better than 5 years. But, I also wanted to prove for myself to an almost certain conclusion which OS was actually better for different things, especially in the arena of graphics and sound.

I kind of expected, since MS is one OS made by one company and Linux is a sundry of different OSes with the same base kernel, that MS installs would go WAY smoother. It's just been the situation with actually knowing or figuring out how to get a driver installed...going through the motions...and it fails. That's frustrating. Or when you go to a website and find a checklist for an install "how-to" and one of the steps doesn't work and the bin file to do it isn't even on the distro that you can find. For instance, one set of directioons for Mandrake 10.1 kernel 2.6.8.1-12 for the RT2500-based card I had...used qmake...there's no qmake on my machine...I couldn't find an RPM with q in the name...so...frustration level...up 10%.

I know people are human...and I know it's an uphill battle til I know these things in and out like you and Jaqui do. But, when something simple like a "linux driver" isn't installable into the system by insmod-ing it...it gets kind of tough to stomach.

If it weren't for my innate geekiness and desire to actually see if there is this Utopia in Linux that makes Microsoft look like a proverbial "project" of OSes, I would just go back to MS and sit and pay their BS prices and put up with their technology enhancements like "transparent windows" and file systems that don't even work yet.

And...thanks for being willing to field question...it is much appreciated.

by jck

OK...here is the definitive install stuff...if you're installing Mandrake 10.1 kernel 2.6.8.1 with an Encore ENLWI-F-RLAM 802.11g wireless card based on the Ralink rt2500 chipset:

1) Install Mandrake 10.1, installing the 3 CD set
2) Install the kernel source (search in System-Configuration-Packaging-Install Software for "2.6.8.1")
3) get the rt2500-1.1.0.b2.tar.gz file from SourceForge
4) make a subdirectory under your home
5) untar the tar file to that subdirectory
6) login as your superuser (su) account
7) CD to the subdirectory you created
8) cd to Module subdirectory
9) at the prompt, enter "make && make install"
10) go to Mandrake Control Center (System-Configuration-Configure Your Computer)
11) configure your wireless card according to your wireless router/access point

I run this system:
Biostar M7NCD-A02 Motherboard
1GB PC3200 Corsair memory
AMD Athlon XP 2800+
ATI Radeon 9600 Pro 256MB video card
Lite-On DVD+/-RW

and a TON of apps (games, IRC clients, web browsers, etc)

This worked...PERFECT. Literally, the only other thing I did was install the Mozilla packages.

So...now...that I'm live and running with Mandrake, it's time to start playing :)

Next...I am going to mess with Wine, WineX, Cedega and Cygwin...i.e.- means of running Windows-based apps under Linux.

If this all pans out as well, I hope to prove one thing...which actually was possible in 1995 with IBM OS/2 Warp vs. Windows 95:

Linux can run Windows software through emulators more efficiently than Windows itself can run software written for itself. :)

Good hunting...and happy Linuxing :)

by jck

if I can give you any direction on where to get anything, let me know.

I know I'm not as experienced with Linux, but I've been digging in websites for a month. I might be able to tell you a link for anything. God knows I have about 200 bookmarks at home now.

by apotheon

Last night/today, between all the other things I've been doing (including my b'day party last night and going drinking with five women at a bar in Ybor tonight), I came into possession of a new/old laptop (Thinkpad 600E) and wireless PCMCIA NIC (Motorola WN825G), on which I got ndiswrapper and drivers installed. The upshot is this: everything works, except that when testing at a friend's apartment where there's a wireless router, it wouldn't find a network. I'll try again here, now that I'm home, and if it doesn't find my wireless network here I'll try my next idea.

The next idea is to copy all the driver files for the NIC to a temp directory on the hard drive, start the laptop with a Knoppix 3.8 LiveCD, and get wireless working with that. Once I've got that running, I'll copy the driver configuration to the hard drive, then restart the laptop without the CD and see if that fixes the matter.

I'll report back when I know how well all this worked for me.

by jck

the version of ndiswrapper. I think the really early versions didn't have encryption capability. I think 0.7 got WEP. And, ndiswrapper's own site says you need 0.9 or better of their software to work with your wireless PCMCIA card and the driver from Motorola's site.

Plus, that card might not have the encryption your buddies router has. I know my 11b cards didn't have WPA-PSK. So, I had to use WEP-128.

Here's an forum entry based on a Slackware install:
http://www.linuxquestions.org/questions/archive/41/2005/02/4/248215

Here's one talking about using Mepis 3.3:
http://www.linuxquestions.org/hcl/showproduct.php?product=1593

some of that info might help. I noticed some said that bcmwl5.inf was enough, and some said they had to get the bcmwl5a.inf.

Also, some guys said that in the install it would automatically set the radiostate in the .conf file wrong. If other things don't fix it, you might have to see if you need to fix it by changing the .conf file in the /etc/ndiswrapper/bcmwl5/ directory by modifying the radiostate from 1 to 0.

that's all the pointers I could give you.

hope that helped some

by apotheon

I'm kind of at a brick wall, at the moment. I've got ndiswrapper and drivers installed, and I've got networks detected with iwlist wlan0 scan, but ifup wlan0 fails to show responses for DHCP requests. It's a mite confusing.

by jesse johnston

Although I have no suggestions to solve the problem you're currently in, if you're looking for a different operating system to experiment with, I recommend SuSE Linux. Novell purchased it not too long ago and since then it's been becoming very powerful, and driver coverage is excellent.

by jck

I've got Mandrake 10.1 working fine.

Most of my issues have been with driver compatibility, plus my not knowing a lot about the applications contained within the Linux environment for deploying and retrieving files and programs.

At this point, everything is working fine.

by jck

so, don't think I'm treating you like you're stupid, cause I know good and well you're better with Linux than me by far:

1) what version of the ndiswrapper product?
2) what driver did you get for the card?
3) what steps did you do in the install?

I will help you as much as I can...could be little stuff like that radiostate thing...could be a driver version compatibility thing...it migth be an older driver works better, or is too old and doesn't have the right encryption.

let me know

by apotheon

The ndiswrapper version is 0.12, for the drivers I've tried both bcmwl5 and bcmwl5a (the latter is currently installed), and I do have the radiostate set properly currently (in the other setting, the little lights on the card don't even turn on). I'm detecting access points, but I'm not getting DHCP resolution. Both driver versions I've used (and the only versions available, apparently) are encryption-capable beyond the WEP encryption types I need.

. . . and no need to worry about me feeling insulted. I'd take advice from a chimp if it worked: I'll certainly take it from someone with the perspicacity and determination to pursue a steep learning curve with Linux rather than going the easy route automatically with something like Lycoris.

by jck

I think ndiswrapper didn't institute stuff like WEP til 0.7. If ndiswrapper doesn't support it, that could be your issue. I saw the same problem at one point.

I was using 0.9, I think with my 11b card.

Check this page out on sourceforge. It might help. I will look for the link when I get home that tells what latest version is compatible with WEP and what not.

http://ndiswrapper.sourceforge.net/phpwiki/index.php/Distributions

But I'd say for sure, use something newer than 0.12...I think 1.1 is the last released "stable" version from sourceforge and it will have WEP built in (it worked with my 11b card). I think it also supports WPA now as well.

If you need the newest version, go here:

http://sourceforge.net/projects/ndiswrapper

they have the 1.1 release, and the pre-release version as well. And their card list said yours should be supported.

by apotheon

0.12 is newer than 0.9. I've been annoyed for some time with the fact that they use the format of decimal fractions to indicate version numbering, but don't follow its rules for determining the order in which numbers apply. For instance, 0.12 is not zero point one two, it's zero point twelve, and twelve comes after nine.

0.12 is about the point when ndiswrapper started fully supporting the 2.6 kernels, I think. The laptop in question is running kernel 2.6.8, so that's probably a good thing. Heh. 0.12, by the way, is the current Debian Sarge/Testing standard ndiswrapper version.

In fact, I think 0.12 is also known as 1.0rc2.

by jck

I was just going by the versions they have for download in the sourceforge site. It's numbered as "ndiswrapper-1.1".

hm...so:

- ifconfig shows your wlan0
- iwconfig shows that you're ethernet and all

if you do a modprobe ndiswrapper, it reports that it's loaded and doesn't tell you it's invalid or anything?

and you've done the iwconfig up thing to bring it up, probably.

you've got the encryption key in for the wireless net you're trying to access? (assuming it is encrypted)

just to make sure...what version are you using again of Linux?

by apotheon

I have indeed done all of that. The encryption key has been entered, I have the radio device active, iwconfig is detecting access points, modprobe loads the ndiswrapper module without errors, the ndiswrapper version is newer than 0.9, and so on.

I'm using Debian Sarge/Testing with kernel 2.6.8 on this machine.

ifconfig is showing an IPv6 address, but no IPv4 address for the machine. It's detecting the MAC address just fine.

iwconfig doesn't drop the ESSID, it shows the MAC address of the access point, and power management is turned off so the thing won't shut down without telling me to conserve battery power (since it's plugged into the wall anyway, that's hardly an issue).

Both the iwconfig settings and the access point are using channel 11 (2.462GHz).

by jck

I had issues with the new 11g card, but it had a linux driver so I'm not too worried with ndiswrapper now.

um...check this URL out...the guy step by steps the ndiswrapper install with 0.12.

To help ya anymore, I'd have to be sitting at home looking at my lspci and lsmod to see what's loaded and what my machine detects.

I pretty much assume you know off-hand what's supposed to be loaded, and I knew you'd know what tools to use.

heck...I should have just met up with you somewhere on US19 yesterday and looked at it.

Of course, it probably is just an issue with the driver or something or something new in 0.12 that made it incompatible all of the sudden.

About all I could mention is to maybe step through the sourceforge site for ndiswrapper install. That's what I had to do with my 11b card because there was some step I had to do that other sites didn't show.

If:

lspci shows your device (I think that's where the PCM card will show too?)
lsmod shows ndiswrapper loaded
ifconfig shows it exists
ndiswrapper -l shows you have the Windows driver loaded successfully

then I'm not sure...I'll keep lookin for stuff for you

by jck

here's what one article I found said:
--------------------------------------
Install the following packages (with apt-get)

module-assistant
ndiswrapper-source
ndiswrapper-utils
wpasupplicant

# module-assistant auto-install ndiswrapper
# ndiswrapper -i bcmwl5.inf (copied, together with .sys file from SWSETUP directory of windows partition)

Created the following file as /etc/network/wpa_supplicant.conf:

ctrl_interface=/var/run/wpa_supplicant # for wpa_cli support
network={
ssid="MY-SSID"
psk="MY-PASSPHRASE"
key_mgmt=WPA-PSK
proto=WPA
}

Added the following to /etc/network/interfaces :

auto wlan0
iface wlan0 inet dhcp
wireless-essid MY-SSID
pre-up modprobe ndiswrapper
pre-up wpa_supplicant -wB -i wlan0 -c /etc/network/wpa_supplicant.conf -D ndiswrapper
pre-up sleep 3
down killall wpa_supplicant

The sleep is unfortunate but seems to be needed to give wpa_supplicant time to start correctly.
After which you can do "ifup wlan0" and all should work.
-----------------------

Let me know if that helps any

by apotheon

If you're anywhere near 19 today, you might want to attend the St. Pete SLUG (Suncoast LUG) meeting. It's taking place at a Panera Bread on 4th Street in St. Pete. If I recall correctly, it's near 38th Ave.

Some details on the meeting location and time (seven to nine in the evening, I think) are available at the suncoastlug.org website. I'm planning to attend, but whether or not that happens depends on how my day goes between now and then.

by jck

US 19 goes right behind my house (about 300 yards away, but behind.)

However, I'm about 40-50 mi north of that site. If I got off work and headed down there, I'd get there around 7:30pm...and I'd have to leave an hour later to get home by 10pm.

I'll have to wait for a later meeting somewhere closer or when I have time to make it. I'm in the middle of trying to get my parents to decide what hotel they're staying at for my niece's wedding...which is like trying to move a stick in a tank of motor oil outside in the antarctic winter.

by apotheon

The only LUG meetings I attend around here are the St. Pete and Tampa meetings, which means that the other option for meetings I attend is even farther from you, unfortunately. C'est la vie.

I actually live in New Port Richey, which is a pretty good distance from both those meeting locations, but I haven't had any luck with the smaller meetings closer to where I live, and pretty much everyone I know 'round here is in St. Pete or Tampa anyway (discounting relatives).

Right now, I'm in a Panera Bread at US-19 and Gulf To Bay. It turns out that the reason I wasn't getting connected all weekend at home is that the router has had MAC exclusion turned on and I didn't realize/remember that fact. Such aggravation, and all for nothing. I'll have to add the MAC address for this wireless adapter to the list of allowed NICs on the router at home when next I'm there.

Oy. I feel kinda dumb. No wonder I couldn't figure out what was wrong with my wireless setup: there wasn't anything wrong with it.

by jck

cause I had to set my router with those as well to lock it down.

hope it gets to working 100 percent.

I'll be messing with Win4Lin this weekend to see if I can get Windows games working on Linux. That way, I Can really start toward a total Linux migration. Supposedly, it supports DirectX translation.

As for the trip to St. Pete or Tampa, I could probably make it if it was on a day off or a weekend and would love to come to a LUG meeting.

Keep me up on them and I'll see when I can make one and we can finally sit back and chat in person.

by apotheon

SLUG has meetings in St. Pete on the last Monday of every month and in Tampa on the second Tuesday of every month. I've been attending those lately. There are good people at these meetings.

The Tampa area Perl Mongers group has pretty much died off, but one of the SLUGgers is looking to resurrect it. If he succeeds, it looks like meetings will probably occur somewhere along US-19, and if I had to make a wild guess about where exactly I'd say probably in Clearwater. If Perl interests you at all, that might become an option for you.

by jck

With evening traffic, it would take me 2 hours to get from up here to down there. I live 30 mins north of where you are, and I work 20 mins east of where I live. So, getting there in the evening after work would mean a really abbreviated trip to the LUG to get back home at a decent hour.

Hopefully there will be a holiday on a Monday that I could attend. I know that Memorial Day is on Monday, May 30th. If there is going to be a meeting that day, I'd be glad to come. But, it seems like usually no one seems to like to get together on holidays but me. Of course, everyone else has families to deal with as well.

by jck

Yeah, I'm in Hernando County. Stuff out here is starting to look like central Pasco now. Plans for building more than 2000 new homes in here just came in. booming like mad.

If my house doubles in value, I'm sellin it and cashing out and building in the woods where it's quiet. I don't think the housing boom is gonna last much longer than another 5 years down here. Too many baby boomers lost their butt in 2000-2001 in the market, and as the prices climb here the separation in value between here and the NE USA diminishes.

Boomers are gonna start lookin places like KY and TN and stuff to build probably. Where you can still get an acre for $10,000.

by alangeek

(People are gonna think I'm a Knoppix junkie!) Try the Knoppix live CD, recognizes most hardware right away. Found my Netgear wireless USB adapter on my laptop and worked with no problem, as I recall. Has KDE, Open Office, Mozilla, Konqueror, lotsa games, debugging tools, reads/writes NTFS, FAT, you name it. Can be installed on a drive, but I like running from CD as it can't get trashed with viruses or spyware. Just a little slower from CD.

You can also get the O'Reilly Knoppix Hacks book (includes Knoppix CD) to learn how to use some of the more advanced utilities available - how to recover crashed Windoze boxes, set up emergency print/file servers, routers, firewalls, etc. It's all in there!

by apotheon

In general, you're right: Knoppix is very good at recognizing hardware. I recently tried to boot this laptop (a Thinkpad 600E, circa 1999) with Knoppix 3.8, and it suffered a kernel panic early in the boot process. It boots just fine on other machines, so it's not the CD.

This machine did a smooth-as-silk vanilla Debian install with zero problems (minimal install with apt-get to add desired software, debian-installer rc3 netinstall), so I know it's not anything to do with the underlying Debian structure of Knoppix. It just didn't handle the hardware. I was kinda surprised at that.

This discussion is closed to new replies.