Install ledgersmb in Ubuntu By: Onno W. Purbo # cp ledgersmb-1.2.7.tar.gz /usr/local/ # cd /usr/local # tar zxvf ledgersmb-1.2.7.tar.gz # chown -Rf www-data.www-data /usr/local/ledgersmb # cd /usr/local/ledgersmb # cp ledgersmb.conf.default ledgersmb.conf # vi ledgersmb.conf DBPassword = ledgersmb # cp deb-prereq-1.2.7.tar.gz /usr/local/ # cd /usr/local/ # tar zxvf deb-prereq-1.2.7.tar.gz # cd /usr/local/deb-prereq-1.2 # dpkg -i libclass-std-perl_0.0.8-1_all.deb # dpkg -i libconfig-std-perl_0.0.4-1_all.deb # cd /usr/local/ledgersmb/dists/deb # apt-get install `cat required.deb.txt` # apt-get install lynx ncftp # cpan Are you ready for manual configuration? [yes] CPAN build and cache directory? [/root/.cpan] Cache size for build directory (in MB)? [10] Perform cache scanning (atstart or never)? [atstart] Cache metadata (yes/no)? [yes] File to save your history? [/root/.cpan/histfile] Number of lines to save? [100] Policy on building prerequisites (follow, ask or ignore)? [ask] Where is your gzip program? [/bin/gzip] Where is your tar program? [/bin/tar] Where is your unzip program? [/usr/bin/unzip] Where is your make program? [/usr/bin/make] Where is your wget program? [/usr/bin/wget] Where is your ncftpget program? [/usr/bin/ncftpget] Where is your ftp program? [/usr/bin/ftp] Where is your gpg program? [/usr/bin/gpg] What is your favorite pager program? [/usr/bin/less] What is your favorite shell? [/bin/bash] Your choice: [INSTALLDIRS=site] Your choice: [] -j3 Your choice: [-j3] UNINST=1 Timeout for inactivity during Makefile.PL? [0] Your ftp_proxy? Your http_proxy? Your no_proxy? Select your continent (or several nearby continents) [] 5 > install Class::Std > install Config::Std > quit # createuser --no-superuser --createdb --no-createrole \ -U postgres --pwprompt --encrypted ledgersmb Enter password for new role: Enter it again: # createdb -U ledgersmb -O ledgersmb ledgersmb # psql -U ledgersmb -d ledgersmb -f /usr/local/ledgersmb/sql/Pg-central.sql # psql -U ledgersmb -d ledgersmb UPDATE users_conf SET password = md5('ledgersmb') WHERE id = 1; \q # cd /usr/local/ledgersmb # sh configure_apache.sh Which user does your web server run as? www-data Where do we copy the ledgersmb-httpd.conf file to? /etc/apache2 # cd /etc/apache2/ # vi httpd.conf # ledgersmb Include /etc/apache2/ledgersmb-httpd.conf # /etc/init.d/apache2 restart # cd /usr/local/ledgersmb # cpan install Module::Build # perl Build.PL # ./Build test # /etc/init.d/apache2 restart http://localhost/ledgersmb/admin.pl ledgersmb (password) http://localhost/ledgersmb/login.pl