平淡不平凡

一 安装4.1.1内核

1 安装软件编译安装新内核,依赖于开发环境和开发库# yum grouplist //查看已经安装的和未安装的软件包组,来判断我们是否安装了相应的开发环境和开发库;# yum groupinstall "Development Tools" //一般是安装这两个软件包组,这样做会确定你拥有编译时所需的一切工具# yum install ncurses-devel //你必须这样才能让 make *config 这个指令正确地执行# yum install qt-devel //如果你没有 X 环境,这一条可以不用# yum install hmaccalc zlib-devel binutils-devel elfutils-libelf-devel

如果是开发模式安装的系统,这些包应该都安装了。

2 解压内核到/usr/src/kernels 目录 重命名为:linux-4.1.1

原因是安装以后是这样的:

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.1cp /boot/config-3.10.0-229.7.2.el7.x86_64 ./config<pre name="code" class="python"># sh -c 'yes "" | make oldconfig'make oldconfig会读取当前目录下的.config文件,在.config文件里没有找到的选项则提示用户填写。有的文档里介绍使用make memuconfigmake -j8 bzImage //生成内核文件<pre name="code" class="python">make -j4 modules //编译模块make -j4 modules_install //编译安装模块-j后面的数字是线程数,用于加快编译速度,一般的经验是,逻辑CPU,就填写那个数字,,例如有8核,则为-j8。3 安装内核:

# make install

二 安装google浏览器

首先到官网下载google-chrome-stable_current_x86_64.rpm

rpm -ivh 安装报错lsb >= 4.0

网上找到安装方法:

sudo yum localinstall google-chrome-stable_current_x86_64.rpm

三 添加非官方源http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm直接可以使用yum 安装vlc等软件

四 删除旧内核

rpm -qa | grep kenrl

执行:

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

五 安装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进入/opt/google/earth/free/googleearth 执行:sudo cp product_logo_128.png /usr/share/icons/hicolor/128×128/apps/google-earth.pngsudo cp product_logo_16.png /usr/share/icons/hicolor/16×16/apps/google-earth.pngsudo cp product_logo_24.png /usr/share/icons/hicolor/24×24/apps/google-earth.pngsudo cp product_logo_256.png /usr/share/icons/hicolor/256×256/apps/google-earth.pngsudo cp product_logo_32.png /usr/share/icons/hicolor/32×32/apps/google-earth.pngsudo cp product_logo_48.png /usr/share/icons/hicolor/48×48/apps/google-earth.pngsudo cp product_logo_64.png /usr/share/icons/hicolor/64×64/apps/google-earth.pngsudo cp google-earth.desktop /usr/share/applications/

六 安装Nvidia 驱动

到官网找到具型号 下载:NVIDIA-Linux-x86_64-352.21.run

blacklist.conf的位置是在/usr/lib/modprobe.d/dist-blacklist.conf

在最后添加:

blacklist nouveauoptions nouveau modeset=0注释掉:#blacklist nvidiafb

重建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 切换到三模式安装

查看nouveau是否已经禁用ls mod | grep nouveau如果没有显示相关的内容,说明已禁用。进入下载的驱动所在目录chmod +xNVIDIA-Linux-x86_64-352.21.run./NVIDIA-Linux-x86_64-352.21.run安装过程中,选择accept如果提示要修改xorg.conf,选择yes

如果重起后发现分辨率只有800×640 则需要修改

/etc/X11/xorg.conf

Section "Monitor"Identifier"Monitor0"VendorName"Unknown"ModelName"CRT-0"HorizSync31.0 – 84.0 #修改VertRefresh56.0 – 77.0 #修改 下面的添加Mode "1920×1080"DotClock148.500000HTimings1920 2008 2052 2200VTimings1080 1084 1089 1125Flags "+HSync" "+VSync"EndModeMode "1680×1050"DotClock146.250000HTimings1680 1784 1960 2240VTimings1050 1053 1059 1089Flags "-HSync" "-VSync"EndModeSection "Device" 添加一行:Option "UseEDID" "false"Section "Screen"# Removed Option "metamodes" "nvidia-auto-select +0+0 {viewportin=1366×768}"Identifier"Screen0"Device"Device0"Monitor"Monitor0"DefaultDepth 24Option"Stereo" "0"Option"nvidiaXineramaInfoOrder" "CRT-0"Option"metamodes" "nvidia-auto-select +0+0 {viewportin=1920×1080}"Option"SLI" "Off"Option"MultiGPU" "Off"Option"BaseMosaic" "off"SubSection"Display"Depth24Modes"1920×1080"EndSubSectionEndSection重起后即可选择分辨率。七 修改panel在人生的道路上,谁都会遇到困难和挫折,

平淡不平凡

相关文章:

你感兴趣的文章:

标签云: