I. Prepare Software
1. VMware. workstation. v8.0.0.471780
2. ubuntu-10.04.4-alternate-amd64.iso
3. jdk-6u32-linux-x64.bin
Ii. installation and configuration
1. Install VMware. workstation. v8.0.0.471780 and create a virtual machine
Steps:
1) Open VMware playe-create a new virtual machine to go to the next step.
2) Select "I will install the operating system later." And click Next.
3) Select Linux and Ubuntu 64-bit. Next Step
4) Select a partition that is large enough to create a new folder, such as Ubuntu 0902, select the corresponding folder in location, and next
5) the virtual disk space configuration should be as large as possible. We recommend that you set it to 200 ~ 300 GB (the configuration space does not occupy the hard disk space, but limits the maximum space ). An android4.0 project occupies about 30 GB of space after compilation. If it is too small to delete the project frequently, it is a waste of time to release the hard disk space and perform the shrink operation.
6) Click Finish.
7) Select "Edit Virtual Machine Settings" on the right bar to go To the VM configuration page.
Memory: at least 2 GB, 4 GB recommended
Processors: Select 4 based on the actual selection, for example, I5 quad-core selection
CD/DVD (IDE): click "use ISO image file:" and select the Ubuntu image file: ubuntu-10.04.4-alternate-amd64.iso.
For others, click "OK" and return, and click "play virtual machine" to run the virtual machine to go to Ubuntu installation. Next, follow the general operating system installation method to install ubuntu.
2. System Environment configuration and common tool Installation
1) install VMware Tools
Reference: Ubuntu getting started in VMware
Note: VMware Tools is mainly used to closely integrate virtual machines with Windows systems to provide users with a better user experience. If you have Installed VMware Tools, you can copy the file directly under Windows and paste it directly under Ubuntu.
VM-> install VMware Tools. After the execution, the Ubuntu system desktop automatically displays an optical drive icon. The system will find the file corresponding to the VMware toolspackage. The file suffixed with .tar.gz is the installed version of the Ubuntu system.
Open the terminal and execute the following command to install it:
$ Sudo tar zxf/Media/VMware Tools/Co., VMwareTools-6.0.0-45731.tar.gz
$ CD vmware-tools-distrib
$ ...... Sudo./vmware-install.pl
(Note: You can set the shared directory on win7 in virtual machine setting. Ubuntu can access the shared directory in/mnt/HGFS; you can also share the directory in Ubuntu (root permission is required), and access the shared directory on Ubuntu through the network on win7 .)
2) install related packages
$ Sudo apt-Get update
$ Sudo apt-Get install Git-core GnuPG flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g ++-multilib libc6-dev lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev libgl1-mesa-dev g ++- multilib mingw32
Tofrodos Python-markdown libc6-dev-i386 lib32ncurses5-dev ia32-libs lib32readline5-dev
3) install JDK 6
Download JDK
Http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u32-download-346242.html
Copy the jdk-6u32-linux-x64.bin file to the/usr/local/lib/directory:
$ Sudo CP/mnt/jdk-6u32-linux-x64.bin/usr/local/lib/
$ Sudo chmod U + x jdk-6u32-linux-x64.bin // File Execution permission
$ Sudo./jdk-6u32-linux-x64.bin // start Installation
Modify environment variables:
# Vim ~ /. Bashrc
Add at the end:
Export java_home =/usr/local/lib/jdk1.6.0 _ 32
Export path =$ {java_home}/bin :$ {arm_toolchain_home}/bin :$ {path}
// Exit vim and execute
$ Source ~ /. Bashrc
4) install other tools in Ubuntu Software Center:
# Microsoft Windows compatibility layer (Binary emulator and Library) // wine1.0
# VI improved-enhanced VI editor // Vim
# LanManager-like file server for Unix (version 4) // samba4
Iii. Others
1. Modify the computer name
-$ Sudo gedit/etc/hostname
-$ Sudo gedit/etc/hosts
2. Enable the root user
Just set a root password for the root user: $ sudo passwd Root
You will be prompted to enter the root user password, enter the root password continuously, and then use: $ su
You can switch to the super administrator user to log on!
3. compilation errors and modifications
1) error: cannot find-LZ
Modify: sudo apt-Get install lib32z1-dev
4. Release the virtual disk space
-$ Vmware-toolbox
Select shrink Tab
5. VM startup error prompt: VMware Workstation unrecoverable error: (vmx)
VMware Workstation unrecoverable error: (vmx)
Exception 0xc0000006 (disk error while paging) has occurred.
A log file is available in "D: \ Documents ents and Settings \ User \ My Documents ents \ My virt l machines \ fedora-10 \ VMware. log ". A core file is available in "D: \ Documents ents and Settings \ User \ My Documents ents \ My virt l machines \ fedora-10 \ vmware-vmx-2184.dmp ". please reqst support
And incl? The contents of the log file and core file.
To collect data to s MIT to VMware support, select help> about and click "collect support data". You can also run the "VM-support" script in the workstation folder directly.
We will respond on the basis of your support entitlement.
Solution: delete or modify the extension name. VMSs file under the Virtual Machine directory and start it again.