忘记root密码后的解决办法忘记root密码时我们可以在本地通过进入单用户模式来重置root密码,方法如下:开机后自动进入grub启动菜单,如图:方法一:按“a”进入单用户模式。这是进入单用户模式最快捷的方法。在GRUB启动菜单里使用“a”操作按键编辑kernel参数,在行末输入空格..
分类:
其他好文 时间:
2014-09-18 16:53:15
阅读次数:
187
我们学习程序设计,都是从“HelloWorld”开始的,驱动程序也不例外,今天我就写一个驱动版的“HelloWorld”来热热身,目的希望大家能对驱动程序的基本框架有所了解。驱动程序分为2类,一个是Kernel模式驱动,另一个是Windows模式驱动,2种模式本质是相同,但细节不同,本文介绍的是内核...
分类:
其他好文 时间:
2014-09-18 00:43:03
阅读次数:
395
#include
1:定义alarm变量:
struct alarm xx_alarm;
2:alarm绑定:
alarm 触发时callback:
static void
xx_callback(struct alarm *alarm)
{
structchip *chip = container_of(alarm, structchip,...
分类:
移动开发 时间:
2014-09-17 23:22:22
阅读次数:
521
iptables 日志LOG target 这个功能是通过内核的日志工具完成的(rsyslogd)LOG现有5个选项--log-level debug,info,notice,warning,warn,err,error,crit,alert,emerg,panic err和error,warn.....
分类:
其他好文 时间:
2014-09-17 18:25:42
阅读次数:
201
1、查看内核版本实验环境[root@lnmpsrc]#
uname-r2.6.32-358.el6.x86_642、安装图形依赖包yuminstall-yncursesncurses-devel3、下载内核[root@lnmp
src]#wgethttps://www.kernel.org/pub/linux/kernel/v3.x/linux-3.16.2.tar.xz解压[root@lnmpsrc]#tar
-xflinux-3.16.2.tar.xz-..
分类:
系统相关 时间:
2014-09-17 15:27:53
阅读次数:
646
1、安装Kernel Headers(头文件) 通过安装kernel-devel RPM包就可以得到Kernel Headers,但默认情况下没有被Fedora 20安装。通过DVD ISO 或者 yum在线安装的方式都可以安装系统内核头文件,这里先查看一下系统的内核版本:[root@localh....
分类:
其他好文 时间:
2014-09-17 13:24:02
阅读次数:
276
本文对linux0.11源码进行分析,讲到了linux从16位模式转换成32为模式,为下一步执行main函数打下基础...
分类:
系统相关 时间:
2014-09-16 12:44:40
阅读次数:
303
A method for allowing a protected mode kernel to service, in virtual 8086 mode, hardware interrupts which occur during execution of ring 0 protected m...
分类:
其他好文 时间:
2014-09-16 10:28:10
阅读次数:
409
安装nfs:
#sudo apt-get install nfs-kernel-server
(1)设置共享目录
运行命令
#gedit /etc/exports
编辑 nfs 服务的配置文件(注意:第一次打开时该文件是空的),添加以下内容:
/opt/FriendlyARM/mini2440/rootfs_qtopia_qt4 *(rw,sync,no_root_squash...
分类:
其他好文 时间:
2014-09-15 22:57:29
阅读次数:
466
(process:6471): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security...
分类:
其他好文 时间:
2014-09-15 22:55:54
阅读次数:
222