Skip to content

Quick Start Guide

Corey edited this page Jan 7, 2021 · 68 revisions
Windows 10

To Install

  • Install Git for Windows, accept defaults, change default text editor if desired.
  • Install Visual Studio 2019, check Desktop development with C++.
  • Install MariaDB, use defaults, set a root password.
  • Install Python 3, check to add to PATH.
  • Open a PowerShell window and navigate to your chosen install directory.
  • Type:
    git clone --recursive https://github.com/topaz-next/topaz.git
    cp topaz/conf/default/* conf/
    
  • Edit the new login.conf, map.conf, and search_server.conf files in topaz/conf/ and change mysql_password to the password set during MariaDB setup.
  • Back in your PowerShell window, type:
    cd topaz/tools
    py -3 -m pip install -r requirements.txt
    py -3 dbtool.py
    
  • Follow the on-screen instructions.
  • Open the topaz root folder in VS2019.
  • Build the solution in VS2019.

To Update

  • Open a PowerShell window and navigate to your topaz directory.
  • Type:
    git stash
    git pull
    git stash pop
    cd tools
    py -3 dbtool.py update
    
  • Build the solution in VS2019.
Linux

To Install

  • Use your package manager to install the following packages or their equivalent:

    Debian/Ubuntu:

    sudo apt install g++-8 cmake mariadb-server libmariadbclient-dev libluajit-5.1-dev libzmq3-dev libssl-dev python3 python3-pip git
    
  • Type:

    sudo mysql_secure_installation
    
  • Follow the instructions for setting up the DB.

  • Type (changing 'password' to your password of choice):

    sudo mysql -u root -p -e "CREATE USER 'topaz'@'localhost' IDENTIFIED BY 'password';CREATE DATABASE tpzdb;USE tpzdb;GRANT ALL PRIVILEGES ON tpzdb.* TO 'topaz'@'localhost';"
    git clone --recursive https://github.com/topaz-next/topaz.git
    cd topaz
    cp conf/default/* conf/
    
  • Edit the new login.conf, map.conf, and search_server.conf files in topaz/conf/ and change mysql_login and mysql_password to the login/password set during MariaDB setup.

  • In the topaz directory, type:

    mkdir build
    cd build
    cmake ..
    make -j $(nproc)
    cd ../tools
    pip3 install -r requirements.txt
    python3 dbtool.py
    
  • Select 'Reset DB' and follow the instructions to "reset" the database.

To Update

  • Open the topaz directory in a terminal.
  • Type:
    git stash
    git pull
    git stash pop
    cd build
    cmake ..
    make -j $(nproc)
    cd ../tools
    python3 dbtool.py update
    

Clone this wiki locally