|
Size: 6154
Comment:
|
Size: 3369
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| = Installing CONTROL on an Oxford Store branch computer = | = Installing CONTROL on an Mink Store branch computer = |
| Line 3: | Line 3: |
| 1. Create polling directories: * $CCDIR/'''OXFORD'''/<BRANCH> * $CCDIR/'''OXFORD'''/<BRANCH>/send * $CCDIR/'''OXFORD'''/<BRANCH>/receive 1. Create the branch as needed in the '''OXFORD''' company. Should be copy of an existing store with appropriate modifications. 1. Create the polling location as needed in the '''OXFORD''' company. Should be copy of an existing store with appropriate modifications. 1. If the branch is a new branch, copy stock and category records to branch from ??HO?? (sicrep) 1. Tar (retain absolute path) the following into control.tgz. 1. /u/cc/adm.store 1. /u/cc/pixmap 1. /u/cc/standard 1. /u/cc/blank 1. /u/cc/std 1. /u/cc/binl 1. /u/cc/binx11 1. /u/cc/lib 1. Tar (retain absolute path) the following user files into users.tgz 1. /u/cc/usr/common.sh 1. /u/cc/usr/ccc/.bash_profile 1. /u/cc/usr/ccc/.bash_logout 1. /u/cc/usr/pos/.bash_profile 1. /u/cc/usr/pos/.bash_logout 1. If the store does not have a VPN connection, tar (retain absolute path) the following VPN files into vpn.tgz 1. /etc/ppp/peers/'''oxford''' 1. /etc/ppp/peers/'''oxford'''_id_dsa 1. /etc/ppp/connect-script 1. /etc/ppp/ip-up.local 1. Tar (absolute path) the following into eftpos.tgz: 1. /u/eftpos 1. /usr/java/j2re1.4.2_01/lib/i386/librxtxSerial-2.0.5.so 1. /usr/java/j2re1.4.2_01/lib/i386/librxtxSerial.so 1. /usr/java/j2re1.4.2_01/lib/ext/comm.jar 1. /usr/java/j2re1.4.2_01/lib/ext/jcl.jar 1. /usr/java/j2re1.4.2_01/lib/javax.comm.properties 1. /etc/X11/fvwm2/system.fvwm2rc 1. When installing for Windows based store (ISHKA) 1. Create required location by CLONING (F4) from existing on. sicrep cats and products to new location 1. Copy data from one of the existing PC 1. cd \cc\ishka 1. pkzip zipidx *.idx 1. pkzip zipdat *.dat 1. from server wget ftp://polling:mushroom@192.168.$n.100/ishka/zipidx.zip 1. from server wget ftp://polling:mushroom@192.168.$n.100/ishka/zipdat.zip 1. Unpack them into empty directory (JEN) - cd /u/cc/JEN; unzip zipdat.zip; unzip zipidx.zip 1. conset -c JEN ; clrco; 1. transfer all file to \cc\ishka 1. make sure adm files are taken from another Windows installation 1. Copy-create new location on PC and make sure to delete log.dat - so it does not poll back 1. check ccreg (must be DEMO) and make sure it is conset to correct branch and termno is 2 1. do not do 8. in Computer advanced set NODEID to ISHKA |
1. Stop polling from cron so it doesn't interfere later on. 1. Update the hosts file assigning the next available IP to the new store. (Do the same on muppets) 1. Clone last store using brctrl in the '''MINK''' company. Modify the address and the a.b.n. Blank out if not available. 1. Copy category and stock records to branch from the store you cloned in step 3 (sicrep) 1. Create the polling location as needed in the '''MINK''' company. Should be copy of the store in step 3 and modified accordingly.<<BR>> * Zero out the status and numbers in page 1 * Put IP address from step 2 into page 1 * Change the branch in page 3 1. Run commpost -s to automatically generate the polling directories.<<BR>> * $CCDIR/'''MINK'''/<BRANCH> * $CCDIR/'''MINK'''/<BRANCH>/send * $CCDIR/'''MINK'''/<BRANCH>/receive |
| Line 54: | Line 16: |
| 1. cd into $CCDIR/MINK/<BRANCH> | |
| Line 59: | Line 22: |
| 1. Branch Code = 1 1. Branch Code = HO |
|
| Line 64: | Line 25: |
| 1. Companies (courep -l rslog.dat) | |
| Line 70: | Line 30: |
| 1. The stock in the branch 1. Stock from warehouse location |
|
| Line 78: | Line 36: |
| 1. Extract all transactions relating to this store (sendpost -f tran.dat -o rsendtrn.dat -B <BRANCH> 1 12 14 16 17 21 22 30) | |
| Line 80: | Line 37: |
| 1. Zip up rslog.dat and rsendtrn.dat into rsend1.zip 1. Send all of the tar and zip files to the new store. |
1. Reenable polling in cron. This should automatically zip the file and place it in send1.zip |
| Line 84: | Line 39: |
| 1. Install the following packages: (Should be available at HO server or Greenwood server) * fribidi-0.10.1-2.i386.rpm * libstroke-0.4-1mdk.i586.rpm * fvwm-2.5.5-1.i386.rpm * xloadimage-4.1-24.i386.rpm * telnet-server-0.17-23.i386.rpm * mgetty-1.1.28-9.i386.rpm * ncompress-4.2.4-31.i386.rpm * rxvt-2.7.5-15.i386.rpm * vsftpd-1.1.0-1.i386.rpm * pine-4.44-13.i386.rpm * rsh-server-0.17-10.i386.rpm * postfix-1.1.11-5.i386.rpm 1. Install j2re1.4.2_01. It is important that you use this EXACT version of Java. 1. Create the /u/ and /u/cc/ directories with world-readable/writable/executable permissions 1. Link /cc/ to /u/cc/ 1. Untar the contents of control.tgz to the appropriate directory. 1. Rename the adm.store directory to adm 1. Copy the blank company directory to be called '''OXFORD''' 1. Export CCDIR=/u/cc 1. Export NODEID=DEMO 1. Run conset to change to the '''OXFORD''' company 1. Rename the branch code "1" to be <BRANCH> 1. Rename the polling location "1" to <BRANCH> 1. Create the necessary system users 1. cc 1. pos 1. polling 1. Untar users.tgz to the appropriate directory 1. If necessary, untar vpn.tgz to the appropriate directory and insert the necessary inittab command. 1. Untar eftpos.tgz into the appropriate directory. 1. Edit serialPortName in /u/eftpos/eftclt/eftclt.settings so that the eftpos client accesses the correct serial port. 1. Link /usr/share/fvwm/system.fvwm2rc to /etc/X11/fvwm2/system.fvwm2rc 1. Place rsend1.zip in the /u/cc/'''OXFORD'''/<BRANCH>/receive/ directory. Polling should automatically process this. 1. Setup the appropriate cron jobs |
1. Clone a copy of the last store computer <insert link to different wiki on how to clone over internet> . This should be the store you cloned in step 3 at head office 1. Set the new hostname in /etc/sysconfig/network . 1. Stop the ftp service. service vsftpd stop 1. Run clrco on '''MINK''' 1. Delete polling directory tree of the location you cloned $CCDIR/MINK/<OLDSTORE> 1. Run conset to change to the '''MINK''' company 1. Rename the branch code "1" to be <BRANCH> (brctrl) 1. Rename the polling location "1" to <BRANCH> (comaad). Zero out all the status and counters on page 1. 1. Copy a new log.dat from standard to the '''MINK''' company directory. 1. As the root user, make sure $CCDIR/LOG and $CCDIR/LOG/back is world writable (chmod -R a+w $CCDIR/LOG) 1. Run commpost -s once to create polling directories. Verify that polling status ends as 30. |
Installing CONTROL on an Mink Store branch computer
- At Head Office:
- Stop polling from cron so it doesn't interfere later on.
- Update the hosts file assigning the next available IP to the new store. (Do the same on muppets)
Clone last store using brctrl in the MINK company. Modify the address and the a.b.n. Blank out if not available.
- Copy category and stock records to branch from the store you cloned in step 3 (sicrep)
Create the polling location as needed in the MINK company. Should be copy of the store in step 3 and modified accordingly.
- Zero out the status and numbers in page 1
- Put IP address from step 2 into page 1
- Change the branch in page 3
Run commpost -s to automatically generate the polling directories.
$CCDIR/MINK/<BRANCH>
$CCDIR/MINK/<BRANCH>/send
$CCDIR/MINK/<BRANCH>/receive
- 1. Copy data from HO into polling files
cd into $CCDIR/MINK/<BRANCH>
- Make sure there isn't a copy of rslog.dat in the local directory and copy standard rslog.dat into the local directory
- Make sure there isn't a copy of rsendtrn.dat in the local directory and copy standard rsendtrn.dat into the local directory
- Dump the following records to the local copy of rslog.dat IN THE FOLLOWING ORDER:
- Menus (menurep -l rslog.dat)
- Branches (brurep -l rslog.dat)
- Employees (empurep -l rslog.dat)
- Creditor Types (cutrep -l rslog.dat)
- Creditors (cutrep -l rslog.dat)
- Salespeople (smurep -l rslog.dat)
- Colours (clrurep -l rslog.dat)
- Sizes (sizurep -l rslog.dat)
- Categories (catrep -l rslog.dat)
- Stock Items (sturep -l rslog.dat)
- BOMs (bomrep -l rslog.dat)
- Debtor Types (dutrep -l rslog.dat)
- Debtors (dutrep -l rslog.dat)
- Debtor Notes (dutrep -l rslog.dat)
- Process all polling files received (commpost -s)
- Post all transactions (postal)
- Extract ALL Customer Orders, Debtor Payments Gift Vouchers, etc. (sendpost -f tran.dat -o rsendtrn.dat 22 23 24 25 26 36)
- Reenable polling in cron. This should automatically zip the file and place it in send1.zip
- At the Store:
Clone a copy of the last store computer <insert link to different wiki on how to clone over internet> . This should be the store you cloned in step 3 at head office
- Set the new hostname in /etc/sysconfig/network .
- Stop the ftp service. service vsftpd stop
Run clrco on MINK
Delete polling directory tree of the location you cloned $CCDIR/MINK/<OLDSTORE>
Run conset to change to the MINK company
Rename the branch code "1" to be <BRANCH> (brctrl)
Rename the polling location "1" to <BRANCH> (comaad). Zero out all the status and counters on page 1.
Copy a new log.dat from standard to the MINK company directory.
- As the root user, make sure $CCDIR/LOG and $CCDIR/LOG/back is world writable (chmod -R a+w $CCDIR/LOG)
- Run commpost -s once to create polling directories. Verify that polling status ends as 30.
- Run and test EVERYTHING !!
- After polling runs once, list out the voucher redemptions (salstr 8). Make sure the redemption location matches what is in head office.
- Update this piece of documentation.
