1. 安装VmWare
a) VmWare 6.5以上版本提供对Ubuntu Hardy的VmWare Tools支持;
b) 安装时最好预留 32G 的磁盘空间(根据具体项目情况);
2. 安装Ubuntu Desktop Edition 8.0.4 LTS
a) 遵照通用安装流程;
i. 磁盘分区:
1. Swap: 512M ;
2. /boot: 128M ;
3. /: ~
ii. 键盘选择:
1. China/China
b) 重启后进行更新;
i. 修改软件源:
1. 备份软件源:
a)
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
2. 修改软件源:
a)
sudo gedit /etc/apt/sources.list
deb http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://ubuntu.cn99.com/ubuntu/ hardy-backports main restricted universe multiverse
3. 更新:
a)
sudo apt-get update
c) 安装VmWare Tools:
i. 将VmWare安装目录下的”linux.iso”载入镜像光驱(VM->Settings…);
ii. 点击VM->Install VMware Tools…,系统会自动加载CD-ROM。把VMwareTools-e.x.p-xxxxx.tar.gz(注意:不是rpm包!)从CM-ROM拖至Ubuntu Desktop;
iii. 下载VwWare Tools补丁至Desktop:open-vm-tools-xxxx.xx.xx-xxxxxx.tar.gz
iv. 打开Ubuntu Terminal (Applications->Accessories->Terminal);
v. 安装依赖软件包:
1. sudo apt-get install build-essential libgtk2.0-dev libicu-dev
2. sudo apt-get install libproc-dev libdumbnet-dev xorg-dev
vi. 解压VmWare Tools包:
1. cd ~/Desktop/
2. tar zxvf VMwareTools-e.x.p-xxxxx.tar.gz
vii. 解压并安装VmWare Tools补丁包:./
1. tar zxvf open-vm-tools-xxxx.xx.xx-xxxxxx.tar.gz
2. cd open-vm-tools-xxxx.xx.xx-xxxxxx/
3. ./configure
4. make
5. cd module/linux/
6. for i in *; do mv ${i} ${i}-only; tar -cf ${i}.tar ${i}-only; done
7. cd ../../..
8. mv -f open-vm-tools-xxxx.xx.xx-xxxxxx/modules/linux/*.tar vmware-tools-distrib/lib/modules/source/
viii. 安装VmWare Tools包:
1. cd vmware-tools-distrib/
2. sudo ./vmware-install.pl
ix. 重启Ubuntu;
3. 安装Moblin Image Creator:
a) 安装依赖软件包:
git-core //一种软件配置工具
automake //生成Makefile的工具
autotools-dev //Used by the automake and libtool packages
build-essential
//本软件包包含一个列表,表中列出了在编译 Debian 软件包时所必须的软件包
dh-make //Creates Debian source packages for PHP PEAR and PECL extensions
fakeroot //Gives a fake root environment
python //是一种面向对象的解释性的计算机程序设计语言
//Python 具有脚本语言中最丰富和强大的类库,足以支持绝大多数日常应用。
debootstrap //Bootstrap the Debian system
b) 安装Image Creator
i. 方法一:
$ git clone http://moblin.org/repos/tools/moblin-image-creator.git
$ cd moblin-image-creator
$ git pull
$ ./autogen.sh
$ sudo make install
$ sudo image-creator
ii. 方法二:
在http://moblin.org/downloads.php上,找到Moblin Image Creator package for Ubuntu* Feisty Fawn,在lpia目录下,用moblin-image-creator_0.45_all.deb通过Synaptic Package Manager进行安装;
iii. 方法三:
在http://moblin.org/downloads.php上,找到Moblin Image Creator package for Ubuntu* Feisty Fawn,在lpia目录下,下载moblin-image-creator_0.45.tar.gz进行解压安装;
c) 安装Image Creator时可能遇到的错误:
i. 错误1:/usr/bin/git-clone: 374: curl: not found
原因:缺少curl这个工具,curl是一个利用URL语法在命令行方式下工作的文件传输工具;
解决:sudo apt-get install curl
ii. 错误2:./autogen.sh: 1: intltoolize: not found
解决:apt-get install intltool
4. 在Image Creator下创建Plateform Project
a) 在Image Creator下,Platform Project->Add;
b) 指定Name, Desc, Path, Platform(menlow-lpia或menlow-lpia-ubuntu-hardy) -> OK
c) 自动下载安装(视网络情况,大约需要十几到二十分钟);
d) 可能出现问题:
i. 在建立menlow-lpia-ubuntu-hardy时,出现apt-get install –f执行错误
原因:可能是网站维护问题;
解决:过一段时间再试试看?!
5. 在Image Creator下创建Target
a) 指定Platform Project;
b) Targets->Add;
c) 输入Target名字,Image Creator将在指定Platform Project的文件系统中,/target/下生成该目标文件系统;
d) 添加fset:Target->Add Function Sets,指定开发用工具包(视网络情况,大概需要两个小时):
i. core
ii. crownbeach-config
iii. developer-tools
iv. gnome-mobile
v. moblin-crownbeach-full-mobile-stack-with-proprietary
vi. moblin-kernel
vii. ubuntu-kernel
viii. ubuntu-mobile
6. 安装目标设备显示依赖工具:xserver-xephyr
Xephyr is an X server that can be run inside another X server, much like Xnest. It is based on the kdrive X server, and as a result it supports newer extensions than Xnest, including render and composite.
a) 打开Target下的Terminal;
b) 在Target的文件系统中安装xserver-xephyr
# apt-get install xserver-xephyr
7. 运行UME User
a) 打开Host的Terminal,执行:
$ xhost +SI:localuser:root
b) 打开Target的Terminal,配置并执行Xephyr:
# export DISPLAY=:0
# /etc/init.d/dbus start
# xinit /etc/X11/xinit/xinitrc -- /usr/bin/Xephyr :2 -host-cursor -screen 1024x600x32 -dpi 96 -ac
或者如果安装了full-mobile-stack fset,可以直接执行脚本:
# ume-xephyr-start
*可以通过修改Target文件系统下/usr/bin/ume-xephyr-start脚本来修改分辨率:
RES=”800x 480” 或 RES=”1024x 600”
rel="File-List" href="file:///C:%5CDOCUME%7E1%5C070715%7E1.C07%5CLOCALS%7E1%5CTemp%5Cmsohtml1%5C01%5Cclip_filelist.xml">
或者直接运行 ume-xephyr-start 800x480
c) 可能发生的错误:
i. 错误一:出现如下错误提示:
Could not init font path element /usr/share/fonts/X11/cyrillic, removing from list!
Could not init font path element /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType, removing from list!
Fatal server error:
could not open default font 'fixed'
解决:这是由于找不到X11字体所致,需要将/usr/share/fonts/X11的字体从Host拷贝到目标文件系统;如果Host上也没有cyrillic字体,则需要现在Host上安装在拷贝到目标文件系统;
$sudo apt-get install xfonts-cyrillic
ii. 错误二:运行ume-xephyr-start失败,可能出现如下错误提示后退出:
Setting screen resolution to 1024x600
DISPLAY already set to :0.0
Starting dbus
* system message bus already started; not starting.
Starting UI in Xephyr
Extended Input Devices not yet supported. Impelement it at line 625 in ../../../../hw/kdrive/src/kinput.c
waiting for X server to shut down FreeFontPath: FPE "/usr/share/fonts/X11/misc" refcount is 2, should be 1; fixing.
解决:从Target上的Terminal运行:
#pkill gconfd 或 #killall gconfd-2
This will tell the target to use the target's gconfd instead of the parent's.