Problems with vim setting and logon to the root user GUI in Ubuntu

Source: Internet
Author: User
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.

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.