I have a raspberry pi 3 model B and I’m trying to set it up for the first time using my laptop. So far I’ve been able to find its IP and ssh to it with an Ethernet cable connecting it to the network, but I want to go wireless. I’ve looked for wifi dongles online but most of them seem to be suitable for raspberry pi 2 only ( I don’t know why and what the difference is really) How can I deal with this situation? Thanks in advance
3 Answers
As stated, the pi3 has its wireless, so you shouldn't need a separate dongle.
Whether you shut-down the pi and edit it on the SD-card, or want to configure via ssh, the actions are :
1) edit etc/dhcpcd.conf and add the following lines:
interface wlan0
static ip_address=192.168.178.3/24
static routers=192.168.178.1
static domain_name_servers=192.168.178.1
(change the IP addresses to match your network)
2) edit /etc/wpa_supplicant/wpa_supplicant.conf and put in soemthing like this:
country=GB
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="ssidforwifi"
psk="wifipsk"
}
3) reboot, because that is easier than figuring-out how to restart the network with systemd.
And now, the Pi should be accessible through WiFi.
Why a fixed IP-address? Because it is a server. If you use dynamic dhcp addresses, you always have to search what IP address the Pi has. And yes, you could also hand-out a fixed IP address, based on your mac-id, if you really want.
- 2,539
- 11
- 16
For initial setup you need a mouse and an hdmi cable
- Connect hdmi to display and pi
- Power on the Pi and the display
- Connect the mouse and do the initial setup process
- Install xvkbd which is an on-screen keyboard
- Connect to WiFi
- 1
- 1
I think you can follow the above answer. These are the few things that you need to do.
- You need to have the raspbian os in the sd card. YOU MUST THESE IS THE ONLY WAY. next time you can use your laptop wireless.
- Connect with pc display through hdmi.
- Install the rpi. And set it up. enable everything. esp VNC if i am not mistaken.
- Connect RPI with your hotspot. (Your rpi can nly be access just when using your wifi means once you set this rpi connect with the selected wifi NEVER CHANGE IT during wireless) Then provide your rpi an ip address.need to overwrite files. google on "how to set up ip address on rpi" REFER TO ANSWER FROM Ljm Dullaart
- Download vnc in your laptop.
- Disconnect rpi from pc display.
- on back the rpi. Let it reboot and everything (1mins)
- Then on the vnc viewer just key in the ip add.
- You should be able to connect now.
Hope i help you.
- 1
- 1