Skip to main content

Migrating From one Ubuntu machine to another

BACKUP DATABASE ON OLD SYSTEM FIRST

Go to terminal

cd ~;

sudo -s;

wget -O db-backup.sh https://raw.githubusercontent.com/deforay/vlsm/master/scripts/db-backup.sh

sudo chmod u+x db-backup.sh;

sudo ./db-backup.sh;

  • Enter the MySQL Username, Password when prompted
  • Choose the database(s) you want to export
  • Wait for the script to finish running
  • Copy the db file(s) to a flash disk or CD.

RESTORE DATABASE AND INSTALL VLSM ON NEW SYSTEM

Ensure new system is Ubuntu 22.04

Copy the backed up file from flash disk or CD to the Desktop folder of the new computer

then in the terminal run the following commands one by one.

cd ~/Desktop;

sudo -s;

rm -f *.sql

gzip -d vlsm-*.sql.gz && mv vlsm-*.sql vlsm.sql

wget -O setup.sh https://raw.githubusercontent.com/deforay/vlsm/master/scripts/setup.sh

chmod +x setup.sh;

./setup.sh  --db  vlsm.sql

rm setup.sh;

exit; exit;


Enter the mysql password and STS URL correctly when prompted.

VLSM Setup

  • Now edit config.production.php and enter correct MySQL details and other config sudo gedit /var/www/vlsm/configs/config.production.php
  • Now open http://vlsm/
  • Register new admin
  • After successful registration login as admin http://vlsm/
  • After you login, Fill the instance details in the popup. Select LIS with Remote Ordering Enabled
  • Select the lab from the dropdown
  • Click on Force Sync and wait for sync to finish