Skip to content

Ubuntu20 X64

Update Version

  apt update
  apt upgrade
  apt install build-essential openssl libssl-dev
  apt install vim

Install Node

  tar zvxf node-v14.19.3-linux-x64.tar.gz -C /usr/local

Environment variable settings

  echo '''export NODE_HOME=/usr/local/node-v14.19.3-linux-x64 export PATH=$PATH:$NODE_HOME/bin export NODE_PATH=$NODE_HOME/lib/node_modules''' /etc/profile

Make environment variables take effect immediately

  source /etc/profile

Soft connection Node and NPM

  ln -sf /usr/local/node-v14.19.3-linux-x64/bin/node /usr/bin/node
  ln -s /usr/local/node-v14.19.3-linux-x64/bin/npm /usr/bin/npm

Verify that node is installed successfully

  node -v

Verify that npm is installed successfully

  npm -v

Upgrade npm

  npm install npm -g

Install yarn

  npm install yarn -g
  ln -s /usr/local/node-v14.19.3-linux-x64/bin/yarn /usr/bin/yarn

Install quasar

  npm install @quasar/cli@1.2.1 -g
  ln -s /usr/local/node-v14.19.3-linux-x64/bin/quasar /usr/bin/quasar

Check quasar version

  quasar -v

Check python version

  • Confirm your python version must greater then 3.8

Install git

  apt install git

Download GreaterWMS from GitHub

  git clone

Elevate GreaterWMS Folder

  chmod -R 755 GreaterWMS

Go to the GreaterWMS folder

  cd GreaterWMS
  apt install python3-pip
  pip3 install -r requirements.txt
  • Sometimes, there will be problems when you install these libraries because of the python3 version, don't worry, pip3 install the wrong library.

Database generation

  python3 makemigrations
  python3 migrate

Run GreaterWMS

daphne -p 8008 greaterwms.asgi:application

Run GreaterWMS

daphne -b -p 8008 greaterwms.asgi:application

  • Now open your browser, type "http://{your internal ip}:8008"
  • and you will see GreaterWMS run well

Go back to the GreaterWMS folder

  Ctrl + C
  cd templates
  yarn install
  • Wait for the Yarn installation to complete. In fact, you can also npm install it, but it will be slower Change yarn to domestic source

Go back to the baseurl folder

  ## Need to edit 'templates/public/statics/baseurl.txt' to your internal ip
  Ctrl + C // go back to templates folder
  ## Example changes before

  ## Example changes after
    https://{ your external ip }:8008
  • Press Esc and type ":wq" to save changes
  • Now, you know how to deploy and modify the request address

Back to templates

  ##you should build it again
    cd templates
    quasar build

Go back to the GreaterWMS folder

  cd ..
  daphne -b -p 8008 greaterwms.asgi:application
  • Now, open the browser, type "http://{your internal ip}:8008", you can see the project is running