This guide aims to be comprehensive and beginner friendly.
You should end up with something like:


Ingredients List
- A Vehicle GPS tracking device. I purchased the OBD II. There are other good options. Some are battery powered and others plug into different ports in your car. This guide will be based on the OBD II but it should be easy to alter to setup other trackers. If you have an older car (like very very old) you may need to check for alternatives.
- A VPS (with good uptime and 256mb of ram or more). I have mine running on a 128mb ram VPS from BuyVM but it may need upgrading (Java is memory hungry).
- A SIM card (one of the old big fat ones - most likely- that runs on 2G). You will need 300mb of data (per month) and a decent number of texts.
- Putty client.
Setting up the VPS.
1. My recommendation is to use a Ubuntu 16.x 32bit template (if it is not an option under when purchasing your VPS, you may be able to reinstall in your VPS's control panel). You can use other Ubunutu releases (or other linux releases for that matter), just ensure the correct Java version is available.
2. Login to your VPS using Putty (using root and your password). It would probably be a good idea to point out that using "root" as a login is a seriously bad idea... (setup a Sudo user and disable root!!)
Notes with the following commands...
Putty allows right-click pasting. You can also use Ctrl C to copy as well.
If you are given a command not found error, you may not have the package installed. Simply running:
- Code: Select all
apt-get install
- Code: Select all
apt-get install unzip
Preference all commands with sudoif you are not logged in as root.
3. Run these commands:
The template will be out-of-date... we need to get the latest updates. Run.=
- Code: Select all
apt-get update
We need Java! (specifically 7 +)
- Code: Select all
apt-get install default-jre
- Code: Select all
java –version
Download and unzip Traccar...
- Code: Select all
mkdir /traccartemp
- Code: Select all
cd /traccartemp
- Code: Select all
wget https://sourceforge.net/projects/traccar/files/traccar-linux-3.11.zip/download
- Code: Select all
ls
- Code: Select all
unzip download
install...
- Code: Select all
/traccartemp/traccar.run
run....
- Code: Select all
/opt/traccar/bin/startDaemon.sh
4. You should now be able to login to Traccar. Navigate to:
- Code: Select all
yourIPAddress:8082
Add your device by clicking the + button:

The identifier is the IMEI number of the tracking device. For the OBDII, it is a little different, being the last 11 digits preceded by a "0".
Setting up the Tracker.
1. The sim card should slot nicely into the device. If it doesn't... you'll probably be like me wondering (in sadness) why your car won't reply to your texts!

(note... if you were given a power supply cable with your device, save step 2 until the end and just plug it in).
2. The OBD II plugs into the OBD port (the diagnostics port of your car). Here's a website to help you find it.

3. Unfortunately for me, my tracker did not come with a cable for power. So... the car had to be running for me to run commands (perhaps include this step in a daily errand?).
Have a conversation with your device! Your device's manual should give you commands to run... (you might wish to change some of the default settings e.g. the interval between updates).

Text the following...
Set the admin phone number.
- Code: Select all
710#yourmobilenumber#
Replies --->ADD admin account 1 OK!
Set the APN - this is the data APN specific to your SIM. A quick google search or asking your provider should reveal this. Mine was "warehouse".
- Code: Select all
820#APN#
Set your IP and port. The port is dependent on your device. It basically sets up a protocol for the device to communicate with the server. With Chinese devices... there are a number of possible ports so try these: https://www.traccar.org/ports-for-tk-gt ... s-devices/. :/
- Code: Select all
803#VPSIPADDRESS#5002#
At any time you wish to see the location of your Car/ Vehicle:
- Code: Select all
666#
Not working?
You can attempt to manually identify the port... Check the log file by running:
- Code: Select all
less /opt/traccar/logs/tracker-server.log
Press q to exit.
If there is a protocol issue... copy the long code into this HEX decoder and try to determine which device it matches from here: https://raw.githubusercontent.com/tanan ... gration.py.
If you see something like the following, you haven't set your identifier correctly.

If there is nothing in the server log (i.e. no attempt at communication), there may be something wrong with the settings on your tracking device (e.g. APN, IP).
Use the code:
- Code: Select all
886#
Any questions, feel free to comment below!
A big thanks to baZzz as well as Anton Tananaev, founder of Traccar.
https://www.traccar.org/quick-start/
https://www.traccar.org/linux/







