spehe wrote:Hello,
I am a beginner since two days and do not really know much about this yet, but I am willing to learn. I have successfully managed to set up my RaspberryPi 2 with Raspian Noob, and I have also managed to configure headless access to it from my Win10 PC. It is for the moment using eth0 for network, but I would like it to use Wi-Fi instead.
Having tried a number of tutorials, I have still not managed to get it to work. My Wi-Fi dongle (D-Link DWA-121) is suppose to work right out of the box, according to the store where I bought everything.....
Now I have exhausted myself and could do with a little help. Any suggestions would be deeply appreciated.
First do not edit file
/etc/network/interfaces. If you have put it back to it's original state. Probably something like this
Code: Select all
# interfaces(5) file used by ifup(8) and ifdown(8)
# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
You should then be able to get your wifi working by editing file
/etc/wpa_supplicant/wpa_supplicant.conf
Open the file to edit using command
Code: Select all
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
and edit it so it looks like
Code: Select all
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="your-network-name"
psk="your-network-password"
substituting your own network name and password. Terminate the editor using keys cntl-x, y, enter.
This should be sufficient to get you wifi connected. Reboot to bring up the wifi.
MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra
Please post ALL technical questions on the forum. Please Do Not send private messages.