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...

Thursday, April 25, 2024

How to update from old version 3.xx to version 5.xx

 How to flash adopisoft:

https://www.youtube.com/watch?v=loIcw_H89vY&t=86s&pp=ygUPZmxhc2ggYWRvcGlzb2Z0



Download Balena for Flashing:

https://etcher.balena.io/#download-etcher



Download image here:

note: make sure naka login po kayo sa Google account to avoid "too many users downloaded file recently" error
https://www.adopisoft.com/downloads
Select the right board type 

Select Business kung galing sa version 3.xx
Kung version 4.xx, either business or Lite depende po sa license na hawak nyo kung Lite o business

Select USB TO Lan kung naka USB TO LAN specially kung galing sa version 3.xx. Select VLAN naman kung may VLAN capable device po kayo.

Revoke nyo na rin ang license sa old version na machine habang nagpa flash

How to revoke?

Paki revoke po muna ang license na nakakabit sa old machine id/device id
Alam nyo po ba ang device ID ng old machine? 

Login ka sa manager.adopisoft.com then click Machine then search for your old device ID, click it then scroll down then click revoke



After flash login to 10.0.01/admin

user: admin

password: admin



Go to Admin then My Profile then change your admin password right away after you login



Go to theme then captive portal then variant then RESET THEMES



Go to Admin then My Profile then scroll down to bottom then Check the last 3 admin rights then save



For validation status problem please follow this:

https://adopisofthowto.blogspot.com/2024/04/fixed-for-ver-513-or-any-version-with.htmlspot.com/2024/04/fixed-for-ver-513-or-any-version-with.html

Once na nagawa nyo na po yan, pwede na po kayo mag activate ng license by going to Device Information



If may problem po kayong na encounter like "Product key already in used", Please revoke your license key from your old version 3 machine.



How to Activate license in Adopisoft:

https://www.youtube.com/watch?v=JMqEkpU-xCQ&pp=ygUSYWN0aXZhdGUgYWRvcGlzb2Z0


How to revoke/reuse Adopisoft license key

https://www.youtube.com/shorts/WuEQilzNQ68


Last 
Please OTA update to 5.1.5. Go to System then Software Update then Check for Update then select and install 5.1.5. then hard restart. After restart reset your theme.HIndi mo po maa access ng maayos ang portal hanggat di ka nag rereset ng themes.Please back read na lang kung pano mag reset ng themes.
   

Saturday, April 13, 2024

Fixed for ver 5.1.3 or any version with Validating machine after flash

Problem: Validating license, http request error, machine is offline, internet is down and inventory logs do not appear.


Note: This fix works only on version 5.1.3 and above not on validating license  on old version 3.xx machine,

Caused: Time and date is not synchronized and DNS is not properly configured

Solution: 

Paki edit ang laman ng timesyncd.conf at resolv.conf para mag automatic sync ang date and time.Pwede naman itama ang ang date and time manually pero malelate pa rin yan pag nag brownout/restart

Use putty terminal and follow these steps
1. Download putty in your laptop or desktop.
Download here: https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html
Download the 64bit if you're using 64bit and 32 bit if using 32 bit for windows system.
No laptop or desktop, don't worry you can use Termius apps on your Android phone.Here is the guide
Click this using Termius guide

2.Enable SSH on your Adopisoft admin dashboard


3. Make sure your PC is connected to  vendo machine or the portal 10.0.0.1 is accessible on your PC then open putty.


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

For Ubunto Server Business OVA File for Virtual Machine
user:username: root
passwd: asdf@12345

Note: Typing password, will have no screen response. Just make sure you type it correctly then ENTER.Yung password pala wag kang magtaka kung walang lumalabas sa screen.Ganyan talaga yan di nakikita

4. Once na nakapasok, after you login type date then press ENTER


5.Double check the result. Change if the time and date is incorrect.

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-07-13 09:16:59"
Note:Time format is 24hour format so if it is 1:00PM, It tmeans 13:00

sudo date -s "2024-04-14 13:07:59"
6.Check if date and time is synchronized. Type timedatectl then press ENTER



7.If system clock synchronized is yes, proceed to step 8. For OPI PC/OPI One board proceed to step 8. Step 7 is not needed for OPI board.
If system clock synchronized is 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. Check the command's spelling, spacing and period.Always double check before you hit ENTER.
You should see this file content:

Please remove the comment (#) after [Time] then add this NTP server in the list.Copy and paste na lang para dina mag type:Yung hashtag # lang po.Wag yung buong line and edelete.

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

To edit, use arrow up and down, arrow left and right,backspace and ENTER key

The result should be look like this:
Ganito na dapat magiging itsura:



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.


8. Configure your DNS
Type this command on terminal sudo nano /etc/resolv.conf then press ENTER. Check the commands spelling, spacing and peiod.Always double check before ENTER.

You will see this result:



9. Edit it then add your DNS 1.1.1.1 and 8.8.8.8. Use arrow up and down, arrow left and right  to edit.

nameserver 1.1.1.1
nameserver 8.8.8.8

Add the router IP of your vendo machines Internet source:
If using VLAN, add your VLAN Routetr;s IP or IP ng VLAN device mo to access the admin dashboard of your VLAN router, kung naka enabled ang DHCP
If direct to ISP, add your ISP modem router's IP.Yung IP para mabuksan mo or ma remote ang ISP modem router.
Example 192.168.1.1, 192.168.254.254, 192.168.0.1, 192.168.88.1

nameserver 192.168.88.1

Add your vendo's interface IP

nameserver 10.0.0.1
nameserver 20.0.0.1

Take note: mas ok kung mauna ang DNS sa list

It should look like this after you edit:



What you will be adding in the list, depends on your Admin dashboard
10. After editing press CTRL+O then press ENTER to save.
    Press CTRL+X to exit file.
    Type exit to close putty
11. For OPI one/OPI Pc board only lock the resolv.conf file to prevent modification of changes during reboot.This is the terminal command:

sudo chattr +i /etc/resolv.conf

COMMON Question:

Bakit po blank or walang laman. Ano po ang gagawin?
A: Check spelling, spacing and period. Siguradong mali.

"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. In other words WAN gateway or yung IP para mabuksan mo and admin dashboard ng ISP modem router .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.


Video Guide








 















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.