关于我
A man is not old until regrets take the place of dreams.
-
最近文章
分类目录
文章归档
近期评论
- good 在 outlook 错配置账户到exchange后的删除办法 上的评论
- 司绍锋 在 mupdf ,速度很快的pdf阅读器 上的评论
- jin 在 用aria2c wget 下载迅雷离线资源,让linux伤的起 上的评论
- 和上 在 给截图脚本绑定快捷键,让生活更美好 上的评论
- wxuyec 在 给截图脚本绑定快捷键,让生活更美好 上的评论
友情链接
个人管理
Category Archives: linux
mupdf ,速度很快的pdf阅读器
mupdf 速度很快的pdf阅读器, 官网:http://www.mupdf.com/ 默认的bin文件不支持j,k翻页, 所以需要自己patch, patch文件参考 http://www.linuxsir.org/bbs/thread376003.html 我下载回来并上传了一个,下载地址:http://www.leyle.com/myfile/mupdf.tar.bz2 源码见:http://code.google.com/p/mupdf/downloads/detail?name=mupdf-0.8.165-source.tar.gz&can=1&q=source 同时还需要第三方函数库 http://www.leyle.com/myfile/mupdf.tar.bz2http://www.mupdf.com/download/ 选择 mupdf-thirdparty.zip http://www.mupdf.com/download/mupdf-thirdparty.zip 解压第三方函数库,放在mupdf 目录下,下载回来patch文件,也放在里面 patch p0 < mupdf.patch 这样就打好补丁了, 编译:sudo make prefix=/usr/local install(安装或许需要管理员权限) ok,完毕。 L, R rotate page h, j, k, l scroll page +, – zoom in … Continue reading
Posted in linux, 软件
3 Comments
ubuntu 下的自动运行任务,配合shell脚本,爽。
自动运行任务涉及到的命令时 cron crontab man cron —> daemon to execute scheduled commands man crontab —>maintain crontab files for individual users 查看有哪些自动运行的任务, crontab -l ( 字母,小写的L) 编辑/添加任务使用的是 crontab -e 选择编辑器,我喜欢用vim, 可以使用 select-editor 命令来选择编辑器 一般来说,添加一个自动运行任务无非就是两大要素, 什么时间运行,运行什么任务。 什么时间运行,这个是cron控制的, 运行什么任务,这个就是另外一件事了。 在 crontab 编辑的文件里面体现出来就是 # m … Continue reading
Posted in linux, 脚本
Leave a comment
用aria2c wget 下载迅雷离线资源,让linux伤的起
网上搜索了一下,迅雷离线的验证是通过一个cookies 文件来记录验证下载的, 所以,第一步是先登录迅雷,导出迅雷的cookies文件,然后用aria2c或者wget 加载 cookies进行下载, 用ff的一个插件 export cookies https://addons.mozilla.org/en-US/firefox/addon/export-cookies/ 导出cookies后,找到包含 gdriveid 字眼的那一行,实际上,下载迅雷离线,加载的cookies内容就是这一样在起作用, 所以只需要保留这一样的内容就行了,比如保存为xunlei.txt wget -c –load-cookies=xunlei.txt "http://xunlei.url" aria2c -s 5 -c –load-cookies=xunlei.txt "http://xunlei.url" ( (上面两个load前面是两个小短横线,被博客转义成一个长横线了,man是个好东西) 不过,上面这样使用起来很不方便,每次都要输入一大堆命令, 不过linux上有一个 alias 参数 ,所以我就在 .bashrc中写入了下面这一段话 alias xunlei=’aria2c -s 5 -c –load-cookies=/home/user/.xl.txt’ 其中,.xl.txt 里面存放的是上面提到的那行cookies 内容, … Continue reading
Posted in linux, 软件
5 Comments
linux 下配置ip的方法
linux下主要有两个网络配置命令, ifconfig route 设定固定ip ifconfig wlan0 192.168.0.139 netmask 255.255.255.0 设定默认网关 route add default gw 192.168.0.10 设定dns服务器 vim /etc/resolv.conf nameserver 8.8.8.8 如此可以设定一个包含了 本地ip,子网掩码,默认网关,dns服务器的 网络配置。
Posted in linux
Leave a comment
include<> and include”"
c program 中,包含header file 有两种方式, include<foo.h> include"foo.h" 差别在于, include<foo.h> says look for it where all the header files are normally "installed" on the platform, include"foo.h" is used for those you provide yourself typically 当需要指定一个预编译的头文件时,可以用 -l 参数。 当写好源文件后,比如说, foo.c foo.h 那么在编译的时候,当使用include"foo.h"表明,foo.c … Continue reading
Posted in linux, 软件
Leave a comment