Simple install traccar
https://www.traccar.org/forums/topic/how-to-install-traccar-server-on-vps/
install java firts ubuntu
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer
$ sudo apt-get install oracle-java8-set-default
install traccar
$ cd /opt
$ wget https://github.com/tananaev/traccar/releases/download/v3.5/traccar-linux-64-3.5.zip
$ unzip traccar-linux-64-3.5.zip
$ chmod +x traccar.run
$ sudo ./traccar.run
$ sudo /opt/traccar/bin/traccar start
beryindo, thank you!!!
It`s work! Some command not worked, because i missing install other commands.
This is other commands:
$ sudo apt-get install python-software-properties
$ apt-get install software-properties-common
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
- do you accept the Oracle binary code license terms:
$ Y
$ sudo apt-get install oracle-java8-set-default (not worked but i need):
$ sudo dpkg --configure -a
- new password for the MySQL "root" user: Lozinka1
- repeat password for the mysql "root" user: Lozinka1
$ cd /opt
$ wget https://github.com/tananaev/traccar/releases/download/v3.5/traccar-linux-64-3.5.zip
$ unzip traccar-linux-64-3.5.zip
$ chmod +x traccar.run
$ sudo ./traccar.run
$ sudo /opt/traccar/bin/traccar start
Check ip xxx.xxx.xxx.xxx:8082/ and works! ;)
nice. how to migrasi databse to mysql ?
MySQL configuration:
How can I set over the terminal that all my records older than 100 days are automatically deleted? Is that entered on vi /opt/traccar/conf/linux.cfg
?
I can't enter to phpmyadmin.
We don't accept my username and password
There is no config option to remove old records. If you are using MySQL, you can just set up a shell script that would remove old records.
Not sure how it's related to Traccar.
Where did you get /opt/traccar/conf/linux.cfg
? It's an old path. Correct new one is /opt/traccar/conf/traccar.xml
.
Hello Anton.
My Server on ubuntu 15.04 already running Nginx with VestaCP and ufw firewall, also has install traccar server with mysql setup as https://www.traccar.org/mysql/. Traccar daemon is running well and table in mysql successful created but when I run in htttp://my_domain:8082. The server is error. Port 8082 has open on ufw firewall, I look on Logs appears here, I had setup debug to know this problem.
DEBUG | wrapperp | 2016/08/01 05:37:00 | Send a packet PING : ping 0005cc95 INFO | jvm 1 | 2016/08/01 05:37:00 | WrapperManager Debug: Received a pack$ INFO | jvm 1 | 2016/08/01 05:37:00 | WrapperManager Debug: Send a packet P$ DEBUG | wrapperp | 2016/08/01 05:37:00 | read a packet PING : ping 0005cc95 DEBUG | wrapperp | 2016/08/01 05:37:04 | Send a packet PING : ping 0005ccbe INFO | jvm 1 | 2016/08/01 05:37:05 | WrapperManager Debug: Received a pack$ INFO | jvm 1 | 2016/08/01 05:37:05 | WrapperManager Debug: Send a packet P$ DEBUG | wrapperp | 2016/08/01 05:37:05 | read a packet PING : ping 0005ccbe
when I check port 8082 with nmap it appers like this ?
8082/tcp open blackice-alerts
It's right ?
How to solve this ?
Thank's in advance.
I think your server is freezing. What are the hardware specs?
My Server not freezing, It still works well on port 80 run by PHP website
But here my VPS spec hardware
PS:
as Info again
VPS running with
java version "1.7.0_95"
OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-0ubuntu0.15.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
Before started traccar daemon when run command java -version
it's fine that info appears but when I start traccar demon and It's successful running but when I run again java -version
give this info
Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will
What should I do ?
I guess there is some problem with Java. Try to re-install it and get latest version.
Ok I after upgrade Java, and also I check that firewall on Vestacp not using ufw as default but iptables. After added rule manual on iptables it success now.
Thank's
Some problem here,
How to check if ufw is not the default?
Hi @engdoug, Iptables is default by most linux distro as firewall, and ufw is new tools and not install as default, so I have to compare firewall rule before using ufw and after using ufw using tools NMAP, scan first using command when ufw before active
nmap 127.0.0.1
what port that already open is port 8082 for traccar open, and compare that result after ufw install and active using sudo ufw status
. If prt 8082 has active. Try open in browser is htttp://yourdomain:8082 it has success open or not.
In my VPS it has different result. so I conclusion it using default firewall are iptables. or as some error in logs traccar.
So after disable ufw and added rule using iptables for port 8082 for TCP and UDP protocol. Traccar it successful running now.
Thanks @ceceps!
How to install Traccar on VPS
Ubuntu-15.04-x86_64
THIS IS EXAMPLE
and i have problem.
When you connected to Putty, I give following commands:
su
apt-get update
wget url_from_my_server.com/traccar-linux-64-3.5.zip
sudo apt-get install unzip
If you disagree with the command SUDO that need
apt-get sudo install
unzip traccar-linux-64-3.5.zip
dpkg --configure -a
apt-get install mysql-server phpmyadmin unzip
Press <strong>4</strong> for abort
vi /opt/traccar/conf/linux.cfg
:wq
writes the following message: <strong>"/opt/traccar/conf/linux.cfg" E212: Can't open file for writing
sudo su
cd /opt
mkdir traccar
cd traccar
mkdir conf
cd conf
vi /opt/traccar/conf/linux.cfg
:wq
Now it's been all right.
sudo apt-get install openjdk-7-jre
New password for the MySQL "root" user: Lozinka
Repeat password for the MySQL "root" user: Lozinka
Configure database for phpmyadmin with dbconfig-common? Y
su
sudo ./traccar.run
sudo /opt/traccar/bin/traccar start
<em>Starting traccar...
Waiting traccar....
running: PID 13948</em>
apt-get install ufw
ufw allow 8082/tcp
ufw allow 8082/udp