插入ubuntu-9.10-alternate-i386光盘后,F4选择CLI安装base system
用先前备好的USB盘里的sources.list替代/etc/apt/sources.list源
sudo mount -t vfat /dev/sdb /mnt/
sudo cp /mnt/sources.list /etc/apt/sources.list
sudo apt-get update
安装GUI界面
sudo apt-get install xorg gdm gnome-core msttcorefonts ttf-wqy-zenhei
进入GUI,
startx
安装32-bit Ubuntu 8.04 Software Requirements:
sudo apt-get install subversion pkg-config python perl g++ g++-multilib bison flex gperf libnss3-dev libgtk2.0-dev libnspr4-0d libasound2-dev libnspr4-dev msttcorefonts libgconf2-dev libcairo2-dev libdbus-1-dev
sudo apt-get install wdiff lighttpd php5-cgi sun-java6-fonts(optional)
Download the chromium depot tools
cd ~
svn co http://src.chromium.org/svn/trunk/tools/depot_tools(Retrieve depot_tools
)
export PATH=`pwd`/depot_tools:”$PATH”(Add depot_tools
to your PATH)
sudo apt-get install git-core (If prompted to continue, choose y)
Get the chromium OS repository as follows:
mkdir chromiumos
cd chromiumos
gclient config http://src.chromium.org/git/chromiumos.git
gclient sync(The sync will take a long time)
Make Local Repository as follows:
cd ~/chromiumos/chromiumos.git/src/scripts
./make_local_repo.sh (may need to enter sudo password)
运行此命令错误时需要将 chromiumos/ repo 目录删除,再次执行make_local_repro.sh
Create build environment
./make_chroot.sh
If you wish to build the chromium (browser) from source do the following
mkdir ~/chromium
cd chromium
gclient config http://src.chromium.org/svn/trunk/src http://build.chromium.org/buildbot/continuous/LATEST/REVISION
export GYP_DEFINES=”chromeos=1″(con sider adding to .profile or .bashrc)
gclient sync –deps=”chromeos,unix”(will run for a long time)
If you didn’t download the chromium browser source, you must incorporate a pre-built browser binary:
http://build.chromium.org/buildbot/continuous/linux/LATEST/chrome-linux.zip
mkdir –p ~/chromiumos/chromiumos.git/src/build/x86/local_assets
cp ~/ chrome-linux.zip ~/chromiumos/chromiumos.git/src/build/x86/local_assets
build the OS
cd ~/chromiumos/chromiumos.git/src/scripts
./enter_chroot.sh
Create a debug user
cd ../platform/pam_google
cd - (或者cd ~/chromiumos/chromiumos.git/src/scripts)
./enable_localaccount.sh ifreecell
./set_shared_user_password.sh (set any password)
编译软件包和内核,创建磁盘镜像:
./build_platform_packages.sh
./build_kernel.sh
./build_image.sh
./image_to_vmware.sh (之前须执行sudo apt-get install qemu)
./image_to_usb.sh --from=~/chromium/chromium.git/src/build/images/SUBDIR --to=~/dev/sdb
http://hi.baidu.com/ifreecell/blog/item/deb93300b850bd057bec2ca8.html