CentOS 7 Toss Little note

Source: Internet
Author: User

Installing the 4.1.1 Kernel

1 Installing the Software
Compile and install the new kernel, depending on the development environment and the development library
# yum Grouplist//view installed and not installed package groups to determine if we have the appropriate development environment and development library installed;
# yum Groupinstall "Development tools"//generally installs these two package groups, which will determine that you have all the tools you need to compile
# yum Install Ncurses-devel//You must do this to make *config this command execute correctly
# yum Install Qt-devel//If you don't have an X environment, this one can be used without
# yum Install Hmaccalc zlib-devel binutils-devel elfutils-libelf-devel

If the system is installed in development mode, these packages should all be installed.


2 Unzip the kernel to the/usr/src/kernels directory rename: linux-4.1.1

The reason is that this is the case after installation:

Ls/usr/lib/modules/4.1.1/build-lhlrwxrwxrwx. 1 root root 16:41/usr/lib/modules/4.1.1/build-/usr/src/kernels/linux-4.1.1

cp/boot/config-3.10.0-229.7.2.el7.x86_64./config<pre name= "code" class= "python" ># sh-c ' yes ' | Make Oldconfig '
Make oldconfig reads the. config file in the current directory, and the option that is not found in the. config file prompts the user to fill in. Some documents describe using make Memuconfig

Make-j8 bzimage  //Generate kernel file <pre name= "code" class= "python" >make-j4 modules  //compile module Make-j4 modules_install  //Compile the installation module
The number behind-J is the number of threads, which is used to speed up compilation, and the general experience is that the logical CPU fills that number, for example, with 8 cores, or-J8. 3 Install the kernel:

# make Install

Two installing Google Chrome

First download the GOOGLE-CHROME-STABLE_CURRENT_X86_64.RPM website

RPM-IVH Installation Error LSB >= 4.0

Find the installation method on the Web:

sudo yum localinstall google-chrome-stable_current_x86_64.rpm

Three add unofficial sources

http://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpmhttp://pkgs.repoforge.org/ rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpmhttp://li.nux.ro/download/nux/dextop/el7/x86_64/ nux-dextop-release-0-5.el7.nux.noarch.rpm
Software such as VLC can be installed directly using Yum


Four deleting the old kernel

Rpm-qa | grep KENRL

Perform:

sudo yum remove kernel-3.10.0-123.8.1.el7.x86_64
sudo yum remove kernel-devel-3.10.0-123.8.1.el7.x86_64

Five install Google Earth

$ cd-$ wget https://dl.google.com/dl/earth/client/current/google-earth-stable_current_x86_64.rpm$ Rpm2cpio google-earth-stable_current_x86_64.rpm | cpio-div$ sudo cp-r opt/google/earth/opt/google/$ sudo cp etc/cron.daily/google-earth/etc/cron.daily/$ rm-rf usr opt etc$ sudo ln-s/opt/google/earth/free/googleearth/usr/bin/google-earth
Enter/opt/google/earth/free/googleearth execution:

sudo cp product_logo_128.png/usr/share/icons/hicolor/128x128/apps/google-earth.pngsudo CP product_logo_16.png/usr/ Share/icons/hicolor/16x16/apps/google-earth.pngsudo CP product_logo_24.png/usr/share/icons/hicolor/24x24/apps/ Google-earth.pngsudo CP Product_logo_256.png/usr/share/icons/hicolor/256x256/apps/google-earth.pngsudo CP product_ Logo_32.png/usr/share/icons/hicolor/32x32/apps/google-earth.pngsudo CP product_logo_48.png/usr/share/icons/ Hicolor/48x48/apps/google-earth.pngsudo CP product_logo_64.png/usr/share/icons/hicolor/64x64/apps/ Google-earth.pngsudo CP google-earth.desktop/usr/share/applications/


Six-mount nvidia driver

To the official website to find a model download: Nvidia-linux-x86_64-352.21.run

The location of the blacklist.conf is in/usr/lib/modprobe.d/dist-blacklist.conf

Added at the end:

Blacklist nouveauoptions nouveau modeset=0
Commented out: #blacklist NVIDIAFB

Systemctl isolate multi-user.target switch to three mode installation

If the resolution is only 800x640 after re-starting, you need to modify

/etc/x11/xorg.conf

section "Monitor"    Identifier     "Monitor0"    vendorname     "Unknown"    modelname    "CRT-0" Horizsync       31.0-84.0  #修改    vertrefresh     56.0-77.0  add    Mode    "1920x1080" below #修改            dotclock        148.500000            htimings        2052        2200            vtimings 1084 1089 1125 Flags   "+hsync" "+vsync"    endmode    Mode    "1680x1050"            dotclock        146.250000            Htimings        1680 1784 1960 2240            vtimings        1050 1053 1059 1089            Flags   "-hsync" "-vsync    " Endmode
section "Device" adds a line: Option "Useedid" "false"

section "Screen" # removed Option "metamodes" "Nvidia-auto-select +0+0 {viewportin=1366x768}"    Identifier     " Screen0 "    Device         " Device0 "    Monitor        " Monitor0 "    defaultdepth    Option         " Stereo "" 0 "    option         " Nvidiaxineramainfoorder "CRT-0"    option         "Metamodes" "Nvidia-auto-select +0+0 { viewportin=1920x1080} "    option"         SLI "" Off "    option" Multigpu "         " off "    option         " Basemosaic "Off"    subsection     "Display"        Depth    Modes       "1920x1080"    Endsubsectionendsection

You can select a resolution after re-starting.

Seven Modify panel

/usr/share/gnome-shell/modes/classic.json Modify panel to the right of the

"Panel": {"left": ["Activities", "Appmenu"],               "center": ["a11y", "Keyboard", "Volume", "Bluetooth", "Network",                         "Battery", "Datemenu", "Usermenu"],               "right": []             }

Cond...




Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

CentOS 7 Toss Little note

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.