Skip to main content

Migrating From one Ubuntu machine to another

BACKUP DATABASE ON OLD SYSTEM FIRST

Go to terminal

cd ~/Desktop;

sudo -s;

service apache2 stop;

mysqldump --default-character-set=utf8mb4 -u root -p vlsm | gzip > "vlsm-$(date +%Y-%m-%d-%H-%M-%S).sql.gz";

exit; exit;

Copy this file 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 Desktop of new computer

then in 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