How to Turn a Raspberry Pi into a Low-Power Network Storage DeviceĮverything in the first tutorial is necessary.How to Configure Your Raspberry Pi for Remote Shell, Desktop, and File Transfer.Everything You Need to Know About Getting Started with the Raspberry Pi.If you need to get up to speed in these areas, we strongly suggest reading the following guides in the order we have them listed here: When I look into the rvice file I see indeed the following:Ĭan I just change the rvice and save it?Īnd which is the correct path to be used? (usr/bin/java or usr/share/java?)Īnd of course I have to save the modified file somewhere else in case I will do in future another traccar download installation.For this tutorial, we assume that you have a Raspberry Pi unit with Raspbian installed, are able to access the device either directly via an attached monitor and keyboard or remotely via SSH and VNC, and that you have an external USB drive (or drives) attached to it. (In the meanwhile I have given the commands:īoth were successful but did not change anything in the "sudo systemctl start traccar" command) Now the question is: which one is the correct path to the non-self-installed java? To my opinion that gives 2 locations: (the last one probably is not an application launcher?)Īs you know I installed one package my selves and, I guess, the other one probably was included in the traccar download. Java: /usr/bin/java /usr/share/java /usr/share/man/man1/java.1.gz (OR, just "java" instead of the whole path to /opt/traccar/jre/bin/ or whatever your whereis java command returns) Try both if the first doesn't work please. If you replace the ExecStart line with the result from "whereis java" and leave the rest of the line intact, it might work. It's in /etc/systemd/system/rvice.ĮxecStart=/opt/traccar/jre/bin/java -jar tracker-server.jar conf/traccar.xml ![]() Secondly, please check the systemd script for traccar. It's probably different than the one in /opt/traccar/jre/bin. Please check, as root, "whereis java" <- This command should tell you where your java executable is. But nevermind, since you already reinstalled, it's not an issue. Shit luck :) You could have replaced the password hash in the database directly, but I'm not sure which hashing scheme is used. ![]() But that will take another (couple of?) day(s?). So that will leave only the option to start an init script I gues. Therefore I started the tracker-server.jar file manually by means of the (self installed) java launcher.Īnd the "sudo systemctl enable traccar" does not work either to start automatically at reboot. The "sudo systemctl start traccar" command does not work. How come? Is it because I closed the Terminal while it was still systemctl is-active traccar Some remarkable issues: the traccar system remains in the "actvating" mode. I have no experience (yet) with init scripts or the use of systemd therefore I studied the sysytemctl commands today. I am happy that all steps I made before are now understandable to me and especially repeatable. ![]() Therefore I installed java with the following command:Īfter this I could install the traccar server again by means sudo java -jar /opt/traccar/tracker-server.jar /opt/traccar/conf/traccar.xml Therefore I installed Linux Desktop Ubuntu 20.10 again.Īfter the usual instructions, the outcome was that in the correct folder (/opt/traccar/jre/bin) the java command was not found. (The system kept remembering me with the wrong password). After login in with admin, admin, I made a typing error in the password and logged out.Īfter various trials, I decided to install the traccar server again. I was also able to restart the server (manually) after a restart of my Raspberry.Īfter that I made a "big mistake". This morning the system was still running.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |