浏览器FLASH插件的噪音问题 \\\/// flash player’s scratches sound problem on linux

环境声明:64位Debian Wheezy, KDE, Google Chrome, Iceweasel

数月来chrome或者iceweasel播放有些flash视频,声音中会夹杂吱吱噪声,几番尝试都未解决。今天终于知道这是flash播放器调用64位libc的bug【注一】,不仅见于debian,其他发行版也可能出现。解法要点是在浏览器程序命令之前加LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so。例如启动命令可改为:【注二】

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so /usr/bin/google-chrome
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so /usr/bin/iceweasel

因google-chrome和iceweasel两命令实则bash脚本,可直接在该脚本的最后启动行前缀LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so即可。

【注一】:参见
http://comments.gmane.org/gmane.linux.debian.user/409614
http://earth.rockinthebury.com/?p=104
【注二】:其中memcpy-preload.so路径是debian下路径,其他发行版不必相同。

\\\\\\\\\\\\\\\\\\\\\\\\\\\\//////////////////////////
flash player’s scratches sound problem on linux
////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\

Due to Adobe flash player’s bug on calling libc64, when playing some flash video inside chrome and firefox, you may hear scatches noise like me. Before Adobe pulish a patched release the solution is quite simple, just add LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so before browsers’ command. For example:

LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so /usr/bin/google-chrome
LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libc/memcpy-preload.so /usr/bin/iceweasel

Since /usr/bin/google-chrome and iceweasel are shell scripts, your may edit these scripts directly for convenience.

For references, please see
http://comments.gmane.org/gmane.linux.debian.user/409614 and kjearth.rockinthebury.com/?p=104

Posted in Uncategorized | Tagged , , , , , , , , | Leave a comment

KDE 4.6.3的效率 \\\/// Performance of KDE 4.6.3

升级到4.6.3后桌面非常卡,对KDE几乎绝望。后发现几十个akondi进程,每个耗费20MB内存。禁用akonadi自动启动【注一】后,还是卡,再关闭若干用不到的桌面效果后神奇般凑效。如今效果优雅,速度飞快,有直逼xmonad之感。快哉!

【注一】 ~/.config/akonadi/akonadiserverrc中设置StartServer=false

\\\\\\\\\\\\\\\\\\\\\\\\\\\\\///////////////////////////////////
/////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\

Your KDE is slow? Too lagging to bear any more? Then Try to disable autostarting akonadiserver [1] if you do not use kmail, korganizer, etc., and try disable desktop effects you are not using because some of them may be buggy. I do both and now enjoy all those elegant effects and flying speed of xmonad. WOW.

[1] set it inside ~/.config/akonadi/akonadiserverrc: “StartServer=false”

Posted in Uncategorized | Tagged , | Leave a comment

General Public License, Explained

Can GPL’ed softwares be used for commercial purpose? check it below. Mind the bold sentences.

http://articles.sitepoint.com/article/public-license-explained

Simply combining a copyrighted work with another work does not create a derivative work. The original copyrighted work must be modified in some way. The resulting derivative work must itself “represent an original work of authorship.” So if the licensee does not modify the original GPL-licensed program, but merely runs it, he is not creating a derivative work.

Consider the scenario where the Linux operating system, a GPL-licensed program, loads and executes a proprietary program. The Linux program is not modified; it is merely used for the purpose for which it was designed. The proprietary program does not “contain” nor is it “derived from” Linux. Linux does not infect the proprietary program, and the proprietary program does not become subject to the GPL.

Dynamic linking, on the other hand, is a transitory relationship between two programs for which they are each predesigned. The linking program need not be modified to implement the linkage.

Posted in Uncategorized | Tagged , , | Leave a comment

发行版自制工具 \\\//// notes about distribution customization

= FAI =

http://fai-project.org/fai-guide/

= Debian preseeding =

== initrd + genisoimage ==
+ http://www.n0r1sk.com/index.php/Debian_Remaster_Netinstaller_-_Integrate_Firmware_bnx2x_and_Preseed
+ Debian CD/.disk/mkisofs

== preseed + boot params ==
+ Debian Installation Manual

== USB stick ==
+ Debian Install manual: http://www.n0r1sk.com/index.php/Debian_Remaster_Netinstaller_-_Integrate_Firmware_bnx2x_and_Preseed

= Archlinux =
== archiso ==

Posted in Uncategorized | Tagged , , , | Leave a comment