zoukankan      html  css  js  c++  java
  • centos 7 升级内核

    CentOS 7 升级内核到最新版本

    时间:2016-01-19 01:26来源:blog.51cto.com 作者:jicki 的BLOG 举报 点击:

    CentOS 7 默认内核版本为 3.10 

    升级内核的原因是因为想要测试 docker overlay 网络模式

    docker overlay 网络模式,要求内核必须是3.16或以上。

    1. 升级内核需要使用 elrepo 的yum 源

    首先我们导入 elrepo 的key

     
    rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

    2. 安装 elrepo 源

     
    rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

    3. 在yum的ELRepo源中,mainline 为最新版本的内核

    安装 ml 的内核

     
    yum --enablerepo=elrepo-kernel install  kernel-ml-devel kernel-ml -y

    4. 修改内核启动顺序,默认启动的顺序应该为1,升级以后内核是往前面插入,为0

     
    grub2-set-default 0
    图形界面启动  ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target

    5. 重启系统

     
    reboot

    6. 查看 内核版本

     
    uname -r


    安装 ntfs-3g   支持ntfs 格式

    安装vim     gedit


    升级内核后vmware12 无法编译监视器模块和网络模块的解决办法  

    Bug 1278896 – VMware Workstation 12 not starting On Fedora 23

    REPL:

    after kernel 4.4 (VMWare Workstation 12) need some changes in c code:

    /usr/lib/vmware/modules/source

    1) vmmon.tar

      - untar                                tar -xvf    

      - change ./vmmon-only/linux/hostif.c

      - replace all:

      "get_user_pages" to "get_user_pages_remote"

      - tar and replace original                tar -cvf vmmon.tar ./vmmon-only

    2) vmnet.tar

      - untar

      - change ./vmnet-only/userif.c

      - replace all:

      "get_user_pages" to "get_user_pages_remote"

      - tar and replace original

    Successful compiled on FC23 FC24, FC25 (kernel 4.7)

    reboot
     
     
    声卡不工作

    I had the same problem. Following these instructions got my headphones working.

    Open the terminal and enter the following commands:

    cd /usr/share/pulseaudio/alsa-mixer/paths/
    sudo cp analog-output-headphones.conf analog-output-headphones.bak
    sudo nano analog-output-headphones.conf

    Look for the section called [Element Speaker] and change it so that it looks like this:

    [Element Speaker]
    switch = on
    volume = ignore

    Save the changes and exit nano.

    Create a backup of the corrected analog-output-headphones.conf:

    sudo cp analog-output-headphones.conf analog-output-headphones.fixed
    

    Now you can restore the fix if a future installation or update overwrites it.

    Reboot.

    After rebooting, you may need to remove and reinsert the headphone plug to get it to work. After it's working, though, you will be able to remove and insert the plug, and behavior will be as expected.

  • 相关阅读:
    System.Data.RealonlyException:列Column1被设置为realonly
    学习java过程中
    在windows server 2008下安装vs2005.打开vs2005的时候老提示要“运行vs2005sp1 建议使用管理员权限”
    windows Server 2008下面运行vs2005的问题
    大飞机MIS系统360把我的Transformer.Service服务杀掉了
    开通博客
    C#中怎样让控件显示在其他控件的上面
    vs2010发布问题
    vs在IE8无法调试的解决方法
    将身份证号粘贴到WPS表格后变成了“科学计数法”的解决方案
  • 原文地址:https://www.cnblogs.com/dongguolei/p/7902589.html
Copyright © 2011-2022 走看看