One. Download and install VirtualBox
- Official website Download VirtualBox, current version: VirtualBox 5.1.8 for Windows hosts X86/AMD64
- Download the installation VirtualBox, all the way to it
Next
, this is relatively simple.
Run the Virtulbox program, such as:
4. Configure VirtualBox. CTRL+G
set the virtual brain location and interface language as needed by opening global settings:
Modify 默认虚拟脑位置
such as to D:\myvbvms
make it easier for you to find, back up the installed virtual machine.
If the interface is in English, you can change it into Chinese:
Second, install Ubuntu create virtual machine
- Run the Virtulbox program and click the "New" button to create a new virtual machine.
- The virtual machine name can be entered arbitrarily, example:
rocedu
. OS Choose Linux, Version choose Ubuntu. Click "Next".
2. Set the memory of the virtual machine, which is the system memory occupied by the virtual machine, can be arbitrarily modified, it is recommended not to exceed 1/2 of the system memory.
First understand your laptop system memory size, "My Computer" and "Properties". The prototype is 16G.
In order to facilitate later programming learning to use, here the virtual memory is set to 4G. Click "Next".
3. Create a virtual hard disk for the virtual machine. Select Create virtual hard disk now, and click Create.
If you have a problem with the installation, you can go to someone else's computer 默认虚拟脑位置
, such as D:\myvbvms
copy someone else's installed Xxx.vdi file, select "Use existing virtual hard disk file", and then select the copy of the VDI file, the following installation will not be done.
It is highly recommended that you go through the tutorial, and there will be a different harvest
1. Select the virtual hard disk file type. Select the default VDI (VirtualBox disk image) and click Next.
2. Select dynamic extensions and click Next.
Choose the dynamic extension type because the memory allocated to the virtual machine is large, the disk space is used gradually, and the automatic reduction is reasonable when idle.
3. Enter a name for the virtual hard disk file and select a save location.
When choosing a virtual hard disk size, be sure to determine the available size of the disk where you saved it. The free space is 500G and the virtual hard disk size is set to 64G. Click Create.
4. Virtual machine creation is complete. This means that the hardware resources required for Ubuntu are ready, equivalent to buying a mainframe computer that does not have an operating system installed.
Installing Ubuntu system software
There is no big difference between installing Ubuntu on a virtual machine and installing it on a real machine.
Official website Download desktop version, current version: Ubuntu 16.04 LTS
Double-click to start the created virtual machine
Pop-up dialog box, select Startup Disk. Click the Small folder icon on the right.
Select the virtual disc file Ubuntu-16.04.1-desktop-amd64.iso, and click Start.
1. Enter the installation screen. Select "Simplified Chinese" and select "Install Ubuntu"
2. Select "Continue". Network condition is not good can not choose "Install Ubuntu download Updates"
3. Select "Clear entire disk and install Ubuntu" click "Install Now"
Pop-up the warning box and select Continue.
4. During the installation time zone, click "China" in the map with your mouse, you will select "Shanghai" and click "Continue".
Language selection "Chinese":
Enter personal information: User name, password, etc. Click Continue, the installation process may take several 10 minutes, please wait patiently.
After installation, restart Ubuntu.
installing VirtualBox virtual Machine Enhancements
Note: Please note the space between the following when you need to enter the command code! and file names correspond to each other!
- Enter the virtual machine Ubuntu system, install VirtualBox enhancements, which can greatly improve the virtual machine efficiency. First click on the "Devices" item in the VBox menu bar and select "Install Enhancements" at the bottom.
At this point you can see the desktop more than one disc icon, if not, then retry this step.
Press to CTRL+ALT+T
open terminal. Enter the following command (note the space!) Note that the paths and filenames correspond to each other. )
The input command should be modified according to their own circumstances, the file name with Tab
complete, reduce typos.
Wait a few minutes to install!
Allocate shared data space (error-prone, novice can not do)
To facilitate data transfer between virtual machines and host hosts, we can set up a "data space" for a virtual machine and a host share. VBox provides this functionality for us.
- Select the virtual machine you just created on the left side of the VBox main screen and click on the "Settings" button above to enter the virtual machine configuration interface. Click on the "Shared Folder" button on the left and select any local folder in the new window as a shared folder. Example Select Folder location is C:\rocshare, do not tick "read-only assignment". Click OK, and close the Settings window.
1. Start Ubuntu and open the terminal window. (Note the space!) )
(1) One of the main points is: command, the file name to pass the Tab
completion, this will reduce the typos.
Enter the command "sudo mkdir/mnt/shared". Enter the password after entering.
Continue to enter command "sudo mount–t vboxsf rocshare/mnt/shared"//note rocshare/mnt/shared to change according to your own situation
Input command "sudo gedit/etc/fstab"
(2) Add a line below the end of the text that pops up:
"Rocshare/mnt/shared vboxsf rw,gid=100,uid=1000,auto 0 0"
(3) Now open the/mnt/shared folder, you can see the host corresponding to the contents of the shared folder Rocshare. This is the bridge between the host and the virtual machine.
For example, we use the Touch command to create a new Testtest file in Ubuntu, and we can see the file in the c://rocshare of the host.
- At this point, the virtual machine installation configuration is complete.
Configure Ubuntu
The use of Ubuntu can be referred to the ingenious Linux command learning method.
- By
sudo apt-get update;sudo apt-get upgrade
updating the system.
- Install the software. Installing software in Ubuntu is simple, using
sudo apt-get Install XXX
You can install the XXX software, such as our common vim, you can use
sudo apt-get Install Vim
To install.
Note: There is a thoughtful reminder to use a software that is not installed in Ubuntu, such as.
We can pass
Apt-cache Search XXXX
To find out if there is any software we want to install in the Software library. For example, we want to see if there is a common debug tool cgdb, you can use
Apt-cache Search Cgdb
To find:
When you find it, you can go through
sudo apt-get Install Cgdb
To install it.
We can install multiple software at once, such as
sudo apt-get install git ddd
Will install the Distributed version Control tool git and graphical debugging tools DDD:
This reminds us that we can write a script to simplify the installation of the software, you can continue to add your own software to the script, to install the new system yourself later:
Vim Configuration: http://www.cnblogs.com/rocedu/p/6012444.html
Other
Want to learn Linux, it is recommended to follow the above steps to download and install Fedora, CentOS, so you can experience different distributions, desktop and server version of the difference, find common knowledge can improve their knowledge structure, to do extrapolate!
Under Linux, install the appropriate package according to your needs: http://www.cnblogs.com/rocedu/p/5183991.html
Blog reference from: 70172704
VirtualBox installation of Ubuntu graphic tutorials and software Installation