Archive for ‘Linux’ Category
停止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 [...]
scp -Pport -p account@host:/files/path /local/path
-P(大写)端口参数
-p(小写)保持文件更改及相关的操作属性不变
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"] =~ [...]











