Ubuntu 18.04 Server amd64
Important: Before proceeding with command-line installation, it is assumed that you are already familiar on how to install an operating system into your machine. Make sure to use Ubuntu 18.04 LTS amd64 image.
Please follow the steps to build your coin operated wifi hotspot using Ubuntu Server 18.04 LTS amd64:
Command line installation is used when software image is not available for your board/machine. First, you need to have access to the command line of your board/machine. In this guide, we will use Ubuntu Server 16.04/18.04.
Follow the step by step guide on how to install an Ubuntu server to x64 pc/machine: https://ubuntu.com/tutorials/install-ubuntu-server
Given you already installed the ubuntu server OS, now connect your LAN cable, keyboard, monitor and USB to LAN adapter(optional) to your x64 machine. Then power on your board and login to the command line.
Execute the following commands line by line (much easier if you remote ssh your server and just copy paste the commands):
sudo apt-get update && sudo apt-get upgrade -y sudo apt-get install curl -y curl -sL https://deb.nodesource.com/setup_16.x | sudo -E bash - sudo apt-get install -y nodejs python nginx bind9 isc-dhcp-server sudo apt-get install -y hostapd dmidecode build-essential openssh-server python-pip unzip bridge-utils wget -O /tmp/adopisoft-5.1.1-amd64-node-v16.4.0.deb https://github.com/AdoPiSoft/Releases/releases/download/v5.1.1/adopisoft-5.1.1-amd64-node-v16.4.0.deb sudo apt-get install /tmp/adopisoft-5.1.1-amd64-node-v16.4.0.deb
Other versions available here: https://github.com/AdoPiSoft/Releases/releases
Now, enable and start adopisoft service
sudo systemctl enable adopisoft sudo systemctl start adopisoft
The system will reboot itself. Wait for it to finish rebooting then proceed to Initial Setup section.
Find your board/machine's IP address. In your board/machine's screen, just type:
On windows, you can install network scanner on your PC to scan for your board/machine's IP.
Once you have identified your board/machine's IP address, open your browser on your PC and type the url to your board/machine's IP address.
NOTE: If you encounter error about UUID, just ignore it and proceed.
Important: Make sure your board/machine has two network interface. For boards without wifi interface, you have to insert the USB to LAN adapter first.
Note: The default database used is sqlite because it's the only database that can be package into the debian file. But we highly advice to change the database to postgresql after you have successfully setup the admin.
Run the command below line by line to create postgresql account:
wget -O ado-psql-script.sh https://gist.githubusercontent.com/alenteria/791dbe32175a01d1f1b602b25489ad22/raw/9a5aa879ac70d24bd9a7dd7f8ed97d7fe2c2f597/ado-psql-script.sh sudo chmod a+x ./ado-psql-script.sh sudo ./ado-psql-script.sh # if the above command failed, try the following: bash ./ado-psql-script.sh
Reboot the machine. Then in the web admin “System → Security → Database Connection” settings, change the config to:
Database Type: postgres Host/IP: localhost Port Number: Database Name: adopisoft Username: adopisoft Password: adopisoft
Lastly make sure to DISABLE SSH SERVICE. This is very important to prevent hackers from accessing your machine. To disable the SSH service, just type:
sudo systemctl disable ssh
IMPORTANT: After the successful setup, update the software to latest version. Go to System→Device page and click Check Updates.