Quantcast

Don't have an account? Register Now! Forgot password?

Maximum IT
Features

Linux Troubleshooting Guide: Fix the Most Common Problems

comment Commentsprint Printemail EmailDeliciousDiggStumbleUponRedditFacebookSlashdot

Get Wireless Working on Linux

If you're lucky, your wireless device will work out of the box on Linux. Some devices from certain manufacturers (like Atheros) are very Linux-friendly. Unfortunately, some of these components are used in products under different brand names, so it can be difficult to know what parts any given device has in it without doing extensive research. Even if your wireless device is not one of the most Linux-friendly out there, it may be possible to get it working.

Some devices require additional firmware to work. The firmware is what makes the wireless device work at all; without it, a device is little more than a series of interconnected parts with no real guidelines that allow it to function. In the old days, firmware was usually built into a device; these days, it is more common to see software-driven firmware. One of the most notable examples of this is Broadcom, which at the time of this writing has made no real efforts to accommodate Linux users and does not seem to be interested in doing so. Broadcom devices are common in many notebook models from a variety of manufacturers. Fortunately, the B43 Project has reverse-engineered a method to extract the necessary firmware as “binary blobs” from the Windows drivers and then use this firmware to activate the wireless device in Linux.

 

Once the firmware is in place, the device is able to interact with any operating system that has the right drivers. The Linux kernel has built-in support for Broadcom, but this is useless without the firmware. Ubuntu features restricted drivers that contain the necessary firmware while other distro users are able to obtain the firmware themselves with the “firmware-cutter” tool. Firmware should always be placed in /lib/firmware. A reboot is often required to activate it. If you have a Broadcom card, you should try this method first.

Sometimes, the only real option is to run the Windows driver under Linux with a tool called NDISwrapper. This is essentially a kludge that implements some parts of the Windows environment just enough for Windows wireless drivers to function. It is possible to work with NDISwrapper through the command line interface or through a GTK-based frontend. Some distros that provide centralized control centers have built-in tools to use NDISwrapper. (For Ubuntu, install the “ndisgtk” package.) In any case, NDISwrapper will need the .inf file along with the actual driver for any device you want to enable. Keep in mind that NDISwrapper requires drivers that match the architecture of the host system; if the Linux host system is 64 bit, the Windows drivers you use must also be 64-bit.

Troubleshooting through Deductive Reasoning

The ability to solve a problem through deductive reasoning is a valuable skill since it can be applied to any operating system (not just Linux) in virtually any situation, provided that enough information is available to figure out the problem. This part of our guide uses the standard scientific method to diagnose and repair computer problems: formation of a hypothesis, experimentation, and observation of the end result. Our goal with this technique is to help you learn how to think both creatively and logically when it comes to solving problems, since not every problem out there has a step-by-step procedure to help you solve it.

Before you Start

There are several qualifications that you must have before being able to troubleshoot effectively, which is why we recommend this technique for more advanced users. Unless you meet these prerequisites to some extent, you are probably not going to get very far in your efforts.

First, you must have the patience and willingness to fix the problem. Although your time is better spent doing other things, it is beneficial to learn how to fix your own problems since it makes you more self-sufficient in addition to saving money. Furthermore, you can't always assume that someone will be there to help you with your computer problems in an emergency.

Next, you should have a fairly good understanding of your computer's software and hardware. Although you don't have to understand everything there is to know about how it all fits together, you should at least be able to identify hardware like graphics cards, RAM, hard drives, etc. and be familiar with the inner workings of your operating system. For Linux, you should know your way around the directory structure and the terminal in addition to the most important configuration/log files. For Windows, you should know the directory structure and have a nominal to deep understanding of device drivers and the registry.

Last, you should be willing to experiment. Many new users are afraid to enter unfamiliar territory because they think they will only end up making the situation worse. It is important that you get over that fear if you have it; any problems you are experiencing will only persist or get worse if you ignore them. If something is already broken, your repair efforts are not likely to make it worse than it already is if the proper measures (like recording any changes you make) are taken.

COMMENTS
avatarLinux article sighting

MaximumPC:  thanks for the Linux exposure guys, keep it up.

th3madscientist:  the nice people at MaximumPC have to find ways to continually deliver computer related content, this article is one of them; unless they are holding out on us, I have yet to read a letter to them from a reader stating their articles broke their PC.  Worry about your own rig and let Linux users play with their system as they choose.

maxFan:  good job, you suceeded in coming across as a punk; if you really care to correct someone learn some diplomacy.

whiplash55:  that's like saying "best fix for dealing with people like whiplash55, get rid of them."  why would you think anyone reading this article would care that you don't understand Linux.

Login or register to post comments
avatarLinux articles

Thanks for the continuing Linux articles and never mind the naysayers. I'm just a hack, but I enjoy experimenting and dual booting my Vista (soon-to-be W7)/Ubuntu Dell laptop, and my aging desktop's XP has been replaced by Fedora. Almost everything on my PC's is open source and/or freeware, in large part due to MPC.

Keep up the good work!

Login or register to post comments
avatarlast step

Best fix for Linux

Install Windows 7 enjoy and decent OS with real games and apps.

Login or register to post comments
avatarPointless

Your going to shoot yourself in the foot following this advice. Your basically saying a non-savy computer user can follow your advice and fix his own computer by using your troubleshooting methods. Wrong, to troubleshoot effectively there is one thing needed and that is experience. With experience all this comes as second nature. You can document all you want, but as soon as someone who doesnt know what they are doing makes a mistake editting the registry and now cannot get into their OS, he has just made the problem worse. Although i do agree with experimentation but you need more knowledge then just hardware, you need to know the ramifications of your actions to experiment effectively not just "oh this did not work, but what do I do now since I can't get back into my OS."

This is like saying oh you can fix your own car if you follow these steps but how to take apart your car and put it back together is none of my concern and if something happens that is out of the ordinary then nothing will help you but someone who is experienced....i want my 2 minutes back.

Login or register to post comments
avatarI just reinstall.... (yes i know, its the geek squad way :)

I know it seems horible but it just makes it easier, and since I dont have a dedicated linux rig I dont want to risk screwing up anything else :( 

Login or register to post comments
avatarGeek Squad

Its linux, they just say your computer isn't working and be nice enough to help you get a new one.

Login or register to post comments
avatarWrong type of reasoning

Sir Arthur Conan Doyle's Sherlock Holmes really confused readers, but crime solving and the scientific method use inductive reasoning, not deductive reasoning.

Login or register to post comments
avatarYour premise is in error. Sorry!

Sigh.  Ok One more time for those of you who STILL dont get it.  The Scientific Method is neither straight Deductive reasoning Nor is it Inductive reasoning.  It is a synergy of both and has elements that are unique to it and belong to no other social endeavour.  

From Wikipedia:

Deductive reasoning, sometimes called deductive logic, is reasoning which constructs or evaluates deductive arguments. In logic, an argument is said to be deductive when the truth of the conclusion is purported to follow necessarily or be a logical consequence of the premises and (consequently) its corresponding conditional is a necessary truth. Deductive arguments are said to be valid or invalid, never true or false. A deductive argument is valid if and only if the truth of the conclusion actually does follow necessarily (or is indeed a logical consequence of) the premises and (consequently) its corresponding conditional is a necessary truth. If a deductive argument is not valid then it is invalid. A valid deductive argument with true premises is said to be sound; a deductive argument which is invalid or has one or more false premises or both is said to be not sound (unsound).

An example of a deductive argument and hence of deductive reasoning:

All men are mortal
Socrates is a man
(Therefore,) Socrates is mortal

And again from Wikipedia:

Induction or inductive reasoning, sometimes called inductive logic, is reasoning which takes us "beyond the confines of our current evidence or knowledge to conclusions about the unknown."[1] The premises of an inductive argument indicate some degree of support (inductive probability) for the conclusion but do not entail it; i.e. they do not ensure its truth. Induction is used to ascribe properties or relations to types based on an observation instance (i.e., on a number of observations or experiences); or to formulate laws based on limited observations of recurring phenomenal patterns. Induction is employed, for example, in using specific propositions such as:

This ice is cold. (or: All ice I have ever touched was cold.)
This billiard ball moves when struck with a cue. (or: Of one hundred billiard balls struck with a cue, all of them moved.)

...to infer general propositions such as:

All ice is cold.
All billiard balls move when struck with a cue.

Another example would be:

3+5=8 and eight is an even number. Therefore, an odd number added to another odd number will result in an even number.

The Scientific Method uses elements of both and is a synergy between the two rather than just one or the other.

Again from Wikipedia:

 

Four essential elements[17][18][19] of a scientific method[20] are iterations,[21][22] recursions,[23] interleavings, and orderings of the following:

Sir Aurthur Conan Doyle's Great Detective used Deductive Logic in nearly (I say nearly although I rather suspect that it was indeed all; however, it has been quite some time since I have read all of his stories so for the nonce I shall equivocate) ALL of his stories.  If you understood Doyle's Science background and his upbringing especially in reference to a aprticular Don of Chemistry he had during his formal education one Professor Bell, who became a template of the Great Detective, you would realize that Holmes used almost pure deduction which as we have seen from wiki starts with a premise that is supposed to be true and then falsifies each argument in turn until there are no more arguments left save one.  That one argument of course when left and assuming that the premise itself is true must also be true by the Identity principle: A union B must be equal to  B union A.  All things equal to each other must be equal to themselves.

Holmes actually makes reference to this in the story The Blanched Soldier:  "When you have eliminated all which is possible, then whatever remains, however improbable, must be the truth."  This is the essence of deductive reaasoning or logic.  Assuming that the premise is true this particular method works 100% of the time provided that A the premise one starts with IS indeed true and B that you have investigated and eliminated ALL that is impossible for a given premise to be true and C that you have been honest with your self about both the premise and your observations. Indeed Holmes propounded on the latter quite vehemently in several stories where he is involved.  Case in point "A Scandal In Bohemia":  It is a capital mistake to theorize before one has data. Insensibly one begins to twist facts to suit theories, instead of theories to suit facts.

Before you equate one argument to another or decide that one methodology must use a particular type of logic or reasoning.  Please make sure you understand the actual definition of both the Methodology AND the logic or reasoning.

 

 

 

Login or register to post comments
avatarA spell checked version of

A spell checked version of your nifty user name would of been nice.

Otherwise, great name.  

Ah, lol, I kid.  I actually agree, a nice 1680x1050 res img would be cool for a wallpaper on my desktop!

Login or register to post comments
avatarA higher res picture of that

A higher res picture of that nifty flowchart would be nice.

 Otherwise, great article. Will probably be very useful to me in the near future.

Login or register to post comments

This Month's Issue
FEATURE How to Get FREE Programs, Services, Software & MoreFEATURE Digital Photo Printer RoundupHOW TOBuild a 3D CameraFEATUREDIY Arcade PCWHITE PAPERHow TRIM Works