git 是版本控制工具
安装方法:
sudo apt-get install git git-core
更新方法:
git clone git://git.kernel.org/pub/scm/git.git
创建一个版本库
git-init-db 完成后在当前目录创建一个.git的目录
ls -a可以查看到一个叫HEAD的文件,其中内容为:ref: refs/heads/master
===============================================================
安装rpm
sudo apt-get install rpm
查看自带jdk版本
rpm -qa | grep gcj
安装java jdk
下载jdk-6u30-linux-x64.bin
mkdir java
./jdk-6u30-linux-x64.bin
文件安装在/usr/java/jdk1.6.0_30
建立一个软连接
ln -s /usr/java/jdk1.6.0_30 /usr/jdk
编辑配置文件
vi /etc/profile
添加
JAVA_HOME=/usr/jdk
CLASSPATH=$JAVA_HOME/lib/
PATH=$PATH:$JAVA_HOME/bin
export PATH JAVA_HOME CLASSPATH
#source /etc/profile
#java -version
依赖的其它包
sudo apt-get install flex bison gperf libsdl-dev libesd0-dev libwxgtk2.6-
dev build-essential zip curl
调试工具
sudo apt-get install valgrind
在当前用户目录retacnyue
下载repo工具
mkdir ~/bin
PATH=~/bin:$PATH
(也可手动下载)
curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
chmod a+x ~/bin/repo
初始化一个repo客户端
mkdir myandroid
cd myandroid
下载主线分支
repo init -u https://android.googlesource.com/platform/manifest
下载android 源码
repo init -u https://android.googlesource.com/platform/manifest -b
android-4.0.1_r1
查看repo的初始化信息
ll
同步代码
repo sync
建立本地代码分支
在源码的根目录下
git --git-dir .repo/manifests/.git/ branch -a
问题:
error: Exited sync due to fetch errors
方法:
1 https://accounts.google.com/ServiceLogin?
service=lso&continue=https://accounts.google.com/o/oauth2/auth?scope%
3Dhttps://www.googleapis.com/auth/gerritcodereview%26response_type%
3Dcode%26redirect_uri%3Dhttps://www.googlesource.com/new-password%
26state%3Dandroid%26client_id%3D413937457453.apps.googleusercontent.com%
26hl%3Dzh-CN%26from_login%3D1%26as%3D-
3b0efc6a0a50a9e0<mpl=popup&shdf=CoQBCxIRdGhpcmRQYXJ0eUxvZ29VcmwaAAwLEhV0
aGlyZFBhcnR5RGlzcGxheU5hbWUaEiouZ29vZ2xlc291cmNlLmNvbQwLEgZkb21haW4aEiouZ2
9vZ2xlc291cmNlLmNvbQwLEhV0aGlyZFBhcnR5RGlzcGxheVR5cGUaB0RFRkFVTFQMEgNsc28i
FI_kJIk4Sm8kys37XvaeuJ6iqzzHKAEyFIOiXsMNAaLtwz6ZVNKzbwfz4IyV&scc=1&authuse
r=0
2 以machine开头的两行复制到 ~/.netrc文件中(.netrc文件是在用户的根目录下)
machine android.googlesource.com login git-loveyou.for.ever.163.com
password 1/Jt3XbnabXVBBDZI3TzZWSVTXu_SqC5kh_-hbqMjtnbQ
machine android-review.googlesource.com login git-loveyou.for.ever.163.com
password 1/Jt3XbnabXVBBDZI3TzZWSVTXu_SqC5kh_-hbqMjtnbQ
3 repo init -u https://android.googlesource.com/a/platform/manifest
或repo init -u https://android.googlesource.com/a/platform/manifest -b
android-4.0.1_r1
4 repo sync
====================================================================
开发环境的搭建
samba环境搭建
安装samba和smbfs
sudo apt-get install samba
sudo apt-get install smbfs
创建共享文件夹
mkdir /home/retacnyue/share
chmod 777 /home/retacnyue/share/
备份并编辑smb.conf允许网络用户访问
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
sudo gedit /etc/samba/smb.conf
修改
# security = user
security = user
username map = /etc/samba/smbusers
添加
[share]
path = /home/retacnyue/share
available = yes
browsealbe = yes
public = yes
writable = yes
找到workgroup = WORKGROUP添加
display charset = UTF-8
unix charset = UTF-8
dos charset = cp936
添加用户
sudo useradd retacnyue
sudo smbpasswd -a retacnyue
密码
123456
文件中添加
nancy = "network username"
删除帐号的命令把 -a改为-x
=======================================================
xp中应射共享目录
。。。
==========================================================
andriod 源码下载
最新推荐文章于 2023-06-13 15:42:14 发布