I agree with the statement of "sudoservicenetwork-managerstopsudorm/var/lib/NetworkManager. statesudoservicenetwork-managerstartsudogedit/etc/Networ...
I agree with the sub-night's suggestion that it is feasible to try it in 10.04.
Sudo service network-manager stop
Sudo rm/var/lib/NetworkManager. state
Sudo service network-manager start
Sudo gedit/etc/NetworkManager/nm-system-settings.conf
Change false to true.
Sudo service network-manager restart
The above commands will cause the ifup and ifdown commands to be unavailable. you can execute the following commands to change them back (the icons I changed back are not lost)
Sudo gedit/etc/NetworkManager/nm-system-settings.conf
Change true to false.
Sudo service network-manager restart
Or
Right-click the upper panel-add to panel-select notification area-add
And use
"System" menu -- "preferences --" network connection ", dragging the mouse to the panel or desktop
Only the network connection editor can be added and only network ports can be edited,
By using the Add notification area, you can more easily see the network connection status and select which port to connect to the network. The following is my solution.
Open the terminal and enter:
Sudo gedit/etc/network/interfaces
After opening the file, you will see
# This file describes the network interfaces available on your system
# And how to activate them. For more information, see interfaces (5 ).
# The loopback network interface
Auto lo
Iface lo inet loopback
Comment out the following lines to display the nerworkmanager icon.
# The primary network interface
# Auto eth0
# Iface eth0 inet static
# Address 192.168.x.x
# Netmask 255.255.255.0
# Network 192.168.1.0
# Broadcast 192.168.1.255
# Gateway 192.168.x.x
# Dns-* options are implemented by the resolvconf package, if installed
# Dns-nameservers 192.168.x.x
# Dns-serch example.org