.. image:: https://raw.githubusercontent.com/guysoft/HotSpotOS/devel/media/HotSpotOS.png .. :scale: 50 % .. :alt: HotSpotOS logo
A Raspberry Pi <http://www.raspberrypi.org/>
distribution that makes a Raspberrypi start a hotspot, if no wifi was found to conenct to. It also bridges internet comming in from ethernet.
This repository contains the source script to generate the distribution out of an existing RaspberryPi OS <https://www.raspberrypi.com/software/>
distro image. You can download a built image here <http://unofficialpi.org/Distros/HotSpotOS>
_
The hotspot scripts are based on the scripts by roboberry <http://www.raspberryconnect.com/network/item/330-raspberry-pi-auto-wifi-hotspot-switch-internet>
. And have been improved. They are part of the auto-hotspot
module of CustomPiOS.
HotSpotOS is based on CustomPiOS <https://github.com/guysoft/CustomPiOS>
You can use the pi-imager <https://github.com/guysoft/pi-imager/releases>
_ commuity raspberrypi imager here, unofficial section.
Or download directly form the official mirror here <http://unofficialpi.org/Distros/HotSpotOS>
_
like any other Raspberry Pi image <https://www.raspberrypi.org/documentation/installation/installing-images/README.md>
_hotspotos-wpa-supplicant.txt
on the root of the flashed card when using it like a flash drivehotspot.lan
if your computer supports bonjour <https://learn.adafruit.com/bonjour-zeroconf-networking-for-windows-and-linux/overview>
_ or the IP address assigned by your router), default username is "pi", default password is "raspberry", change the password using the passwd
command and expand the filesystem of the SD card through the corresponding option when running sudo raspi-config
.Note: Local hostnames have the .lan
domain ending. eg hotspot.lan
Raspberry Pi <https://github.com/guysoft/FullPageOS/issues/12>
and Raspberry Pi <https://github.com/guysoft/FullPageOS/issues/43>
.hotspot
, password raspberry
.hotspotos-wpa-supplicant.txt
hotspot.lan
, on IPv4 192.168.50.1
.Requirements
#. `qemu-arm-static <http://packages.debian.org/sid/qemu-user-static>`_
#. `CustomPiOS <https://github.com/guysoft/CustomPiOS>`_
#. Downloaded `Raspbian <http://www.raspbian.org/>`_ image.
#. root privileges for chroot
#. Bash
#. realpath
#. sudo (the script itself calls it, running as root without sudo won't work)
Build HotSpotOS From within Raspbian / Debian / Ubuntu
HotSpot can be built from Debian, Ubuntu, Raspbian. Build requires about 2.5 GB of free space available. You can build it by issuing the following commands::
sudo apt-get install realpath p7zip-full qemu-user-static
git clone https://github.com/guysoft/CustomPiOS.git
git clone https://github.com/guysoft/HotSpotOS.git
cd HotSpotOS/src/image
wget -c --trust-server-names 'https://downloads.raspberrypi.org/raspbian_lite_latest'
cd ..
../../CustomPiOS/src/update-custompios-paths
sudo modprobe loop
sudo bash -x ./build_dist
Building HotSpotOS Variants
CustomPiOS supports building variants, which are builds with changes from the main release build. An example and other variants are available in the folder ``src/variants/example``.
To build a variant use::
sudo bash -x ./build_dist [Variant]
Building Using Vagrant
There is a vagrant machine configuration to let build HotSpotOS in case your build environment behaves differently. Unless you do extra configuration, vagrant must run as root to have nfs folder sync working.
To use it::
sudo apt-get install vagrant nfs-kernel-server
sudo vagrant plugin install vagrant-nfs_guest
sudo modprobe nfs
cd HotSpotOS/src/vagrant
sudo vagrant up
After provisioning the machine, its also possible to run a nightly build which updates from devel using::
cd HotSpotOS/src/vagrant
run_vagrant_build.sh
To build a variant on the machine simply run::
cd HotSpotOS/src/vagrant
run_vagrant_build.sh [Variant]
Usage
#. If needed, override existing config settings by creating a new file ``src/config.local``. You can override all settings found in ``src/config``. If you need to override the path to the Raspbian image to use for building OctoPi, override the path to be used in ``ZIP_IMG``. By default, the most recent file matching ``*-raspbian.zip`` found in ``src/image`` will be used.
#. Run ``src/build_dist`` as root.
#. The final image will be created in ``src/workspace``
Code contribution would be appreciated!
Attribution
The logo of HotSpotOS is a mix from the following icons: