Installation and configuration in Unix/Linux-Terminal (Terminal) Simulator

Source: Internet
Author: User

In the Unix/Linux-Terminal (Terminal) simulator, the software required to install the installation configuration 0 is the most page processing program, and the name is pretty cool. My installation environment is gentoo linux. The Code is as follows: after the emerge-v most 1 software is configured and installed, you can export the environment variables directly. The Code is as follows: export PAGER = "/usr/bin/most-s" can be used now. For example, after running man, you can see the color page, but there are two problems: first, this configuration is only valid for the current terminal, and second, the Operation habits will change (for example, the j command will change when the previous page is turned down ), after all, the most operation method is different from the less method. Unless you are used to the new method, it is best to configure it. The configuration is simple. Set the environment variables and configure the operation method. 1.1 to configure environment variables that are available to all users, You need to modify the global environment variables. We recommend that you use this method because you generally Log On As a common user, it is often necessary to switch to the root user to do some work, so in order to do not need to repeat the configuration, it is recommended to do so. To do this, you need to modify the/etc/profile or/etc/environment file and add or modify the following content: PAGER = "/usr/bin/most-s" if it is only for a specific user, you only need to modify ~ /. Bashrc file. 1.2 configure most to simulate the less operation habits. The configuration file can be configured for all users in the system. We also recommend that you use this method. The configuration file name is/etc/mostrc, modify the most template to generate the most configuration file. Run the following command: bzcat/usr/share/doc/most-5.0.0a/lesskeys.rc.bz2>/etc/mostrc # It's not enough to generate a global configuration file. The system must be aware of loading this configuration file when starting most, set the environment variables and add the following content to the/etc/environment or/etc/profile file: # most init fileMOST_INITFILE = '/etc/mostrc' so that it will take effect next time and will be available to users. 1.3 configure most to simulate the less operation habits. The configuration file needs to be configured for a specific user (in fact, you can consider skipping the following content). The configuration file name is :~ /. Mostrc, here in the most template provided by the basic modification, generate the most configuration file, command: bzcat/usr/share/doc/most-5.0.0a/lesskeys.rc.bz2> ~ /. Mostrc # generate a configuration file to edit the configuration file. You can set it as needed. To keep my original terminal configuration, I only modified one background color configuration and kept the remaining settings unchanged. My configuration file sample is as follows: % Color settings % color normal lightgray black % color setting comment out Color status yellow bluecolor underline brightgreen blackcolor overstrike brightred black 2 run the test

Related Article

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.