Sunday, March 17, 2013

Raspberry Pi Remote Login Using Ipad.



    Raspberry Pi can install Linux base OS, that mean you can remote login like ssh, telnet, VNC, RDP and X server in everywhere as long as connected to the internet.

    This's my Raspberry Pi using mini ipad remote login.
I used mini ipad share wifi to Raspberry Pi and do remote login.


Sunday, March 10, 2013

Raspberry Pi With RTC.


     Actually, Raspberry Pi didn’t have RTC(Real Time Clock). Raspberry Pi synchronous time use NTP(Network Time Protocol) server when connect to internet. So when Raspberry Pi don’t connect to NTP server from boot beginning. The system time is inaccurate. I add the RTC module to Raspberry Pi.

It is DS3231 chip.



my step:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get install libi2c-dev

sudo nano /etc/modules
add below
i2c-bcm2708
i2c-dev
rtc-ds1307 #the ds3231 modules as same as ds1307

reboot
login as root
echo ds3231 0x68 > /sys/class/i2c-adapter/i2c-1/new_device  #ver2 board
sudo hwclock -r  #read the time from the RTC module.
date #check the date
sudo hwclock -w  #write the system time to the RTC.
sudo hwclock -r  #read the time from the RTC module.

sudo nano /etc/rc.local
add below before "exit 0"
echo ds3231 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
sudo hwclock -s

sudo update-rc.d -f  fake-hwclock remove
sudo update-rc.d -f  ntp remove