Menu

Help me with writing Step-By-Step installation instructions for Ubuntu 10.04

2012-03-28
2022-06-05
  • jtrinidad

    jtrinidad - 2012-04-30

    I was wondering if I'm the only one experiencing download error.

    tar -xvzf activemq-19032012-Linux.tgz
    tar: This does not look like a tar archive
    tar: Skipping to next header
    tar: Exiting with failure status due to previous errors

     
    • Sean O'Neil

      Sean O'Neil - 2012-05-28

      Are you still having this error? If so, I noticed today that the archives are no longer zipped. So just drop the "z" from your tar command and change the archive filenames to be just tar. Like so:
      tar -xvf activemq-19032012-Linux.tar

       
  • Andy Graybeal

    Andy Graybeal - 2012-03-29

    Alright, it's my step-by-step instructions so far, that work for me.

    _smartpos install on ubuntu 10.04 64bit_
    
    _references:_
    files: http://smartjsp.com/smartpos-demo/
    http://www.dctrwatson.com/2010/09/installing-postgresql-9-0-on-ubuntu-10-04/
    http://www.adempiere.com/Installing_ADempiere_3.7.0_on_Ubuntu_11.04
    
    _start install_
    on my KVM server, i assign an LVM partition big enough for testing, 10GB should be fine
    and then i run:
    sudo virt-install  --name=smartpos --ram=4192 --vcpus=4 --cpuset=0-3 --os-variant=ubuntulucid --cdrom=ubuntu-10.04-server-amd64.iso --disk      path=/dev/cleopatra/smartpos --network=bridge=br0,model=virtio --vnc
    
    _during the OS install_
    
    usename/password: adempiere/adempiere
    hostname: smartpos
    select ssh server during the install
    
    _After initial install_
    At first bootup login as adempiere/adempiere and run:
    sudo apt-get update && sudo apt-get upgrade
    
    _install and config postgres 9_
    
    sudo apt-get install python-software-properties
    sudo add-apt-repository ppa:pitti/postgresql
    sudo apt-get update && sudo apt-get upgrade
    
    sudo apt-get install postgresql-9.0 libpq-dev
    
    sudo vim /etc/postgresql/9.0/main/pg_hba.conf
    at the bottom mine looks like this:
    
    # Database administrative login by Unix domain socket
    local   all             postgres                                trust
    
    # TYPE  DATABASE        USER            CIDR-ADDRESS            METHOD
    
    # "local" is for Unix domain socket connections only
    local   all             all                                     trust
    # IPv4 local connections:
    host    all             all             127.0.0.1/32            trust
    host    all             all             192.168.2.0/24          trust
    # IPv6 local connections:
    host    all             all             ::1/128                 trust
    
    sudo vim /etc/postgresql/9.0/main/postgresql.conf
    i set:
    listen_addresses = '*'
    password_encryption = on
    
    now restart postgres:
    sudo service postgresql restart
    
    _From Pedro's instructions_
    Create a folder called: /app/java (please don't change it)
    we will use this location for your JDK, adempiere and activemq demo installation
    
    _change ownership of /app/java folder_
    sudo chown -R adempiere:adempiere /app
    
    Uncompress all the .tgz files provided.zip under: /app/java
    wget http://smartjsp.com/smartpos-demo/activemq-19032012-Linux.tgz
    wget http://smartjsp.com/smartpos-demo/jdk16-021-19032012-Linux.tgz
    wget http://smartjsp.com/smartpos-demo/smarterp-19032012-PG90-Linux.tgz
    wget http://smartjsp.com/smartpos-demo/smarterp-demo-rest-19032012.backup
    wget http://smartjsp.com/smartpos-demo/smartpos-demo-rest-19032012.backup
    
    tar -xvzf ./smarterp-19032012-PG90-Linux.tgz
    tar -xvzf ./activemq-19032012-Linux.tgz
    tar -xvzf ./jdk16-021-19032012-Linux.tgz
    
    set your JAVA_HOME environment variable pointing to: /app/java/jdk1.6.0_21 and restart
    your terminal session to take the environment change.
    
    sudo vim /etc/environment
    add: 
    JAVA_HOME="/app/java/jdk1.6.0_21"
    
    and tack on at the end of your path, after the last path and before the end-quote:
    :/app/java/jdk1.6.0_21/bin
    
    So that your environment looks something like this:
    PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/app/java/jdk1.6.0_21/bin"
    JAVA_HOME="/app/java/jdk1.6.0_21"
    
    I reboot machine at this point to load the variables, i'm sure there is a better way
    
    _load 32bit executables_
    sudo apt-get install ia32-libs
    
    _define your /etc/hosts file_
    at the end of the IP4 section of your hosts file tack this on (with your own appropriate IP address of the host!!):
    192.168.2.105   adempiere   adempiere2
    
    mine looks like this:
    127.0.0.1   localhost
    127.0.1.1   smartpos.casanueva.com  smartpos
    
    192.168.2.105   adempiere   adempiere2
    
    # The following lines are desirable for IPv6 capable hosts
    ::1     localhost ip6-localhost ip6-loopback
    fe00::0 ip6-localnet
    ff00::0 ip6-mcastprefix
    ff02::1 ip6-allnodes
    ff02::2 ip6-allrouters
    
    _create databases and user_
    sudo -i
    su postgres
    psql
    
    CREATE ROLE adempiere LOGIN ENCRYPTED PASSWORD 'md5e39d02ba00f8344d92323e6b8ffe612f' SUPERUSER INHERIT CREATEDB CREATEROLE;
    CREATE DATABASE smarterp OWNER adempiere;
    CREATE DATABASE smartpos OWNER postgres;
    \q
    
    pg_restore -d smarterp /app/java/smarterp-demo-rest-19032012.backup
    pg_restore -d smartpos /app/java/smartpos-demo-rest-19032012.backup
    
    exit from postgres user, and exit root, so back to being 'adempiere' user
    
    run:
    /app/java/SmartERP/sube
    
    magic should happen.  wait a few minutes until it says your the JBoss engine is running
    
    Test your ActiveMQ @ http://smartpos:8161/admin/
    Test your Adempiere @ http://smartpos:8086/webui
    

    Now to get the client up and running :)

     

    Last edit: Andy Graybeal 2012-03-29
  • Ulli_H

    Ulli_H - 2013-02-18

    Hello everyone.
    I need your help, I am desperate. I spent this weekend trying to get smartpos demo to work with only a couple of hours of sleep a day, but no success. Before trying, I read everything I could find in this forum and other relative forums like Redhuan's (that is how I landed here) as well. I have even read „Adempiere Cookbook“ again.
    I must make clear, I am quite fit with linux, I understand ERP and POS quite well, but I have practically no programming experience.

    I followed the instructions in this topic to the letter, I even experimented a little bit with the „host“ file. I also googled every error in the log files I could.
    At the end I was so exhausted that I gave up.
    Therefore I kindly and most humbly ask for your help.

    For my tests I used every time a fresh setup of ubuntu-servers in Virtualbox on an Ubuntu 12.04 machine. I startet with images of Ubuntu 12.04, then 11.04 and finally 10.04 servers, both 32 bit as well as 64bit.

    The only deviation from your instructions here was that I had to use

    smarterp-demo-rest-16042012.backup
    smartpos-demo-rest-16042012.backup

    instead of the smart*-demo-rest-19032012.backup versions since these are no longer available for download and of course postgresql-9.1.
    I personally suspect my problem is here to find or at my locale since I am in Austria and use German/Austrian setups and locale.

    When I check ActiveMQ @ http://localhost:8161/admin/ or
    http://192.168.0.196:8161/admin/ from another local host, everything works great, but...

    when I check Adempiere @ http://localhost:8086/webui or
    http://192.168.0.196::8086/webui

    I get a lot of errors in the terminal where I start „/app/java/SmartERP/sube „ as well as in my logs.

    It seems I cannot get a DB-connection. Unfortenately I cannot resolve the problem myself.
    So please help me with this one.

    I attache the logs and the host file from my last attempts on a 10.04 64bit Ubuntu-server.

    I am looking desperately hearing from you people.
    Best thanks and Regards in advance

     

    Last edit: Ulli_H 2013-02-18
    • Alston

      Alston - 2022-04-04

      Hi, kind you share with me that how you fixed the issue. Because I am facing the same issue as When I check ActiveMQ @ http://localhost:8161/admin/ or
      http://192.168.0.196:8161/admin/ so it working fine and don't show any kind of issue but when I check http://192.168.0.196::8086/- gta vice city apk so I face bundles of issue and even though it not loading.

       

      Last edit: Alston 2022-04-04
  • pedrorozo

    pedrorozo - 2013-02-18

    Hi ... your log is quite descriptive,

    Caused by: java.net.UnknownHostException: adempiere

    Which means you are trying to reach a host called: adempiere, that doesn´t exists; perhaps defined in your adempiereEnv.properties, then if you want to point this host to your ip address please create a new host definition in your /ect/hosts or change the adempiere config to point to the rigth server

    Regards,

    Pedro Rozo

     
  • Ulli_H

    Ulli_H - 2013-02-18

    Hello Pedro.

    Thank you for your fast response.

    I just made another test. This time I used a host file just like Andy Graybeal suggested, at the same time I defined my servers IP to 192.168.0.169 because some file demanded so.
    This time I got some progress I think.
    I attach the new logfiles and host-file.

    When I try http://localhost:8086/webui/ or http://smartpos:8086/webui/ I get an error but when I try http://192.168.0.169:8086/webui/ I get the SmartERP login mask.

    Could you please have a look at my new log files and make suggestions to make everything run as it should? I would be grateful as I am for the great job you and your team did with SmartPOS and SmartERP.

    By the way, you twittered that you are going to release a new version shortly. Do you have a date in the meanwhile?

    Thank you again

     

    Last edit: Ulli_H 2013-02-18
  • pedrorozo

    pedrorozo - 2013-02-18

    You adempiere logs shows that the ERP is up , running, and listening (connected) to the activemq queue called: ERP1000003 ----- did you get access to the SmartERP screen or not ? your description is not clear ...

    Regarding our next release, we are finishing testing and documentation, so I guessti will be available by the end of this week ....

    Regards,

    Pedro R

     
  • Ulli_H

    Ulli_H - 2013-02-18

    Thank you Pedro. I will be waiting impatiently for the new release ;-)
    In the meanwhile I got everything running. I suppose I can ignore some errors I found.

    I will take a rest now and then I will try to reinstall everything on a 12.04 server just to make sure I can reproduce a fresh install and then I will test as much as possible the communication between the windows POS and the ERP.

    I hope you will include a linux POS in the new release. I am sure many of us will be very happy about that.

     
  • moataz moussa

    moataz moussa - 2014-01-29

    what should id do to setup the activemq on another machine

     
  • ironmax

    ironmax - 2022-05-13

    When I check http://localhost: 8161/admin/ or http://192.168.0.196:8161/admin/ it shows error. what should I do?

     
  • ironmax

    ironmax - 2022-07-03
    Post awaiting moderation.
  • Johs

    Johs - 2022-08-15
    Post awaiting moderation.

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.