Full NetworkManager Uninstall

To completely uninstall NetworkManager and switch to using Netplan instead, follow these steps:

  1. Stop and disable NetworkManager:
sudo systemctl stop NetworkManager
sudo systemctl disable NetworkManager
  1. Uninstall NetworkManager and related packages:
sudo apt purge network-manager network-manager-gnome network-manager-pptp network-manager-openvpn
  1. Remove any leftover configuration files:
sudo rm -rf /etc/NetworkManager
  1. Update the package list:
sudo apt update
  1. Install netplan if it's not already installed:
sudo apt install netplan.io
  1. Create a new Netplan configuration file:
sudo nano /etc/netplan/01-netcfg.yaml
  1. Add your network configuration to the file. THis is the one we use«««

```yaml

network: ethernets: eth0: dhcp4: true optional: true version: 2 wifis: wlan0: access-points: eduroam: auth: identity: "robotics@brandeis.edu" key-management: "eap" method: "peap" password: "bapor-kibra" phase2-auth: "MSCHAPV2" "one boston": password: "ffabcd4444" dhcp4: true optional: true

```

  1. Apply the netplan configuration:

    sudo netplan apply
    

  2. Reboot your system to ensure all changes take effect:

sudo reboot

After these steps, NetworkManager will be completely uninstalled and your system will be using netplan for network configuration.