Linux.com

Home Linux Community Forums Hardware Drivers Mounting USB wireless adapter and hard drive

Mounting USB wireless adapter and hard drive

Link to this post 17 May 10

I did get the p54usb in the modules file with the text editor, could not do it with the gedit command.
Rebooted and I get the same results.

Link to this post 17 May 10

If you use su - instead of sudo, I think a working command would have been:

DISPLAY=":0.0" gedit /etc/modules

But the point of the gedit command was just to launch a text editor as root (you could well have used nano, vim, etc instead). As long as you managed to write p54usb in the modules file, the job is done :)

Now, the new output of iwconfig clearly shows that this was the correct driver to load, and that it is working. Compared to the earlier output, notice the entry called wlan0 - that is the name that Linux now has assigned to your wireless adapter.

Did you try using the panel applet to connect to your wireless router? If it didn't work, did you get any errors? If the panel applet doesn't do anything, do you get any output from the following command:

iwlist scan

Link to this post 17 May 10

The applet seems to work per this images. But it will not turn the light on or even try to connect. If I unplug it, it goes away and when I plug it back in it comes back with my router settings but never tries to connect.


debian:~# iwlist scan
lo Interface doesn't support scanning.
eth0 Interface doesn't support scanning.
wmaster0 Interface doesn't support scanning.
wlan0 Interface doesn't support scanning : Network is down

Jim

PS BTW :laugh:
Do Not know how to put myself in the sudoers file... I reported my incident to myself... :laugh:

jim@debian:~$ sudo gedit /etc/modules
sudo: unable to resolve host debian

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for jim:
jim is not in the sudoers file. This incident will be reported.
jim@debian:~$
[file name=Screenshot_wlan0_Properties.png size=43442]http://www.linux.com/media/kunena/attachments/legacy/files/Screenshot_wlan0_Properties.png[/file]

Link to this post 17 May 10

grammjr wrote:

debian:~# iwlist scan
wlan0 Interface doesn't support scanning : Network is down
Try this command as root:
ifconfig wlan0 up
Did that help? Does iwlist scan give some output now? If not, any errors?

By the way, the configuration utility you took a screenshot of was not really the applet I was talking about earlier... You might want to install a program called NetworkManager. Since I believe you used Debian with Gnome, take a quick look here:
http://wiki.debian.org/WiFi/HowToUse#GNOME

Do Not know how to put myself in the sudoers file... I reported my incident to myself... :laugh:
If you want to give sudo permissions, you should first run this command as root:
DISPLAY=":0.0" EDITOR="gedit" visudo
That should bring up a text editor, displaying the sudo configuration file. To give a user called grammjr permission to run all commands as root, add a line like this to the file and save it:
grammjr	ALL=(ALL) ALL

Link to this post 17 May 10

Try this command as root:
Code:
ifconfig wlan0 up
Did that help? Does iwlist scan give some output now? If not, any errors?

debian:~# ifconfig wlan0 up
SIOCSIFFLAGS: No such file or directory
debian:~# iwlist
Usage: iwlist [interface] scanning [essid NNN] [last]
[interface] frequency
[interface] channel
[interface] bitrate
[interface] rate
[interface] encryption
[interface] keys
[interface] power
[interface] txpower
[interface] retry
[interface] ap
[interface] accesspoints
[interface] peers
[interface] event
[interface] auth
[interface] wpakeys
[interface] genie
[interface] modulation
debian:~#

By the way, the configuration utility you took a screenshot of was not really the applet I was talking about earlier... You might want to install a program called NetworkManager.

This is installed, but does not show any networks.

Sorry I am laughing.. seems I get something like this everytime.....

debian:~# DISPLAY=":0.0" EDITOR="gedit" visudo
No protocol specified
cannot open display:
Run 'gedit --help' to see a full list of available command line options.
visudo: /etc/sudoers.tmp unchanged
debian:~#

?????

Like I said.. I am in forth grade.. LOL

Thanks
Jim

Link to this post 17 May 10

grammjr wrote:

debian:~# ifconfig wlan0 up
SIOCSIFFLAGS: No such file or directory
I think we're getting closer to solving your problem. If I'm not mistaken, that error usually means that the firmware for your wireless adapter hasn't been loaded yet. Could you please post the output of the following command?
dmesg |grep -i firmware

debian:~# iwlist
The command was "iwlist scan" ;). It's a way to test if your adapter was working; if it was, that command would scan for nearby access points and list their ESSIDs.

debian:~# DISPLAY=":0.0" EDITOR="gedit" visudo
No protocol specified
cannot open display:
Run 'gedit --help' to see a full list of available command line options.
visudo: /etc/sudoers.tmp unchanged
debian:~#
Now that's weird, after a "su -" on my machine that command worked fine... Oh well, you might as well try nano instead. The following command should work without problems:
EDITOR="nano -w" visudo
That will open the sudoers file in the command line text editor named nano instead of gedit. Nano is quite an intuitive editor, and should be as user friendly as gedit except for lacking mouse support ;)

Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board