Automatic WLAN Connection on Startup – Linux without GUI

First you need to make sure that you have installed the required packages for secure Wireless connections: sudo aptitude install wpasupplicant Now you need to open the /etc/network/interfaces file in a text editor: sudo nano /etc/network/interfaces Just add the following lines: auto wlan0 iface wlan0 inet dhcp wpa-ssid NetworkName wpa-psk NetworkPassword Source: