LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   cannot establish a wireless network connection from the terminal in ubuntu 10.10 (https://www.linuxquestions.org/questions/linux-networking-3/cannot-establish-a-wireless-network-connection-from-the-terminal-in-ubuntu-10-10-a-859097/)

anurupr 01-27-2011 03:14 PM

cannot establish a wireless network connection from the terminal in ubuntu 10.10
 
i'm trying to connect to a hidden wireless network in ubuntu through the terminal but i am unable to do so.

i first tried using ifconfig,iwconfig and dhclient initially but i am only able to get an ip address without the default gateway and dns server addresses which i normally get through the network manager applet.

then i tried using cnetworkmanager but failed miserably again i keep getting this error

Code:

Another applet is running: Bus name already exists: org.freedesktop.NetworkManagerUserSettings (pid 1851)
then i used nmcli available with the network manager package. i was able to establish a connection only with the connections showed in the list. i use a hidden wireless network. i am unable to connect to the hidden wireless network using nmcli without actually creating a connection from the network manager applet.

is there any way around this?

reed9 01-28-2011 08:02 AM

I don't use networkmanager, but given the error, I would think if you killed the graphical nm-applet, it might work.

You can also replace networkmanager with wicd, which has a curses interface.

If you list what exactly you're doing with iwconfig, dhclient, etc, we may be able to direct you there. If you're using WPA encryption, you need to use wpa_supplicant for these to work. If it's just the default gateway you need to add you can do
Code:

route add default gw <gateway address>
The dns server should be taken care of if you're using dhcp. If you need to specify a different dns server, you'll want to edit /etc/resolv.conf resolve.conf will be overwritten when using dhcp, so you'll need to take extra steps to avoid that.

anurupr 01-29-2011 11:17 AM

i tried killing the applet and it worked. but like i said earlier . i'm only able to get a IP address. i'm not able to get the dns addresses. here is what i've done with ifconfig, iwconfig and dhclient

Code:

sudo ifconfig wlan0 down
sudo dhclient -r wlan0
sudo ifconfig wlan0 up
sudo iwconfig wlan0 essid "MYNET"
sudo iwconfig wlan0 mode Managed
sudo dhclient



All times are GMT -5. The time now is 02:06 PM.