發表文章

目前顯示的是 9月, 2013的文章

Install Network Time Protocol(NTP) on BeagleBone with Angstrom linux and set local time zone

Referenced from : http://cwraig.id.au/?p=513 1. Update your Package List opkg update 2. Get the ntp Package opkg install ntp ntpdate Update 2014/07/03 for the latest beaglebone image(2013-06-20) with kernel 3.8.12, after this installation,  system will add to service list, so only need to change time zone 3. Now we need to stop the ntpd service so we can request a manual update /etc/init.d/ntpd stop manual update ntpdate pool.ntp.org type in date, you should see the date is changing to current date and time, but the time zone is not corrected. The time zone info is contained in /etc/localtime , use this to remove it: rm /etc/localtime before link up our time zone, look into /usr/share/zoneinfo folder for your timezone. I did not find taiwan in asia, not plan to use hong_kong, but there is still: /usr/share/zoneinfo/Etc/GMT-8 now we make the link with ln command ln -s /usr/share/zoneinfo/Etc/GMT-8 /etc/localtime now type date again to check, should ha

Gdata spreadsheet on beaglebone

圖片
The target is to use gdata service to upload data from beaglebone to a existing google drive spreadsheet... since beaglebone has already comes with python 2.7, this will be easier to do it. AlL my reference comes from: eduardo simioni first following the installation guide here: https://developers.google.com/gdata/articles/python_client_lib down load the gdata here : https://code.google.com/p/gdata-python-client/downloads/list Find the path of down load file, then use wget, example: wget https://gdata-python-client.googlecode.com/files/gdata-2.0.18.tar.gz you can also down load to PC and the transfer to beaglebone with SCP. untar the file with : tar -zxvf yourfile.tar.gz go into the gdata fold: cd gdata-2.0.18 then run : sudo python setup.py install wait for the installation. for testing, change to /tests/ and try: python run_data_tests.py it should process a serie of testing to see if there is any fault.. The other example for testing is to go to /samples/