Posts

Import Postgres Backup in linux command line

sudo su postgres psql -U postgres dhis2 < /home/downloads/dbexport.pgsql

Export dhis2 postgres backup in linux ubuntu command line

root@softworksdhis2:/# pg_dump -U dhis -h localhost dhis2 -f /home/backup_dhis2/dhis2_04_10_17.sql

Connect remote postgres with local pgAdmin (III)

Image

Run dhis2 in command line in Windows for complete log generation

Could you start the application with the command line (Start->Run) and type "cmd" and then navigate to where you have the application saved on your  dhis2-live. Then type "java -jar dhis2-live.jar > dhis2log.txt" You will see a lot of funny messages in the command prompt, and your browser should open up a page. Go back to the command prompt and press "Ctrl C". If you can post the contents of the "dhis2log.txt"  to the list  (or better on pastebin.com), we should be able to find out what is going on .

dhis2 installation in ubuntu

1. create a user in ubuntu for dhis2 sudo useradd -d /home/dhis -m dhis -s /bin/bash Here username: dhis 2. give permission the user as root sudo usermod -G sudo dhis 3. set password for user "dhis" sudo passwd dhis password: soft@works 4. stop root remote login for security sudo passwd -l root //(SKIP this command for local practice) 5. create a root config directory for dhis2 sudo mkdir /home/dhis/config 6. set time zone sudo dpkg-reconfigure tzdata 7. set locale sudo locale -a                       (see locale list - sudo locale -av) sudo locale-gen en_US.UTF-8 8. check postgreSQL (psql) is installed or not sudo which psql ubuntu 14.04 has the version 9.3 ( Try to install default repository postgreSQL in the system otherwise get the followings) install postgreSQL 9.4 sudo apt-get install postgresql-9.4 postgres...