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. This should be the store you cloned in step 3 at head office
- 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
- Install j2re1.4.2_01. It is important that you use this EXACT version of Java.
- Create the /u/ and /u/cc/ directories with world-readable/writable/executable permissions
- Link /cc/ to /u/cc/
- Untar the contents of control.tgz to the appropriate directory.
- Rename the adm.store directory to adm
Copy the blank company directory to be called OXFORD
- Export CCDIR=/u/cc
- Export NODEID=DEMO
Run conset to change to the OXFORD company
Rename the branch code "1" to be <BRANCH>
Rename the polling location "1" to <BRANCH>
- Create the necessary system users
- cc
- pos
- polling
- Untar users.tgz to the appropriate directory
- If necessary, untar vpn.tgz to the appropriate directory and insert the necessary inittab command.
- Untar eftpos.tgz into the appropriate directory.
- Edit serialPortName in /u/eftpos/eftclt/eftclt.settings so that the eftpos client accesses the correct serial port.
- Link /usr/share/fvwm/system.fvwm2rc to /etc/X11/fvwm2/system.fvwm2rc
Place rsend1.zip in the /u/cc/OXFORD/<BRANCH>/receive/ directory. Polling should automatically process this.
- Setup the appropriate cron jobs
- 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.
