projects:open_energy_monitor_unmonastery:raspberry_additional_conf

Raspberry additional configuration

Change the hostname

As root :

  • Edit /etc/hostname
  • Edit /etc/hosts
  • Execute /etc/init.d/hostname.sh

Specific to unMonastery Matera

Setting date/time

Usually to set date/time on a Raspberry Pi the NTP protocol is used (local date/time is synchronized with an NTP server on the internet) because the Raspberry Pi has no internal clock. But here at unMonastery Matera we have a firewall set up by our regional ISP which prevents us from using NTP (which requires UDP protocol and port 123).

  • To bypass this we execute a request to a http server like this :
    date -s $(curl -G http://www.timeapi.org/utc/now)
  • To set the date/time at startup we added the command above to the /etc/rc.local script.
/var/www/tech_mirelsol/data/pages/projects/open_energy_monitor_unmonastery/raspberry_additional_conf.txt · Last modified: 13/05/2014 11:39 by Mirelsol