Setup NGINX, samba
自宅ネットワーク内でのみ閲覧可能な静的Webページのホスティングを行う
import from Raspberry Pi nginx setup for local
Set Static IP Address
Edit /etc/dhcpcd.conf
/etc/dhcpcd.conf
interface eth0
static ip_address=192.168.0.3/24
static routers=192.168.0.1
NGINX
Install
sudo apt-get update
sudo apt-get upgrade
sudo apt install curl gnupg2 ca-certificates lsb-release debian-archive-keyring
sudo apt-get install nginx
WEBサーバ (NGINX)- Raspberry Pi公式ドキュメントを日本語訳
Start
sudo systemctl start nginx
sudo systemctl enable nginx
Stop
sudo systemctl stop nginx
sudo systemctl disable nginx
Samba
Install
sudo apt-get install samba
sudo vi /etc/samba/smb.conf
sudo systemctl restart smbd
add to smb.conf
smb.conf
[pi]
comment = Samba sharing
path = /var/www
force user = pi
guest ok = no
create mask = 0666
directory mask = 0777
read only = no