Media server with RaspberryPi in your car, fun streaming via Wi-Fi hotspot.
-----------------
01-- MediaServer install --
sudo apt install minidlna
02-- Set permission Media Folder --
sudo chown pi /media/pi
sudo chmod 755 /media/pi
03-- SetUp Media Server (3 changes) --
media_dir=/var/lib/minnidlna change to media_dir=/media/pi
#friendly_name= change to friendly_name=giitube
#inotify=yes change to inotify=yes
friendly_name can be chnage as you like
04-- Check ip-address --
hostname -I
05-- Insert USB memory and seek it --
sudo minidlnad -R
sudo service minidlna restart
06-- Browser check --
ip-address:8200
07-- minidlna infomation --
https://helpmanual.io/man1/minidlna/
https://help.ubuntu.com/community/Min...
08-- Make shell command for auto start --
#!/bin/bash
wait a bit
sleep 20
rescan the media files
sudo minidlnad -R
restart minidlna
sudo service minidlna restart
Save above as 'startdlna.sh' then set the permission to 755
09-- Make Auto Start --
sudo nano /lib/systemd/system/pimedia.service
Append below lines and save.
[Unit]
Description=Pi MediaServer
[Service]
Type=idle
ExecStart=/home/pi/startdlna.sh
[Install]
WantedBy=multi-user.target
Auto-Start Info
https://www.dexterindustries.com/howt...
10-- Set Permission and start service --
sudo chmod 644 /lib/systemd/system/pimedia.service
sudo systemctl daemon-reload
sudo systemctl enable pimedia.service
11-- Check service status (if needed) --
sudo systemctl status pimedia
12-- Install HotSpot --
sudo apt install hostapd
sudo systemctl unmask hostapd
sudo systemctl enable hostapd
13-- Install DHCP/DNS Server --
sudo apt install dnsmasq
14-- Setup DHCP Server --
sudo nano /etc/dhcpcd.conf
Add 3 lines below at most end of text and save it.
interface wlan0
static ip_address=192.168.4.1/24
nohook wpa_supplicant
15-- SetUp DNS Server --
Evacuate the original setting file and make new one.
sudo mv /etc/dnsmasq.conf /etc/dnsmasq.conf.bkup
sudo nano /etc/dnsmasq.conf
Add 4 lines below and save.
interface=wlan0
dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h
domain=wlan
address=/gw.wlan/192.168.4.1
16-- SetUp Wi-Fi Hotspot --
sudo nano /etc/hostapd/hostapd.conf
Append below lines and save.
country_code=JP
interface=wlan0
ssid=Giitube
hw_mode=g
channel=6
ieee80211d=1
ieee80211h=1
ieee80211n=1
ieee80211ac=1
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=GiitubeMedia
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
ssid is server name and wpa_passphrase is password (8 characters or more).
Both can be chnage as you like.
17-- OverClock --
sudo nano /boot/config.txt
[pi4]
over_voltage=6
arm_freq=2000
[pi3]
over_voltage=5
arm_freq=1300
-----------------
CC:
D1GP OSAKA DRIFT 2018 TOYO TIRES
• D1GP OSAKA DRIFT 2018 | TOYO TIRES
Jasmine Lingerie CELEBRITY Collection
• Video
-----------------