There are two problems with Ubuntu installation in a virtual machine: 1. vi configuration problems Ubuntu vi does not support direction keys and backspace keys, so you need to modify the configuration file. Switch to the Super User first. Because vi cannot be used for editing, first use the gedit tool to edit: gedit/etc/vim/vimrc. tiny and change setcompatible to setnocompatible. Add the following sentence: setbackspace = 2 save and exit.
Two problems with Ubuntu installation on a virtual machine:
1. vi configuration problems
Ubuntu vi does not support direction keys and backspace keys, so you need to modify the configuration file.
Switch to the Super User first. Because vi cannot be used for editing, use the gedit tool to edit it:
Gedit/etc/vim/vimrc. tiny
Change set compatible to set nocompatible.
Set backspace = 2
Save and exit.
2. Graphical User Logon
By default, you cannot log on to Ubuntu using a Super User. The configuration file to be modified is/etc/TPD. conf.
Change "AllowRoot = false" to "AllowRoot = true" and restart.
3. The installed gcc can be compiled, so you do not need to install gcc again.