内容简介:也可以使用下面的方式正常编译建议使用查询虚拟机的
也可以使用下面的方式正常编译 Linux Kernel 4.14.118
。
建议使用 VirtualBox
上建立虚拟机,保证磁盘空间不小于 32GB
,给 root
用户设置密码,远程通过 shell
登录到虚拟机。
查询虚拟机的 IP
地址的时候,使用
# Debian 9 系统上 ip 命令替代了ifconfig $ ip addr
命令查询。虚拟机网卡设置的时候,设置为桥接模式,默认的 NAT
模式无法通过 SSH
登录。
然后执行如下命令:
# 解压缩xz格式的 linux 内核 $ sudo apt-get install xz-utils $ cd ~ $ wget https://cdn.kernel.org/pub/linux/kernel/v4.x/linux-4.14.118.tar.xz -O linux-4.14.118.tar.xz $ tar -zxvf linux-4.14.118.tar.xz $ cd linux-4.14.118/ # 升级系统工具,如果不更新,有时候会出现无法编译的情况 $ sudo apt-get update $ sudo apt-get upgrade $ sudo apt-get install make $ sudo apt-get install build-essential $ sudo apt-get install kernel-package $ sudo apt-get install ncurses-dev $ sudo apt-get install libelf-dev #一路回车到底 $ make oldconfig $ make-kpkg --initrd kernel-image
完成后,在当前用户目录下生成 linux-image-4.13.0-rc6_4.13.0-rc6-10.00.Custom_amd64.deb
安装包,执行如下命令安装:
$ cd ~ $ sudo dpkg -i linux-image-4.13.0-rc6_4.13.0-rc6-10.00.Custom_amd64.deb
参考链接
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:- 在Docker上编译OpenJDK 8
- 云上自动化 vs 云上编排
- 在 Bluemix 上编写 Clojure Web 应用程序
- 在 CentOS 7.8 上编译 PHP 7.4.x
- FreeBSD上编写x86 Shellcode初学者指南
- CentOS上编译OpenJDK8源码及在Eclipse上调试HotSpot虚拟机源码
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Cascading Style Sheets 2.0 Programmer's Reference
Eric A. Meyer / McGraw-Hill Osborne Media / 2001-03-20 / USD 19.99
The most authoritative quick reference available for CSS programmers. This handy resource gives you programming essentials at your fingertips, including all the new tags and features in CSS 2.0. You'l......一起来看看 《Cascading Style Sheets 2.0 Programmer's Reference》 这本书的介绍吧!