User Tools

Site Tools


step_by_step_installation:debian

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
step_by_step_installation:debian [2014/10/20 15:02] – [Download and install full SQL-Ledger Network Version with LedgerCart] sweitmannstep_by_step_installation:debian [2016/04/12 11:25] (current) sweitmann
Line 61: Line 61:
      su      su
 and enter your password. With the following command, we download the SQL-Ledger Network installation script for Linux Debian: and enter your password. With the following command, we download the SQL-Ledger Network installation script for Linux Debian:
- 
     wget http://www.sql-ledger-network.com/debian/install_ledger123     wget http://www.sql-ledger-network.com/debian/install_ledger123
 Next we need to change the user rights for the downloaded file by typing: Next we need to change the user rights for the downloaded file by typing:
-     
     chmod 744 install_ledger123     chmod 744 install_ledger123
 Now you can install SQL-Ledger and LedgerCart with the following single command: Now you can install SQL-Ledger and LedgerCart with the following single command:
-     
     bash install_ledger123     bash install_ledger123
 The installation needs some time. While installing postfix (the mail server), the system asks you about the mail configuration. The installation needs some time. While installing postfix (the mail server), the system asks you about the mail configuration.
Line 73: Line 70:
   * select "internet site"   * select "internet site"
   * for SMTP relay host, enter the name of your mail server (smtp...)   * for SMTP relay host, enter the name of your mail server (smtp...)
 +
 +Now you can call the SQL-Ledger admin interface from your browser at
 +
 +    http://ip_of_your_server/ledger123/admin.pl
 +    
 +and the login screen at
 +
 +    http://ip_of_your_server/ledger123/login.pl    
    
 If you use another language than English, you may want to install an additional package that supports hyphenation in your language, for example If you use another language than English, you may want to install an additional package that supports hyphenation in your language, for example
  
     apt-get install texlive-lang-german     apt-get install texlive-lang-german
-     
 You get a list of all available language packs with: You get a list of all available language packs with:
  
     apt-cache search texlive-lang     apt-cache search texlive-lang
-     + 
-===== SQL-Ledger =====+
  
-We will install SQL-Ledger in the folder /usr/local/sql-ledger. For this, we change to /usr/local: 
- 
-    cd /usr/local 
-     
-You have two versions to choose between, either **the original SQL-Ledger**, developed by [[DWS systems]], or the **Enhanced** **SQL-Ledger**, provided by [[Ledger123]]. 
- 
-To install the **original SQL-Ledger**, type: 
- 
-    git clone git://github.com/Tekki/sql-ledger.git 
-     
-Because of a security leak , the template editor is disabled in the above repository. It is recommended not to use the master, but the full branch: 
- 
-    cd /usr/local/sql-ledger 
-    git checkout -b full origin/full 
-     
-The// full// branch contains some additional features like WLprinter (see below) or an extended admin interface. 
- 
-For the **Ledger123** type: 
- 
-   git clone git://github.com/ledger123/ledger123.git sql-ledger 
-    
-Next, you have to create a spool directory, change the access rights to some files and folders and copy sql-ledger.conf.default to sql-ledger.conf. 
- 
-    cd /usr/local/sql-ledger 
-    mkdir spool 
-    chown -hR www-data.www-data users templates css spool 
-    cp sql-ledger.conf.default sql-ledger.conf 
-     
-If the remote repositories changed, you update your installation with 
- 
-    cd /usr/local/sql-ledger 
-    git pull 
-     
-In the full branch of the original SQL-Ledger, you have the possibility to update the software using the Software Administration function in the Admin interface. Before it works, you have to give the web server the right to call the git commands. For this, type 
- 
-    visudo 
-     
-Then add the following line to the user privilege section: 
- 
-    www-data ALL=(ALL) NOPASSWD: /usr/bin/git 
-     
 ===== Mail transport ===== ===== Mail transport =====
  
Line 146: Line 108:
 and move to "# available printers". There you see an example of two printers. Replace them with your own printer or printers. The name on the left side is the name you will see in SQL-Ledger, the one on the right side immediately after -P is the name by which the printer is known to the operating system. and move to "# available printers". There you see an example of two printers. Replace them with your own printer or printers. The name on the left side is the name you will see in SQL-Ledger, the one on the right side immediately after -P is the name by which the printer is known to the operating system.
  
-===== WLprinter ===== 
  
-WLprinter is a program that allows to print from SQL-Ledger directly and without further installation or configuration to printers connected to client computers. On the client side, it requires Java and on Windows machines Adobe Reader. After the installation, SQL-Ledger automatically provides an additional printer "WLprinter". 
- 
-**Original Version** 
- 
-WLprinter is part of the full branch. If you followed the above instructions, this program already installed on your server. It is recommended that you copy the config file wlprinter.conf.default to wlprinter.conf, so you can edit it: 
- 
-cp wlprinter.conf.default wlprinter.conf 
-**Ledger123** 
- 
-WLprinter isn't available for Ledger123. 
- 
-If you didn't add printers with CUPS and edit sql-ledger.conf before, open it now with 
- 
-    nano /usr/local/sql-ledger.conf 
-     
-and change the printer definition to 
- 
-    %printer = ( ); 
-     
-===== Database set up ===== 
- 
-Edit the Postgresql database configuration. 
- 
-    nano /etc/postgresql/9.1/main/pg_hba.conf 
-     
-Change the line 
- 
-    local    all    all    ident 
- 
-to 
- 
-    local    all    all    trust 
-     
-Restart the database 
- 
-    /etc/init.d/postgresql restart 
-     
-Create a user for SQL-Ledger 
- 
-    su postgres -c "createuser -d -S -R sql-ledger" 
-     
-===== Web server set up ===== 
- 
-Your web server has to know where to find SQL-Ledger. We add a new configuration file and restart the server. 
- 
-    cd /etc/apache2/sites-available/ 
-    wget https://raw.github.com/Tekki/sql-ledger/full/doc/sql-ledger.httpd.conf 
-    cd ../sites-enabled/ 
-    ln -s ../sites-available/sql-ledger 001-sql-ledger 
-    mv sql-ledger.httpd.conf sql-ledger 
-    /etc/init.d/apache2 restart 
-     
-It should now be possible to access SQL-Ledger. As you didn't specify an address for your server, it was received from DHCP. Enter the following command: 
- 
-    ifconfig eth0 
-     
-You see the address after "inet addr:". In a private network, it will be something starting with "192.168...". Open your web browser, enter this address followed by "/sql-ledger". The SQL-Ledger login screen has to appear. 
  
 ===== Optional components and settings ===== ===== Optional components and settings =====
Line 232: Line 136:
 ====Webmin==== ====Webmin====
  
-Webmin is a web based administration interface for Linux. It is very convenient for a lot of administration tasks. The following code is for 1.580, you may have to change the version number. Check the actual version at the [[Webmin homepage]] .+Webmin is a web based administration interface for Linux. It is very convenient for a lot of administration tasks. The following code is for 1.580, you may have to change the version number. Check the actual version at the [[http://www.webmin.com/|Webmin homepage]] .
  
     cd /tmp     cd /tmp
-    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.670_all.deb+    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.710_all.deb
     apt-get install libapt-pkg-perl apt-show-versions libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl     apt-get install libapt-pkg-perl apt-show-versions libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl
-    dpkg --install webmin_1.670_all.deb+    dpkg --install webmin_1.710_all.deb
     If you have installed the Samba server, Webmin is now available at     If you have installed the Samba server, Webmin is now available at
  
step_by_step_installation/debian.1413817344.txt.gz · Last modified: 2014/12/30 16:29 (external edit)