How to Install Traccar server on AWS Amazon step by step (Tutorial)

Julio.Rodriguez9 years ago

First that nothing, I want to thank all those who made possible this project "Traccar" in particular the Lord Anton Tananaev many thanks.

  • the first is that we must acquire a VPS of your choice, in my case I use Ubuntu Server 14

  • we need to access our VPS using putty here you have a tutorial on how to do it. https://www.youtube.com/watch?v=Z8EVfkEGbpE

  • Once inside our vps using Putty we proceed with the installation of the Traccar Server

  • steps to follow once inside our VPS

# sudo your
# apt - get update
# wget https://github.com/tananaev/traccar/releases/download/v3.1/traccar-linux-64-3.1.zip
(In case you use VPS 64-bit (recommended)
# wget https://github.com/tananaev/traccar/releases/download/v3.1/traccar-linux-32-3.1.zip
(VPS 32-bit)
#unzip traccar-linux-64-3.1. zip
#apkg - configure - a
#apt-get install mysql-server phpmyadmin unzip
#vi /opt/traccar/conf/linux.cfg

<entry key="database.driver"> com.mysql.jdbc.Driver</entry>
<entry key="database.datasource"> com.MySQL.JDBC.jdbc2.optional.MysqlDataSource</entry>
<entry key="database.url"> jdbc:mysql://localhost/anyusername
allowMultiqueries = true & autoreconnect =</entry>
<entry key='database.user'> anyusername</entry>
<entry key='database.password'> youphpmyadminpassword</entry>

Press ESC

: wq

# sudo apt-get install openjdk-7-jre
# sudo /opt/traccar/bin/traccar start

Now we access the browser with the ip of our server, to open the ports of our vps on AWS, follow these steps;

1

2

3

Finally, in the client installed on the device, we will put our IP and port 5055.

Julio Rodriguez-.

Anton Tananaev8 years ago

Your topic got into spam folder for some reason. Sorry about that.

rasik8 years ago

can you plase post video tutorial ?
just created a vps instance with ubuntu and logged via putty using key from amazon.

Step 4 is not clear, can you explain one by one..i just copy paste that inside putty ?

rasik8 years ago

can anyone explain please :(

Anton Tananaev8 years ago

As far as I understand you need to connect to your VPS through SSH and execute given commands.

rasik8 years ago

Anton, you tried in amazon free tier too, which linux used and can you explain by steps ?
now i am able to connect using ssh, next step.

Anton Tananaev8 years ago

Next step is to download installation package (https://www.traccar.org/download/), unzip it and follow installation instructions.

rasik8 years ago

Installed centos in amazon vps...will start instance and try in ssh.

$25 free credit, register your email id (even you already have account), you get $25 code in 3 hours after entering details below :

https://aws.amazon.com/campaigns/aws-revolution/credit-codes/

rasik8 years ago

@Anton
finally unzipped in amazon EC2 (centos 7)

how to install java in centos ? because downloaded java from this link
http://download.oracle.com/otn-pub/java/jdk/8u65-b17/server-jre-8u65-linux-x64.tar.gz

but dont know how to extract it :(

buddy, any complete step by step video tutorial and ssh codes, as we're new to this putty and ssh codes, using google, but not able to understand.

rasik8 years ago

will elaborate what i done till now..

  1. logged to amazon EC2 (centos 7 64bit) via putty (in my windows pc)

2)installed wget using below code
sudo yum install wget

  1. installed zip and unzip using below code
    sudo yum install zip unzip

  2. downloaded jave SE to server using below code
    wget http://download.oracle.com/otn-pub/java/jdk/8u65-b17/server-jre-8u65-linux-x64.tar.gz

  3. dont know how to extract :(

6)downloaded traccar using below code
wget https://github.com/tananaev/traccar/releases/download/v3.2/traccar-linux-64-3.2.zip

  1. unzipped the traccar using below code
    unzip traccar-linux-64-3.2.zip

still searching on google for next step and solution :( hope will find one i think, whyn't some one create complete video tutorial for centos ? as centos is more stable compared to other OS for server

Thanks

Anton Tananaev8 years ago

This is how you install Java on CentOS:

sudo yum install java-1.7.0-openjdk

rasik8 years ago

Thanks anton, installed java :)

  1. logged to amazon EC2 (centos 7 64bit) via putty (in my windows pc)

2)installed wget using below code
sudo yum install wget

  1. installed zip and unzip using below code
    sudo yum install zip unzip

  2. Installed java using below code
    sudo yum install java-1.7.0-openjdk

5)downloaded traccar using below code
wget https://github.com/tananaev/traccar/releases/download/v3.2/traccar-linux-64-3.2.zip

  1. unzipped the traccar using below code
    unzip traccar-linux-64-3.2.zip

  2. How to install traccar, any one line code like you given for java ?
    or i have to open the root by sftp and and edit some file ?
    about mysql ?

Anton Tananaev8 years ago

Have you looked at the README file?

rasik8 years ago

yep

[centos@ip-172-31-59-71 ~]$ sudo /opt/traccar/bin/traccar start
Starting traccar...
Waiting for traccar......
running: PID:9947
[centos@ip-172-31-59-71 ~]$

so this is finally here, now how to access in browser ?

myserverip:9947 or myserverip:8082 ?

Anton Tananaev8 years ago

myserverip:8082

Also make sure that ports are not blocked by firewall.