PDA

View Full Version : I am the biggest newbi to linux and i need help!


Andreal
2005-10-13, 08:46 PM CDT
Ok so here's the deal. I am a long time windows user, but I want to learn linux as I believe it to be much more powerful. I managed to get Fedora Core 4 installed but after that I have NO IDEA what I am doing. I want to learn throgh the internet, the only problem is I cant get my wireless network up.

I have a ASUS WL-138G Wireless Adapter Card. I have heard that this card can work with ndiswrapper, but I think I may have heard someone mention somewhere that there is need to edit some other file too???

I managed to find a guide on installing ndiswrapper and did so successfully, however when I clicked activate I got an error message saying that it couldn't activate it.

Sorry im such a newb, but everyone has to start somewhere right...

Look forward to any replies, really wanna get this up and running.

pacifico
2005-10-13, 08:54 PM CDT
Can you post the error message? I've used linux a long time (8 years) and altough I don't have the same hardware, I might be able to help you with some more specific information.

Often a good strategy is to google on the error message and you'll find some one else's answers. I realize it's a pain when your machine doesn't have internet access because you can't paste it.

-al

Andreal
2005-10-13, 09:21 PM CDT
The error message:

"Cannot activate network device wlan0"
"ndiswrapper device wlan0 does not seem to be present, delaying initialisation."

dunno if this will help, but when I double click on the device in the 'Hardware' tab (I think thats the tab anyway) the info shows the IRQ as unkown and all the other fields (MEM, IO, IO1, IO2, DMA0, DMA1) as blank. Are they ment to be like that or could that be the problem? Thanx for help so far!

imdeemvp
2005-10-13, 09:26 PM CDT
Insert card, open terminal, and run this command: /sbin/lspci it will list the chipset of card. Use copy and paste to post info....

Andreal
2005-10-14, 05:42 PM CDT
[root@localhost ~]# /sbin/lspci
00:00.0 Memory controller: nVidia Corporation CK804 Memory Controller (rev a3)
00:01.0 ISA bridge: nVidia Corporation: Unknown device 0050 (rev a3)
00:01.1 SMBus: nVidia Corporation CK804 SMBus (rev a2)
00:02.0 USB Controller: nVidia Corporation CK804 USB Controller (rev a2)
00:02.1 USB Controller: nVidia Corporation CK804 USB Controller (rev a3)
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio Controller (rev a2)
00:06.0 IDE interface: nVidia Corporation CK804 IDE (rev a2)
00:07.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev a3)
00:08.0 IDE interface: nVidia Corporation CK804 Serial ATA Controller (rev a3)00:09.0 PCI bridge: nVidia Corporation CK804 PCI Bridge (rev a2)
00:0a.0 Bridge: nVidia Corporation CK804 Ethernet Controller (rev a3)
00:0b.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0c.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0d.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:0e.0 PCI bridge: nVidia Corporation CK804 PCIE Bridge (rev a3)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:07.0 Ethernet controller: Marvell Technology Group Ltd. Marvell W8300 802.11 Adapter (rev 07)
01:08.0 RAID bus controller: Silicon Image, Inc. SiI 3114 [SATALink/SATARaid] Serial ATA Controller (rev 02)
01:09.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80)
05:00.0 VGA compatible controller: nVidia Corporation NV40 [GeForce 6800 Ultra/GeForce 6800 GT] (rev a2)

Andreal
2005-10-14, 06:04 PM CDT
Thought this might help too...

http://www.pix8.net/pro/pic/194274VgAE/670908.jpg

Andreal
2005-10-15, 04:32 AM CDT
Does no one know what I can do??? Please, I would really like to get into learning linux, but I need the internet.

pacifico
2005-10-15, 04:57 PM CDT
Andreal-

I do not have your hardware, but I looked a little for you. I have never dealt with ndiswrapper, but my understanding is that it wraps a Windows wireless card driver so that the driver can be used under linux (because the wireless chip manufacturer did not make details of the chip available for a linux driver to be written).

Did you install the Windows driver? There are very detailed instructions at http://ndiswrapper.sourceforge.net/mediawiki/index.php/Installation and mentions of installing to Fedora 4 at http://ndiswrapper.sourceforge.net/mediawiki/index.php/Fedora.

I would like to help you further, but it will be a slow process since I do not visit this site more than a couple of times daily.
-al

Andreal
2005-10-15, 05:00 PM CDT
Yes I did install the windows drivers, I used the win xp ones, do you think it would have been better to use a different version of windows??? I will go look at the address you gave me anyway and maybe try reinstalling them or something. Thanx!

pacifico
2005-10-15, 05:08 PM CDT
The instructions say it's important not to use the ones from the Windows CD. It looks like you look up the PCI ID of the interface using lspci -n and find the driver on the wiki page. Is that what you did?
-al

Andreal
2005-10-15, 05:30 PM CDT
Oh no i didnt do that, I downloaded the drivers from the ASUS website, I will try this way now, thanx so much! Hope it works

Andreal
2005-10-16, 01:51 AM CDT
Oh kay, I think the problem is that I have 64 bit FC4 and the windows driver is not 64 bit. Does that make sence? Also does that mean that if I want the internet im gonna have to download the 32 bit uninstall my current version and reinstall the 32 bit??? coz that would really suc...

pacifico
2005-10-16, 06:50 PM CDT
I think you're outta luck on that one, but I'm not sure because I'm not very familiar with how the 64 bit microprocessors decide whether they run in 32-bit or 64-bit mode.

See questions 11 and 12 of http://ndiswrapper.sourceforge.net/wiki/FAQ

Be sure there is not a 64-bit driver available for your card (search the sourceForge site based on the PCI ID as suggested above) before giving up.

If you're not sure, you could ask on the ndiswrapper mail forum, but be sure and read http://www.catb.org/~esr/faqs/smart-questions.html before you post.

You might want to consider installing a wireless card for which there is a 64-bit linux driver instead, but you should investigate the 64 bit issue carefully before purchasing one. Many drivers are part of the kernel. For example, my laptop has a Cisco Aironet mini-PCI card in it and the driver's binary is in a module called airo.ko. Executing (even on my desktop, which has no wireless):
rpm -ql kernel | grep airo
lists all files in the kernel rpm that contain the character sequence airo. Note that if you have updated your system since install, several kernels' rpm's files will be listed, and you will have to distinguish them based on the kernel name in the listing. In general, the wireless drivers live in the directory /lib/modules/<kernel name>/kernel/drivers/net/wireless. I don't know of an easy way to figure out which drivers go with which cards from the binary filename. Google and the kernel source would help you with those if you need to go that route.

I assume that the 64 bit kernels contain all the same drivers, but again, I don't know that that is the case. Once you find a card, see if the kernel contains the driver (kernel modules' filenames end with .ko).

You have touched on some of linux's weaknesses in your journey...
1) hardware support is not as good as with windows, primarily because windows is the dominant OS in the consumer market.
2) set-up can be a pain.
When I buy hardware, I never buy the latest and greatest because it's rarely worth the extra bucks and support issues are much more common. Stuff that was leading edge 2 years back is what I seek out.
On the other hand, compared to Microsoft, once stuff works, it generally stays working and it does rapidly improve. Also the web support offered is often quite good. There's nothing I dislike more than calling a tech support person somewhere and learning I know more than he/she does. Helping you out with this wasn't too hard using Google...
-al

Andreal
2005-10-16, 09:31 PM CDT
Hi there pacifio! Thanx for all your help. I installed the 32-bit FC4 and got 1 step further to the internet in that it recognised the driver!!! I continued to follow the instructions you showed me at http://ndiswrapper.sourceforge.net/...hp/Installation and got all the way to the part when it says Now, setup the network parameters for the interface wlan0. This varies from distribution to distribution. Refer to your distribution's documents on how to do this. Once this is done, you can use network tools to bring up the network e.g.,
ifconfig wlan0 up
dhclient wlan0
dhcpcd wlan0

Those ^^ were the eg's listed under the first sentence

Because I downloaded this I have no paper documentation and I couldn't find anything about this in the 'Help' section of FC4, would you be able to fill in the missing commands I would need to use under FC4 to get to the final steps? I think I am very close to having this up and running!

pacifico
2005-10-16, 11:27 PM CDT
Andreal-
I find that a bit confusing. I think they're making a distinction between linux and freeBSD, which handle ifconfig differently.

First, I would try to configure wlan0 using the GUI tool under the Applications->System Settings pulldown menu in Gnome. Change the parameters and stop/start or restart the interface.

See about eight or ten paragraphs down for testing the interface. If your routing table is fine, you may be able to just start a web browser and see if you can browse.

If the GUI tool doesn't do it, here's what I would try:

See http://ndiswrapper.sourceforge.net/mediawiki/index.php/Fedora

Just over half-way down that page is a section that starts:
Then created /etc/sysconfig/network-scripts/ifcfg-wlan0 and added

It lists a bunch of parameters...look at them and decide what they should be for your network.

Before you alter your boot scripts to do this (as described at the URL above), try:
/sbin/ifconfig wlan0 <parameters> to set them.
That way, you can try different settings without rebooting every time.

To decide what parameters should be, open a terminal and execute:
man ifconfig
at a command prompt. You will get a unix man page, which you can scroll down in by pressing return (for one line) or by pressing the spacebar (for a page) and up in by pressing 'u' (for a page) and back up to the top in by pressin 'p'. Pressing 'q' will return you to the command line. Just about every command on your machine will have some help information available using either 'man' or 'info'.

Your command will look something like:
/sbin/ifconfig wlan0 netmask 255.255.255.0 broadcast 192.168.123.255 192.168.3.3
.......................................^.......... ................................^................. ...............^...............................
.......................................l.......... .................................l................ .................l................................
............................subnet mask................... all bits of host set............ip address of this interface

These values depend on the private address space within which your network runs and the settings of your wireless access point will influence your choices here. You have to get the broadcast and netmask addresses right, or it won't work. I used an O'Reilly book called Linux Network Administrators Guide when I first set mine up. I don't know how much networking expertise you have; if you're not sure, leave the settings on your wireless access point and whether you're subnetting your network here. I will check sometime tomorrow and help you choose the right netmask and broadcast. Hopefully you know all this stuff., but Windows makes it really simple (as I remember, it's been a while...). The example above is given from one of my machines. Also, I only use static IP addressing, and I imagine this might need to be different if you use DHCP (in which a Dynamic Host Configuration Protocol server tells the interface what IP address to use).

Executing:
/sbin/ifconfig
with no parameters will show you the current settings and statistics for several interfaces. Just pay attention to wlan0. Output will look something like (for an ethernet port eth1 on my laptop):
eth1 Link encap:Ethernet HWaddr <blah-blah>
inet addr:192.168.123.3 Bcast:192.168.123.255 Mask:255.255.255.0
inet6 addr: fe80::20d:60ff:fe2d:333c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1327 errors:0 dropped:0 overruns:0 frame:0
TX packets:566 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:617732 (603.2 KiB) TX bytes:70272 (68.6 KiB)
Base address:0x8400 Memory:c0220000-c0240000

To test the interface, you need the ip address of another host. Try:
ping -I wlan0 -c 12 google.com
That will send twelve ICMP packets to google which should answer back with twelve packets. If that doesn't work, use the address of another host on your lan if there is one. Microsoft machines by default don't answer ICMP echo requests, and you have to set some setting in the Control Panel to get them to do so. If it still doesn't work, there could be a routing issue. In that case, post back with the output of
netstat -r
so I can see your routing table.

Once you get it working, then you can edit the boot parameters (/etc/sysconfig/network-scripts/ifcfg-wlan0) so that it will be correctly set on every boot.

I also want to be sure you are not always logging in as root. I have completely screwed two or three linux boxes as root. It's okay at this stage where you don't have a lot of valuable stuff on your newly installed machine, but later on, you are going to want to be logging in as your own user id and then using
su -
to switch to root and using
exit
to change back as soon as you're done making configuration changes. I also disable root logins entirely, both over the net and at the console, for security reasons. My network is constantly barraged with people across oceans trying to break in, and if root can log in, all they have to do is guess root's password.

You're doing really well for "the biggest newbi'... surely a lot better than I did!
-al

Andreal
2005-10-16, 11:38 PM CDT
Thanx pacifico, I will go try what you said, and yeah windows did make this easier :P but I run static IPs on windows...so maybe I can manage, thanx again!

Andreal
2005-10-17, 02:08 AM CDT
WoooooooooooHooooooooooooo!!!!!!!!!!!!!!!!

Im posting off linux!!! BIG BIG Thanx to pacifico, without you I would have never got this running, I own you one and I hope that one day I can help you out however unlikely that may be :)

Oh and I found out that the reason that I couldnt configure through the GUI tool is because linux doesnt recognise wlan it only recognised eth. But a quick 'ndiswrapper -m' fixed that problem and then it was no trouble to configure the settings.

Thanx again!