
linux app
lingzhi007
这个作者很懒,什么都没留下…
展开
-
牛逼只是一个接口,装逼也是它的一种实现
看到的 oo 最好描述 牛逼只是一个接口,装逼也是它的一种实现原创 2012-10-16 20:32:59 · 238 阅读 · 1 评论 -
mysql master slave
mysql master slaveslaveGRANT ALL PRIVILEGES ON *.* TO 'repl'@'192.168.1.3' IDENTIFIED BY 'repl' WITH GRANT OPTION;[mysqld]datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.so...原创 2012-04-15 02:39:24 · 126 阅读 · 0 评论 -
linux 支持eclipse gbk
今天,把windows下的工程导入到了Linux下eclipse中,由于以前的工程代码,都是GBK编码的,而Ubuntu默认是不支持GBK编码的。所以,首先我们要先让Ubuntu支持GBK,方法如下:修改/var/lib/locales/supported.d/local文件,在文件中添加zh_CN.GBK GBKzh_CN.GB2312 GB2312sudo dpk...原创 2013-04-26 23:12:52 · 110 阅读 · 0 评论 -
apt-get info
# apt-get update——在修改/etc/apt/sources.list或者/etc/apt/preferences之後运行该命令。此外您需要定期运行这一命令以确保您的软件包列表是最新的。 # apt-get install packagename——安装一个新软件包(参见下文的aptitude) # apt-get remove packagename——卸载一个已安装的软件包(...原创 2013-04-28 12:55:23 · 607 阅读 · 0 评论 -
phash jni
phash jni 只需要图片的支持 jni 的支持需要安装 cimg./configure --enable-video-hash=no --enable-audio-hash=no --enable-javamakesudo make installldconfig装玩后 phash 出错 报告sh gm 没有 sh gm no found...原创 2013-04-28 23:48:21 · 113 阅读 · 0 评论 -
磁盘修复
悲剧 磁盘有坏道 一 转载 http://linux.cn/home-space-uid-6515-do-blog-id-1012.html 假设我们要检查的硬盘是/dev/sdb$sudo badblocks -s -v -o sdbbadblocks.log /dev/sdb 这样就可以对硬盘进行只读扫描,自动获取硬盘块数目并扫描全部块,将扫描日志输出到屏幕同时记录在sdbb...原创 2012-09-12 17:45:34 · 93 阅读 · 0 评论 -
gconf-editor
gconf-editor u盘 自动挂载 /apps/nautilus/preferences/media_automount原创 2012-12-30 20:34:22 · 329 阅读 · 0 评论 -
redhat 关闭随机启动的服务
chnconfig指令: 通过chkconfig --list 查看系统所有的系统服务是关闭还是打开。 通过chkconfig iptables on 设置随机启动服务 通过chkconfig iptables off 设置不随机启动服务 ...原创 2012-10-03 18:05:56 · 540 阅读 · 0 评论 -
转 的可以控制鼠标和输入的代码
#include <string.h>#include <stdio.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>#include <linux/input.h>#include <linux/uinput.h...原创 2012-10-06 20:01:43 · 126 阅读 · 0 评论 -
OpenTLD + opencv 2.3.1 编译 成功
cd OpenTLDmkdir buildcd buildcmake ../src/makecd ../bin/ opencv 2.4 修改了一个头文件 编译成功,但运行还有问题,最后还是opencv 2.3.1 比较顺利 下一步 用摄像头 + 手势 以后看电影不用鼠标了 ^_^ ...原创 2012-10-06 20:06:01 · 128 阅读 · 0 评论 -
vmware linux 手动安装
vmware linux 自动安装 分区自动处理不能满足需要 手动模式1、i will install the oprationg system later 2、 建好虚拟机后 再转入光盘 重启 。 我机器 用的 ext4 的格式 rl5 只有 Ide 的驱动 要把系统自己建的硬盘删掉,手工增加ide 的硬盘。...原创 2013-01-21 22:32:01 · 176 阅读 · 0 评论 -
nat 么子对内转发依据
局域网共享模式 看了好多文章 都说 nat 出去换ip 但回来的包怎么转发,很少说 ? 炒了一段 当作参考 http://baike.baidu.com/view/16102.htm4. 怎样映射?如何将大量的内部地址,映射成少量的外部地址?对于第四层是TCP或UDP的数据包,NAT通过更改源端口号,来实现多对少的映射。例如:内部IP1~IP...原创 2013-01-23 20:11:20 · 118 阅读 · 0 评论 -
nginx.conf
user www-data;worker_processes 1;error_log /var/log/nginx/error.log;pid /var/run/nginx.pid;events { worker_connections 1024; # multi_accept on;}http { includ...原创 2012-04-15 00:23:37 · 92 阅读 · 0 评论 -
linux disk io moniter shell
转 http://wangchengtai.blog.hexun.com/39388948_d.html Unix/Linux 磁盘 I/O 性能监控命令磁盘 I/O 性能监控指标和调优方法在介绍磁盘 I/O 监控命令前,我们需要了解磁盘 I/O 性能监控的指标,以及每个指标的所揭示的磁盘某方面的性能。磁盘 I/O 性能监控的指标主要包括:指标 1:每秒 I/O 数(...原创 2013-04-14 17:58:34 · 313 阅读 · 0 评论 -
Linux命令输出结果作为输入参数
Linux命令输出结果作为输入参数 一 echo `date +%Y`-`date +%m`-`date +%d` `date +%H`:`date +%k`:`date +%M` ` 就是Esc下面的按键 这里 ` ` 中间的输入可以当成字符处理 二 ps -ef |grep hadoop |cut -c 8-15 |xargs kil...原创 2013-03-11 22:00:42 · 4342 阅读 · 0 评论 -
linux eventx 模拟鼠标 单击和双击的方法
网上有很多模拟键盘和鼠标的例子,单单击和双击的很少 linux/input.h中有定义,这个文件还定义了标准按键的编码等struct input_event { struct timeval time; //按键时间 __u16 type; //类型,在下面有定义 __u16 code; //要模拟成什么按键 __s32 value;//是按下还是释放};...原创 2013-03-12 22:36:30 · 1288 阅读 · 0 评论 -
linux 小知识
1、[root@bogon ipvsadm-1.24]# cat /etc/yum.repos.d/xx.repo[xx]enabled = 1name = xxbaseurl = file:///media/iso/Servergpgcheck = 0gpgkey = file://home/l/iso/Server/RPM-GPG-KEY-redhat-release...原创 2012-03-23 03:22:26 · 75 阅读 · 0 评论 -
lvs-dr
lvs server ip 192.168.1.10rserver1 192.168.1.11rserver2 192.168.1.12lvs-confVIP=192.168.1.200RIP1=192.168.1.11RIP2=192.168.1.12GW=192.168.1.1/sbin/ifconfig eth0:1 $VIP broadca...原创 2012-03-24 22:31:33 · 97 阅读 · 0 评论 -
vmware 配置支持多实例互相访问 Linux
虚拟网卡的创建文件/etc/network/interfaces//创建虚拟网卡的工具sudo apt-get install uml-utilities//用 l 用户创建了 tap0 虚拟网卡tunctl -t tap0 -u l文件内容##########################################auto loifac...原创 2012-03-24 22:35:01 · 180 阅读 · 0 评论 -
ubuntu 下的 vi 和vim
之前用 redhat 的vi 感觉很好现在再ubuntu 下 vi 感觉不受控制了 用vim 就没有问题了原创 2013-03-23 11:17:04 · 116 阅读 · 0 评论 -
ubunt 开机启动 起vncsever 加分辨率 vncserver -geometry 640x480
转自 http://www.dotblogs.com.tw/newmonkey48/archive/2012/06/28/73108.aspx 要在 /etc/init.d資料下撰寫一個shell script檔,去執行你要執行的指令我用shell script去啟動另一個shell script,並且執行java程式,以達到開機時,啟動程式。 假設我在/etc/in...原创 2013-03-31 20:38:27 · 462 阅读 · 0 评论 -
ubuntu 12.4 close the touchpad sudo rmmod psmouse
ubuntu 12.4 close the touchpad removesudo rmmod psmouseaddsudo modprobe psmouse原创 2013-04-06 17:06:32 · 185 阅读 · 0 评论 -
ubuntu 12.04 vmware player 安装后加载虚拟机死机 打补丁
ubuntu 12.04 vmware player 安装后加载虚拟机死机 异常信息 system_call_fastpath+ 。。。。。。。。。。。打补丁后运行正常 补丁见附件。。原创 2013-04-08 21:51:53 · 230 阅读 · 0 评论 -
MongoDB C++ DRIVER 编译
转自http://nosql-db.com/topic/51556970ca60a10d420148e4之前装过,忘了 ,找了篇博客 COPY作记录 MongoDB python和MongoDB c++驱动安装 java 简单,略过。python$ git clone git://github.com/mongodb/mongo-python-driver....原创 2013-04-08 22:04:15 · 255 阅读 · 0 评论 -
tun
redhat kernel 2.6.18-92.el5 server config #!/bin/sh VIP=192.168.1.10 LVS=192.168.1.150 RIP1=192.168.1.11 RIP2=192.168.1.12 GW=192.168.1.1 /etc/init.d/iptables stop /etc/init.d/...原创 2012-04-04 18:25:19 · 240 阅读 · 0 评论 -
lvs-tun route list tun 不稳定 可能和route list 有关
blDestination Gateway Genmask Flags Metric Ref Use Iface192.168.1.150 0.0.0.0 255.255.255.255 UH 0 0 0 eth0192.168.1.0 0.0.0.0 255.2...原创 2012-04-04 20:56:07 · 161 阅读 · 0 评论 -
mysql 相关
1、查看链接数明细mysqladmin -uroot processlist 1、查看链接数明细概要 mysqladmin -uroot status原创 2013-09-08 23:31:23 · 75 阅读 · 0 评论