摘要: 笔记本:联想E46G 当前bios版本:25CN32WW 内存:DDR3 133 4G × 2 问题:bios信息显示8G,win7和ubuntu 在64位下使用情况仅4G 准备工作1:bios版本和内存检查方法或工具 开机按 F2 键 进bios,核实bios版本和内存信息,或者登录联想官方网站安 阅读全文
posted @ 2017-04-08 17:31 火罐儿 阅读(8970) 评论(0) 推荐(0) 编辑
摘要: 1.创建一个 Swap 文件。 mkdir swap cd swap sudo dd if=/dev/zero of=swapfile bs=1024 count=100000 出现下列提示,上面命令中的 count 即代表swap文件大小。 记录了 100000+0 的读入 记录了 100000+ 阅读全文
posted @ 2017-04-08 17:29 火罐儿 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 配置cygwin和dig的环境变量 打开“控制面板”(“开始”>“设置”>“控制面板”),然后双击“系统”程序。 选择“高级”标签,然后单击“环境变量”。 在“环境变量”对话框的“系统变量”面板中,选择 "Path" 变量,然后单击“编辑”加入 %SYSTEMDRIVE%\cygwin\bin;%S 阅读全文
posted @ 2017-04-08 17:29 火罐儿 阅读(3310) 评论(0) 推荐(0) 编辑
摘要: @echo off set NAME=refrash IE set TIME=20:01:00 set DAY=MON,TUE,WED,THU,FRI,SAT,SUN set COMMAND=cscript.exe %~dp0dailybak.vbs %SystemDrive% cd %windir 阅读全文
posted @ 2017-04-08 17:28 火罐儿 阅读(294) 评论(0) 推荐(0) 编辑
摘要: /etc/modules: 内核模块文件,里面列出的模块会在系统启动时自动加载。 /etc/modprobe.d: 存放禁止加载或者加载内核模块脚本的目录。 以下是我增加netfilter模块是的流程: echo "1" >/proc/sys/net/ipv4/ip_forward vi /etc/ 阅读全文
posted @ 2017-04-08 17:26 火罐儿 阅读(5674) 评论(0) 推荐(0) 编辑
摘要: 1.hello.c #include<linux/init.h> #include<linux/module.h> MODULE_LICENSE("Dual BSD/GPL"); MODULE_AUTHOR("MDAXIA"); static int __init hello_init(void) 阅读全文
posted @ 2017-04-08 17:25 火罐儿 阅读(1659) 评论(0) 推荐(0) 编辑
摘要: 1. 开机启动时自动运行程序 Linux加载后, 它将初始化硬件和设备驱动, 然后运行第一个进程init。init根据配置 文件继续引导过程,启动其它进程。通常情况下,修改放置在 /etc/rc或 /etc/rc.d 或 /etc/rc?.d 目录下的脚本文件,可以使init自动启动其它程序。例如: 阅读全文
posted @ 2017-04-08 13:55 火罐儿 阅读(1107) 评论(0) 推荐(0) 编辑
摘要: (一) 设置开机启动iptables # sysv-rc-conf --level 2345 iptables on (二) iptables的基本命令 1. 列出当前iptables的策略和规则 # iptables -L -n -n: 用数字形式显示 # iptables -L -v -v: 打 阅读全文
posted @ 2017-04-08 13:54 火罐儿 阅读(1098) 评论(0) 推荐(0) 编辑
摘要: 在进行网络测试的时候,我们经常需要进行抓包的工作,当然有许多测试工具可以使用,比如sniffer, ethreal等.但最为方便和简单得就非TCPDump莫属. Linux的发行版里基本都包括了这个工具. TCPDump将网络接口设置成混杂模式以便捕获到达的每一个数据包.下面给出TCPDump的部分 阅读全文
posted @ 2017-04-08 13:53 火罐儿 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 1.一对一流量完全DNAT 首先说一下网络环境,普通主机一台做防火墙用,网卡两块 eth0 192.168.0.1 内网 eth1 202.202.202.1 外网 内网中一台主机 192.168.0.101 现在要把外网访问202.202.202.1的所有流量映射到192.168.0.101上 命 阅读全文
posted @ 2017-04-08 13:53 火罐儿 阅读(4336) 评论(0) 推荐(0) 编辑
摘要: 故障现象: mysql无法启动 1: dmesg |grep mysql [101353.820000] init: mysql post-start process (9077) terminated with status 1 [101354.650000] init: mysql main p 阅读全文
posted @ 2017-04-08 13:52 火罐儿 阅读(1406) 评论(0) 推荐(0) 编辑
摘要: 题外话:由于近段时间测试环境ssh链路质量不大好,经常短线。故我把整个安装过程放到screen里去执行,以防止断线中断了安装过程。执行screen -S install,这样断线后,只要再执行screen -r install 就可以恢复之前的安装界面。 1.安装mysql sudo apt-get 阅读全文
posted @ 2017-04-08 13:50 火罐儿 阅读(718) 评论(0) 推荐(0) 编辑
摘要: 我打算把内存虚拟盘放在/opt/var/tmp 。使用以下简单的命令: # mount -t tmpfs -o 128m none /opt/var/tmp 也可以不指定内存盘大小: # mount -t tmpfs none /opt/var/tmp 在内存盘建立之后,查看top 或者系统监视器, 阅读全文
posted @ 2017-04-08 13:47 火罐儿 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1: 安装mysql apt-get install mysql-server mysql-client 安装过程中会被问到设置mysql root的密码 New password for the MySQL "root" user: <-- yourrootsqlpassword Repeat p 阅读全文
posted @ 2017-04-08 13:09 火罐儿 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 转载的,不知道原作者是谁。list很好,但我没有全部测试和验证,部分内容或已失效,如有人找到原作者的更新或者最新的心得。请告知。 Cubieboard是一款ARM架构的开发板, 1GHz 的 All Winner A10 Cortex A8 CPU、Mali-400 GPU、1GB RAM、4GB 阅读全文
posted @ 2017-04-08 13:08 火罐儿 阅读(409) 评论(0) 推荐(0) 编辑
摘要: 1: Linaro/Ubuntu Linaro is a not-for-profit engineering organization consolidating and optimizing open source Linux software and tools for the ARM arc 阅读全文
posted @ 2017-04-08 13:06 火罐儿 阅读(218) 评论(0) 推荐(0) 编辑
摘要: grep nobody /etc/{passwd,group} groupadd nobody #有nobody用户的情况 usermod -G nobody nobody #没有nobody用户的情况 useradd nobody -G nobody #Server version: Apache 阅读全文
posted @ 2017-04-08 13:04 火罐儿 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 你是否经常看见其他帖子里或者其他人提到要修改script.bin或script.fex ,但你又不知道怎么改。 其实 script.bin就是script.fex通过 fex2bin生成的,script.fex是文本格式,方便人修改,修改好之后转换为script.bin二进制格式方便机器读取。 如果 阅读全文
posted @ 2017-04-08 13:02 火罐儿 阅读(553) 评论(0) 推荐(0) 编辑
摘要: perl中的INC变量中包含了所有的perl module的查找路径。 可以使用perl -V 来查看INC的值。 1)默认地INC如下: @INC: C:/Perl/site/lib C:/Perl/lib . 2)设置环境变量PERL5LIB来增加到INC,例如: set perl5lib=c: 阅读全文
posted @ 2017-04-08 12:57 火罐儿 阅读(621) 评论(0) 推荐(0) 编辑
摘要: 内核: uname -a Linux localhost.localdomain 3.4.29-t4 #12 Wed Mar 13 16:50:15 EST 2013 armv7l armv7l armv7l GNU/Linux dpkg安装应用时遇到问题,提示运行apt-get -f instal 阅读全文
posted @ 2017-04-08 12:56 火罐儿 阅读(2407) 评论(0) 推荐(0) 编辑