| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| 4.png | 2022-10-20 | 159.7 kB | |
| Epaper-480p.m4v | 2022-10-20 | 2.7 MB | |
| README.txt | 2022-10-14 | 8.0 kB | |
| 3.png | 2022-10-14 | 1.3 MB | |
| 2.png | 2022-10-14 | 1.2 MB | |
| 1.png | 2022-10-14 | 999.4 kB | |
| epaper-standalone-2022-10-07-a1.img.zip | 2022-10-14 | 641.1 MB | |
| 2022-10-07-a1.zip | 2022-10-14 | 1.7 MB | |
| Totals: 8 Items | 649.2 MB | 0 |
========================================================================
ePaper Fun Raspberry Pi Stand Alone WiFi Access Point
Presented at the 2022 Great Lakes Cisco Academy Conference in Detroit Michigan
Copyright Christopher Bowhuis CRBE 2022
GPL3
========================================================================
QUICK REFERENCE
========================================================================
Please give the Pi several minutes to boot and activate WiFi.
Join ePaper WiFi access point using almost any wireless device. Pc, Tablet, CellPhone, etc.
Navigate to http://192.168.4.1 NOT httpS://
** !! There is almost ZERO security on this disk image.
Remote ssh access via
ssh pi@192.168.4.1
password = pi
NFS mount
sudo mount 192.168.4.1:/var/www/html /mnt
# Mount and edit the image file itself.
sudo fdisk -l
mount -o loop,offset=315621376 epaper.img /mnt
Change WiFi SSID and Channel /etc/hostapd/hostapd.conf
Change IP address /etc/dhcpcd.conf AND /etc/network/interfaces
Change DHCP server settings /etc/dnsmasq.conf
Change Pi Hostname /etc/hostname AND /etc/hosts
========================================================================
root@imac:/# fdisk -l epaper.img
Disk epaper.img: 2.77 GiB, 2955952640 bytes, 5773345 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x380f70a0
Device Boot Start End Sectors Size Id Type
epaper.img1 2048 616447 614400 300M c W95 FAT32 (LBA)
epaper.img2 616448 5773311 5156864 2.5G 83 Linux
512*616448 = offset of 315621376
========================================================================
BELOW IS THE LIST OF COMMANDS
USED TO INSTALL AND SETUP THE ePaper Pi
========================================================================
passwd pi
exit
cd /boot
ls
nano cmdline.txt
nano config.txt
reboot -n
raspi-config
dpkg --configure -a
apt-get install -s lighttpd php-cgi php-cli php-gd php-imagick php-json imagemagick shellinabox
apt-get install lighttpd php-cgi php-cli php-gd php-imagick php-json imagemagick shellinabox
wget https://www.airspayce.com/mikem/bcm2835/bcm2835-1.59.tar.gz
tar -xvzf bcm2835-1.59.tar.gz
cd bcm2835-1.59
./configure; make install
cd ../
shutdown -h now
nano /etc/php/7.3/cgi/php.ini
nano /etc/php/7.3/cli/php.ini
service lighttpd-enable-mod fastcgi-php
service lighttpd start
lighttpd-enable-mod fastcgi-php
service lighttpd force-reload
service lighttpd stop
chmod -Rv 777 /var/www/html
ip a
cd /etc/shellinabox
cd /etc/default
nano shellinabox
/etc/init.d/shellinabox start
service shellinabox start
systemctl status shellinaboxd.service
shellinaboxd -s /:LOGIN
shellinaboxd --disable-ssl -b
cd raspi-epaper-2022-09-12/
cd tmp
ls -la
cd /etc/sudoers.d
cat 020_www_nopasswd
chmod -Rv 777 /var/www/
chmod -Rv 777 epaper
./epd
ps -lA
apt install nfs-kernel-server
nano /etc/exports
service nfs-kernel-server stop
service nfs-kernel-server start
clear
sudo ./epd
cd /home/pi
make clean
history
========================================================================
MAKE STANDALONE WiFi ACCESS POINT
========================================================================
sudo su
apt-get remove --purge dhcpcd5
apt install hostapd dnsmasq
systemctl unmask hostapd
systemctl enable hostapd
mv /etc/dnsmasq.conf /etc/dnsmasq.conf.ori
echo '
interface wlan0
static ip_address=192.168.4.1/24
' > /etc/dhcpcd.conf
echo '
no-resolv
#no-poll
interface=wlan0
listen-address=192.168.4.1
bind-interfaces
server=8.8.8.8
domain-needed
bogus-priv
dhcp-range=192.168.4.2,192.168.4.250,255.255.255.0,1h
' > /etc/dnsmasq.conf
echo '
country_code=US
interface=wlan0
#driver=n180211
#bridge=br0
ssid=sepaper6
hw_mode=g
# 2.4GHz 802.11g/n Non Overlapping
# 1,6,11
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
' > /etc/hostapd/hostapd.conf
echo '
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.4.1
netmask 255.255.255.0
gateway 192.168.4.1
' > /etc/network/interfaces
echo '
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
# TO AUTOMATICALLY CONNECT TO A WIFI
#network={
# ssid="epaper"
# key_mgmt=NONE
#}
' > /etc/wpa_supplicant/wpa_supplicant.conf
echo '
sepaper6
' > /etc/hostname
echo '
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 sepaper6
' > /etc/hosts
echo 'www-data ALL=(ALL) NOPASSWD: /var/www/html/epd_launcher.sh,/var/www/html/epaper/epd,/sbin/shutdown,/sbin/halt
' > /etc/sudoers.d/020_www_nopasswd
sudo rfkill unblock wlan
systemctl enable dnsmasq
dnsmasq --test
systemctl status dnsmasq.service
systemctl status hostapd.service
systemctl unmask hostapd
systemctl stop hostapd
systemctl stop dnsmasq
systemctl start hostapd
systemctl start dnsmasq
systemctl status dnsmasq.service
systemctl status hostapd.service
========================================================================
========================================================================
========================================================================
========================================================================
========================================================================
========================================================================
========================================================================
========================================================================
nano /etc/dhcpcd.conf
---------------------
interface wlan0
static ip_address=192.168.4.1/24
---------------------
nano /etc/dnsmasq.conf
----------------------
no-resolv
#no-poll
interface=wlan0
listen-address=192.168.4.1
bind-interfaces
server=8.8.8.8
domain-needed
bogus-priv
dhcp-range=192.168.4.2,192.168.4.240,255.255.255.0,1h
----------------------
sudo rfkill unblock wlan
nano /etc/hostapd/hostapd.conf
------------------------------
country_code=US
interface=wlan0
#driver=n180211
#bridge=br0
ssid=sepaper1
hw_mode=g
# 2.4GHz 802.11g/n Non Overlapping
# 1,6,11
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
-----------------------------
nano /etc/network/interfaces
-----------------------------
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.4.1
netmask 255.255.255.0
gateway 192.168.4.1
----------------------------
nano /etc/wpa_supplicant/wpa_supplicant.conf
---------------------------------------------
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=US
# TO AUTOMATICALLY CONNECT TO A WIFI
#network={
# ssid="epaper"
# key_mgmt=NONE
#}
-----------------------------------------------
systemctl enable dnsmasq
dnsmasq --test
systemctl status dnsmasq.service
systemctl status hostapd.service
systemctl unmask hostapd
systemctl stop hostapd
systemctl stop dnsmasq
systemctl start hostapd
systemctl start dnsmasq
nano /etc/hostname
------------------
sepaper6
------------------
nano /etc/hosts
------------------
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
127.0.1.1 sepaper6
-------------------
/etc/sudoers.d/020_www_nopasswd
-------------------------------
www-data ALL=(ALL) NOPASSWD: /var/www/html/epd_launcher.sh,/var/www/html/epaper/epd,/sbin/shutdown,/sbin/halt
-------------------------------