随笔分类 -  备忘

摘要:$ sudo apt-get installbzr-fastimport git-core$bzr clone lp:~lidaobing/iptux/iptux$cd iptux/$ git init$bzr fast-export . | git fast-import$ gitk --all$ rm -r .bzr$ git reset HEAD 阅读全文
posted @ 2011-08-06 10:08 LI Daobing 阅读(1076) 评论(0) 推荐(0)
摘要:版本: Thunderbird 3.1.11方法:1. 进入 Edit -> Preferences -> Security -> Passwords -> "Saved Passwords..."选中对应的密码,然后点击 "Remove"2. 重新启动 thunderbird 阅读全文
posted @ 2011-08-02 08:59 LI Daobing 阅读(1329) 评论(0) 推荐(0)
摘要:修改 /etc/default/snmpd (适用于Debian/Ubuntu)把 127.0.0.1 改为 0.0.0.0创建一个 v2 版的只读用户# /etc/snmp/snmpd.conf# rocommunity 通信密钥 允许IProcommunity foo 1.2.3.4rocommunity foo 5.6.7.8重启 snmpd$ sudo /etc/init.d/snmpd restart测试$snmpwalk -v 2c -c <通信密钥> <IP或域名> .1.3.6.1.4.1.2021.11.50.0 阅读全文
posted @ 2011-07-25 18:13 LI Daobing 阅读(1115) 评论(0) 推荐(0)
摘要:1. 在 alioth 网站注册[1], 并且申请加入一个特定的组, 比如 chinese 组[1]http://alioth.debian.org/[2]http://alioth.debian.org/projects/chinese/2. 生成自己的SSH密钥$ ssh-keygen -t rsa3. 上传公钥($HOME/.ssh/id_rsa.pub) 到 aliothhttps://alioth.debian.org/account/editsshkeys.php4. 登录 git.debian.org$ ssh git.debian.org -l ALIOTH_USER_NA 阅读全文
posted @ 2011-06-04 16:59 LI Daobing 阅读(1419) 评论(0) 推荐(0)
摘要:nethogs: 按进程察看流量占用iptraf: 按连接察看流量占用ethtool: 诊断工具tcpdump: 抓包工具其他:dstat, ifstat, slurm, nload, bmon 阅读全文
posted @ 2011-05-31 22:38 LI Daobing 阅读(992) 评论(0) 推荐(0)
摘要:某些时候,需要上传的包的依赖包还未出现在 debian 官方仓库中,比如你需要上传 input-pad 1.0.0-1 和 ibus-input-pad 0.1.4-1, 后者依赖于前者, input-pad 可以正常地安装和上传, 但 ibus-input-pad 却会出现编译失败,因为对应的 input-pad 1.0.0-1 还未出现在官方 Debian 仓库中, 这种情况的处理方法如下所示先按照在 Ubuntu 下构建 Debian 打包环境这篇配置好环境安装 apache, 激活 userdir, 创建自己的 debian 目录$ sudo apt-get install apac 阅读全文
posted @ 2011-03-24 23:28 LI Daobing 阅读(1575) 评论(0) 推荐(0)
摘要:加入新文件: debian/source/format, 内容为3.0 (quilt)设定环境变量 (可以加到$HOME/.bashrc中)export QUILT_PATCHES=debian/patches运行如下的命令, 创建第一个补丁$ quilt new binutils-gold.patch # 新建补丁,名字叫 binutils-gold.patch$ quilt add CMakeLists.txt # 这个补丁需要修改CMakeLists.txt, 所以把CMakeLists.txt 加入列表$ viCMakeLists.txt...$ quilt refresh # 把更改 阅读全文
posted @ 2011-03-21 22:11 LI Daobing 阅读(1414) 评论(0) 推荐(0)
摘要:安装软件$sudo apt-get install bzr-builddeb下载源码包$ bzr clone lp:~lidaobing/ibus/ibus-hangul更新上游包$ cd ibus-hangul$ uscan --force-download合并到 bzr 仓库$ bzr merge-upstream ../ibus-hangul-1.3.1.tar.gz --version 1.3.1$ bzr commit查看 bzr log$ bzr log -n0 | less编译并安装$ debuild -i.bzr$ debc$ sudo debi调整 changelog$ d 阅读全文
posted @ 2011-02-27 17:14 LI Daobing 阅读(1749) 评论(0) 推荐(0)
摘要:Dual Head 即把两个显示器拼在一起使用,我的两个显示器分别为 Dell Inspiron 1420 自带的显示器,分辨率(1280x800),另一个是Benq FP71G+,分辨率1280x1024,直接接在笔记本的显示器口上1. 修改 xorg.conf大部分可以使用自动生成的 xorg.conf, 需要更改的是 "Section Screen" 下面的 SubSection "Display",需要在里边加入一行(大小即拼接后的长度和宽度)"Virtual 2560 1024"2. 重启 xserver3. 运行 xran 阅读全文
posted @ 2007-12-08 23:19 LI Daobing 阅读(235) 评论(0) 推荐(0)