From ISoft Wiki
< Replikwando
Revision as of 18:34, 8 November 2010 by Jmckinstry (talk | contribs) (Windows Server)
Jump to: navigation, search

Windows Server

Service version of Replikwando, which will copy a customers database to ISoft's server so their inventory can eventually be updated on

  1. Connect to the server thru VNC
  2. Check their local itrackpro/itrackenterprise database for their company produce code (companyinfo.productcode or settings.location=CompanyInfo) and use it when creating their account
  3. Create Replikwando account on Replikwando Records - Add New Company website
    Update Kungfu to include the new HTP account information
  4. Download Replikwando Install pack from
  5. Copy SSL Certificates over to %PROGRAMFILES%\Isoft Data Systems\Certificates
    SSL Certs can be found in <svndir>\itrack2\trunk\Certificates\<companyname>-cert. If certs don't exist for the company, ask Dayton or Brian to generate them.
  6. Edit Replication.ini file
    1. This is a long section, found [#Host_INI_Configuration lower down]
  7. Edit my.ini file (default location %PROGRAMFILES%\MySQL\MySQL server 5.1\my.ini)
    1. Add the following under [mysqld]:
  8. Stop and Start the MySQL service
    1. Restart service in control panel -> Admin tools -> services
    2. in command prompt:
      net stop mysql
      net start mysql
  9. Set up Task Schedule to run Replikwando once after business hours.
    Only need to set up schedule if installing during business hours so that you don't lock up clients database
  10. Tell Brian user and Product code so he can set up triggers on
  • Note: Replikwando will lock up the entire database during the initial push, so it may be a good idea to run it at the end of the work day.

Linux Sever

Replikwando on Linux using Wine

  1. Connect to the customer's server using sftp (it's a *nix app, may need to install Cygwin-X)
    Do `put “Replikwando with Wine.tar.gz” .` to put the install files on their server
    You can also put the customer's key and cert now, as well
  2. Connect to the customer's server using SSH/putty
    Extract the files using `tar -zxf “Repikwando with Wine.tar.gz”`
    If that fails, use `gunzip “Replikwando with Wine.tar.gz”`, `tar -xf “Replikwando with Wine.tar”
  3. You will now have two new files in your directory, and ISoft/*
    Type ./
    Depending on the system configuration, several prompts may show up. Just read them and follow what they tell you to do.
    The script will tell you when it is done running.
  4. Navigate to ~/.wine/drive_c/Program\ Files/Replikwando
    This directory will contain the error logs, sqlite file, and so on.
    Put in the required values for replication.ini (see above)
  5. Type ~/ to start Replikwando for the first time.
    Confirm that Replikwando is running correctly using the error logs here
    Type `vi <filename>` to open the file in an editor to read it. Type :q<enter> to quit.
  6. To connect to the mysql server, type `mysql -utestuser -hlocalhost -p`
    You'll have to type a 'use <database>' command before running queries
  7. Once Replikwando is confirmed running, type `sudo vi /etc/rc.local` and place the following lines just above the last line that says 'exit 0':
  8. start replikwando
  9. sudo -H -u isoft /home/isoft/
  10. Done!

  • Some quick tips:

Quick linux commands:

ls : shows you what is in the directory
sudo : lets you run powerful & dangerous commands (requires password)
cd : change directory
rm : deletes a file (use rm -r to delete a folder)
deletes cannot be undone!
You can't open Replikwando's UI to see if it's pushing data, so you have to rely on the error logs and test database changes.
All normal Replikwando caveats apply (initial push db lock, query error logs, so on so forth)

After the initial push, be sure to copy over functions and stored procedures as necessary, as replikwando doesn't do this automatically.

If you have any additional questions, ask Justin.