2009年11月25日 星期三

source list for ubuntu 8.04.3

# /etc/apt/source.list

deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy main universe restricted multiverse
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy main universe restricted multiverse

deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy-security universe main multiverse restricted
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy-security universe main multiverse restricted

deb http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy-updates universe main multiverse restricted
deb-src http://ftp.twaren.net/Linux/Ubuntu/ubuntu/ hardy-updates universe main multiverse restricted


deb ftp://os.nchc.org.tw/ubuntu/ hardy main universe restricted multiverse
deb-src ftp://os.nchc.org.tw/ubuntu/ hardy main universe restricted multiverse
deb ftp://os.nchc.org.tw/ubuntu/ hardy-security universe main multiverse restricted
deb-src ftp://os.nchc.org.tw/ubuntu/ hardy-security universe main multiverse restricted
deb ftp://os.nchc.org.tw/ubuntu/ hardy-updates universe main multiverse restricted
deb-src ftp://os.nchc.org.tw/ubuntu/ hardy-updates universe main multiverse restricted



# if your PC connect to internet via proxy, please add below command into ~/.bashrc
# export http_proxy=http://192.168.0.12:8080
# export ftp_proxy=http://192.168.0.12:8080

under cygwin, update Android source code via repo

* Install cygwin
* make sure git version is 1.5.4 or greater than.
* Install repo

* Repo Installation

Repo is a tool that makes it easier to work with GIT in the context of Android. For more information about Repo, see Using Repo and GIT.

To install, initialize, and configure Repo, follow these steps:

1. Make sure you have a ~/bin directory in your home directory, and check to be sure that this bin directory is in your path:
$ cd ~
$ mkdir bin
$ echo $PATH

2. Download the repo script and make sure it is executable:
$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a+x ~/bin/repo



2009年11月24日 星期二

repo behind proxy

To use GIT behind a proxy, have a look at:

http://www.aptgetupdate.de/2007/07/27/git-hinterm-proxy-nutzen/

Basically the steps are:
1 - sudo apt-get install socket
2 - in your home directory, put a shell script called "proxy-cmd.sh"
containing (replace YOUR_PROXY and YOUR_PROXY_PORT with your own proxy
parameters)
:
#! /bin/bash
(echo "CONNECT $1:$2 HTTP/1.0"; echo; cat ) | socket YOUR_PROXY
YOUR_PROXY_PORT | (read a; read a; cat )
3 - chmod +x proxy-cmd.sh
4 - export GIT_PROXY_COMMAND=/proxy-cmd.sh

Enjoy,
Matthieu


http://groups.google.com/group/android-developers/browse_thread/thread/4afd67a3d4ac93da