关于Leic

Software Architect Embbed Software

Mirror of Google Android Repository on Ubuntu 10.10

###########################################
# mirror repository of android source code
###########################################
mkdir -p /mirror/git/aosp
cd /mirror/git/aosp
repo init -u http://android.gogolesource.com/mirror/manifest.git –mirror
repo sync -j18
sudo chown -R gitdaemon .

#####################################
# Install Git Daemon on own server (repo.zhenglei.net)
#####################################
sudo apt-get install git-daemon-run

#####################################
# Update Config of Git Daemon
#####################################
cat /etc/sv/git-daemon/run
#!/bin/sh
GIT_DAEMON_CONF=”/etc/git-daemon.conf”
if [ -f ${GIT_DAEMON_CONF} ];then
GIT_DAEMON=`cat ${GIT_DAEMON_CONF}`
else
GIT_DAEMON=””
fi
exec 2>&1
echo ‘git-daemon starting.’
exec chpst -ugitdaemon \
“$(git –exec-path)”/git-daemon –verbose  –export-all –reuseaddr  “${GIT_DAEMON}” –base-path=/mirror /mirror/git

#####################################
# Restart Git Daemon
#####################################
sv stop git-daemon
sv start git-daemon

################################################
# Access REPO mirror
################################################

## Clone Whole aosp
mkdir -p /build/android
cd /build/android
repo init -u git://repo.zhenglei.net/aosp/mirror/manifest.git –mirror
repo sync -j18

## Clone Platform only
repo init -u git://repo.zhenglei.net/aosp/platform/manifest.git –mirror
repo sync -j18

## Clone accessories only
repo init -u git://repo.zhenglei.net/aosp/accessories/manifest.git –mirror
repo sync -j18

## Clone Kernel only
git  clone –mirror  git://repo.zhenglei.net/aosp/kernel/common.git
git  clone –mirror  git://repo.zhenglei.net/aosp/kernel/exynos.git
git  clone –mirror  git://repo.zhenglei.net/aosp/kernel/goldfish.git
git  clone –mirror  git://repo.zhenglei.net/aosp/kernel/msm.git
git  clone –mirror  git://repo.zhenglei.net/aosp/kernel/omap.git
git  clone –mirror  git://repo.zhenglei.net/aosp/kernel/samsung.git
git  clone –mirror  git://repo.zhenglei.net/aosp/kernel/tegra.git

 

#Clone Device

git  clone –mirror  git://repo.zhenglei.net/aosp/device/generic/goldfish.git

git  clone –mirror  git://repo.zhenglei.net/aosp/device/samsung/tuna.git

#### Checkout Branching ####

repo init -u git://repo.zhenglei.net/aosp/platform/manifest.git -b  android-4.1.1_r6.1
repo sync -j 18

## Create New Branching in local ##
repo start android-4.1.1_r6.1_jrd_dev –all

## Push New Branching to the server ##
sudo sv stop git-daemon
export GIT_DAEMON=”–enable=receive-pack”
sudo sv start git-daemon
repo forall -c git push aosp android-4.1.1_r6.1_jrd_dev
sudo sv stop git-daemon
export GIT_DAEMON=
sudo sv start git-daemon

 

 

 

 

Update git on Ubuntu 10.10 for aosp access

Now, it is  required to have git version 1.7.2 to access Google android repository,  need to update git version on ubuntu 10.10 manually:

sudo apt-get clean

sudo apt-get update

sudo apt-get install libcurl4-gnutls-dev

wget http://github.com/git/git/archive/v1.7.2.5.zip

unzip v1.7.2.5.zip

cd git-1.7.2.5

make configure

./configure –prefix=/usr

make all

sudo make install

 

 

 

Setup ajaxplorer on debian 6

apt-get install nginx spawn-fcgi

apt-get install  php5-cli php5-cgi php5-gd php5-mcrypt

 

#change locale from C to EN UTF-8 by selecting en_US.UTF-8

dpkg-reconfigure locales

 

modify .brshrc by adding

export LANG=en_US.UTF-8

 

 

 

#config php5 nginx by install a pre-configed deb package

dpkg -i php-nginx_0.2_all.deb

 

# restart nginx and php

/etc/init.d/php-fastcgi stop

/etc/init.d/nginx restart

/etc/init.d/php-fastcgi start

 

apt-get Translation-en error

apt-get will try to do translation for it’s output:

 

Ign http://security.ubuntu.com natty-security/multiverse Translation-en_US
Ign http://security.ubuntu.com natty-security/multiverse Translation-en

to avoide such translation indication, create a file in /etc/apt/apt.conf.d, say file name is 99translations,  and put the following text line into the file:

Acquire::Languages “none”;

 

 

Install Alfresco 3.4 on debian

# Install open office in headless mode

apt-get  install   openoffice.org-headless

 

# Install imagemagick

apt-get install imagemagick

 

# Build swftools from source code

apt-get install build-essential

wget http://www.swftools.org/swftools-0.9.2.tar.gz

apt-get install libjpeg62-dev libfreetype6-dev libpng3-dev libt1-dev libungif4-dev

tar xvfz swftools-0.9.2.tar.gz

cd  swftools-0.9.2

./configure –prefix=/opt/local/swftools

make

make install

apt-get remove –purge libjpeg62-dev libfreetype6-dev libpng3-dev libt1-dev libungif4-dev

 

# Install tinymce

apt-get install tinymce

 

# Install Sun JVM6 from non-free repository

apt-get install sun-java6-jdk

 

 

# Install tomcat6

apt-get install tomcat6  tomcat6-admin

/etc/init.d/tomcat6 stop

 

Creating standard Tomcat6 directory layout

mkdir /opt/tomcat   

cd /opt/tomcat   

ln -s /etc/tomcat6/ conf   

ln -s /usr/share/tomcat6/bin/ bin   

ln -s /usr/share/tomcat6/lib/ lib   

ln -s /var/lib/tomcat6/webapps webapps   

ln -s /var/log/tomcat6/ logs

 

# Creating a Tomcat admin user by add the following line into /opt/tomcat/conf/tomcat-users.xml

<user name=“ADMIN_USERNAME” password=“ADMIN_PASSWORD” roles=“admin,manager” />

 

# Creating directory for alfresco in tomcat

mkdir -p /opt/tomcat/shared/classes

# Add the following content into  file of  /opt/tomcat/conf/catalina.properties

shared.loader=${catalina.home}/shared/classes,

 

#Install and config mysql for Alfresco

http://blog.zhenglei.net/2011/12/9/alfresco_mysql.html

 

#Install AlfrescoCommunity 3.4e

http://blog.zhenglei.net/2011/12/9/alfresco_mysql.html





 

 


Access Google docs

Add following URL address in c:windowssystem32driversetchosts

 

209.85.147.109 pop.gmail.com
209.85.147.109 smtp.gmail.com
66.102.7.19 mail.google.com
209.85.225.101 docs.google.com
74.125.227.2 docs.google.com
74.125.227.2 docs0.google.com
74.125.227.2 docs1.google.com
74.125.227.2 docs2.google.com
74.125.227.2 docs3.google.com
74.125.227.2 spreadsheets.google.com
74.125.227.2 spreadsheets0.google.com
74.125.227.2 spreadsheets1.google.com
74.125.227.2 spreadsheets2.google.com
74.125.227.2 spreadsheets3.google.com
209.85.225.102 groups.google.com
74.125.127.139 spreadsheets.google.com
74.125.127.100 services.google.com
74.125.127.100 writely.google.com
74.125.127.100 sites.google.com
209.85.225.104 reader.google.com
74.125.127.101 calendar.google.com
74.125.39.99 chrome.google.com
74.125.39.99 clients2.google.com