2007年9月16日星期日

mplayer播放vobsub字幕的方法

Well, firstly, as I said, the filename should be without extension. So not film.sub, only film. Then the "no matching language" mesage may mean that you didn't choose language (the subtitle track - there can be multiple languages available, MPlayer must know which one to choose).

So try something like this:

mplayer -vobsub film -vobsubid 0 film.avi

Try various numbers (0-31) for the -vobsubid.

Or, you can specify the language with the -slang option instead, for example :

mplayer -slang pl,en -vobsub film film.avi

如果用 vobsub 字幕,最好配合 -vf expand, 调整字幕的位置,like

mplayer -vobsub gonewithwind -vf expand=0:-60:0:0 -subpos 70 gonewithwind.avi

用j键打开和关闭字幕(如果字幕没有出现的话)


2007年9月2日星期日

TrueCrypt的图形前端

具体安装过程如下:


wget http://www.truecrypt.org/downloads/truecrypt-4.3a-ubuntu-7.04-x86.tar.gz


wget http://bockcay.de/stuff/programs/forcefield/forcefield_current_all.deb


sudo apt-get install python-crack python-pexpect cracklib2


tar xfz truecrypt-4.3a-ubuntu-7.04-x86.tar.gz


sudo dpkg -i truecrypt-4.3a/truecrypt_4.3a-0_i386.deb


rm -rf truecrypt-4.3a truecrypt-4.3a-ubuntu-7.04-x86.tar.gz


sudo dpkg -i forcefield_current_all.deb


前提:for fresh feisty, universe repository must be enabled


测试成功,有待继续体验。详细说明 http://bockcay.de/forcefield/wiki

带个tor还真是方便

1.sudo apt-get install tor privoxy

2.修改privoxy的配置文件: ( /etc/privoxy/config )
前边加上:
代码:
forward-socks4a / 127.0.0.1:9050 .
3.改完重启 Privoxy:
代码:
/etc/init.d/privoxy restart

引自 http://forum.ubuntu.org.cn/about62144-0-asc-0.html

安装checkgmail提示的gtk2:sexy

1. Install Perl ExtUtils dependencies:
$ sudo apt-get install libextutils-depends-perl libextutils-pkgconfig-perl

2. Install Libsexy, including header file:
$ sudo apt-get install libsexy2 libsexy-dev
The header files will pull in many other libraries.

3. Install Gtk2-Sexy, the Perl bindings for Libsexy
$ sudo perl -MCPAN -e 'install Gtk2::Sexy'

4. Install Crypt:Simple:
$ sudo perl -MCPAN -e 'install Crypt::Simple'

按照上述步骤,checkgmail的提示不缺东西了 ,可是鼠标闪过checkgmail的tray icon就完蛋了,cpu 100%,而且checkgmail也罢工了,郁闷 :P