Sie sind auf Seite 1von 2

REBOOT !!!Step 16.

Install Javamail & mysql-java connector wget -c


http://download.oracle.com/otn-pub/java/javamail/1.4.4/javamail1_4_4.zipunzip
javamail1_4_4.zipcp -p ~/javamail-1.4.4/mail.jar $JAVA_HOME/jre/lib/ext/ln -s
/usr/share/java/javamail.jar $JAVA_HOME/jre/lib/ext/wget -c
http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-
5.1.18.tar.gz/from/http://mysql.mirrors.ovh.net/ftp.mysql.com/cd XXXXXXcp mysql-
connector-java-5.1.18-bin.jar $JAVA_HOME/jre/lib/ext/.Make some linksln -s
/usr/local/OpenGTS_2.3.9 /usr/local/OpenGTScd /usr/local/OpenGTS_2.3.9Step 17.Then
we and all files and deploy track.war file.ant allant track.warant track.deployStep
18.cd /usr/local/OpenGTS_2.3.9/bin./initdb.sh -rootUser=root
-rootPass=MYSQL_ROOT_PASSWORD./checkInstall.shcp $GTS_HOME/build/track.war
$CATALINA_HOME/webapps/. (IF NEED, because after command "ant track.deploy" file
must be deployed)Step 19.And create admin account

./admin.sh Account -account=admin -create./admin.sh Account -account=admin


-edit./admin.sh Account -listStep 20.Some other links :)cd /usr/localln -s
$JAVA_HOME javaln -s $CATALINA_HOME tomcatln -s $GTS_HOME gtsStep 21.And then start
server with support for TK10x devices at port 31272 (example)./runserver.sh -p
31272 -s tk10x -iNow little add. "runserver.sh can be copied as different servers
(for tk10x, etc...) and can be configured inside the file (port and device).Also
i've add at the top of this file this two command lines.export
GTS_HOME=/usr/local/OpenGTS_2.3.9/export JAVA_HOME=/usr/lib/jvm/java-6-sunso my
file start like this#!/bin/bash#
-----------------------------------------------------------------------------#
Project: OpenGTS - Open GPS Tracking System# URL : http://www.opengts.org# File :
runserver.sh#
-----------------------------------------------------------------------------#
Device Parser Server Startup# Valid Options:# -s <server> : server name# -p
<port> : [optional] listen port

# -i : [optional] interactive# -kill : [optional] kill running server# Examples:# %


runserver.sh -s <server> -p 31000 -i#
-----------------------------------------------------------------------------export
GTS_HOME=/usr/local/OpenGTS_2.3.9/export JAVA_HOME=/usr/lib/jvm/java-6-
sun[.....]STEP XXX. Do this step when reconfigure your server. (edit private.xml
etc....)ant trackcp /usr/local/OpenGTS_2.3.9/build/track.war
/usr/local/tomcat/webapps/.STEP YYY.Do this step if you have only OpenGTS server
and no other sites, or you don't have some control panel.cd /var/wwwpico
index.phpAND PASTE this code.<?phpHeader( "HTTP/1.1 301 Moved
Permanently" );Header( "Location: http://website.com:8080/track/Track" );?>I hope
this solution is helpful, and please forgiveme for my english (of some errors).Also
my linux skills are not excelent.If someone have recommends to make some changes i
will edit this post.

Best regards:Petar Milenovadmin@gpstrack.tkSpecial thx to:Martin FlynnOpenGTS Dev


Staff

Ubuntu Server 10.04 Lucid - OpenGTS 2.3.9 InstallationFirst of all we install


Ubuntu server only with SSHserver only !!!sudo passwd rootenter root password then
login with root.I will use "pico" as editor.Step 1.pico /etc/network/interfaces#
This file describes the network interfaces available on your system# and how to
activate them. For more information, see interfaces(5).# The loopback network
interfaceauto loiface lo inet loopback# The primary network interface (and make
static ipnetwork mine look like this)auto eth0iface eth0 inet staticaddress
192.168.1.10netmask 255.255.255.0network 192.168.1.0broadcast 192.168.1.255gateway
192.168.1.1 Step 2.CTRL+Q (y) and restart network /etc/init.d/networking restart

Step 3.It's good to edin and hosts filepico /etc/hosts127.0.0.1


localhost.localdomain localhost192.168.1.10 gps.server.com gps# The following lines
are desirable for IPv6 capable hosts::1 localhost ip6-localhost ip6-loopbackfe00::0
ip6-localnetff00::0 ip6-mcastprefixff02::1 ip6-allnodesff02::2 ip6-allrouters Step
4.This can be skipped if you don't know what you do. echo gps.server.com >
/etc/hostname/etc/init.d/hostname restarthostnamehostname -fStep 5.Now we make
update and safe upgrade.aptitude updateaptitude safe-upgraderebootStep 6.I don't
like apparmor and recommend you to be disabled & removed/etc/init.d/apparmor
stopupdate-rc.d -f apparmor removeaptitude remove apparmor apparmor-utilsStep 7.Now
install some pkg. that will need later :) (All

in one line)aptitude install binutils cpp fetchmail flex gcc libarchive-zip-perl


libc6-dev libcompress-zlib-perllibdb4.6-dev libpcre3 libpopt-dev lynx m4 make ncftp
nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool
bison autotools-dev g++ build-essentialStep 8.MYSQLaptitude install mysql-server
mysql-client libmysqlclient16-devBecause i use remote access and want my SQL
serverto listen at all interfacess we edit mysql configfile.pico
/etc/mysql/my.cnf[...]## Instead of skip-networking the default is now tolisten
only on# localhost which is more compatible and is not less secure.#bind-address =
127.0.0.1[...]/etc/init.d/mysql restartnetstat -tap | grep mysqlyou will see
something like thistcp 0 0 *:mysql *:*LISTEN 624/mysqldStep 9.APACHE/PHP5/etc....

Das könnte Ihnen auch gefallen