This Repository are focused to save & distribute knowledge about IOT devices applied to real life in plain english.
Option 1: Killing wifi
sudo rfkill block wifi
Option 2: Remove network from wi-fi storage
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
Inside this file you will need to remove the variable called as: network
Network Time Protocol (NTP) is an internet protocol used to synchronize with computer clock time sources in a network.
Watch: https://www.youtube.com/watch?v=oCtkwEjhyD4
For Brazilians: https://www.youtube.com/watch?v=WDimwYFau1I
sudo timedatectl set-timezone {YOUR TIMEZONE HERE}
apt-get update && apt-get install ntp -y
cp -p /etc/ntp.conf /etc/ntp.conf.default
Clear the new archive:
echo "" > /etc/ntp.conf
nano /etc/ntp.conf
Have atention on coments about country NTP servers lists, you can find your zone or set global using: https://www.pool.ntp.org/pt/zone/@
Ex. Only For Brazilians:
server a.st1.ntp.br iburst
server b.st1.ntp.br iburst
server c.st1.ntp.br iburst
server d.st1.ntp.br iburst
server gps.ntp.br iburst
server a.ntp.br iburst
server b.ntp.br iburst
server c.ntp.br iburst
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
server 2.pool.ntp.org iburst
server 3.pool.ntp.org iburst
driftfile /var/lib/ntp/ntp.drift
# ENABLE LOGS AND STATICS OF USE
statsdir /var/log/ntpstats/
statistics loopstats peerstats clockstats
filegen loopstats file loopstats type day enable
filegen peerstats file peerstats type day enable
filegen clockstats file clockstats type day enable
# PUBLIC NTP SERVERS GLOBAL OR YOU CAN SET ONE OF YOUR REGION USING: https://www.pool.ntp.org/pt/zone/
server 0.pool.ntp.org iburst
server 1.pool.ntp.org iburst
# SETUP PERMISSIONS TO RUN
restrict -4 default kod notrap nomodify nopeer noquery limited
restrict -6 default kod notrap nomodify nopeer noquery limited
restrict 127.0.0.1
restrict ::1
Restart NTP SERVER:
sudo systemctl restart ntp
sudo apt-get install nmap \
&& nmap -sn 192.168.1.0/24