Solution to accidentally deleting network-manager in ubuntu

Source: Internet
Author: User
Author: LengF & nbsp; Time: 2011-07-04 in order to install the sun-java6-jre to the network without, every Time the boot has to execute sudormmoddell_laptop to open the network link. I am very worried, so I have found a lot of information on the network to solve this problem. we all need to uninstall network-manager first.

Author: LengF Time: 2011-07-04

In order to install the sun-java6-jre to get rid of the network, every time the boot has to be executed

Sudo rmmod dell_laptop

To open the network link. I am very worried, so I have found a lot of information on the network to solve this problem. we all need to uninstall network-manager first, and this network cannot be detached. Tragedy. However, I have checked the NIC driver and everything is normal. After a long time.
The answer to the question in this article is also in the following situations:
(1) Download the deb installation package of network-manager from a machine that can access the Internet.
(2) installation from the loaded disc source
Both of them fail. So we thought that since the NIC driver is normal, we should manually configure the Nic information. The solution is described as follows:
1. first find a network cable that supports dhcp or static.
2. configure the NIC

Sudo gedit/etc/network/interfaces

Add the following statement

# Start eth0 at startup. here is my wired Nic
Auto eth1
# Set it to a static IP address or dhcp.
Iface eth1 inet static
# IP address, which cannot conflict with the network
Address 192.168.11.11
# Network hidden code
Netmask 255.255.255.0
# Gateway
Gateway 192.168.11.1

After the configuration is complete, restart the instance. You can connect to the Internet. Then execute the command

Sudo apt-get install network-manager

After the installation, restart the system and find network management. However, another problem occurs. The network icon in the upper right corner is not displayed.
Continue execution:

Sudo service network-manager stop
Sudo rm-f/var/lib/NetworkManager /*
Sudo service network-manager start
Sudo gedit/etc/NetworkManager/nm-system-settings.conf

Change "false" to "true" in the last line. restart the system to fix the problem. After the system is restarted, you still need to execute the command
Sudo rmmod dell_laptop
Alas, DT, reinstall the system. However, the network can be used. The problem is solved. I checked the information and said it was a bug. I don't understand how to solve it.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.