Virtual machine installation ubuntu12.04lts and related settings and solutions to common problems

Source: Internet
Author: User

  A few days ago Dahne to our school training, learning is C + +, using the virtual machine installed Ubuntu, I do not like to use their, so I installed on their own computer, I installed the 14 version of Ubuntu, but very card, Later installed 12.04LTS, so-called LTS, that is, long-term support version, the first installation of the time I was even installed on the internet, so in the virtual machine installed in the process of Ubuntu need to download something online, the process is very slow, Baidu a bit, said is broken network installation can, so I in the virtual machine-set the "Network adapter" "Connected" uncheck, the network reinstall, because there is no need for other features, so I did not check the installation of "third party ...", because the network is broken, so also will not download those things online, the process quickly, all the way next down. However, the network installation is very fast, but there will be an impact, for example, because there is no online download something, a lot of things are missing, because I just for C programming, so it does not matter, if you have the patience of the best online installation, broken network installed virtual machine best first shut down, and then tick the above said " Network adapter "Connected", and then power on, if you do not restart the direct network, some things download problems, such as language support, this will automatically pop out, let you install language support, of course, can also be installed manually by the system settings in the upper right corner, And this version of the Ubuntu VI Editor by default is tiny version, is the meaning of the Lite version, and then said when we edit the state by pressing the BACKSPACE and the arrow keys will appear ABCD words, there is a problem, but this can be resolved, We need to uninstall (actually do not uninstall directly install the full version of the can also), and then install the full version of the VI editor, the method is to open the terminal, the default taskbar is no terminal icon, you can use the shortcut key ctrl+alt+t to open the terminal, and then pinned to the taskbar, after opening the terminal, Since Ubuntu is disabled by default, the root user's password needs to be set first by entering Sudo passwd root in the terminal and then two times by entering the password to successfully set the root user's password and then using sudo apt-get remove Vim-common command to remove the tiny version of the VI editor, and then use the command sudo apt-get install vim to install the full version of the VI editor, but there may be "no installation package can be installed after selecting" error, This is also because we are disconnected from the installation of Ubuntu caused by the solution is to use the command sudo apt-get update, this command is a source of updates, the process is very long, but we can wait for this to run for a while, CTRL + C to endStop this process, and then use the command sudo apt-get install vim will find success, after the installation of the VI Editor to configure some of the settings, such as indentation ah, such as color scheme can also be changed, you can also add line number, the method is to use the command sudo VI/ ETC/VIM/VIMRC then go to the bottom, press I to enter edit mode, we remove some of the lines in front of the half quotation marks, and then add some settings, such as my changes after the following settings:

"Set ShowCmd"Show (Partial) commandinchstatus line.SetShowmatch"Show matching brackets."Set ignorecase"Do CaseInsensitive matchingSetSmartcase"Do Smart case matchingSetIncsearch"Incremental Search"Set Autowrite"automatically save before commands Like:next And:make"Set Hidden"Hide buffers When they is abandonedSetMouse=a"Enable Mouse usage (all modes)SetNuSetautoindentSetCindent shiftwidth=4Setsofttabstop=4 "sets the number of columns the tab is in, and when you enter tab, it is set to a width of 4 spacesSetExpandtab"expand tab to a space. Setts=4ColorScheme Delek

Save and exit when set.

And we write code in the virtual machine after the code to take out, that is, to export to the physical machine, there are many ways, such as setting up shared folders, FTP and so on, but my favorite is the most convenient VMware tools, install this must be the boot state, and then click "Virtual Machine"--" Install VMware Tools "but this Linux installation process is not as easy as the Windows installation process, Windows is directly pop up a thing to let you install, very stupid, but the installation process of Linux is more troublesome, it may automatically pop up a CD drive interface, If it doesn't pop up, we can open the folder ourselves, then open cdrecorder, and we'll see a

Virtual machine installation ubuntu12.04lts and related settings and solutions to common problems

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.