Archive for ‘Linux’ Category

09
Nov

Ubuntu中Flash 10无声音的解决方法

原本安装的是Flash9但总会频繁的把Firefox给搞崩溃,无奈升成Flash10,结果今天Flash播放器又没声音了,搜索了一下发现运行如下命令后就恢复正常了,真是不错
asoundconf set-pulseaudio

09
Nov

Ubuntu声卡独占方法

停止Alsa-util
$ sudo /etc/init.d/alsa-utils stop
编辑配置文件
$ sudo gedit /var/lib/alsa/asound.state
将如下内容添加至文件顶部
# This text should be added to the beginning of
# /var/lib/alsa/asound.state. You only need to add
# it once — it is saved across reboots.
pcm.asymed {
type asym
playback.pcm dmix
capture.pcm dsnoop
}
pcm.default {
type plug
slave.pcm asymed
}
pcm.dmix {
type dmix
ipc_key 5678293
ipc_key_add_uid yes
slave {
pcm ‘hw:0,0′
period_time 0
period_size 128
buffer_size 2048
format S16_LE
rate 48000
}
}
pcm.dsnoop {
type dsnoop
ipc_key 5778293
ipc_key_add_uid yes
slave {
pcm ‘hw:0,0′
period_time [...]

09
Nov

use scp copy remote files

scp -Pport -p account@host:/files/path /local/path
-P(大写)端口参数
-p(小写)保持文件更改及相关的操作属性不变

10
Sep

lighttpd下WordPress的Permalink Rewirte

a Wordpress blog installed in the root of your (sub-) domain:
$HTTP["host"] =~ “{yourdomain}” {
var.app = “{yourdomain}”
accesslog.filename = base + “/logs/” + app + “.access.log”
server.errorlog = base + “/logs/” + app + “.error.log”
load php app
url.rewrite = (
“^/(wp-.+).*/?” => “$0″,
“^/(sitemap.xml)” => “$0″,
“^/(xmlrpc.php)” => “$0″,
“^/(.+)/?$” => “/index.php/$1″
)
}
a Wordpress blog installed in a subfolder (e.g. /blog/)
$HTTP["host"] =~ [...]

    About

    Tag Cloud