![]() Vi /usr/local/etc/nginx/conf.d/Īccess_log /var/log/ Įrror_log /var/log/-error. You can download an installer package for your operating system from the downloads page. If you're using one of our subscriptions, demo servers or already have Traccar installed and ready, skip to Point 2. Include /usr/local/etc/nginx/conf.d/*.conf 1 Download and Install Start here if you plan to host your own instance of Traccar. # Load config files from the /etc/nginx/conf.d directory And strip down the config file and add the include statement at the end to make it easier to handle various server blocks:.Ensure all tests passes and coverage is still at 100 with poetry run pytest -cov. Format the files with poetry run ruff format. Lint the files with poetry run ruff check -fix pytraccar. Create a configuration directory to make managing individual server blocks easier Clone the repository locally and open the devcontainer or use GitHub codespaces.Default username is admin and password is admin.Įcho 'nginx_enable="YES"' > /etc/rc.conf.Jdbc:mysql://127.0.0.1:3306/traccardb?allowMultiQueries=true&autoReconnect=true&useUnicode=yes&characterEncoding=UTF-8&sessionVariables=sql_mode=ANSI_QUOTESĮcho 'traccar_enable="YES"' > /etc/rc.conf Vi /usr/local/www/traccar/conf/traccar.xml Sed -i '' -e 's/\/opt/\/usr\/local\/www/g' /usr/local/www/traccar/conf/traccar.xml Start_cmd="/usr/sbin/daemon -p $pidfile -u $traccar_user $command $command_args > $traccar_stdout 2> $traccar_stderr" Required_files="$traccar_root/conf/traccar.xml" To enable custom map, set custom map in the server settings. ![]() There are also many third party services that provide various tile options that can be utilized using custom map. For example, it is possible to use a offline or locally hosted map. : $Ĭommand_args="-jar $traccar_root/tracker-server.jar $traccar_root/conf/traccar.xml" Using custom layer it is possible to use any standard tile server with Traccar. # Add the following lines to /etc/rc.conf to enable `traccar': Sh n -noexec -target /usr/local/www/traccar GRANT ALL PRIVILEGES ON `traccardb`.* TO Then quit out of the mysql interface: Download traccar, then unzip and install by executing: unzip traccar-linux-64-2.0.zip. And create the database traccardb and make the traccaruser the owner:ĬREATE DATABASE IF NOT EXISTS `traccardb`.Then create the user traccaruser for the databaseĬREATE USER IDENTIFIED BY 'SuperSecretPassword'.Change the ownership of the traccar directory to traccar user:Ĭhown traccar:traccar /usr/local/www/traccarĮcho 'mysql_enable="YES"' > /etc/rc.conf.Pw useradd traccar -c Traccar -m -d /home/traccar -g traccar -s /bin/sh This point can be mitigated by adding the line -v. The docker run command also doesnt create a mount point on the host for the data folder which will cause the database to be lost when the container is recreated. Pkg install openjdk-jre maven3 mysql-connector-java git unzip The default when executing the above docker run command is an internal H2 database but this should only be for basic use. This is a guide for installing the Traccar GPS tracking server on FreeBSD 9.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |