Enable ubuntu to automatically disable the wireless network.
1. The self-launch script adds the following command for disabling the wireless network to "start the application", so that the wireless network will be automatically disabled at startup. Export-send -- system -- type = method_call -- dest = org. freedesktop. networkManager/org/freedesktop/NetworkManager org. freedesktop. invalid. properties. set string: org. freedesktop. networkManager string: WirelessEnabled variant: boolean: false
This is the most flexible and most effective method. The only drawback is that the wireless network will be re-enabled when the computer wakes up from the STANDBY state. 2. Add the wireless NIC driver to the blacklist to completely disable the wireless network. To disable the driver, you must first know the driver name of the wireless network card. Enter the lshw command in the terminal to list the detailed information of the computer hardware, you can obtain the driver name of the wireless network card. The following is an information snippet: *-network www.2cto.com description: Wireless interfaceproduct: PRO/Wireless 3945ABG [Golan] Network Connectionvendor: Intel configurationphysical id: 0bus info: pci. 0 logical name: wlan0version: 02 serial: width: 32 bitsclock: 33 MHzcapabilities: bus_master cap_list ethernet physical wirelessconfiguration: broadcast = yes driver = iwl3945 latency = 0 multicast = The Last line shows that my wireless NIC driver name is iwl3945 (intel 3945abg wireless network card), add it to the blacklist, the specific operation is as follows: sudo gedit/etc/modprobe. d/blacklist. add blacklist iwl3945 to the end of the conf file and restart it. If you do not need Wireless Networks for a long time, this method is clean and thorough. Author txgc_wm