Personal Server & Hotspot WIP

This is a personal server/hotspot – Designed to be used with a Pi Zero-W and an SSD to store TV and other files I need on the move. It’s got a 256gb SSD and can switch between being a hotspot (AP mode, *not* Ad-Hoc, so it works with Android devices too).

256gb of mobile wifi goodness which runs off a USB power socket

It only needs a decent USB power socket and you’re good to go. It has a little screen on the front too which tells you which wifi it’s connected to and what it’s IP address is.

It has Samba set up on it too so as well as ssh/sftp access you can also access it from windows devices.

I built this because I needed something which would work in the van on “away missions”, but it’s worked so well that I use it all the time now.

The first version worked with Ad-Hoc mode and I was using it with an ipad (which supports ad-hoc devices very well). It was based on RPiAdHocWiFi but then I discovered that Android devices don’t support ad-hoc mode so I had to start over again. This time around it uses HostAPD and DNSMasq to achieve the same result but as an “Access point” instead. Ad-hoc mode didn’t seem to work with security either whcih i wasn’t super-happy about, whereas as it is now it uses WPA2-PSK TKIP and seems to run fine. I’ve had no problems accessing it from any device.

It can switch modes (i.e. join your prescribed wifi/s or be a hotspot) without rebooting which is achieved by masking/unmasking the dnsmasq and hostapd services as well as swapping some configs around.

The screen on the front is one of the default cheapo 128 x 32 pixel OLED screens like this, and uses a modified version of OLED_stats to display the current wifi and ip address.

The code:

Please note the code is WIP, so whilst I have a working prototype, the code is getting added to the repo as I write the install guide and do the install process on another machine. It should be usable shortly.

References which were used as a basis:

Leave a Reply