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. Other gps tracking devices may have slightly more complex systems to configure the tracking server but that won’t be covered in this guide. 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. The GPS Tracking server has a portal that you can log into to see the data displayed on the interactive map. SSH into your server to begin configuring it. 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. Save it in your password manager ALTER USER IDENTIFIED BY 'MyN3wP4ssw0rd' #Set the root passwordįlush privileges #force changes to come into effect Set yourself a strong MySQL Root password. Prepare the database connection & credentials using export to set variables which we will reuse a few times. In line two of the below code we have used openssl to generate a secure password and store it within the variable $securePassword. This way the password is never exposed to the command line history. Note: The password saved in the variable $dbTraccarAdminPassword below will exist whilst your terminal session is active.īe sure to complete all steps below. Mysql -e "DROP DATABASE IF EXISTS test" #Remove the demo database mysql -e "DROP USER IF #Drop anonymous users users #Drop anonymous users users export dbTraccarAdmin="traccar_admin"Įxport dbTraccarAdminPassword="$(openssl rand -base64 12)" Don’t stop halfway through these steps, and come back as the variable will cease to exist. Mysql -e "DELETE FROM er WHERE User='root' AND Host NOT IN ('localhost', '127.0.0.1', '::1')" #Deny root remote login. Provide the Traccar DB admin user full access to the Traccar database mysql -e "CREATE USER IDENTIFIED WITH mysql_native_password BY '$'" Mysql -e "FLUSH PRIVILEGES" #Force changes to come into effect Create the Traccar database & userĬreate the database that Traccar will use mysql -e "create database $dbTraccarName CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci" #Creates the databaseĬreate the Traccar database user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |