04月 10th, 2008
#!/bin/bash
wget -q -O- 'http://username:password@members.3322.org/dyndns/update?system=dyndns&hostname=domainname.3322.org'
- username #3322这注册用户名
- password #密码
- domainname.3322.org #申请的二级域名
可以将此代码写入一个单独文件,并设置可执行权限,方便调用,我是放在 ~/bin/dyndns.sh 的。
如果想要自动执行,可以加入 /etc/rc.local (开机自动执行)中或者在 /etc/hourly(每小时执行一次)放个链接。
04月 9th, 2008
执行此代码:
echo 'termcapinfo xterm|xterms|xs|rxvt ti@:te@' > ~/.screenrc
Debian Screen Q&A
—————–
Q: shift+page up in xterm/gnome-terminal/konsole used to let me scroll back a
bit, but now it doesn’t. How can I make it work with scrollback?
A: It doesn’t scrollback consistently because screen (the program) displays in
xterm’s alternate screen buffer.
To have screen use xterm’s normal screen buffer (which includes scrollback),
you can add the following to your .screenrc:
termcapinfo xterm|xterms|xs|rxvt ti@:te@
04月 8th, 2008

mkdir -p ~/.irssi/scripts/autorun
cd ~/.irssi/scripts
wget http://www.irssi.org/scripts/scripts/nickcolor.pl
cd ~/.irssi/scripts/autorun
ln -s ../nickcolor.pl