Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- createuser --no-superuser --no-createdb --no-createrole mypguser
- createdb -O mypguser mypgdatabase
- apt-get -y install ssh acpid apache2 postgresql libdbi-perl libdbd-pg-perl git-core gitweb postfix mailutils texlive texlive-lang-dutch cups hplip hpijs cups-driver-gutenprint
- cupsctl --remote-admin
- cupsctl --share-printers --remote-any
- cd /usr/local
- git clone git://github.com/Tekki/sql-ledger.git
- cd /usr/local/sql-ledger
- chown -hR www-data:www-data users templates css doc
- cd /etc/apache2/sites-available/
- wget -c https://raw.github.com/Tekki/sql-ledger/full/doc/sql-ledger.httpd.conf
- mv sql-ledger.httpd.conf sql-ledger
- cd /etc/apache2/sites-enabled
- ln -s /etc/apache2/sites-available/sql-ledger 001-sql-ledger
- /etc/init.d/apache2 reload
- #
- # CONTINUE INSTALLATION WITH WEBBROWSER !!!
- #
- # CREATE DATASET:
- # ---------------
- # Load your web browser and connect to
- # http://localhost/sql-ledger/admin.pl
- #
- # There is no password so just hit the Enter key or click
- # on "Continue".
- #
- # Check the appropriate database driver if there is more
- # than one installed.
- #
- # Click on "Add Dataset"
- #
- # Host [database host] Port [ ]
- # User [database user] Password [database password]
- # Connect to [template1 or your_database]
- #
- # Note: template1 or your_database is required to make a connection
- # to access the database, nothing will be created yet.
- #
- # Click on "Continue"
- #
- # Dataset [your_dataset]
- # Company [name of the company]
- # Templates [template set to create]
- # Multibyte Encoding [ ]
- #
- # Select a chart of accounts and click on "Continue".
- #
- # Your tables will now be created and the chart of accounts
- # will be loaded.
- #
- #
- # CREATE DATASET WITHOUT CREATE PRIVILEGES:
- # -----------------------------------------
- # If you cannot create a database, most ISPs won't let you
- # directly access the database, you can still create the
- # neccessary files to run SQL-Ledger.
- #
- # 1) use your database manager (pgadmin, etc) and log in with the
- # database user your ISP has assigned to you
- # 2) create a blank database
- # 3) go to the previous step CREATE DATASET and enter
- # the name of the database in the field "Dataset".
- #
- #
- # LOAD THE PROGRAM:
- # ----------------------------
- # Load your web browser and connect to
- # http://localhost/sql-ledger/login.pl
- #
- #
- # SET UP USERS:
- # -------------
- # Log into SQL-Ledger as user 'admin'
- #
- # If you have more than one dataset you can either
- # choose from a list of datasets or log in directly
- # to the dataset by appending @dataset to admin
- #
- # Go HR -> Add Employee
- #
- # In the field 'login' assign a login for the employee.
- #
- # Note: The same interface is used to remove a login,
- # simply remove the login and the employee will no
- # longer be able to log in.
- #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement