[GRLUG] Raspbmc help-Changing date
Andrew Hekman
ajhekman at gmail.com
Fri Jul 20 11:26:08 EDT 2012
If your router keeps accurate time, you can grab the current time from the HTTP headers with netcat.
aj at Compaq:~$ nc 192.168.1.1 80
GET / HTTP/1.1
Host: 192.168.1.1
HTTP/1.0 401 Unauthorized
Date: Fri, 20 Jul 2012 14:33:58 GMT
[..snip..]
so you could run this at startup or via cron:
sudo date -s "`printf "GET / HTTP/1.0\r\n\r\n" | nc -n -i 1 192.168.1.1 80 | grep Date | sed 's/Date:\ //'`"
-AJ
On Jul 20, 2012, at 9:43 AM, Edwardo Fuentes wrote:
> Holy quick response....
> I don't know how to install the time protocol on the my device.
> I have searched the root menu while it is connected ; most the folders are hidden.
> I am going to pull open it up on Ubuntu & see if I can locate the ntp.log and direct it to local host
>
> If any thing else comes to mind... feel free to add.
>
> thanks
> Edwardo
> 616.834.3023
>
>
>
> On Fri, Jul 20, 2012 at 9:10 AM, Michael Mol <mikemol at gmail.com> wrote:
> On Fri, Jul 20, 2012 at 9:07 AM, Edwardo Fuentes
> <edwardo.fuentes at gmail.com> wrote:
> > -Josh thanks for getting me set up & with xbmc.
> > -Casey Thanks for hosting the event.
> >
> >
> > My Date is locked on 12/31/1969 - 7:55pm.
> > I cant find any folder to adjust date.
> >
> >
> > I have set my time zone to America/Detroit - & 12 hour time setting.
> > My IP address shows & am able to stream from network.
> >
> > Any suggestions....?
>
> I assume you have a shell? The 'date' command should allow you to set
> the date. That said, it's my understanding the Pi doesn't have an RTC,
> so you'll lose the date across reboots.
>
> What you really want is ntpd installed and running.
>
>
> --
> :wq
> _______________________________________________
> grlug mailing list
> grlug at grlug.org
> http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug
>
> _______________________________________________
> grlug mailing list
> grlug at grlug.org
> http://shinobu.grlug.org/cgi-bin/mailman/listinfo/grlug
More information about the grlug
mailing list