-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Dominic Létourneau edited this page Jan 28, 2022
·
23 revisions
# This will create a dump/MovIt directory with all documents.
mongodump --db MovIt
# This will create an archive of the dump
tar cvzf movit_db_backup.tar.gz dump# Extract the archive (will create the dump directory)
tar xvzf movit_db_backup.tar.gz
# Make sure backend if disabled when updating (it is using the database)
sudo systemctl stop movit_backend.service
# Drop current content of database
mongo MovIt --eval "db.dropDatabase();"
# Restore the DB (from the dump directory)
mongorestore
# Re-Start backend
sudo systemctl start movit_backend.service # Remove MongoDB from system
sudo apt-get remove mongodb
# Cleanup database files
sudo rm -rf /var/lib/mongodb
# Re-Install MongoDB
sudo apt-get install mongodb
# Enable MongoDB
sudo systemctl enable mongodb
# Start MongoDB
sudo systemctl start mongodb
# Init MOvIT database
cd ~/MOvITPlus/MOvIT-Detect-Backend/
sudo node initDatabase.js#WiFi Changes
Modify file : /etc/hostapd/hostapd.conf to:
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
country_code=CA
interface=wlan0
driver=nl80211
ssid=Movit-NOCONF
hw_mode=a
channel=0
wmm_enabled=0
macaddr_acl=0
auth_algs=1
wpa=2
wpa_passphrase=movitplus
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP CCMP
rsn_pairwise=CCMP