Ubuntu – Ubuntu Network manager

gnomenetwork-manager

I uninstalled network-manager from my Ubuntu-gnome, so I don't have internet connection. How can I reistall it.

Best Answer

You dont have NM but you have network card. First

ifconfig

to see interface name. To setup eth0 card use this command

sudo ifconfig eth0 xxx.xxx.xxx.xxx netmask zzz.zzz.zzz.zzz

after that add default gw

sudo route add default gw yyy.yyy.yyy.yyy

Try now to install NM with software manager Also you can configure network card with editing /etc/network/interfaces

sudo nano /etc/network/interfaces

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
        address xxx.xxx.xxx.xxx
        netmask yyy.yyy.yyy.yyy
        gateway vvv.vvv.vvv.vvv

Configure dns /etc/resolv.conf

sudo nano /etc/resolv.conf

nameserver xxx.xxx.xxx.xxx
nameserver yyy.yyy.yyy.yyy

Manually restart your network interface with the new settings:

sudo /etc/init.d/networking restart