易截截图软件、单文件、免安装、纯绿色、仅160KB

Linux GRUB 方式切换启动级别(runlevel)

    事因修改了某个配置文件,导致系统启动某个服务的时候hold住了,系统启动不起来。这种情况下常常通过修改表启动级别,切换到非xwindow模式下重新启动,一般选取启动级别runlevel为3即可。
参考环境:Redhat Enterprise Linux AS 4
步骤:
1.当Linux启动时,按 e  进去参数选择编辑界面:
2.移动光标选中系统(Red Hat Enterprise Linux AS (2.6.9-55.ELsmp)),按 e:
3.移动光标选中(kernel /vmlinuxz-2.6.9-55.ELsmp ro root=LABEL=/ rhgb quiet):
4.修改rhgb为3,然后按enter键:
5.选中(kernel /vmlinuxz-2.6.9-55.ELsmp ro root=LABEL=/ 3 quiet),按 b, 系统则进去启动程序。
注,当系统reboot时,会自动切换到xwindows启动方式的runlevel(5);
另,如果能进去系统, 或者能启动sshd服务,则通过修改/etc/inittab 文件更改runlevel。
遗憾的是暂时无法上传图片,各个步骤的截图只能搁下了~~
参考:
Runlevel  System State
0  Halt the system
1   Single user mode
2  Basic multi user mode
3  Multi user mode
5  Multi user mode with GUI
6  Reboot the system
S, s  Single user mode


相关文档:

实战Linux Bluetooth编程(三) HCI层编程

1. HCI层协议概述:
HCI提供一套统一的方法来访问Bluetooth底层。如图所示:
从图上可以看出,Host Controller Interface(HCI)  就是用来沟通Host和Module。Host通常就是PC, Module则是以各种物理连接形式(USB,serial,pc-card等)连接到PC上的bluetooth Dongle。
在Host这一端:application,SDP,L2cap等协议 ......

building firefox 【linux】

  
sudo apt-get build-dep firefox
若出现下面的错误:
不能满足软件包 firefox 所要求的构建依赖关系
请将 /etc/apt/sources.list 改为默认的源 有就是 装完系统后自带的:
#deb cdrom:[Ubuntu 9.04 _Jaunty Jackalope_ - Release i386 (20090421.3)]/ jaunty main restricted
# See http://help.ubuntu ......

linux 获取当前程序路径

#include <stdio.h>
#include <unistd.h>
int main() {
char link[100], path[100];
sprintf(link, "/proc/%d/exe", getpid());
readlink(link, path, sizeof(path));
printf("%s\n.", path);
return 0;
} ......

将 Linux 应用程序移植到 64 位系统上


平滑迁移的技巧和技术
文档选项
<tr
valign="top"><td width="8"><img alt="" height="1" width="8"
src="//www.ibm.com/i/c.gif"/></td><td width="16"><img alt="" width="16"
heig ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号