can't find software to connect to network from CL
I know how to connect to my wireless network only from a GUI with Networkmanager or Wicd, and have never known how to connect from a command line. I'm trying to teach myself according to the instructions I found here: http://www.ghacks.net/2009/04/14/con...-command-line/
I seem to be missing some of the software needed for this, and can't find it in the apt repositoriesd (possibly because I wasn't looking for the right packages). "ifconfig wlan0 up" worked as expected, but when I entered iwlist wlan0 scan, the terminal says "command not found." (I didn't need to enter that, because I already know the network's available; I was just practicing every command listed.) Then I entered "iwconfig wlan0" with my network ID and the WPA passphrase in double quotation marks. The terminal says command not found, so...I guess I don't have iwconfig either. Finally, it didn't recognize "dhclient wlan0" either. I don't see iwconfig or dhclient in my repositories. Are they contained in some other package? I guessed iwconfig might be contained in the package iw, but I installed that and still don't have iwconfig. |
The commands you think you do not have are privileged commands and need to be run as root. Use sudo, if your system is set up for sudo.
If you want to find the binaries, open a konsole, and as root run the command 'updatedb' ( without the quotes ) and let the command finish. If you have never used it, depending on your system speed, it will take a minute or two to complete. Then you can use the 'locate ifconfig' to find the path the the bin file. If nothing happens for the locate command, after you do the updatedb command, then you do not have the file. I'm sure you have all three, otherwise things would not work with network manager. |
Usually, you won't have permissions for those commands or they won't be in your path (or, both).
Quote:
Note, from here wicd can be used from the command line. And according to this, there is nmcli, a built in command line interface. So, either WiCD or NM can be used from the command line. |
Quote:
Oh, thanks...I forgot that privileged commands can claim "not found" if run as user. I think the system's response here is misleading. I mean, the commands are there, so why doesn't the system simply state that they require root privileges? One would reasonably assume the system will find a command if it exists; so if the system claims it can't find the command, one assumes it's not there at all. |
As a regular user the commands are not in your path, and that is where the system looks. So it reports "command not found". I like your logic, however, linux does not apply your logic.
Quote:
|
All times are GMT -5. The time now is 09:00 PM. |