Syed Jahanzaib Personal Blog to Share Knowledge !

December 30, 2014

2014 in review

Filed under: Uncategorized — Syed Jahanzaib / Pinochio~:) @ 8:10 AM

The stats helper monkeys prepared a 2014 annual report for this blog.

Here’s an excerpt:

The Louvre Museum has 8.5 million visitors per year. This blog was viewed about 1,300,000 times in 2014. If it were an exhibit at the Louvre Museum, it would take about 56 days for that many people to see it.

Click here to see the complete report.

December 11, 2014

Create Your OWN GPS base Vehicle/Fleet Tracking Management System in Linux

Filed under: Linux Related — Tags: , , , , — Syed Jahanzaib / Pinochio~:) @ 2:17 PM

 یااللہ تیرا شُکر ہے میرے مالک  کہ تو نے مجھے وہ نعمتیں عطا فرمائیں

کہ جن کا میں مستحق نہ تھا , مجھ پر اپنا کرم کر مالک

ﯾﺎ ﺍﻟﻠﮧ ﮨﻤﯿﮟ ﻋﺎﺟﺰﯼ ،ﺍﻧﮑﺴﺎﺭﯼ، ﺩﺭﮔﺰﺭ ﺍﻭﺭ ﺗﻮﺑﮧ ﮐﺮﻧﮯ ﻭﺍﻟﻮﮞ ﻣﯿﮟ ﺷﺎﻣﻞ ﻓﺮﻣﺎ


 ~!~ Syed Jahanzaib ~!~


 Last modified: 9th June, 2015

mapAssalam Va Alekum,
Greetings to all,

Recently I purchased an GPS tracking device for my car. As I can see its performance is very good, and it provides me quite accurate results of live or history track.of the vehicle movement, but the device has its costs and for web track there are annual charges too. So If I have few vehicles it will be costly to get them all monitored. So just for curiosity I did some R&D and found TRACCAR , which is a Linux base vehicle / fleet tracking management system , the best thign is its FREE 😉 and we all love to have FREE lunch at anyplace, anywhere (if its Legal preferably 🙂

As I have made this or test purposes, if some is interested and have no experience in linux or want to first try it in easy way, simply install traccar client, and contact me, I will make one account for you on my web server which is live 24 hours, and you can then see its working and performance. Message me if required.

Benefits of TRACCAR and its possible usage …

– Any Vehicle Tracking / maintain history
– Can be used for personnel tracking
– Can be used as a commercial solution as well
– Can be used to track your lost mobile phone
– You can inquire about location by sending SMS to the device and it will return sms you the location with URL [this feature will be implemented later]
– Maintain History and Track of the device and speed of vehicles with addressess
– Many others …



Hardware Software used in this Guide.

1- Linux base System , I used Ubuntu 12.04 32 bit edition as an example (hardware specs can be anything, nothing fancy required) , The system should have static public ip or it can work port forwarding as wel (if you dont have one, it can be manipulate with some workarounds like ddns too)
2- TRACCAR application which will be used to store/update client data and web portal for management purposes.
3- For client side tracking, I used ANDROID base mobile phone with GPS and GPRS. (HTC DESIRE HD MODEL with Ufone base GPRS (for location update on server, so GPRS must be activated on the SIM in order to update data from client to server) and WiFi where its available (it can store data if no internet is available and will update when it will get access to internet)

First we will configure SERVER side.





[UBUNTU 12.04 32bit Edition]

Login to your linux server with root, and first update and install Java DK.

apt-get update
aptitude install openjdk-7-jre-headless


Now download TRACCAR server application in temp folder, unzip it and run its installer.

mkdir /temp
cd /temp


Now Start TRACCAR service

service traccar start
sudo /opt/traccar/bin/traccar start

You should see some thing like on successful startup …

traccar server status

You can see its logs as well for troubleshooting and information purposes.

tail -f /opt/traccar/logs/tracker-server.log
TRACCAR server logs

TRACCAR server logs

Now access it from the WEB by


It may take some times to load the page / plugin.
Login With following default credentials

ID = admin
Pass = admin

After successful login, you will see TRACCAR web panel with default map.
On left side you will see DEVICES menu, Click on ADD button, and enter details
As showed in the image below …

ADd device in Traccar Server Panel

ADd device in Traccar Server Panel

NAME = Your Device or Person Name

UNIQUE IDENTIFIER =  Enter your IMEI number, you can find it on your device properties.

Click on SAVE.

Now moving to CLIENT end configuration …




For test purposes, I am showing you howto add android mobile device for tracking (as most of android phones nowa days have GPS module. So basically what you need is a GPS capable Device with Internet Access, (your SIM OR mobile must have Internet access in order to update data like coordinates and others to the server. in case your mobile/device have no internet access, it will store data locally and will update as soon it gets internet access.

Download TRACCAR-CLIENT application on your mobile and install it,

or you can install it directly from Google play store like

Once its installed open it (traccar client)
As showed in the image below …

TRACCAR client on android

TRACCAR client on android


Now you must modify settings as shown, [pretty simple and common to understand :p ]

traccar client settings

traccar client settings

– DEVICE IDENTIFIER  =  In Device identifier, you will see you unique IMEI No. (International Mobile Equipment Identity number IMEI) you should add the same in your server section as well (In ADD device)

– SERVER ADDRESS   =  Enter your server IP address (traccar server) or if you dont have static ip, you can use DYNAMIC DNS on your dsl/router and do port forwarding of required ports like 8082 for web panel , and 5005 (it depend on device model)

– SERVER PORT  =  In general cases port may be same as for this model its 5002, (but it can vary from GPS device model)

– FREQUENCY  =  How often (in seconds) client should upload data to the server (For initial test purpose make this value less like 60 seconds)

– LOCATION PROVIDER  =  Select MIXED provider, so that if GPS is not working, it should update possible coordinates with the nearest mobile network tower. The exact location may not be accurate in network provider settings , but sometimes sufficient to get idea.GPS only settings provide more accurate position but it requires sky sight.

– SERVICE STATUS  =  select this option so that the client starts sending data. (this service be running all the time )

If you click on MENU and then on STATUS, you can see the LOGS
As showed in the image below …





Some more snaps of settings for android client, just for reference purposes

Android Base Mobile - Location Settings

Android Base Mobile – Location Settings

ANDROID = Traccar-client Configuration

ANDROID = Traccar-client Configuration


Android - traccar-client location provider settings

Android – traccar-client location provider settings

Traccar-client LOGS, on successful connection

Traccar-client LOGS, on successful connection




Now at server end… select the device you added earlier and you will start seeing its status. For a better tracking view, Go outside with your device and have a 4-5 kilometers walk or running (its good for health too you know but I myself is so lazy that even with over weight, I dont walk much 😛 )
Now see the view IN DIFFERENT STYLE 😉





UPDATING TRACCAR-WEB.WAR for new features enhancements

To add some features and enhancements to your previous traccar web portal by Anton Tananaev, update it with Mr.Vitaly Litvak version.
Here are instructions:

> Download the updated .war file


Now stop traccar service and replace the war file in installed folder.

service traccar stop
cp traccar-web.war /opt/traccar/
service traccar start

Now you will see new enhanced featured like which don’t exist in original traccar-web project:

See following FEATURES list at



Howto show Address field:

This column displays address value from archived positions. It is hidden by default, to make it visible use controls of archive grid (available by clicking down arrow button in any column header):

Columns settings

Please note that by default traccar does not fill that column. To make it work the ‘reverse geocoding’ must be enabled in traccar configuration file:

<!-- Geocoder options -->
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>nominatim</entry>
<entry key='geocoder.url'></entry>

Thanks to Mr. Vitaly Litvak for pointing me in the right direction 🙂


In User account, you can set his email address and notifications type that user will receive on given email address.



In SETTINGS > NOTIFICAITON, you can configure your GMAIL account to send out emails using your gmail account. You must enable LESS SECURITY in gmail before using this app or gmail will block any attempt of using there smtp using 3rd party app.


Use ‘Test’ button to check settings validity. It will just test the connection. and you will see TEST PASSED popup.

More information on notification can be seen here.


If time will allow , I will add some more snaps and customizations that can be made. Its a open source application, you can make your contribution as well.


You can get more details on this project from following link



Syed Jahanzaib

%d bloggers like this: