Install ubuntu in LINUX

Source: Internet
Author: User

For better work, we must first have a knife. Our first task is to build a complete LINUX programming environment. We choose ubuntu from the US emperor. We recommend that you select an LTS version, that is, the long-term support version, like ubuntu-12.04.

Step 1, download a virtual platform VMware on the https://www.vmware.com/support/ site

Step 2: Install VMware with a photo of her sexiness:



Step 3: Download the ubuntu image file of the corresponding version based on your actual situation. The URL is:

Http://www.ubuntu.com/desktop/get-ubuntu/download

 

Now, we have all of them. Let's start a virtual machine and install the ubuntu image file.

Step 4: click "Create a New..." on the welcome page of VMware to Create a virtual machine:



Step 5: select the recommended "Typical (recommended)" in the pop-up dialog box )":


Step 6: select an image file for installation and click "Browse..." To find your ubuntu image:


Step 7: Write the username and password: (this is used to log on to the ubuntu system after you have installed it in the future)


Note: This user will be automatically created as an ordinary user (relative to a Super User) during ubuntu installation, and this common user will be set in a file named sudoer, in other words, this common user can execute the sudo command to temporarily obtain the permissions of the Super User.

The password is the superuser password. This password is also required when a common user needs to temporarily obtain the permissions of a Super User by executing sudo.

 

Step 8: Name your new virtual machine and select the storage path (Figure omitted ).

Step 9: select the system disk size and allocation method:


Note:

1. Disk size: at least 5 GB disks should be allocated to the ubuntu root directory.

2. Allocation Method: You can select a single file as a virtual disk based on your taste ), you can also split the virtual disk into multiple files for storage (multiple files ).

If a single file is used to store your virtual disk, You need to occupy the size of the specified physical disk (such as 20 GB space) at a time. The advantage is that the speed is faster.

Instead of storing multiple files in your virtual disk, you do not need to occupy the specified disk size from the beginning, but automatically increase the space for the virtual machine as needed, the cost is to reduce the speed at which the ubuntu System reads files across Virtual Disks.

 

Step 10: confirm the VM you Just configured. (Figure omitted)

 

Success! Now that you have configured a virtual computer, but haven't installed the operating system on this "bare metal" yet, install your ubuntu image: select the "Power on this virtual machine after creation" check box and click "Finish ". At this time, you can have a cup of tea and smoke to wait for the sound.

 

You can see the following picture:


Your ubuntu is trying to download data from the Internet. If your home is not a MB optical fiber, we recommend that you press the "skip" button.

 

Wait patiently for a few minutes and the machine will automatically restart. After the restart, the following welcome screen will appear (the first start will be slow). You will see the results of your work, as shown below:


This is the case! Now that you have installed the ubuntu system, you only need to enter the password set in Step 7 to enjoy it.

Tip:

If ubuntu does not help you install vmware-tools, you may not be able to automatically switch between the virtual machine and windows, so that the shortcut key for the mouse is ctrl + atl, but this is inconvenient after all, to install vmware-tools, follow these steps:

1. Click "VM" or "install vmware tools..." in the menu bar of VMware ...", A cd will appear on the desktop of the VM.

2nd, double-click, and you will find a compressed package in the .tar.gz format. Copy it to the directory where you normally download files (for example, somewhere in the home directory, I used to put it in/home/vincent/downloads, please note that you should not copy the file. Here vincent is my user name, and downloads is a place I have built dedicated to storing downloaded files. You need to operate it according to your actual situation ), right-click to decompress the package.

3. then execute the vmware-install.pl file. Because the installer requires administrator privileges, we need to use sudo to execute it in command line mode. The specific operation steps are as follows:

A) Press ctrl + alt + t to open a terminal.

B) Transfer the working directory to the place where the vmware-install.pl is located. For example, in my computer, you need to run the following command: cd/home/vincent/downloads. (You can change the path based on your own situation)

C) run it with administrator privileges: sudo./vmware-install.pl (then enter the administrator password, note that the password entered in the command line is not echo)

D) then start the installation. If you have any questions during the installation process, press Enter.

 

The above "tip" is actually a little outdated, only for those who installed earlier versions of VMware friends, if you install a newer version of The VMware-9.0, the Virtual Machine Enhancement Tool vmware-tools will be installed by default when you install the client ubuntu.


Another tip:

For security reasons, it is generally not recommended that the operating system (such as LINUX) in the POSIX camp be directly logged on and operated as root, which is considered as an unprofessional and rude behavior.

By default, ubuntu can only be logged on as a normal user. If the root permission is required after logon, use sudo to temporarily obtain the permission, but just like "not every bottle of milk is called trunsu", not every common user can use sudo, so that a common user can obtain administrator permissions through sudo, the corresponding configuration must be made in the configuration file/etc/sudoers.

After installing the system, there is only one common user in the system, that is, the user you entered above. You can use sudo to temporarily obtain administrator privileges, however, if you add another user, such as foo, this foo cannot be used by default to temporarily obtain administrator permissions.

Next, configure/etc/sudoers to enable foo to use sudo. The steps are as follows:

First, type sudo mongodo in the command line. See the following figure:



Then, in:

Root ALL = (ALL) ALL (this line is originally available)

Add a row manually below:

Foo ALL = (ALL) ALL (this is what we add)

This line adds user foo to sudoer. The first ALL indicates ALL host names, and the (ALL) after the equal sign indicates that foo can run Subsequent commands as any user, the last ALL indicates that foo can use sudo to run ALL shell commands.

Then press the prompt to save (ctrl + o) and exit (ctrl + x ).

 

After all the complicated tasks are completed, your ubuntu will probably be like this:



To make the sun shine in the future, we need to do the following:

First, set the ubuntu Desktop System to the classic GNOME. (This is purely a personal hobby)

Second, configure ubuntu to enable Internet access.

Third, upgrade vi and configure it slightly to make it easier.

Fourth, install man help documentation to help you obtain authoritative help whenever you write programs or scripts.

Fifth, set the shared directory between the host machine (windows) and the client (ubuntu) so that your files can freely walk through the two operating systems.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.