462672101213215 is our device identifier we’re looking for. Interesting for us is the WARN entry line with the ‘Unknown device’ statement. ![]() SSH to the server and issue the following command: docker logs traccar To do so we need to check Traccar application logs. To quickly check current device location with SMS: smslink123456 Add a new device in Traccarīefore we configure new tracking device we need to find it’s Identifier. To check device current configuration: check123456 Server address and port: adminip123456 5001 ![]() Sample configuration for device branded as GT06 Frequently these are configured with commands sent by SMS to the number of a SIM card installed in a tracking device. Now the installation will start and when it’s done you should be able to access your private Traccar server with Tracking device configurationįor how to configure your device please consult your device manual. It’ll now ask you for 2 things needed to perform domain and SSL configuration: Domain: Email: address is required by Let’s Encrypt. ~]$Īnd run the following command: curl -sSL -o get.sh & sudo bash -e get.sh _| _|_ ) _| ( / Amazon Linux 2 AMI _|\_|_| 9 package(s) needed for security, out of 18 available Run "sudo yum update" to apply all updates. Log in to your new EC2 server with SSH ssh -o StrictHostKe圜hecking=no -i ~/.ssh/aws-key.pem Warning: Permanently added '52.209.105.239' (ECDSA) to the list of known hosts. Create a new security group and add appropriate entries like in a screenshot belowīefore you proceed please make sure that your DNS setup is ready. Here you need to define some TCP and UDP ports. Provide the following ‘User data’ as text: #!/bin/bash curl -sSL -o get.sh & sudo bash -e get.sh -no-leĬlick ‘Next: Add Storage’ and then ‘Next: Configure Security Group’. Go forward with ‘Next: Configure Instance Details’ and scroll down to ‘Advanced Details’. Continue with Amazon Linux 2 AMI (64-bit (x86)) and then with ‘t2.micro’. Select ‘Instances’ and then ‘Launch Instance’. Log in to your AWS Management Console and go to the EC2 service. But I think it’s a story for another tutorial and for now we’ll just stick to built-in H2 db, which is the default and doesn’t require any additional setup. In this tutorial I’ll assume that my domain is ģrd option would be to make it more robust and scalable using RDS to host MySQL database backend. This way your public IP address won’t change when you decide to terminate and recreate your instance. I encourage to allocate ‘Elastic IP address’ and create appropriate DNS A record for the domain name you’ve selected to use. Second one will use Nginx proxy with SSL Certificate acquired automatically and for free from Let’s Encrypt. First one is the easiest possible (and insecure) giving your Traccar running on HTTP port 80. Don’t worry if you don’t know any of these - everything will go up automatically with just one command. Everything will be set up with some Bash and Ansible scripts in infrastructure as a code style. We’ll use Docker containers to run Traccar and (optionally) Nginx. Please note that Amazon’s default EC2 instance domains *. cannot be used to get a free SSL certificate from Let’s Encrypt as they are considered ephemeral and are on a blacklist. ![]() It’s required to set up SSL protected version. One additional thing to consider is to get an external domain name. To keep it cheap even after your free tier is over we’ll only use one EC2 instance to host everything. We’ll do everything on Amazon AWS - there is nothing you need to set up on your local computer. Get a pre-paid one for testing and make sure you have some positive balance. In both cases you will need a GPRS-enabled SIM card for mobile data transmission. Another option is to use a regular smartphone with Traccar Client application installed. For a full list of supported devices please consult devices section on Traccar project website. Some popular cheap models are marketed as TK102B and GT06. You can get your own GPS tracker device from AliExpress, eBay etc. We’ll be using AWS free tier so hosting shouldn’t cost you anything (at least for the first year until your free tier is over). In this article I’ll show you how to set up your own secure GPS tracking server that you can use to locate your assets like a car or even a luggage. Traccar is an Open Source GPS Tracking Platform that supports a variety of protocols and device models.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |