mplayer看奥运

sardis 发表于 2008-08-18 21:55:36

使用mplayer看学校的p2p可以一下子开无数个台,然后同时观看所有节目,实在太爽了。。
默认情况下mplayer调声音会直接调用硬件驱动,这样所有mplayer 的声音会统一变化。
声音问题的解决:
使用softvol选项。可以在.mplayer/config文件中添加:
softvol=1
softvol-max=100

这个所有mplayer就会使用软件音量控制,此时可以使用m按键。。关闭和打开任何一路的声音。。。这样就不会同时
听到所有电视台的声音了。。

使用compiz-fusion的窗口组合功能还可以进一步将所有mplayer的窗口组合起来。。。实现同时移动。

收藏: QQ书签 del.icio.us 订阅: Google 抓虾

DevilsPie 自定义窗口属性

sardis 发表于 2008-08-18 21:52:13

DevilsPie:

A window-matching utility, inspired by Sawfish's “Matched Windows” option and the lack of the functionality in Metacity. Metacity lacking window matching is not a bad thing — Metacity is a lean window manager, and window matching does not have to be a window manager task.

Devil's Pie can be configured to detect windows as they are created, and match the window to a set of rules. If the window matches the rules, it can perform a series of actions on that window. For example, I can make all windows created by X-Chat appear on all workspaces, and the main Gkrellm1 window does not appear in the pager or task list.

这个工具还是很强大,,可以自定义很多程序启动时的属性,如是否最大化,在哪个桌面等等。。
使用指南可详见:http://www.burtonini.com/blog/computers/devilspie

比如让mplayer自动always On Top:
(if
    (matches (application_name) "^MPlayer")
    (begin
        (stick)
        (above)
    )
)
让QTerm到窗口3:
(if
    (matches (application_name) "^QTerm")
    (begin
        (set_viewport 3)
        (maximize)
    )
)
关键词(Tag): ubuntu devilspie
收藏: QQ书签 del.icio.us 订阅: Google 抓虾

Strange error in Debian 4.0: “error executing gpgv”

sardis 发表于 2008-07-30 07:17:20

Strange error in Debian 4.0: “error executing gpgv”

It seems that many people are getting this rather strange error when doing an update in a freshly installed Debian 4.0.

W: GPG error: http://security.debian.org etch/updates Release: Unknown error executing gpgv

The reason for this seems to simply be that the date on the machine is inaccurate. If you do the following (assuming that you have set up your timezone correctly), it should all be good again:

# apt-get install ntpdate
# ntpdate pool.ntp.org
# apt-get update

Have fun.

收藏: QQ书签 del.icio.us 订阅: Google 抓虾

Introduction of boot process

sardis 发表于 2008-07-25 16:17:46

http://tldp.org/LDP/intro-linux/html/sect_04_02.html
收藏: QQ书签 del.icio.us 订阅: Google 抓虾

如何使用date命令

sardis 发表于 2008-07-25 15:41:25

date -s "7 Jul 2008 00:00:00"
收藏: QQ书签 del.icio.us 订阅: Google 抓虾

如何在xfbdev上使用触摸屏

sardis 发表于 2008-07-25 08:32:15

编译的时候加上enable-tslib,然后调用xfbdev的时候使用参数: Xfbdev -mouse tslib,,device=xxxx
收藏: QQ书签 del.icio.us 订阅: Google 抓虾

关于passwd无法找到用户及GLIBC getuwid()找不到用户的问题

sardis 发表于 2008-07-22 09:51:14

这个问题大多数原因是因为/lib/目录下缺少libnss_files 等链接文件。
收藏: QQ书签 del.icio.us 订阅: Google 抓虾

如何让svn使用代理

sardis 发表于 2008-07-17 13:16:31

可以在用户主目录下的.subversion目录中的servers文件中[global]下添加。。proxy设置。。
收藏: QQ书签 del.icio.us 订阅: Google 抓虾

apt-get 如何指定Architecture

sardis 发表于 2008-07-16 14:11:28

这几天在弄maemo的移植,发现自己新建的scratchbox编译环境,总是无法正常使用apt-get连接服务器。。后来终于发现原因是architecture设置不对。maemo需要的是armel或者x86,而我们自己编译环境中默认的是arm.所以一直找不到相应的包。
其实设置arcahitecture很简单,只需要在apt.conf中添加:
APT
{
  Architecture "armel";
}
收藏: QQ书签 del.icio.us 订阅: Google 抓虾

Makefile无法正确执行cp,mkdir等命令的问题

sardis 发表于 2008-07-15 10:31:35

在ubuntu中,makefile中若出现cp {xx,xx} .(应该是copy两个文件) 等描述的语句是无法正常执行。这是因为ubuntu中的/bin/sh是指向dash而非bash。将sh链接到bash命令后就可以正常使用了。
关键词(Tag): makefile
收藏: QQ书签 del.icio.us 订阅: Google 抓虾