Creating New Company on sam
- Change to relevant version - gorel nn (nn - version number)
- Move to relevant directory - cd $CCDIR
Create Company directory and copy data to it by doing - cp -a standard <COMPANYNAME>
- Create a link to company maintenance program - ln -s /u/cc/std/binx11/coaad contrl
- Set up Company using program contrl - that will set Company license number according to the number enetered. Make sure that you only license them for number of workstations they paid for. If for a demo, put 2.
- remove the link - rm contrl
- Create Locations by linking braad as follows: ln -s /u/cc/std/binx11/braad brctrl
- Execute brctrl and set up locations - License number will be assigned at that time.
- Check and adjust current period gencont. Create missing periods through pedaad.
Creating a new company on SAAS server (Abe)
- Follow directions for creating new company on sam
- Create a test company, also using the above procedure.
- Conset into each company (live and test) and make sure they have a company group set (on page 2):
Is Company a DEMO Company (stop send emails)....... : Backend type (File or Database name)............... : File Company Group...................................... : COMPANY
In the above example, we called the company group "COMPANY". It is important you set this to a unique value. It determines what company they can change to. The above has changed. We need to set up an allowable company prefix in empxaad. - Remove the contrl symbolic link.
Follow these directions in order to add as many users as required.
- Check the /etc/inittab file and make sure none of the vnc sessions exceed 99. If it does, manually make the corrections.
- Update the vnc details and password in the ccll company (debtor notes).
- Edit the file /etc/group and add an entry (use their company name in lower case) at the bottom. Increment the last used GID by 1.
sarissa:x:3239:ccc,lp,monavale,annan,mos zebra:x:3240:ccc,lp,zebra1,zebra2,zebra3,zebra4,zebra-canberra,zebra-tracey urban:x:3241:ccc,lp,uclp,ucmt,uclk,ucho temples:x:3242:ccc,lp,temples1,temples2,temples3 company:x:3243:ccc,lp,john,luke,matthew
- Make sure lp and ccc are members of this new group. Add all the users created in step 5 to this entry.
- Make sure the company directory for both the live and test companies belong to this group and is not world readable:
cd $CCDIR chgrp company COMPANY COMPTEST chmod 770 COMPANY COMPTEST
This ensures that no one else from another company in the same server will be able to access their company directory. Set up their printers by following these directions. In system-config-printer (or printconf), under access control tab:
Access control _ Allow printing for everyone except these users: X Deny printing for everyone except these users: ______________________________________________________ |@company_______________________________________|_ADD_|
Place their company group after the at sign (@). This tells cups to only let members of this group print on this printer. It prevents another company from printing on their printers.- Test connecting into the connections you created and make sure they all work.
Set up OpenVPN on the server and on the client computer.
- Set up winscp on the client computer and save the session on it.
- setup .controlrc as required
- Add relevant entry to SaaS alias on sam
- Copy current menu file from Sam to new company directory - scp /u/ccr.NN/adm/menu.{dat,idx} ccc@abe:/u/ccr.NN/COMPANY
Creating a new company on SAAS server (Abe) - new version - with it's own environment
- Edit the file /etc/group and add an entry (use their company name in lower case) at the bottom. Increment the last used GID by 1.
sarissa:x:3239:ccc,lp,monavale,annan,mos zebra:x:3240:ccc,lp,zebra1,zebra2,zebra3,zebra4,zebra-canberra,zebra-tracey urban:x:3241:ccc,lp,uclp,ucmt,uclk,ucho temples:x:3242:ccc,lp,temples1,temples2,temples3 company:x:3243:ccc,lp,john,luke,matthew
- Make sure lp, ccc, cc2 and jon are members of this new group.
- Create company environment directory under /u - mkdir cc{company}.
under new directory create links to relevant revision directories: std, binl, binx11, lib, manual, pixmap, standard
Create Company directory and copy data to it by doing - cp -a /u/ccr.nn/standard <COMPANYNAME>
Create DEMO company cp -a <COMPANYNAME> DEMO
Create adm direcory under <COMPANY> from SAM : rsync -av /u/ccr.nn/standard.adm/ ccc@abe:/u/ccdrboom/adm Copy the menu.* from SAM /u/ccr.nn/adm/ . Make sure the new company directory has no menu.dat in it.
As root cd into /u/cc{company} and enter the following commands
#chgrp -R {company} .
#find . -type d -exec chmod 770 {} \;Important: if updating a current running company, do not do the above (leave it 777) until everyone using this company is logged out. Otherwise they will not have access to their own company directory.
Change environment to new company: export CCDIR=/u/cc<COMPANYNAME> ; /u/ccr.nn/usr/common.h
- Conset to DEMO
- ln -s std/binx11/coaad contrl
Create <COMPANY> using contrl
- Create directory usr. Copy /u/ccr.xx/usr/common.sh into this directory. Edit it so that CCDIR is set to /u/cc{company} .
Conset to <COMPANY>
- add user via addusr
- Modify ~username/.vnc/xstartup to call /u/cc{company}/usr/common.sh
Setting up locations
- Ask how manu locations is needed and if necessary erase/replace the 4 built in ones from the standard company. Set up the information based on the New Company Set up Form (address, ABN, etc). Be sure to enter the email address as this will be used as the from address in emails.
Click here to access the New Company Set up Form link