Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have been trying to install some kind of network indicator to show my current bandwidth usage on the panel on top of the screen so I decided to install https://launchpad.net/ubuntu/+source/indicator-network

But just after I have put sudo apt-get install indicator-network I have uninstalled a bunch of vital ubuntu applications e.g. network manager - which was my fault because Ubuntu warned me about it but hey! - why would it mark these applications to remove while installing just an indicator ?

Now I am unable to connect to the internet with that machine on Ubuntu. How can I install network manager back or install it from the USB boot drive with 12.04 that I have ?

share|improve this question
    
Since you were able to post a question here, means you're online. In that case, go to this site and download the precise network-manager package with dependencies and then install it by running sudo dpkg -i *.deb from the terminal. –  Peachy Jul 15 '12 at 13:32
    
This is duplicate question :) –  Tachyons Jul 15 '12 at 13:57
    
@msPeachy I am not online - I posted this question from another machine. –  Patryk Jul 15 '12 at 14:33
    
Then do it on that machine, the one you are using right now. Also, see this –  Peachy Jul 15 '12 at 14:41
add comment

2 Answers

up vote 5 down vote accepted

You don't need NetworkManager to connect to a network. Assuming you're using automatic configuration (probably you are) you just need to sudo dhclient eth0 to get an IP address (replace eth0 with your network device if that's the case).

share|improve this answer
    
Thanks for that - the problem for me was that I tried to do it on wireless interface wlan0 and it was impossible ( I still do not know how to do it :/ ) –  Patryk Jul 15 '12 at 14:48
add comment

I had the same issue. I managed to connect to wireless like this for WPA APs

wpa_passphrase networkname password > foo.conf
killall -9 wpa_supplicant
sudo wpa_supplicant -Dwext -i wlan0 -c foo.conf

If you're using WEP then than you can do it with

iwconfig wlan0 essid network
iwconfig wlan0 key password
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.