LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-27-2011, 03:14 PM   #1
anurupr
Member
 
Registered: Mar 2010
Posts: 71

Rep: Reputation: 16
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?
 
Old 01-28-2011, 08:02 AM   #2
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 142Reputation: 142
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.
 
Old 01-29-2011, 11:17 AM   #3
anurupr
Member
 
Registered: Mar 2010
Posts: 71

Original Poster
Rep: Reputation: 16
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Couldn't establish connection to proxy: Network is unreachable amritpalpathak Linux - Software 1 01-16-2011 04:36 AM
I can't establish a wireless connection overbomb Linux Mint 5 11-04-2010 10:23 AM
SuSE 10.2. Can't establish connection with my wireless router Hungry ghost SUSE / openSUSE 7 02-22-2007 09:00 AM
Can't establish network connection with Mandrake 8.1 Theophylact Linux - Networking 0 04-25-2002 03:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration