atulkatti wrote: ↑
Fri Oct 26, 2018 11:36 am
I was able to setup PI by connecting it to display and then connecting it to wifi. Now i need to take my pi to another site and connect to wifi there. I may not be able to find a display to connect to over there. How can i boot it through my laptop so that i can then add wifi details in Pi.
If you know the WiFi credentials you can create a file called wpa_supplicant.conf on the small FAT32 "boot" partition of a Raspbian imaged SD card, and that will be moved to its correct location and used to connect to the network when the Pi starts up.
My wpa_supplicant.conf file looks like this.
Code: Select all
ssid="Your network SSID"
psk="Your WPA/WPA2 security key"
Edit country=, ssid= and psk= with your information (use a pure text editor, not a word processor).
If you haven't already done so, you can enable SSH at boot time by adding an empty file named ssh (or ssh.txt) to that same "boot" partition.
There is also something called a serial console cable that will let you log into your Pi without a network connection. I use cheap CP2102 USB-TTL (3V3) adapters
I get from ebay for less than 2 bucks.
There may be other options as well, depending on what model Raspberry Pi you have (if it's a Pi Zero, you also have USB Gadget mode, which will let you SSH in over USB).