Git Product home page Git Product logo

wifipi's Introduction

WiFiPi

A Raspberry Pi distribution for easy remote setup, requiring no keyboard, monitor, mouse, and no modifications to the image.

Just throw this image, with NO modifications, onto an SD card, and pop it into your Pi. Your Pi is now broadcasting a WiFi network called WiFiPi-xxxx (where xxxx is the last 4 digits of the Pi's serial number), password 'luggage12345'. Connect to it, at either ssh [email protected] or ssh [email protected]. Default password is 'raspberry'. Now you're in! Edit /etc/wpa_supplicant/wpa_supplicant-wlan0.conf with your network information, or just go write some code!

This repository contains the source script to generate the distribution out of an existing Raspbian distro image.

Where to get it?

See the releases tab

How to use it?

Terse Instructions

  1. Write the image to an SD card
  2. (optional) Edit the wpa_supplicant-wlan0.conf file located on the SD card. Remaining steps assume you have not done this.
  3. Pop it into the Pi and boot it up
  4. Connect to "WiFiPi-xxxx" where xxxx will be the last 4 digits of the Pi's serial number. Password is 'luggage12345'
  5. ssh into the pi with either [email protected] (same xxxx as the WiFiPi-xxxx), or [email protected]. Password is 'raspberry'
  6. Edit /etc/wpa_supplicant/wpa_supplicant-wlan0.conf with your network info.
  7. After you've written to the file, you can run journalctl -f -u autohotspot.service and you should see autohotspot start within a minute or two and pick up your changes. Of course, your connection will break at that point (protip, you can exit an ssh session by typing ~. in your terminal), and you'll need to establish a new one once the Pi connects to your desired network.

Pedantic Noob-friendly instructions

  1. Write the image to an SD card. There's a few guides for how to do this, so I won't cover it here. Here is the official guide.
  2. Pop it into the Pi and boot it up. No need to connect a monitor or keyboard or anything like that.
  3. On your laptop/desktop connect to WiFiPi-xxxx (you'll see different characters from xxxx but that's fine), password is luggage12345. You may want to write down what you see in place of xxxx.
  4. If you're on Mac or Linux, open a terminal and type ssh [email protected]. If you're on Windows, you will need to download an SSH client. I hear PuTTY is a popular one. For setting that up and connecting to the Pi you'll have to look elsewhere for a guide.
  5. Now you're connected to the Pi, hoorary! Pat yourself on the back!

From here, you can do whatever it is you wanted to do with the Pi. Most people will probably want it to connect to their local WiFi so that can download things from the internet. To do that, follow these steps:

  1. From your terminal with the ssh connection, type nano /etc/wpa_supplicant/wpa_supplicant-wlan0.conf.
  2. Edit one of the network blocks to reflect your WiFi setup, and remember to remove the "#" characters at the beginning of the lines of the network block
  3. Press Ctrl+O to save your changes, and Ctrl+X to exit. Within a minute (or possibly as soon as you hit Ctrl+O), the autohotspot service will pick up your changes and attempt to connect to the network you specified.
  4. Your ssh connection may get stuck as autohotspot kills the WiFiPi-xxxx network to attempt to connect to the network you specified. If that's the case, type '~.' into your terminal and that should disconnect you.
  5. If the Pi successfully connected to the network you specified, connect your laptop/desktop to the same network, and from your terminal type ssh [email protected] where xxxx is what you wrote down in a previous step. If you don't remember it, you could go to your computer's saved WiFi networks and see if it's there, or use other tools to find the IP address of your Pi and connect to it via IP instead of hostname (i.e. ssh [email protected] instead of ssh [email protected]) (perhaps logging into your router and seeing who's connected).
  6. If it was unsuccessful, it should bring WiFiPi-xxxx back up, and from there you can ssh back into it and examine your network settings. If they look correct and you want it to try again, type touch /etc/wpa_supplicant/wpa_supplicant-wlan0.conf and wait a minute for autohotspot to try again.
  7. If you want to take a look at logs to see if there's a hint as to why it was unsuccessful, try journalctl -u autohotspot and also journalctl -u wpa_supplicant@wlan0

If you're having issues, come back here and create an issue in the Issues tab!

Features

  • AutoHotspot Automatically launch a Direct Connection WiFi hotspot when no other connection is available.
  • Raspbian tweaked for maximum preformance in a headless configuration

Developing

For development instructions, see the corresponding section at https://github.com/guysoft/CustomPiOS

Code contribution would be appreciated!

wifipi's People

Contributors

nbelakovski avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.