Heinrich Vermeulen
Published

Portable media server and access point

Stream videos (and other media) to mobile devices/tables while on the go. Great for streaming video to iPads in a car on a long road trip!

IntermediateFull instructions provided4 hours28,933
Portable media server and access point

Things used in this project

Hardware components

Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
×1

Software apps and online services

Linux - Raspbian (Jessie)

Story

Read more

Schematics

Schematic

Code

hostapd.conf

BatchFile
interface=wlan0
driver=nl80211
ssid=YOUR_STATION
hw_mode=g
channel=11
wpa=1
wpa_passphrase=SECRETPASSWORD
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
wpa_ptk_rekey=600
macaddr_acl=0

startup.sh

BatchFile
#!/bin/bash
# Author:      Heinrich Vermeulen
# Date:        01 December 2016
# Purpose:     Basic startup script for Portable Media Server
# Description: Start up and look for any USB drives
#              Mount the first drive it finds
#              Blah

myMount="/media/pi"

# Look for any USB drives
theList=$(readlink -f /dev/disk/by-id/*usb*part*)
echo "Found the following drives: " $theList

# Mount the first drive it finds
echo "Mounting" $theList "onto" $myMount
mount $theList $myMount

echo "Kill minidlna"
killall minidlnad
sleep 3

echo "Rebuild the database"
minidlnad -R -f /etc/minidlna.conf
sleep 3

echo "Kill minidlna"
killall minidlnad
sleep 3

echo "Start minidlna"
minidlnad -f /etc/minidlna.conf
sleep 3

Credits

Heinrich Vermeulen

Heinrich Vermeulen

0 projects • 6 followers
Hacking for fun!

Comments