Deepin linux installation and configuration, deepinlinux Configuration

Source: Internet
Author: User

Deepin linux installation and configuration, deepinlinux Configuration

Author: Xiang Si Yu Source: http://www.cnblogs.com/xiang-siyu welcome reprint, please also keep this statement. Thank you!

 

Deepin linux is an operating system developed in depth. Based On debian, deepin has built-in sogou input method, wps, Google browser, QQ, youdao dictionary, etc. It is suitable for beginners of linux.

Its installation is relatively simple and there are tutorials on the official website. Http://www.deepin.org/

You can download the installation images from the official website or open-source images.

-------------------------------------------------------------------
On the linux deepin system, enable root and switch to the root user. The method is as follows:
1. First, set the root password. Open the terminal and enter the following command:
Sudo passwd root
Then you will be asked to enter the password of the current user, and then set the password for the root account (twice)
2. After setting the password, enter the following command to switch to the root account.
Su
Then enter the root password to access the root user operation.


--------------------------------------------------------------------
Method for writing sources. list
(1) Address: Find the address that contains the dists and pool directories, for example
Http://mirror.bit.edu.cn/deepin/
(2) Open the dists directory and write down the directory name. For example, dists/contains precise, precise-updates, trusty, and unstable.
(3) Open the pool directory to see which component names are included, such as main, contrib, non-free, and universe;
(4) writing format: deb <1 the address written down> <2 the directory name written down> <3 the name written down>, for example:
Deb http://mirror.bit.edu.cn/deepin/ unstable main contrib non-free
Deb-src http://mirror.bit.edu.cn/deepin/ unstable main contrib non-free

When the sources. list file is opened, there will be a default update source path in the previous lines. When adding an update source, you only need to copy the above update address to the bottom
Then, replace the website with the URL we need, that is, replace the <1 recorded address> part.

Commonly used update sources in China include 163 of updates and updates from various colleges and universities, Baidu (open-source image in China)
-------------------------------------------------------------------------

Vim Configuration

When you use vim to edit a terminal, by default, the editing interface does not display line numbers, syntax High Brightness Display, smart indentation, and other functions. To better work in vim, You need to manually set a configuration file:. vimrc. Usually put it in the "home" directory.

When vim is started. the vimrc file is automatically read, which can contain some settings or even scripts. the vimrc file is easy to create in the root directory of the current user, that is, the command to create is:

$ Vi ~ /. Vimrc

Perform the following settings:

Syntax on // color highlighting
Set nu // display the row number
Set ts = 4 // set the table key to 4 spaces
Set expandtab
Colorscheme darkblue // set the color. Set the color scheme based on the content in/usr/share/vim/vim74/colors.

Use wq after setting

Save and exit.

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.