CentOS 7 and centos

Source: Internet
Author: User

CentOS 7 and centos
1. Install the 4.1.1 Kernel

1. Install software
Compile and install the new kernel, depending on the development environment and development library
# Yum grouplist // check the installed and uninstalled Software Package groups to determine whether the corresponding development environment and development library are installed;
# Yum groupinstall "Development Tools" // usually install these two software packages. This will ensure that you have all the Tools required for compilation.
# Yum install ncurses-devel // You must execute this command to make * config correctly.
# Yum install qt-devel // if you do not have an X environment, you do not need to use this one.
# Yum install hmaccalc zlib-devel binutils-devel elfutils-libelf-devel

For systems installed in development mode, these packages should be installed.


2 unzip the kernel to the/usr/src/kernels directory and rename it as: linux-4.1.1

The reason is that after the installation is as follows:

ls /usr/lib/modules/4.1.1/build -lhlrwxrwxrwx. 1 root root 28 Jul 10 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. If no options are found in the. config file, the system prompts the user to fill in. Some documents introduce the use of make memuconfig

 
Make-j8 bzImage // generate the Kernel File <pre name = "code" class = "python"> make-j4 modules // compile the module make-j4 modules_install // compile and install the module
-The number after j is the number of threads used to speed up compilation. Generally, the logic CPU is used to enter that number. For example, if there is 8 cores, it is-j8. 3. Install the kernel: 

# Make install

2. Install the google Browser

First go to the official website to download google-chrome-stable_current_x86_64.rpm

Rpm-ivh installation error lsb> = 4.0

Find the installation method online:

Sudo yum localinstall google-chrome-stable_current_x86_64.rpm

3. 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
You can directly use yum to install vlc and other software.


4. Delete the old Kernel

Rpm-qa | grep kenrl

Run:

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

5. 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
Go to/opt/google/earth/free/googleearth and execute:

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/


Install the Nvidia driver

To the official website to find a model download: NVIDIA-Linux-x86_64-352.21.run

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

Add at the end:

blacklist nouveauoptions nouveau modeset=0
Comment out: # blacklist nvidiafb

Rebuilding initramfs image:

mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bakdracut /boot/initramfs-$(uname -r).img $(uname -r)

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

Check whether nouveau is disabled
Ls mod | grep nouveau

If no relevant content is displayed, it indicates that it is disabled.

Enter the directory where the downloaded driver is located
Chmod + xNVIDIA-Linux-x86_64-352.21.run
/NVIDIA-Linux-x86_64-352.21.run

During installation, Select accept
If you are prompted to modify xorg. conf, select yes

If the resolution is only 800x640 after the restart, You need to modify the resolution.

/Etc/X11/xorg. conf

Section "Monitor" Identifier "Monitor0" VendorName "Unknown" ModelName "CRT-0" HorizSync 31.0-84.0 # modify VertRefresh 56.0-77.0 # modify the following add Mode "1920x1080" DotClock 148.500000 HTimings 1920 2008 2052 2200 VTimings 1080 1084 1089 1125 Flags "+ HSync" "+ VSync" EndMode Mode "1680x1050" DotClock 146.250000 HTimings 1680 1784 1960 VTimings 2240 1050 1053 Flags "- HSync ""-VSync "EndMode
Section "Device" adds a row: Option "UseEDID" "false"

Section "Screen"# Removed Option "metamodes" "nvidia-auto-select +0+0 {viewportin=1366x768}"    Identifier     "Screen0"    Device         "Device0"    Monitor        "Monitor0"    DefaultDepth    24    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       24    Modes       "1920x1080"    EndSubSectionEndSection

After restarting, you can select a resolution.

7. Modify the panel

/Usr/share/gnome-shell/modes/classic. json modify the right of the panel

 "panel": { "left": ["activities", "appMenu"],               "center": ["a11y", "keyboard", "volume", "bluetooth",                         "network", "battery", "dateMenu", "userMenu"],               "right": []             }

To be continued...




Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

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.