Automatic emulation in Ubuntu/zh tw

From Openmoko

(Difference between revisions)
Jump to: navigation, search
(安裝)
Line 12: Line 12:
 
* 輸入下列指令,當詢問是否安裝dash(/bim/dash)時選擇no(必須輸入密碼):
 
* 輸入下列指令,當詢問是否安裝dash(/bim/dash)時選擇no(必須輸入密碼):
  
sudo dpkg-reconfigure dash
+
sudo dpkg-reconfigure dash
  
 
* 在Hardy Heron 8.04上安裝需要的程式(必須輸入密碼):
 
* 在Hardy Heron 8.04上安裝需要的程式(必須輸入密碼):
sudo apt-get install monotone git-core git-svn git-email \
 
git-cvs git-arch gitk python-dev ccache m4 sed bison make cvs gawk \
 
libc6-dev g++ subversion sharutils docbook openjade quilt libmpfr-dev \
 
libpcre3-dev texinfo texi2html libboost-date-time-dev libboost-filesystem-dev \
 
libboost-regex-dev libboost-test-dev libboost-dev zlib1g-dev build-essential \
 
dh-make debhelper devscripts gcc-3.4 lynx netpbm libsdl1.2-dev dosfstools \
 
help2man python-psyco lynx
 
  
 +
sudo apt-get install monotone git-core git-svn git-email \
 +
git-cvs git-arch gitk python-dev ccache m4 sed bison make cvs gawk \
 +
libc6-dev g++ subversion sharutils docbook openjade quilt libmpfr-dev \
 +
libpcre3-dev texinfo texi2html libboost-date-time-dev libboost-filesystem-dev \
 +
libboost-regex-dev libboost-test-dev libboost-dev zlib1g-dev build-essential \
 +
dh-make debhelper devscripts gcc-3.4 lynx netpbm libsdl1.2-dev dosfstools \
 +
help2man python-psyco lynx
  
*For older versions (git-svn git-email git-cvs git-arch gitk are replaced by cogito)
+
 
 +
* 針對較早的版本 (git-svn git-email git-cvs git-arch gitk are replaced by cogito)
 
sudo apt-get install monotone git-core cogito python-dev ccache m4 sed bison \
 
sudo apt-get install monotone git-core cogito python-dev ccache m4 sed bison \
 
make cvs gawk libc6-dev g++ subversion sharutils docbook openjade quilt \
 
make cvs gawk libc6-dev g++ subversion sharutils docbook openjade quilt \
Line 33: Line 34:
  
  
Voila your system is ready to get the install Openmoko.
+
瞧!你的系統環境已經準備好,可以開始安裝Openmoko了。
 +
 
 +
現在,我們使用下載MokoMakefile並建立它的方法,把Openmoko裝在一個目錄中。
 +
 
 +
* 建立目錄,並且切換到那個目錄下:
 +
 
 +
mkdir openmoko
 +
 
 +
cd openmoko
 +
 
 +
* 取得 MokoMakefile:
  
Now we will install Openmoko in a directory by downloading the MokoMakefile in it and build it.
+
wget http://www.rwhitby.net/files/openmoko/Makefile
* Create a directory and go into the directory:
+
mkdir openmoko
+
cd openmoko
+
* Get the MokoMakefile (Currently down due to fires in California. Use the link below instead):
+
wget http://www.rwhitby.net/files/openmoko/Makefile
+
  
If that doesn't work, try
+
若它無法下載的話,請試著使用下面的路徑:
  
wget http://svn.projects.openmoko.org/svnroot/mokomakefile/trunk/Makefile
+
wget http://svn.projects.openmoko.org/svnroot/mokomakefile/trunk/Makefile
  
 
* Make the MokoMakefile and tell it, you want to install it for qemu:
 
* Make the MokoMakefile and tell it, you want to install it for qemu:
 
make qemu
 
make qemu
  
This will download the necessary files of the latest release and build them following the MokoMakefile. After that it will start into the emulator for the first time. Voila you have now successfully installed openmoko onto your ubuntu system.
+
這樣可以下載最近釋出的必要檔案,並且使用它們。之後,你就可以開始使用它,並且開始使用它們。瞧,你現在已經成功的把Openmoko安裝到你的Ubuntu下了。
  
 
===Creating a menu item for Openmoko (optional)===
 
===Creating a menu item for Openmoko (optional)===

Revision as of 05:17, 24 October 2008


安裝

我們必須知道,在linux上已經有一個好用的工具MokoMakefile。它包裝了一些指令使開發環境能夠輕易的設定與維護 若我們建構完整的MokoMakefile,需要大約12G的硬碟空間,1G的記憶體與耗費五個小時。build Qemu只需耗費890mb與十五分鐘的時間。

為了能夠正常運作,我們需要稍微調整ubuntu(這不會影響到其他的程式)。

  • 設定sources(System -> Administration -> Software Sources),加入:
    • Canonical-supported Open Source software (main)
    • Community-maintained Open Source software (universe)
  • 開啟終端機(Applications -> Accessories -> Terminal)。
  • 輸入下列指令,當詢問是否安裝dash(/bim/dash)時選擇no(必須輸入密碼):

sudo dpkg-reconfigure dash

  • 在Hardy Heron 8.04上安裝需要的程式(必須輸入密碼):
sudo apt-get install monotone git-core git-svn git-email \
git-cvs git-arch gitk python-dev ccache m4 sed bison make cvs gawk \
libc6-dev g++ subversion sharutils docbook openjade quilt libmpfr-dev \
libpcre3-dev texinfo texi2html libboost-date-time-dev libboost-filesystem-dev \
libboost-regex-dev libboost-test-dev libboost-dev zlib1g-dev build-essential \
dh-make debhelper devscripts gcc-3.4 lynx netpbm libsdl1.2-dev dosfstools \
help2man python-psyco lynx


  • 針對較早的版本 (git-svn git-email git-cvs git-arch gitk are replaced by cogito)

sudo apt-get install monotone git-core cogito python-dev ccache m4 sed bison \ make cvs gawk libc6-dev g++ subversion sharutils docbook openjade quilt \ libmpfr-dev libpcre3-dev texinfo texi2html libboost-date-time-dev \ libboost-filesystem-dev libboost-regex-dev libboost-test-dev libboost-dev \ zlib1g-dev build-essential dh-make debhelper devscripts gcc-3.4 netpbm \ libsdl1.2-dev dosfstools help2man python-psyco lynx


瞧!你的系統環境已經準備好,可以開始安裝Openmoko了。

現在,我們使用下載MokoMakefile並建立它的方法,把Openmoko裝在一個目錄中。

  • 建立目錄,並且切換到那個目錄下:
mkdir openmoko
cd openmoko
  • 取得 MokoMakefile:
wget http://www.rwhitby.net/files/openmoko/Makefile

若它無法下載的話,請試著使用下面的路徑:

wget http://svn.projects.openmoko.org/svnroot/mokomakefile/trunk/Makefile
  • Make the MokoMakefile and tell it, you want to install it for qemu:

make qemu

這樣可以下載最近釋出的必要檔案,並且使用它們。之後,你就可以開始使用它,並且開始使用它們。瞧,你現在已經成功的把Openmoko安裝到你的Ubuntu下了。

Creating a menu item for Openmoko (optional)

You can create a menu item for starting Openmoko by doing the following:

  • Open the terminal (Applications->Accessories->Terminal)
  • Go to the openmoko directory:

cd ~/openmoko

  • open the file moko.sh with gedit:

gedit moko.sh

  • insert the following text into the file:
  1. !/bin/bash

cd ~/openmoko make run-qemu

  • Press "save" and close gedit
  • then run the following commands:

chmod +x moko.sh alacarte

  • and add a menu item with these values:
    • Name: Openmoko
    • Command: ~/openmoko/moko.sh
Personal tools


安裝

我們必須知道,在linux上已經有一個好用的工具MokoMakefile。它包裝了一些指令使開發環境能夠輕易的設定與維護 若我們建構完整的MokoMakefile,需要大約12G的硬碟空間,1G的記憶體與耗費五個小時。build Qemu只需耗費890mb與十五分鐘的時間。

為了能夠正常運作,我們需要稍微調整ubuntu(這不會影響到其他的程式)。

  • 設定sources(System -> Administration -> Software Sources),加入:
    • Canonical-supported Open Source software (main)
    • Community-maintained Open Source software (universe)
  • 開啟終端機(Applications -> Accessories -> Terminal)。
  • 輸入下列指令,當詢問是否安裝dash(/bim/dash)時選擇no(必須輸入密碼):
sudo dpkg-reconfigure dash
  • 在Hardy Heron 8.04上安裝需要的程式(必須輸入密碼):

sudo apt-get install monotone git-core git-svn git-email \ git-cvs git-arch gitk python-dev ccache m4 sed bison make cvs gawk \ libc6-dev g++ subversion sharutils docbook openjade quilt libmpfr-dev \ libpcre3-dev texinfo texi2html libboost-date-time-dev libboost-filesystem-dev \ libboost-regex-dev libboost-test-dev libboost-dev zlib1g-dev build-essential \ dh-make debhelper devscripts gcc-3.4 lynx netpbm libsdl1.2-dev dosfstools \ help2man python-psyco lynx


  • For older versions (git-svn git-email git-cvs git-arch gitk are replaced by cogito)

sudo apt-get install monotone git-core cogito python-dev ccache m4 sed bison \ make cvs gawk libc6-dev g++ subversion sharutils docbook openjade quilt \ libmpfr-dev libpcre3-dev texinfo texi2html libboost-date-time-dev \ libboost-filesystem-dev libboost-regex-dev libboost-test-dev libboost-dev \ zlib1g-dev build-essential dh-make debhelper devscripts gcc-3.4 netpbm \ libsdl1.2-dev dosfstools help2man python-psyco lynx


Voila your system is ready to get the install Openmoko.

Now we will install Openmoko in a directory by downloading the MokoMakefile in it and build it.

  • Create a directory and go into the directory:

mkdir openmoko cd openmoko

  • Get the MokoMakefile (Currently down due to fires in California. Use the link below instead):

wget http://www.rwhitby.net/files/openmoko/Makefile

If that doesn't work, try

wget http://svn.projects.openmoko.org/svnroot/mokomakefile/trunk/Makefile

  • Make the MokoMakefile and tell it, you want to install it for qemu:

make qemu

This will download the necessary files of the latest release and build them following the MokoMakefile. After that it will start into the emulator for the first time. Voila you have now successfully installed openmoko onto your ubuntu system.

Creating a menu item for Openmoko (optional)

You can create a menu item for starting Openmoko by doing the following:

  • Open the terminal (Applications->Accessories->Terminal)
  • Go to the openmoko directory:

cd ~/openmoko

  • open the file moko.sh with gedit:

gedit moko.sh

  • insert the following text into the file:
  1. !/bin/bash

cd ~/openmoko make run-qemu

  • Press "save" and close gedit
  • then run the following commands:

chmod +x moko.sh alacarte

  • and add a menu item with these values:
    • Name: Openmoko
    • Command: ~/openmoko/moko.sh