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

3g网卡 linux加速

现在大多数高速无线上网卡都内置存储空间,用于存储驱动程序和拨号软件等。当首次将这种设备插入USB接口时,该设备被识别为CD-ROM,驱动程序和拨
号软件就在其中。当安装完网卡的驱动程序后,再次将其插入时,则被识别为Modem等设备,我的这个网卡还可以插Micro-SD卡,同时作U盘用。以上
这些好像称为ZeroCD技术。
在上网的过程中,会出现速度无法超过62KB的问题,又Google一番后,原来使用的usbserial是针对低速的设备设计的,使用的缓冲区很小,并
没考虑现在这种高速上网设备,因此造成网速有限制。可以通过修改usbserial的源代码,使其具有大小可变的缓冲区(参考
www.evdoforums.com/thread4381.html),其步骤如下:
1、下载安装内核源码。
2、copy当前内核配置文件至内核源代码目录下,
cp /boot/config-$(uname -r) /usr/src/linux-2.6.28/.config
3、cd到内核源码目录,为编译模块创建配置文件。
cd /usr/src/linux-source-2.6.24/ && make menuconfig
4、创建一个usbserial.c的补丁文件/root/usbserial.c.patch,内容如下:
--- linuxold/drivers/usb/serial/usb-serial.c 2006-12-31 17:40:28.000000000 -0600
+++ linux/drivers/usb/serial/usb-serial.c 2009-05-02 23:55:08.000000000 -0600
@@ -58,4 +58,5 @@
*/
+static ushort maxRSize, maxWSize, maxISize;
static int debug;
static struct usb_serial *serial_table[SERIAL_TTY_MINORS]; /* initially all NULL */
@@ -817,4 +818,6 @@
}
buffer_size = le16_to_cpu(endpoint->wMaxPacketSize);
+ if (buffer_size < maxRSize)
+ buffer_size = maxRSize;
port->bulk_in_size = buffer_size;
port->bulk_in_endpointAddress = endpoint->bEndpointAddress;
@@ -841,4 +844,6 @@
}
buffer_size = le16_to_cpu(endpoint->wMaxPacketSize);
+ if (buffer_size < maxWSize)
+ buffer_size = maxWSize;
port->bulk_out_size = buffer_size;
port->bulk_out_endpointAddress = endpoint->bEndpointAddress;
@@ -866,4 +871,6 @@
}
buffer_size = le16_to_cpu(endpoint->wMaxPacketSize);
+ if (buffer_size < maxISize)
+ buffer_size = maxISize;
port->interrupt_in_endpointAddress = endpoint->bEndpointAddress;
port->interrupt_in_buffer = kmalloc (buffer_size, GFP_KERNEL);


相关文档:

Linux 下自动备份MYSQL数据库的shell 脚本

MySQL :: Linux 下自动备份数据库的 shell 脚本
Linux 服务器上的程序每天都在更新 MySQL 数据库,于是就想起写一个 shell 脚本,结合 crontab,定时备份数据库。其实非常简单,主要就是使用 MySQL 自带的 mysqldump 命令。
脚本内容如下:
#!/bin/sh
# File: /home/mysql/backup.sh
# Database info
DB_NAME=" ......

完全用Linux工作,摈弃Windows


完全用Linux工作,摈弃Windows(王垠)
完全用Linux工作,摈弃Windows
作者:王垠
我已经半年没有使用 Windows 的方式工作了。Linux 高效的完成了我所有的工作。
GNU/Linux 不是每个人都想用的。如果你只需要处理一般的事务,打游戏,那么你不需要了解下面这些了。
我不是一个狂热的自由软件份子,虽然我很喜欢自由 ......

Linux下调用pthread库实现简单线程池

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <pthread.h>
#include <assert.h>
void * routine(void * arg);
int pool_add_job(void *(*process)(void * arg),void *arg);
int pool_init(unsigned int thread_num);
int po ......

Linux下的Android + Eclipse环境搭建

本文描述了如何在Linux ubuntu 8.10下搭建Android开发环境.
步骤:
1.    安装虚拟光驱daemon400.exe
2.    在windows XP下用虚拟光驱安装ubuntu 8.10, iso文件为:ubuntu-8.10-beta-desktop-i386.iso
3.    用dpkg命令打patch:
1)      &n ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号