Create a bootable installer for Ubuntu 18.04.1 per these instructions
sudo apt-get update
sudo apt-get install git
sudo apt-get install curl
Modify the hotspot password to something easy to remember. Use the advanced network editor which is launched from terminal
nm-connection-editor
Confirm there is a hotspot network
nmcli con show
Now make it autoconnect on reboot
nmcli con mod <Hotspot-network-name> connection.autoconnect yes
=> Make sure none of your wifi connections are enabled to connect automatically <=
Edit the file as sudo (nano is a command line text editor that comes with linux)
sudo nano /etc/hosts
Edit hosts
to this:
127.0.0.1 terrastories.io
127.0.1.1 terrastories.io
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
You only need to edit the first two lines that contain terrastories.io
the remainder will already be there. I just included it for context.
Couple of changes we made to the NUC:
Hostname
To get the hostname
Terrastories.io
to work everywhere:Step 1: Use a static ip
ref
/etc/NetworkManager/system-connections/Hotspot
ipv4
sectionaddress1=192.168.0.1/24
Step 2: Set hosts
Edit
/etc/hosts
and add the line:Make sure there are no other entries for
terrastories.io
Port Number
Step 1: Configure nginx.conf to use default port:
Remove the
:3000
from the twoproxy_set_header
lines innginx/nginx.conf
in the repoStep 2: Set
NGINX_PORT