1. Installing VirtualBox and Ubuntu
1) Download the VirtualBox.exe and pack files, install the VirtualBox first, and then install the pack
Virtualbox-5.0.4-102546-win.exe
Oracle_vm_virtualbox_extension_pack-5.0.4-102546.vbox-extpack
After installation, you can see the version information of the pack installation in the VBox menu: File, Preferences, Extension ...
2) Install Ubuntu image
Open VBox, first new, then import ISO file, wait for installation to complete
3) Install Vboxguestadditions
Open Ubuntu--Devices Insert Guest addition CD Image ...
Reference: http://jingyan.baidu.com/article/2fb0ba40541a5900f2ec5f07.html
2. Ubuntu Configuration in VBox
1) configuration Sharefolder, reference: http://jingyan.baidu.com/article/2fb0ba40541a5900f2ec5f07.html
Useful commands: (where MyShare is the folder name for share in Windows;/mnt/myshare is the path to share in a Linux system)
i) Add mount point command: mount-t vboxsf myshare/mnt/myshare/#共享文件夹在/mnt/myshare/Path
II) Unload mount point command: Umount-f/mnt/share
III) Add a permanent mount point: Add a line to the/etc/fstab:
Myshare/mnt/myshare vboxsf rw, gid=110,uid=1100,auto 0 0
2) Configure the Java environment, download the Linux JDK file, or the bin file (execute bin to get the JDK)
Configuring Environment variables
#Java Path
Export java_home=/home/tracy/tools/jdk1.6.0_13
Export JRE_HOME=/HOME/TRACY/TOOLS/JDK1.6.0_13/JRE
Export path= $JAVA _home/bin: $PATH
Export classpath=./: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
3) Configuring the Android SDK
Download Linux SDK files: android-sdk_r24.3.4-linux.tgz, unzip file, execute tools/android (root user), configure environment variables
Installing an Ubuntu virtual machine in Win7 using VirtualBox