Adopisoft 5.1.6 Installation using Ubuntu Server 24.04.3

 x64 or x86/64 (amd64) Installation Important: Before proceeding with command-line installation, it is assumed that you are already fam...

Monday, January 22, 2024

How To Fixed Machine is Offline and Validation Status...Connecting to server on Adopisoft system

 Solution: Make sure that nameserver 1.1.1.1 and nameserver 8.8.8.8 exist in resolv.conf file such as in the photos

Peparation:
1. search for putty on google chrome browser.Download it and install it.
Putty Here: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
2. Enable SSH on adopisoft


Steps: 
1. Open putty via ssh then type 10.0.0.1

Use the following login credentials:

For other board:
user:adopisoft
pass:asdf@12345

For RPI
user:pi
pass:raspberry

For OPI5/OPI ONE/OPI PC
user:username: root
passwd: asdf@12345 or asdf@123 or Asdf@12345

For Generic machine/Ubunto server
user:adoadmin
pass:AdoPiSoft

Note: Typing the password will have no display response. Just make sure you type it correctly then ENTER.

2. Type this command on terminal sudo nano /etc/resolv.conf then press ENTER

3. Edit it and add all you interface IP, ISP routers IP/Gateway and the DNS(usually 8.8.8.8 and 1.1.1.1). To edit use arrow up and down, arrow left and right and backspace. Sample below.Just follow the patterrn.
4. After editing press CTRL+O then press ENTER to save.
    Press CTRL+X to exit file.
    Type exit to close putty.

After that check if your problem is fixed.

Yung mga hindi maka intindi  at hindi nagbabasa o nagbabasa pero hindi naman inuunawa, uunahan ko na kayo sa mga tanong na nasa guide naman tulad nito:

"Paano po ii edit boss saan magpipindot" sagot: To edit use arrow up and down, arrow left and right and backspace.
"Anong ilalagay":
Sagot: Depende sa kung anong makikita dashboard mo.Ito ang mga ilalagay Mga Ip ng interface ng VLAN at USB TO LAN. Sample sa picture above are 10.0.0.1, 8.0.0.1, and 20.0.0.1 IP ng main router mo kung saan kumukuha ng internet ang vendo machine/Ubuntu PC.Example 192.168.1.1, 192.168.254.254, 192.168.0.1 Last is IP of your DNS. This is the most important .Kaya wag pong kalimutan. Usually 8.8.8.8 at 1.1.1.1 Take note, depende sa makikita sa dashboard nyo po. Follow the format <nameserver space IP>
"Na edit ko na po, anong sunod?" Sagot: After editing press CTRL+O then press ENTER to save.
            Press CTRL+X to exit file.
            Type exit to close putty.

Sunday, January 21, 2024

How To Flash Adopisoft LAN SUBVENDO

 Download Firmware here:

LAN Subvendo (Arduino Nano): https://drive.google.com/drive/u/2/folders/1uxheUQGGOaJ2axiYu4LIWff3LSnlqTna

(added support for any captive portal ip other than 10.0.0.1)

(Fixes for disconnection issues)

  2 types of firmware for arduino nano:

  (ado-lan-subvendo-arduino) for builds with SET pin as coin acceptor enabler/blocker

  (ado-lan-subvendo-arduino-no-fast-blocking) for builds with power cut as coin acceptor enabler/blocker

Download Xloader here:
https://drive.google.com/file/d/1f30m70XrunIsNUQmuhMdlj4I8seXtH11/view?usp=sharing


Instructions:
  1. Install XLoader
  2. Download Arduino Hex
Connect your arduino to PC and determine the COM Port.




Open Xloader. Select the 
hex file you downloaded (ado-lan-subvendo-arduino.hex or ado-lan-subvendo-arduino-no-fast-blocking.hex for powecut setup). Set proper Device and COM PORT. Set Baud rate: as is.Use the recommended baud rate set by Xloader .In short "do not change" Then click Upload.
If hanged-unplug arduino from PC then plug again then select the next available model type.Repeat the process to every model until:
If failed, it means ok. Failed means successful flash.

To test, if the reading of P5 and P10 is P1.00. it means you have a powercut setup and you flash it with the wrong hex file.It means you need to reflash using ado-lan-subvendo-arduino-no-fast-blocking.hex.













Friday, January 12, 2024

Pitunnel - an alternative to ngrok and dataplicity

This will work only on Ubuntu system and RPI/OPI/Ubuntu. 
Preparation:
1.Install terminal plugin on adopisoft admin dashboard.Or install putty to access your board via SSH.
2. Enable SSH if using putty. No need to enable SSH if using Ado terminal plugin.


Instructions:
1. Go to pitunnel . com and create your own account
2. This is important. copy the 2 terminal command provided by your pitunnel one at a time and paste it to adopisoft terminal then press ENTER to install pitunnel on your board.


     

  

After you press Enter, you should see a message "installation successfull", like this:



3. After running the command, if using putty when accessing terminal command via ssh, disable SSH
4. Go back to your pitunnel website then follow these photos below:




NOTE: Dont forget to save those 2 terminal commands in a notepad or in a safe location where you can access it in the future. You will need it in case  you want to reflash on the same machine.Do not use it on 2 or more separate machines.

















Thursday, October 12, 2023

How to Check your RPI/ubuntu boards time and set the correct time?

Preparation:
install Adopisoft terminal plugin or connect to your device using SSH

To check for your current time:

timedatectl

To set your timezone to Asia/Manila:

timedatectl set-timezone Asia/Manila


To change your time:
sudo date -s "yyyy-mm-dd hh:mm:ss"

replace with  your current date and time

example: sudo date -s "2023-10-13 09:16:59"
Note:Time format is 24hour format so if it is 1:00PM, It tmeans 13:00

sudo date -s "2023-10-13 09:16:59"


Make sure the system clock is synchronized:



try the following command to fix it:

sudo timedatectl set-ntp yes

or,

sudo timedatectl set-ntp true


sudo timedatectl set-local-rtc 0 --adjust-system-clock


sudo systemctl status systemd-timesyncd


timedatectl set-local-rtc 0

NOTE:
repeat these 2 terminal commands several times:

sudo systemctl status systemd-timesyncd 

sudo timedatectl set-local-rtc 0 --adjust-system-clock

until system clock synchronized becomes "yes"

The next step requires putty apps.It will not work in Adopisoft terminal plugin:

Peparation:
1. search for putty on google chrome browser.Download it and install it.
Putty Here: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
2. Enable SSH on adopisoft

Steps: 
1. Open putty via ssh then type 10.0.0.1

Use the following login credentials:

For other board:
user:adopisoft
pass:asdf@12345

For RPI
user:pi
pass:raspberry

For OPI5/OPI ONE/OPI PC
user:username: root
passwd: asdf@12345 or asdf@123 or Asdf@12345

For Generic machine/Ubunto server
user:adoadmin
pass:AdoPiSoft

Note: Typing password has no display response.Just make sure you type it correctly then ENTER.

2. Once you successfully login to terminal via putty, if  system clock synchronized is still "No" 

Open timesyncd.conf file then edit its content

To open, type this in the terminal:

sudo nano /etc/systemd/timesyncd.conf
then press ENTER
You should see this file content:

Please remove the comment (#) after [Time] then add this NTP server in the list:
NTP=ph.pool.ntp.org
NTP=0.asia.pool.ntp.org
NTP=1.asia.pool.ntp.org
NTP=2.asia.pool.ntp.org
NTP=3.asia.pool.ntp.org

The result should be look like this



To edit, use arrow up and down, arrow left and right,backspace and ENTER key.
When you are done editing, save it. 
To save press CTRL+O then ENTER
To exit file press CTRL+X
To close putty type exit but do not close it, because you're not done yet.

Next 

  • Restart the systemd-timesyncd service:
    To restart type this command then press ENTER:

    sudo systemctl restart systemd-timesyncd.service

    Wait for a few minutes then check if system clock synchronized becomes "Yes"
    Once you've followed these steps, your Raspberry Pi's/OPI's clock should be synchronized with the network, ensuring accurate timekeeping.

Wednesday, November 17, 2021

Installing Adopisoft 5.1.5 in ubuntu server manual installation

 INSTALL Ubunto server 18.04 version via manual installation.

https://releases.ubuntu.com/bionic/ubuntu-18.04.6-live-server-amd64.iso

For ethernet port driver problem try ubuntu version 22.04.3
Download Ubuntu server 22.04.4 LTS
 
Download Ubuntu Server 23.04

Kung hindi gumagana ang builtin LAN try the following version of ubuntu, preferably version 20.x.x:
https://drive.google.com/drive/folders/1YkY5o18viOzARjXitACoxSxc0sIHiiXQ?usp=sharing

Download the image and burn it to CD/DVD or flash it in bootable USB via Rufus application.

username:ubuntu

password:ubuntu


After installation login to your server account and apply this command one by one:


timedatectl
timedatectl set-timezone Asia/Manila
sudo apt-get update && sudo apt-get upgrade -y
curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash -
or if it does not work,
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install curl -y
sudo apt-get install -y nodejs
For Ubuntu Server version 23.04, bypass this command because this command is now deprecated because Node.js 18 is now included in the official Ubuntu repositories. 
sudo apt-get install -y nodejs python nginx bind9 isc-dhcp-server

sudo apt install -y hostapd dmidecode build-essential openssh-server python3-pip unzip bridge-utils
or if it does not work,
sudo apt-get install -y hostapd dmidecode build-essential openssh-server python3-pip unzip bridge-utils


For Ubuntu server version 23.04 only
sudo apt upgrade qemu

or if it does not work,
sudo apt reinstall qemu





This will download and install adopisoft on your Board.But first select the right board:

For Desktop PC ver 5.1.5 stable

wget -O adopisoft-5.1.5-amd64-node-v16.4.0.deb
https://github.com/AdoPiSoft/Releases/releases/download/v5.1.5/adopisoft-5.1.5-amd64-node-v16.4.0.deb
sudo apt-get install ./adopisoft-5.1.5-amd64-node-v16.4.0.deb

For RPI/OPI ver 5.1.5 stable

wget -O adopisoft-5.1.5-armhf-node-v16.4.0.deb
https://github.com/AdoPiSoft/Releases/releases/download/v5.1.5/adopisoft-5.1.5-armhf-node-v16.4.0.deb

sudo apt-get install ./adopisoft-5.1.5-armhf-node-v16.4.0.deb

For Desktop NanoPi R2S(arm64) ver 5.1.4 stable

wget -O adopisoft-5.1.4-arm64-node-v16.4.0.deb https://github.com/AdoPiSoft/Releases/releases/download/v5.1.4/adopisoft-5.1.4-arm64-node-v16.4.0.deb
sudo apt-get install ./adopisoft-5.1.4-arm64-node-v16.4.0.deb

For Desktop PC ver 5.1.2 stable

wget -O adopisoft-5.1.2-08302022-amd64-node-v16.4.0.deb https://github.com/AdoPiSoft/Releases/releases/download/v5.1.2/adopisoft-5.1.2-08302022-amd64-node-v16.4.0.deb
sudo apt-get install ./adopisoft-5.1.2-08302022-amd64-node-v16.4.0.deb

For Desktop PC ver 5.1.1 stable

wget -O 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 ./adopisoft-5.1.1-amd64-node-v16.4.0.deb

For Desktop PC ver 4.3 stable

wget -O adopisoft-4.3.0-amd64-node-v12.18.3.deb https://github.com/AdoPiSoft/Releases/releases/download/4.3.0/adopisoft-4.3.0-amd64-node-v12.18.3.deb
sudo apt-get install ./adopisoft-4.3.0-amd64-node-v12.18.3.deb


For Desktop PC ver 4.1.3 stable

wget -O adopisoft-4.1.3-amd64-node-v12.18.3.deb https://github.com/AdoPiSoft/Releases/releases/download/4.1.3/adopisoft-4.1.3-amd64-node-v12.18.3.deb
sudo apt-get install ./adopisoft-4.1.3-amd64-node-v12.18.3.deb

For Desktop PC ver 4.1.2 stable

wget -O adopisoft-4.1.2-release-amd64-node-v12.18.3.deb https://github.com/AdoPiSoft/Releases/releases/download/4.1.2/adopisoft-4.1.2-release-amd64-node-v12.18.3.deb
sudo apt-get install ./adopisoft-4.1.2-release-amd64-node-v12.18.3.deb

For Arm base (RPI/OPI) ver 5.1.2 stable

wget -O adopisoft-5.1.2-08302022-armhf-node-v16.4.0.deb https://github.com/AdoPiSoft/Releases/releases/download/v5.1.2/adopisoft-5.1.2-08302022-armhf-node-v16.4.0.deb
sudo apt-get install ./adopisoft-5.1.2-08302022-armhf-node-v16.4.0.deb

For arm64 base (Nano Pi R2s)ver 5.1.2 stable

wget -O adopisoft-5.1.2-08302022-arm64-node-v16.4.0.deb https://github.com/AdoPiSoft/Releases/releases/download/v5.1.2/adopisoft-5.1.2-08302022-arm64-node-v16.4.0.deb
sudo apt-get install ./adopisoft-5.1.2-08302022-arm64-node-v16.4.0.deb

For arm64 base (Nano Pi R2S) ver 5.1.2 Beta 11

wget -O adopisoft-5.1.2-beta.11-arm64-node-v16.4.0.deb https://github.com/AdoPiSoft/Beta-Releases/releases/download/v5.1.2-beta11/adopisoft-5.1.2-beta.11-arm64-node-v16.4.0.deb
sudo apt-get install ./adopisoft-5.1.2-beta.11-arm64-node-v16.4.0.deb


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



sudo systemctl enable adopisoft
sudo systemctl start adopisoft


Find your board/machine's IP address. In your board/machine's screen, just type:

ip addr

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.


Example::This is an example.The IP's might be different from your machine

https://192.168.1.27


Then in the admin “Security → Database Connection” settings, change the config to:


Database Type: postgres

Host/IP: localhost

Port Number:

Database Name: adopisoft

Username: adopisoft

Password: adopisoft

Restart machine and go back to “Security → Database Connection” after boot and click “Run migrations”.





Do you want to install ubuntu and adopisoft in one without issuing the terminal command? Yes you can do that in our latest build 5.1.3 beta 2.

Customized Ado x64 ISO (auto install): https://drive.google.com/file/d/1nfJesTlCMCl9nN_xsQavZcybdCsT4GDS/view

No need to issue a command.Just follow instruction.


Burn using rufus:

    GPT for UEFI capable BIOS

    MBR for old machine and not UEFI capable


Adopisoft auto Install:

Guide: 

https://wiki.adopisoft.com/doku.php?id=v5.1.3_x64-server&fbclid=IwAR2f_Y495ysTB2fyEMOWiqdd2TKnxqNxnStM14TdpecETVZnxRzeiH7Lh-Y

kung hindi gumana sa automatic installation, use advanced installation.


Adopisoft Advanced Installation:

Guide:

Select nyo Adopisoft Advanced Installation,,set your keyboard type,hostname, username, password.Sa partitioning method, select manual then select the partition na walang laman.MAs mabuti kong isang HD/SSD lang naka install saa PC para mas madali. Then Click finish partitioning and write to disk then automatically partition the free space.Kung ayaw mo magmanual, select entire harddisk kung wala naman laman ang HD/SSD mo na ibang OS.

Sa Choose software to install:Choose DNS server,Postgesql database, and openssh server(Press TAB to select and SPACEBAR to mark the software)

Then install the Grub boot loader to the master boot record,select yes

Then select the device for boot loader installation, select mo lang pangalan ng HD/SSD mo kung saan ka magbo boot.Then finish installation then remove the US Bootable before starting the machine.


Thursday, October 21, 2021

How to Setup Adopisoft Network Configuration

 

How to Setup Adopisoft Network Configuration

In this setup, you will learn how to configure the adopisoft network to work the built-in wifi, VLAN, and USB2LAN at the same time. First of all, you need to know their name:

 

eth0 is the BOARD Ethernet WAN port. This is where your internet is going in.

wlan0 is your built-in wifi

eth1 is your first connected usb2lan, next is eth2 is the 2nd,eth3 is the 3rd,eth4, the fourth one.

eth0.22 is your vlan22. 22 is the adopisoft default VLAN. You can use any VLAN number as long as it is both configured as the same number in the ado admin dashboard and to your VLAN hardware.

 

Every interface has its own gateway separated from its other.

Example:

                eth0(WAN)         192.168.1.2

                                             Network Prefix: /24

                                             Gateway: 192.168.1.1 (Your PLDT modem IP)

               wlan0(Built-in)  12.0.0.1 

                                             Check Enable Captive Portal
                                             Set Maximum Hops Allowed to 1
                                             Static IP:12.0.0.1

                                             Network Prefix: /20

                                             Check Use System DNS Server

         Check enable DHCP on this Interface

                                                    DHCP start:12.0.0.10

                                                    DHCP End:12.0.15.254

                eth1(USB2LAN 1) 20.0.0.1

                                             Check Enable Captive Portal

                                             Set Maximum Hops Allowed to 1

                                             Static IP:20.0.0.1

                                             Network Prefix: /20

                                             Check Use System DNS Server

                                                DHCP start:20.0.0.10

                                                DHCP End:20.0.15.254

                eth0.22(VLAN22)22.0.0.1-Go to Network then Interface then 802.1Q then create VLAN        using VLANID22. You can use any VLAN number but 22 is the default. Make sure the VLAN number in adopisoft vs VLAN id number in your hardware are the same.

                                             Check Enable Captive Portal

                                             Set Maximum Hops Allowed to 1

                                             Static IP: 22.0.0.1

                                             Network Prefix: /20

                                             Check Use System DNS Server

                                             Check enable DHCP on this Interface

                                                    DHCP start:22.0.0.10

                                                    DHCP End:22.0.15.254

               

 

 

You can use whatever number you want. With this setup, every interface has its own IP separated from each other. You will automatically see what interface you are connected via the IP assigned to you by the interface gateway.

 

Why does the DHCP address start with 10? Because the IP x.0.0.2 to x.0.0.9 where X will determine what interface you are connected to, is your reserved IP if you want your AP to be static. The reserved IP can be used by your Access Point in static AP mode. This will ensure that the IP cannot be used by your system to assign it to one of your clients.

 

Having a different interface will have different Portal IP when connected to its Access Point or routers AP. Ex with the IP assignment above, if you are connected to USB2LAN, your portal IP would be 20.0.0.1. If you are connected to the built-in, your portal IP would be 12.0.0.1, and so on.

The disadvantage of having different portal IP for every interface:
This will get you disconnected from the internet if you switch AP connection and needed to reconnect to the portal or at least open the portal manually to allow the internet again into your phone. What if all your SSID from all your interface are the same? You will likely get disconnected from the internet if your phone disconnects from one interface to another interface with different portal IP. You need to at least reopen the browsers portal to gain internet access again.

 

With this problem, INTERFACE BRIDGING is introduced. With interface bridging, the IP on all the bridge member interfaces are all the same. Their individual gateway will be ignored. Each accommodated interface connected to a physical segment is handled as one segment.

 br0(Bridge)         10.0.0.1

                                                   Check Enable Captive Portal

                                                    Set Maximum Hops Allowed to 1

                                                     Set static IP to 10.0.0.1

                                                    Check the required interface to bridge

                                                


                                             Network Prefix: /20

                                             Check Use System DNS Server

                                             Check enable DHCP on this Interface

                                                    DHCP start:10.0.0.10

                                                    DHCP End:10.0.15.254

 

Before Bridging:




 

After Bridging:


Bonus: Maximum Hops Allowed must be set to 1 to prevent phone tethering on all your interface.