~ubuntu-branches/ubuntu/wily/postbooks-schema-empty/wily

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
Installing xTuple ERP
===========================================
Last Updated: February 9, 2012

Thank you for your interest in xTuple ERP: PostBooks Edition, an
OSI-certified open source application from xTuple. This file provides
a brief overview of the steps required to manually prepare your
PostgreSQL server to run xTuple ERP: PostBooks Edition.

For up-to-date instructions and full details, please visit xtuple.org
and click on Docs > Admin and Setup.

The easiest way to get started is to use the xTuple all-in-one
installer. The xTuple installer is available for Windows, Mac, and
Linux. You can download the installer from the PostBooks-installers
directory on the PostBooks SourceForge page.

For more advanced users who prefer not to use the PostBooks installer,
the following steps will get you started:

1. Install and configure PostgreSQL

2. Create the PostgreSQL database superuser 'admin' and
   the group 'xtrole'
   $ psql -U postgres -f init.sql template0     # see init.sql below

3. Create a new PostgreSQL database
   $ createdb -U admin production

4. Restore one of the xTuple starter databases into it
   (see Starter Databases below), for example:
   $ pg_restore -U admin -d production quickstart.backup -v


PostgreSQL Considerations
-------------------------

Before you can start using the xTuple Applications, you must first
have PostgreSQL installed and properly configured. Check
http://www.xtuple.org/compatibility-matrix to make sure the version
of PostgreSQL you are running is compatible with the version of
xTuple ERP you are installing.

For additional information on installing PostgreSQL, please visit
http://www.postgresql.org where you will find in-depth documentation
and other resources related to PostgreSQL. Installation support is
also available from xTuple. To learn more about xTuple's PostgreSQL
services, please visit http://www.xtuple.com/postgres.

NOTE: The xTuple applications require the PostgreSQL pgcrypto module.
      This is used for credit card processing and storing other
      sensitive information. You should be sure to include the
      pgcrypto module when installing PostgreSQL.  If you do not,
      you will encounter errors when running the xTuple ERP
      application.


init.sql: Creating the admin user and xtrole group
--------------------------------------------------

Run the following SQL script using either psql, pgAdmin, or some
other program that allows connecting directly to a PostgreSQL
database server before creating your xTuple ERP database:

--
-- This script creates the group xtrole and the user admin
--

CREATE GROUP xtrole;

-- Create the user 'admin' with the password 'admin',
-- give it permission to create databases and users,
-- and place it in the xtrole group.
CREATE USER admin WITH PASSWORD 'admin'
                       CREATEDB CREATEUSER
                       IN GROUP xtrole;

-- End of init.sql


NOTE: Since the default password for the user admin is 'admin', you'll
      want to change it immediately.


Starter databases
-----------------

xTuple supplies three different databases to help get you started:

* empty.backup
  This is an empty database with no data, but with all the tables
  and structures created.

* quickstart.backup 
  This database contains a basic Chart of Accounts and also the
  Account Assignments required to run the full range of transactions.

* demo.backup
  This database contains a suite of sample data built on top of the
  'quickstart' database


-----------------

Again, thank you for your interest in xTuple ERP.
You can find more information, full documentation, discussion forums,
support options, training opportunities, and commercial offerings at
http://www.xtuple.org