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

linux挂载优盘假死

        由于 fc3 内核默认 fat32 文件系统字符编码是 ascii,如果优盘的文件名包含中文,那么在转换时会出问题,应用程序就会失去响应。具体的表现有多种,比如桌面假死,关机时提示无法卸载分区等等
解决的办法是在挂载时,根据语言环境 locale 的值,使用挂载参数。如果是 UTF-8 那么就用 mount -o utf8,如果是 GB* 那么就用 mount -o iocharset=cp936.


相关文档:

linux socket小例

/*
socket select模型,服务端
绝大多数注释自己写的,参考man
*/
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/wait.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/un.h>
#include &l ......

Linux下永久修改MAC地址和ifconfig命令总结(转)


1. 固定一个MAC地址,特别是在使用多个虚拟机的时候
linux环境下:
用root身份登录,在/etc/rc.d/rc.local里加上这三句
ifconfig eth0 down
ifconfig eth0 hw ether 00:0C:18:EF:FF:ED
ifconfig eth0 up
这样重新reboot后就不怕MAC复原了。
2. ifconfig命令(转载http://www.cnblogs.com/taobataoma/archive/2007/1 ......

linux 驱动加载测试命令

#insmod ./driver_xx.ko
此时#cat /proc/devices 能看到 driver_xx 设备
#mknod /dev/mygpio c 230 0 (230是主设备号,0是子设备号)
{这里可以修改设备名称,但是要和测试程序中一致 fd_pio = open(“/dev/mygpio”, O_RDWR);
最好和register_chrdev(MY_PIO_MAJOR, "mygpio", &my_pio_fops)中的一致}
使 ......

linux socket编程相关知识的总结

1:socket编程中采用的协议族主要有两种

   1>:网络协议族(形式如:AF_INET, PF_INET等)
   2>:本地unix域格式的协议族(形式如:AF_LOCAL, AF_UNIX等)
   注:协议族的选择体现在  int  socket(int domain, inst type, int protocol)函数的第一个参数处。
2:这两 ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号