Automatic WLAN Connection on Startup – Linux without GUI

  1. First you need to make sure that you have installed the required packages for secure Wireless connections:

    sudo aptitude install wpasupplicant
  2. Now you need to open the /etc/network/interfaces file in a text editor:

    sudo nano /etc/network/interfaces
  3. Just add the following lines:

    auto wlan0
    iface wlan0 inet dhcp
        wpa-ssid NetworkName
        wpa-psk NetworkPassword


Leave a comment

Your email address will not be published. Required fields are marked *