and follow this guide to enable google sync
http://www.knowliz.com/2009/02/how-to-sync-multiple-calendars-with.html
This is my blog on the development of
iPhone & Android in ChromeOS, Mac, Windows & Linux.
mkdir ~/src
cd ~/src/
curl -O http://kernel.org/pub/software/scm/git/git-1.6.5.3.tar.bz2
tar -xjvf git-1.6.5.3.tar.bz2
cd git-1.6.5.3
./configure --prefix=/usr/local
make
sudo make install
git --version
cd ~/yourprojectdir
git init
git add . # include everything below ./ in the first commit;
# if you want to remove use git rm -r --cache xxx
git commit
cd ..
git clone --bare ~/yourprojectdir yourproject.git
touch yourproject.git/git-daemon-export-ok
scp -r yourproject.git user@xxx.xxx.xxx.xx:/Volumes/HD/git/
ssh user@xxx.xxx.xxx.xx "cd /Volumes/HD/git/yourproject.git; git --bare update-server-info; mv hooks/post-update.sample hooks/post-update"
ssh user@xxx.xxx.xxx.xxx "which git-upload-pack"
ssh user@xxx.xxx.xxx.xxx "echo \$PATH"
ssh user@xxx.xxx.xxx.xxx "echo 'export PATH=\${PATH}:/usr/local/bin' > ~/.bashrc"
cd ~/yourprojectdir
git remote add origin ssh://user@xxx.xxx.xxx.xxx/Volumes/HD/git/yourproject.git
git push origin master
ssh user@xxx.xxx.xxx.xxx "mkdir -p /Volumes/HD/git/yourproject.git; cd /Volumes/HD/git/yourproject.git; git --bare init; touch git-daemon-export-ok"
cd ~/yourprojectdir
git init
git add . # include everything below ./ in the first commit;
# if you want to remove use git rm -r --cache xxx
git commit
git remote add origin ssh://user@xxx.xxx.xxx.xxx/Volumes/HD/git/yourproject.git
git push origin master
cd ~
git clone ssh://user@xxx.xxx.xxx.xxx/Volumes/HD/git/yourproject.git working
cd working
git log
git checkout
git branch -r # show branch in repo
git checkout -b todo origin/to-do-branch # checkout a new branch
git checkout master # checkout the master branch
git branch next # create new branch
git add .
git commit -m 'commit nextbranch'
git push origin next
git clone git://github.com/username/repo-name.git
cd repo-name
git branch -r # show branch in repo
git checkout origin/to-do-branch # quick peek at an upstream branch
git checkout -b todo origin/to-do-branch # checkout a new tracking branch
git fetch origin pull/<ID #>/head:NEWBRANCHNAME
git checkout NEWBRANCHNAME
mkisofs -iso-level 2 -J -R -l -D -N -joliet-long \
-relaxed-filenames -V "yourlabel" \
-o yourcd.iso yourdirectory
adb push debian-armel-750.img /sdcard/kit/
adb shell
su
export kit=/sdcard/kit
export mnt=/data/local/mnt
export TERM=linux
export HOME=/root
export PATH=$bin:/usr/bin:/usr/sbin:/bin:$PATH
busybox clear
busybox mkdir -p $mnt
busybox mount -o loop,noatime $kit/debian-armel-750.img $mnt
busybox mount -t devpts devpts $mnt/dev/pts
busybox mount -t proc proc $mnt/proc
busybox mount -t sysfs sysfs $mnt/sys
busybox mkdir -p $mnt/mnt
busybox mkdir -p $mnt/mnt/sdcard $mnt/mnt/system
busybox mkdir -p $mnt/mnt/data $mnt/mnt/dev
busybox mount --bind /sdcard $mnt/mnt/sdcard
busybox mount --bind /system $mnt/mnt/system
busybox mount --bind /data $mnt/mnt/data
busybox mount --bind /dev $mnt/mnt/dev
busybox mount -t tmpfs tmpfs $mnt/tmp -o noatime,mode=1777
busybox chroot $mnt /bin/bash
# now G1 should be in Debian System
rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab
passwd root
apt-get install debian-keyring debian-archive-keyring
apt-get update
apt-get upgrade
apt-get install openssh-server openssh-client
/etc/init.d/ssh start
deb http://ftp.us.debian.org/debian lenny main
apt-get install build-essential
exit
adb pull /system/sd/app app
adb pull /system/sd/app-private app-private
adb pull /system/sd/dalvik-cache dalvik-cache
adb pull /sdcard sdcard
adb push app /system/sd/app
adb push app-private /system/sd/app-private
adb push dalvik-cache /system/sd/dalvik-cache
adb push sdcard /sdcard
reboot
cd /data/local/mnt
tar cf - . | (cd /system/sd/; tar xvf -)
export mnt=/system/sd
export TERM=linux
export HOME=/root
busybox mount -t devpts devpts $mnt/dev/pts
busybox mount -t proc proc $mnt/proc
busybox mount -t sysfs sysfs $mnt/sys
busybox mount --bind /sdcard $mnt/mnt/sdcard
busybox mount --bind /system $mnt/mnt/system
busybox mount --bind /data $mnt/mnt/data
busybox mount --bind /dev $mnt/mnt/dev
busybox chroot /system/sd /etc/init.d/ssh startrebootchroot /system/sd /bin/bash