2010
03.25
Just a simple note about what I have did for building my won Android ROM for my Nexus One
get repo utility from below link
http://source.android.com/download/using-repo
Then run
repo init -u git://github.com/cyanogen/android.git -b eclair
repo sync
Create a file buildspec.mk with those contents(for Nexus One)
TARGET_PRODUCT:=cyanogen_passion
TARGET_BUILD_VARIANT:=eng
TARGET_BUILD_TYPE:=release
Run the command to setup you environment
. build/envsetup.sh
To specifically configure the build system for CyanogenMod
lunch cyanogen_passion-eng
Connect you Nexus One with USB and open debug mode to retrieve proprietary library from cell phone
(cd vendor/google/passion;./extract-files.sh)
make -j4
2010
02.09
% cat /etc/apt/sources.list.d/handbrake.list
deb http://ppa.launchpad.net/handbrake-ubuntu/ppa/ubuntu karmic main
deb-src http://ppa.launchpad.net/handbrake-ubuntu/ppa/ubuntu karmic main
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 62D38753
sudo apt-get update
sudo aptitude install handbrake-cli
HandBrakeCLI -i ccc.avi -o ccc.mp4
2010
01.07
I’m trying to use eclipse to write a hello android program, but encountered a problem while installing ADT plugin for eclipse.
The following is the solution and from this bug report, the problem is fixed in eclipse (3.5.1+repack~3-0ubuntu1).
Read More >>
2009
11.06
PATCH=patch_filename ; git am $PATCH || (git apply --reject $PATCH ; find -name *.rej)
It’s done, if no .rej files be produced.
If git am failed, it’ll try to apply the other successful part and produce the .rej files to indicate the failed part.
Edit the failed files then, and using git status to make sure how many files infected and using git add files to add them or using git add -u to add all not updated files.
Finally, git am --resolved
Note for the zsh user. (2010/01/12)
I changed my default shell to zsh recently and found the apply patch command is broken. Although zsh claim that it’s compatible with bash, there are still some difference. But the good news is we can overcome this problem by adding one more line in the .zshrc
setopt GLOB_SUBST
More detail, please read this
2009
10.28
* Mobentoo(a.k.a. SlideME) - An Android market like program
* Color Dict Lite - A very good dictionary, the dictionary files are compatible with stardict, so you can download a lot of dictionary from Internet.
* RockOn -
* Ultra Notes - More useful note with category
* Opera Mini
* rTerm - bbs client
* aiCurrency
* AndAppStore
* Aldiko - online book
* Advance Task Manager - I paid for this program, 0.99USD
2009
10.28
I’ve been curious who made the test_branch_1 branch on the ubuntu git tree for a long time. And today I checkout that branch and see the amazing log.
acelan@acelan-nb:~/workspace/ubuntu-karmic$ git branch -r
origin/HEAD -> origin/master
origin/arm
origin/ec2
origin/fsl-imx51
origin/master
origin/mvl-dove
origin/netbook
origin/patches-that-need-love
origin/pending-upstream-patches
origin/test_branch_1
acelan@acelan-nb:~/workspace/ubuntu-karmic$ git checkout -b test origin/test_branch_1
Checking out files: 100% (9533/9533), done.
Branch test set up to track remote branch test_branch_1 from origin.
Switched to a new branch ‘test’
acelan@acelan-nb:~/workspace/ubuntu-karmic$ git log
commit a2c978c3ffb96982b3876b37c0a21fcc787234bc
Author: AceLan Kao <acelan@ooo.xxx.com>
Date: Fri Jun 12 13:42:45 2009 +0800
only for git test
commit fba4b54f8f16a11ff3e57b7ac76d437b5d831695
Author: AceLan <acelan@acelan-nb.(none)>
Date: Tue Jun 9 16:17:23 2009 +0800
UBUNTU: [Upstream]
Signed-off-by: AceLan <acelan@acelan-nb.(none)>
It was my second day, and I didn’t know too much about git. Of course, the branch was already been deleted, and nobody will know what I had did. :p
2009
10.28
If you would like to do more extra work while packaging the kernel package, modify this file
debian/rules.d/2-binary-arch.mk
If you would like to do more extra work after installing the kernel package, modify this file
debian/control-scripts/postinst
2009
10.21
On a new installed machine, you have to add your info in the ~/.gitconfig
git config --add user.name "AceLan Kao"
git config --add user.email acelan.kao@ccc.ccc
Clone Jaunty kernel and add my public repository, so that I can publish my modification to public git tree.
git clone --reference linux-2.6 git://kernel.ubuntu.com/ubuntu/ubuntu-jaunty.git
git remote add zinc git+ssh://zinc.ubuntu.com/srv/kernel.ubuntu.com/git/acelan/acelan-jaunty.git
NOTE. The reference git tree(ex. linux-2.6) shouldn’t be removed under any circumstances, or the reference object will disappear and the git tree will become unusable. The file .git/objects/info/alternates will record the referenced git tree, try to specify an available one, if you removed the original reference tree accidentally.
Read More >>
2009
10.19
I can’t receive email after fresh installing Ubuntu on my server. I copy the old postfix config(main.cf) to the new installed server, but the new email arrived. I found there is a statement in the main.cf
smtpd_client_restrictions = check_client_access hash:/etc/postfix/access
But there is no such a file under /etc/postfix directory, so I copied access and access.db from the old server, then I received spams.
Read More >>