![]() ![]() Set yourself a strong MySQL Root password. Start the MySQL service systemctl start rvice Install MySQL Database Server apt install mysql-server -y Update all packages apt update Configure MySQL Once logged in, elevate to the root account sudo su We recommend that you look into ‘hardening’ your server, to prevent unauthorized users access. SSH into your server to begin configuring it. The GPS Tracking server has a portal that you can log into to see the data displayed on the interactive map. GPS Device > Receives Signal from GPS Satellite & stores location data > Sends location data over LTE/4G/5G/Satellite to GPS Tracking Server > User logs into Tracking Server web interface > Views GPS device on the map. Other gps tracking devices may have slightly more complex systems to configure the tracking server but that won’t be covered in this guide. In the next tutorial, using the Traccar Client app, you will be shown how to point an Android & iPhone to the server as a demonstration of how it works. ![]() ![]() This guide will show you how to set up the Traccar Manager server, which receives the GPS location updates from the devices (iPhone, android, dedicated, etc) and displays them on an interactive map. There’s a limit of one device on this server. I use Racknerds Virtual Private Servers to host my Ubuntu Traccar demo server.Ĭlick the link below to check the end result of this guide.įeel free to register an account on our demo server, log in and check it out. Use this guide to install Traccar onto a Ubuntu 20.04 server. You can track vehicles, boats, trucks, kids, adults, pets via iPhones, Android devices, dedicated hardware and more. The instructions below assume traccar is running on the same host as the mysql server.Traccar is an open source GPS Tracking platform which can locate any number and type of devices. Make sure the specified database and mysql user exist with adequate permissions. More config options are detailed at /configuration-file/Įnsure the database server is reachable. conf/default.xml jdbc:mysql://localhost:3306/traccar?allowMultiQueries=true &autoReconnect=true &useUnicode=yes &characterEncoding=UTF-8 &sessionVariables=sql_mode=ANSI_QUOTES &useSSL=false traccar password false true true true true 180 30 false 560 Lowering the socket timeout should also help mitigate the effects of intermittent device connectivity. If the device explicitly closes the connection, the marker will also turn red. After 1 minute with no contact, the connection is closed and its marker turns red. I like devices to promptly show as offline: If no message is received from a particular device for 30 seconds, that devices marker turns orange. All trackers I'm using are configured to send at 10 second intervals. I set short status timeout and port timeouts. You can whittle these down later, once you have established those that you do need. ![]() If you are not sure which protocol your device uses or which port it attempts to connect to, leave all the ports enabled in default.xml. In my case, h02 (for the dog trackers) and osmand (for the android traccar client app). Then, in traccar.xml, activate only those protocols I expect to use. Since I'm using just two device protocols, I comment out all the protocol declarations in default.xml (nodes containing key=*.port). I enable several filters to cut down on what I consider spurious or unhelpful locations making their way to the database. I disable the geocoder as I am not interested in address lookups. I added this to suppress warnings in MySQL server logs on Ubuntu 16.04. Note the useSSL=false parameter in database.url below. default.xml (a set of defaults, overwritten during upgrades, imported and overridden in traccar.xml).Traccar configuration files are in /opt/traccar/conf: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |