Cov txheej txheem:

Kev taw qhia - Tig Raspberry Pi rau hauv GPS Tracking Server: 12 Cov Kauj Ruam
Kev taw qhia - Tig Raspberry Pi rau hauv GPS Tracking Server: 12 Cov Kauj Ruam

Video: Kev taw qhia - Tig Raspberry Pi rau hauv GPS Tracking Server: 12 Cov Kauj Ruam

Video: Kev taw qhia - Tig Raspberry Pi rau hauv GPS Tracking Server: 12 Cov Kauj Ruam
Video: Qhia zaj hu plig zoo heev, thov kwv neej lauj pab hu me nyuam plig 25/10/2022 2024, Kaum ib hlis
Anonim
Kev taw qhia - Tig Raspberry Pi rau hauv GPS Tracking Server
Kev taw qhia - Tig Raspberry Pi rau hauv GPS Tracking Server

Hauv phau ntawv qhia no kuv yuav qhia koj yuav ua li cas rau nruab Traccar GPS nrhiav software mus rau Raspberry Pi uas yuav tau txais cov ntaub ntawv los ntawm cov khoom siv sib xws hauv is taws nem, txiav lawv txoj haujlwm mus rau hauv daim ntawv qhia rau lub sijhawm taug qab, thiab tseem taug qab ua si.

Traccar yog qhov pub dawb thiab qhib qhov GPS Nrhiav Software uas tam sim no siv rau hauv ntau daim ntawv thov sib txawv, hauv ntau lub tuam txhab sib txawv txij li nws tau pib puag ncig rau 8+ xyoo

Raspberry Pi yog lub cuab yeej zoo tshaj plaws rau cov neeg uas xav taug qab tus lej tsawg ntawm cov cuab yeej thiab xav tau tus neeg rau zaub mov pheej yig los ua lub luag haujlwm ntawd.

GPS tracker uas yuav ua haujlwm nrog Traccar yog los ntawm cov cuab yeej tshwj xeeb uas txuas rau koj lub tsheb hluav taws xob, xws li lub tsheb rau tsheb, kom yooj yim xws li rub tawm app mus rau iPhone lossis Android, xws li tus kheej taug qab.

Sau Ntawv Software:

  • Traccar Version: traccar-linux-64-4.8 (hloov tau koj tuaj yeem siv ARM version ntawm traccar.)
  • Raspberry Pi Version: Linux raspberry 4.19.0-9-amd64 #1 SMP Debian 4.19.118-2 (2020-04-29) x86_64 GNU/Linux

Raspberry Pi System Yuav Tsum Tau:

  • Java tau teeb tsa (JRE txaus, SDK zoo ib yam), Qhov kev zov me nyuam xav tau java ua tiav, yog li koj tuaj yeem sim nkag mus rau java-hloov pauv los xyuas seb java tau teeb tsa ntawm koj tus pi (Twb tau teeb tsa ntawm Raspberry Pi 4.19.0-9)
  • wget teeb tsa (rub tawm cov ntawv zip, koj tsis xav tau nws yog tias koj theej nws nrog lwm yam cuab yeej) (Twb tau teeb tsa ntawm Raspberry Pi 4.19.0-9)
  • unzip ntsia (kom unzip zip cov ntaub ntawv, koj tsis xav tau nws yog tias koj unzip cov ntsiab lus nrog lwm tus toots) (Twb tau teeb tsa ntawm Raspberry Pi 4.19.0-9)

Khoom siv

Raspberry Pi

Kauj Ruam 1: SSH Rau Koj Raspberry Pi

SSH Rau Koj Raspberry Pi
SSH Rau Koj Raspberry Pi

(Raspberry Pi SSH nkag tau raug xiam los ntawm lub neej ntawd)

Cov lus qhia rau kev qhib SSH tuaj yeem pom ntawm no:

Kauj ruam 2: Tsim cov /opt /traccar Directory

Tsim cov ntawv /opt /traccar Directory
Tsim cov ntawv /opt /traccar Directory

Nov yog cov npe uas software yuav raug teeb tsa rau.

sudo mkdir /xaiv /traccar

Kauj ruam 3: Hloov mus rau hauv /opt /traccar Directory

Hloov mus rau hauv /opt /traccar Directory
Hloov mus rau hauv /opt /traccar Directory

Hloov mus rau hauv /opt /traccar phau ntawv teev npe raws li nws yuav yooj yim dua los ua haujlwm qhov twg cov ntaub ntawv nyob.

cd /opt /traccar

Kauj ruam 4: Rub tawm Traccar Installer Files

Rub tawm Traccar Installer Files
Rub tawm Traccar Installer Files

Rub tawm qhov tseeb Traccar server.zip cov ntaub ntawv los ntawm traccar.org/downloads

Tam sim no, 4.8 yog qhov hloov tshiab kawg (Lub Ob Hlis 2020 tso tawm).

sudo wget

Kauj Ruam 5: Txheeb Xyuas Cov Ntaub Ntawv Ncaj Ncees

Txheeb Cov Ntaub Ntawv Ncaj Ncees
Txheeb Cov Ntaub Ntawv Ncaj Ncees
Txheeb Cov Ntaub Ntawv Ncaj Ncees
Txheeb Cov Ntaub Ntawv Ncaj Ncees

Ua ib qho md5 checksum kom ntseeg tau tias koj cov ntaub ntawv tsis raug puas tsuaj.

md5sum traccar-linux-64-4.8.zip

Qhov tshwm sim md5sum rau version md5sum traccar-linux-64-4.8.zip yuav tsum yog

4993f55e16a62e0e025533a2b0e33e68

Nb. Cov txiaj ntsig md5sum yuav sib txawv yog tias koj tab tom txhim kho qhov sib txawv ntawm traccar los ntawm qhov kuv tau qhia.

Kauj Ruam 6: Luam tawm Traccar.zip Cov Ntawv Ntsiab Lus rau Koj Cov Ntawv Teev Npe Ua Haujlwm

Luam cov ntawv Traccar.zip Cov Ntsiab Lus rau Koj Cov Ntawv Teev Npe Ua Haujlwm
Luam cov ntawv Traccar.zip Cov Ntsiab Lus rau Koj Cov Ntawv Teev Npe Ua Haujlwm

Tshem cov ntsiab lus ntawm traccar-linux-64-4.8.zip cov ntaub ntawv siv unzip. Raspberry Pi tau unzip teeb tsa los ntawm lub neej ntawd.

sudo unzip traccar-linux-64-4.8.zip

Kauj Ruam 7: Ntxuav Tom Qab Koj Tus Kheej

Ntxuav Tom Qab Koj Tus Kheej
Ntxuav Tom Qab Koj Tus Kheej

Rho tawm qhov tsis xav tau ntxiv traccar-linux-64-4.8.zip cov ntaub ntawv siv tshem tawm.

sudo rm traccar-linux-64-4.8.zip

Kauj Ruam 8: Khiav Traccar Run

Khiav Traccar Khiav
Khiav Traccar Khiav
Khiav Traccar Khiav
Khiav Traccar Khiav

Txij ntawm no koj tuaj yeem npaj rau nruab/khiav Traccar.

sudo./traccar.run

Ua tib zoo mloog rau qhov tso tawm thaum txhim kho. Nco tseg ntawm cov lus yuam kev uas yuav tshwm sim.

Kev ua tiav kev teeb tsa yuav tsum zoo li daim duab.

Kauj Ruam 9: Pib Traccar

Pib Traccar
Pib Traccar

Pib Kev Pabcuam Traccar nrog system ctl

sudo systemctl pib traccar.service

Kauj Ruam 10: Txheeb Cov Ntawv Teev Tseg rau Kev Ua Yeeb Yam

Txheeb xyuas cov cav rau qhov yuam kev
Txheeb xyuas cov cav rau qhov yuam kev
Txheeb xyuas cov cav rau qhov yuam kev
Txheeb xyuas cov cav rau qhov yuam kev

Siv tus Tsov tus tw nrog qhov hloov pauv & kab teeb tsa mus rau 300, saib xyuas thiab saib xyuas Traccar cav rau kev nkag yuam kev.

tw -f -n 300 /opt/traccar/logs/tracker-server.log

Kauj ruam 11: Txheeb xyuas Web Portal

Txheeb xyuas Lub Vev Xaib Portal
Txheeb xyuas Lub Vev Xaib Portal

Qhib lub web browser txhawm rau txheeb xyuas qhov system yog online.

Los ntawm koj tus Raspberry Pi Web Browserhttps:// localhost: 8082/

Los ntawm koj lub Computer ntawm tib lub network.https://: 8082/>: 8082/

Yog tias ua tiav, koj yuav tsum pom lub vijtsam nkag mus thiab tuaj yeem nkag mus raws li tus neeg siv hauv qab no: Email: adminPassword: admin

Kauj ruam 12:

Cov Npe Ntawm Cov Khoom Txhawb:

Txuas mus rau qee qhov GPS trackers: 2G GPS Tracker3G/4G GPS Tracker4G GPS Tracker

Lwm qhov txuas tau yooj yim: Hom GPS Tracker

Pom zoo: