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.

posted on 2017-11-27 09:04  学习记录园  阅读(440)  评论(0编辑  收藏  举报