Instalación de OpenGTS en Ubuntu 12.04

2,513 views
Skip to first unread message

Freddy Taborda

unread,
Apr 24, 2013, 12:16:48 PM4/24/13
to ope...@googlegroups.com
Quien necesite información de eso me avisan.

Cuando la termine la voy a subir para una wiki en mi dominio.

Saludos.

--
 
Freddy Taborda
Consultor Técnico
Valencia - Venezuela
GNU/Linux user #283478
Microsoft Windows User


What gets us into trouble is not what we don't know. It's what we know for sure that just ain't so.              
                                                                                                         Mark Twain

"Those that can, do. Those that can’t, complain."
                                                 Linus Torvalds

Lizardo Durand

unread,
Apr 24, 2013, 12:29:42 PM4/24/13
to ope...@googlegroups.com
Hola Fredy;
Te agradecere si tienes informacion sobre el tema. he llegado a
instalar ubuntu server 12 en una particion de mi hd.
yo he encontrado un pdf pero me quedan muchas dudas.

gracias
Lizardo

El 24/04/13, Freddy Taborda <terra...@gmail.com> escribió:
> --
> Has recibido este mensaje porque estás suscrito al grupo "opengts" de Grupos
> de Google.
> Para anular la suscripción a este grupo y dejar de recibir sus correos
> electrónicos, envía un correo electrónico a
> opengts+u...@googlegroups.com.
> Para obtener más opciones, visita https://groups.google.com/groups/opt_out.
>
>
>


--
Saludos,

*Ing. Lizardo Durand*
Teléfax: +511 *567.4849* - Celular: *991.319988* - Nextel: *100*5971*

*D Y D S E *
www.sedyd.com | Paginas web | Sistemas de gestión | Comercio electronico
www.decodek.com <http://www.sedyd.com/> | Controla tu Compras - Ventas -
Stock por Internet

<http://www.serviciocontable.pe>

Freddy Taborda

unread,
Apr 24, 2013, 12:32:20 PM4/24/13
to ope...@googlegroups.com
Lizardo.

Si quieres postea la pregunta y/o errores.. para ayudarte por aquí.
Este fin de semana habilito la wiki en mi dominio para que puedas ver lo que he realizado

saludos

Lizardo Durand

unread,
Apr 24, 2013, 12:56:50 PM4/24/13
to ope...@googlegroups.com
Hola;
Bueno; si tuvieras una lista de pasos para la instalacion te agradeceria.

Pablo Aguero

unread,
Apr 24, 2013, 5:10:53 PM4/24/13
to ope...@googlegroups.com
Necesitas instalar java(openjdk)  ,mysql  el conector jdbc , soporte para mail 
Descargar apache tomcat 
y sigues los pasos del manual de instalacion  de geotelamtic 

todo estos pasos lo puedes encontrar a montones en internet 

Pablo Aguero

unread,
Apr 24, 2013, 10:20:43 PM4/24/13
to ope...@googlegroups.com, ldu...@sedyd.com
Hola Lizardo
llegaste a configurar el gps?? 

Lizardo Durand

unread,
Apr 25, 2013, 6:20:57 PM4/25/13
to ope...@googlegroups.com
Tengo el PDF con los pasos. y siguiendo esos pasos hice una instalacion en w7 con no-ip el cual quedo truncado por que no he logrado hacer que el gps  (xexum tk-103) envie la informacion al server al server no-ip.

asi que me aventure a istalar ubuntu server 12. 

--
Sinceramente,
Lizardo

Freddy Taborda

unread,
Apr 25, 2013, 9:47:44 PM4/25/13
to ope...@googlegroups.com
Buenas noches.

Les copio lo que he tenido tiempo de hacer en mi vieja wiki y ahí no puedo dejar el acceso publico, por eso quiero montar otra wiki para poder compartir y poder llevar un buen control de manuales.

Esto le falta mucho (y tengo un error en tomca con respecto a link simbolico, pero a pesar de los errores al compilar esta funcionando, pero la idea es ir mejorando, y deseo es poder llevar o hacer manuales para otras distribuciones Linux (yo en lo personal uso Gentoo en mis equipos) y tener variedad de opciones.
 
Esto no tiene (lo va ha tener) lo de google maps Ver 3 que nos paso el amigo por este medio (de nuevo gracias)

PD: Software libre no significa que sea gratis. Así pues quien este interesado en que le haga una instalación un le mantenga su servidor estoy a la orden, necesito un carro ;)  Mis precios son el Bolívares o Dolares Americanos  ;)

Saludos



Configuración de envío de correos

  • # aptitude install exim4
  • # dpkg-reconfigure -plow exim4-config (en mi blog terracenter, de blogspot esta algo de eso y siempre la uso)

Seguridad

Contenido

[ocultar]

[editar] 1 Compilador Java

fuente: http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html

  • # aptitude install python-software-properties
  • # add-apt-repository ppa:webupd8team/java
  • # aptitude update
  • # aptitude install oracle-java6-installer
  • # echo 'JAVA_HOME="/usr/lib/jvm/java-6-oracle"' >> /etc/environment
  • # exit
  • $ sudo su -
  • # cd /usr/local
  • # ln -sfn $JAVA_HOME java

[editar] 2 Soporte JavaMail

http://www.oracle.com/technetwork/java/javamail/index.html

Como wget no sirve se debe bajar en el equipo local y luego enviarlo con rsync o pscp si estas en windows

Desktop Linux

  • $ rsync -e ssh --progress -avz javamail1_4_7.zip usu...@host.dominio.com:/home/usuario/

Servidor OpenGTS

  • $ mv javamail1_4_7.zip /tmp/
  • $ cd /tmp/
  • $ unzip unzip javamail1_4_7.zip
  • # cp javamail-1.4.7/mail.jar $JAVA_HOME/jre/lib/ext/.

[editar] 3 Herramienta de Compilacion Apache "Ant"

  • # aptitude install ant
  • # echo 'ANT_HOME="/usr/share/ant"' >> /etc/environment

[editar] 4 Apache "Tomcat" Servlet Container

  • # aptitude install tomcat7
  • # ln -s /var/lib/tomcat7 /usr/local/tomcat
  • # echo 'CATALINA_HOME="/usr/local/tomcat"' >> /etc/environment
  • # exit
  • $ sudo su -
  • # ln -snf $CATALINA_HOME tomcat

Editamos el archivo /etc/tomcat7/policy.d/04webapps.policy e incluimos al final

grant codeBase "file:${catalina.home}/webapps/track/WEB-INF/-" {
permission java.util.PropertyPermission "*", "read,write";
permission java.security.AllPermission;
};
grant codeBase "file:${catalina.home}/webapps/events/WEB-INF/-" {
permission java.util.PropertyPermission "*", "read,write";
permission java.security.AllPermission;
};
grant codeBase "file:${catalina.home}/webapps/mologogo/WEB-INF/-" {
permission java.util.PropertyPermission "*", "read,write";
permission java.security.AllPermission;
};
Make sure the above values are appropriate for your installation.
  • # /etc/init.d/tomcat7 restart

[editar] 5 MySQL Database Provider

  • # aptitude install mysql-server
root: Gps2013*


[editar] 6 MySQL JDBC Driver

  • # aptitude -y install libmysql-java
  • # cp /usr/share/java/mysql-connector-java-5.1.16.jar $JAVA_HOME/jre/lib/ext/.


[editar] 7 Installing/Compiling the OpenGTS Source

  • # cd /usr/local
  • # unzip /tmp/OpenGTS_2.4.7.zip
  • # chown -R terracenter.terracenter OpenGTS_2.4.7
  • # echo 'GTS_HOME="/usr/local/OpenGTS_2.4.7"' >> /etc/environment
  • # exit
  • $ sudo su -
  • # cd /usr/local
  • # ln -sfn $GTS_HOME gts
  • # exit
  • $ exit
  • $ cd $GTS_HOME
  • $ ant all

[editar] 8 Initialization and Installation Testing

[editar] 8.1 Initializing the SQL Database Tables

  • $ cd $GTS_HOME
  • $ bin/initdb.sh -rootUser=<rootUser> -rootPass=<rootPass>
 Version: 2.4.7
Database created: gts
Privileges granted to user: gts

Validating table columns ...
----------------------------------------------------------------------
  Table 'Account'                     [-1] Creating table ...
  Table 'AccountString'               [-1] Creating table ...
  Table 'User'                        [-1] Creating table ...
  Table 'UserAcl'                     [-1] Creating table ...
  Table 'GroupList'                   [-1] Creating table ...
  Table 'Device'                      [-1] Creating table ...
  Table 'Transport'                   [-1] Creating table ...
  Table 'UniqueXID'                   [-1] Creating table ...
  Table 'DeviceGroup'                 [-1] Creating table ...
  Table 'DeviceList'                  [-1] Creating table ...
  Table 'Driver'                      [-1] Creating table ...
  Table 'EventData'                   [-1] Creating table ...
  Table 'Geozone'                     [-1] Creating table ...
  Table 'Resource'                    [-1] Creating table ...
  Table 'Role'                        [-1] Creating table ...
  Table 'RoleAcl'                     [-1] Creating table ...
  Table 'StatusCode'                  [-1] Creating table ...
  Table 'SystemProps'                 [-1] Creating table ...
  Table 'EventTemplate'               [-1] Creating table ...
  Table 'PendingPacket'               [-1] Creating table ...
  Table 'Property'                    [-1] Creating table ...
  Table 'Diagnostic'                  [-1] Creating table ...
 ----------------------------------------------------------------------
 Column validation completed successfully.
 ----------------------------------------------------------------------

Updating GTS Version: 2.4.7
Updating DMTP Version: 1.3.5

[editar] 8.2 Testing the Installation

  • $ cd $GTS_HOME
  • $ bin/checkInstall.sh
=====================================================================================

No errors reported

No warnings reported

=====================================================================================

Test de envio de correo Antes de debe configurar en el archivo custom.conf los parametros de envio de correo

# --- SMTP
# - (outgoing email configuration parameters)
smtp.host=smtp.example.com
smtp.port=465
smtp.user=someuser
smtp.user.emailAddress=some...@example.com
smtp.password=somepass
smtp.enableSSL=true
#smtp.enableTLS=true
* $ bin/checkInstall.sh -sendMail terra...@gmail.com

[editar] 8.3 Loading the Sample Data

sampleData/README.txt

[editar] 8.4 Creating the "sysadmin" Account

  • $ bin/admin.sh Account -account=sysadmin -pass=ft12378695* -create

[editar] 9 Installing “track.war”

[editar] 9.1 Configuring the "webapp.conf" file

[editar] 9.2 Configuring the available reports

[editar] 9.3 Configuring the Private Label look & feel

[editar] 9.4 Compiling/Installing the "track.war" Java Servlet

  • $ cd $GTS_HOME
  • $ ant track
  • $ sudo cp build/track.war $CATALINA_HOME/webapps/.

o de forma automatica

  • $ sudo ant track.deploy

[editar] 9.5 Testing the Installation

[editar] 9.6 Installing Multiple Versions of "track.war"

[editar] 10 Installing “events.war”

[editar] 11 Database Administration

[editar] 12 Installing/Starting the OpenDMTP, TK10x, and Aspicore DCS Modules

[editar] 12.1 Configuring the "dcservers.xml" File

[editar] 12.2 Starting the Device Communication Server

  • $ cd $GTS_HOME
  • $ bin/runserver.sh -s server

Ejemplo

  • $ bin/runserver.sh -s tk10x






Jose Ovalles

unread,
Oct 31, 2016, 2:42:01 PM10/31/16
to opengts
Buenos dias Freddy, deseo contactarlo para el desarrollo de una plataforma, agradeceria su numero de contacto o correo  Saludos
smtp.port=465
smtp.user=someuser
smtp.user.emailAddress=someuser...@example.com
smtp.password=somepass
smtp.enableSSL=true
#smtp.enableTLS=true

raver

unread,
Nov 4, 2016, 9:38:41 PM11/4/16
to opengts
Gracias por su aporte Freddy
Message has been deleted

César Ramiro ochoa saavedra

unread,
May 23, 2017, 8:35:42 PM5/23/17
to opengts
amigo que tal muy buenas noches te comento que tengo 3 equipos gps uno es coban modelo tracker 103A y los otros 2 son de otro fabricante modelo tracker 103A Y 103B ok espero tu prointa respuesta intente instalar la guia de instalacion del open gps pero nada uso una laptop windows 7. espero tambien se pueda instalar. gracias


El miércoles, 24 de abril de 2013, 11:16:48 (UTC-5), Freddy Taborda escribió:
Reply all
Reply to author
Forward
0 new messages