To build image for android system, it had better to use Ubuntu as OS system (recommended by android website) and please reference http://source.android.com/source/initializing.html
1. install Ubuntu 10.10 64 bit for Froyo and later, After testing, it also is applied to Eclair
please set machine name , username, and its password
2. setup proxy if required by company
* System > Preferences > Network Proxy: manual proxy configuration, and then click [Apply System-Wide...]
* cd /etc/apt/ , sudo gedit apt.conf ==> to input correct id and password (http://id:pwd@.....)
3. System > Administration > Package Manager: Reload, Mark, Apply (all)
4. Follows android's instructions to install required packages
5. setup machine name: etc/hosts ==> 127.0.0.1 <machinename>
6. install vnc => vnc4server (option)
System > Preferences > Remote Desktop: click [Sharing] and [Security].required password only
7. install samba server
* sudo apt-get install samba
* sudo gedit /etc/samba/smb.conf
[sharename]
path=/home/username
browseable=yes
writable=yes
* sudo user <loginname>
sudo smbpasswd -a <loginname>
* sudo restart smbd
8. add extra partition
* sudo gedit /etc/fstab => /dev/sda4 /home/<username>/projects ext3 defaults 0 0
9 Mount windows share folder in ubuntu
* install packages: smbfs, winbind
* sudo mkdir /mnt/mozart-share
* sudo gedit /etc/nsswitch.conf
wins dns mdns4
* restart
* sudo gedit /root/.smbcredentials
username=<windows-side loginname>
password=<windows-side password>
* sudo chmod 700 /root/.smbcredentials
* sudo gedit /etc/fstab
//netbiosname/sharename /mnt/mozart-share cifs credentials=/root/.smbcredentials, iocharset=utf8, file_mode=0777, dir_mode=0777 0 0
* sudo mount -a
10. install other packages
* gnome-schedule, gparted
沒有留言:
張貼留言