2011年2月23日 星期三

chrome 更改默认搜索语言

由于是外语系统,安装Chrome后,直接在地址栏搜索时,使用的google.com,结果也是英文的。
打开preferences,在basic一栏有相应的设置,但是不知道chrome的配置方法。google 之:
增添(Add)一项搜索项:
keyword 和 name 无所谓,其中的URL改为(增添粗体部分):
{google:baseURL}search?&hl=zh-CN&{google:RLZ}{google:acceptedSuggestion}{google:originalQueryForSuggestion}sourceid=chrome&ie={inputEncoding}&q=%s
然后设为Default
我已經不用Chrome了,改用Firefox了,而且也從ubuntu轉到了Fedora了,所以是否管用不負責了...

Ubuntu 10.10 memo(6): 开机出现 Modprobe Fatal

開機時出現: modprobe: FATAL: Could not load /lib/modules/2.6.35-generic/

$sudo gedit /etc/initramfs-tools/initramfs.conf in the console
將 MODULES=most 改為 MODULES=dep
然後重新安裝 initramfs-tools
$sudo apt-get install initramfs-tools --reinstall

Ubuntu 10.10 memo(5): 解决xps 15无法休眠

休眠时,出现说usb3无法停止的错误。以下方法确实有效:

1. Unbind xhci_hcd from kernel:
First, verify what devices you need to unload from kernel. Simple list the directory "/sys/bus/pci/drivers/xhci_hcd/" and pick all devices id that has names like "XXXX:XX:XX:X". You may have more than one device listed.
Quote:
ls /sys/bus/pci/drivers/xhci_hcd/
2. Create custom file /etc/pm/sleep.d/20_custom-xhci_hcd
Quote:
#!/bin/sh
# File: "/etc/pm/sleep.d/20_custom-xhci_hcd".
case "${1}" in
hibernate|suspend)
# Unbind xhci_hcd for first device XXXX:XX:XX.X:
echo -n "XXXX:XX:XX.X" | tee /sys/bus/pci/drivers/xhci_hcd/unbind
# Unbind xhci_hcd for second device XXXX:XX:XX.X:
echo -n "XXXX:XX:XX.X" | tee /sys/bus/pci/drivers/xhci_hcd/unbind
;;
resume|thaw)
# Bind xhci_hcd for first device XXXX:XX:XX.X:
echo -n "XXXX:XX:XX.X" | tee /sys/bus/pci/drivers/xhci_hcd/bind
# Bind xhci_hcd for second device XXXX:XX:XX.X:
echo -n "XXXX:XX:XX.X" | tee /sys/bus/pci/drivers/xhci_hcd/bind
;;
esac
3. Unload modelue xhci (usb3):
Create a file "/etc/pm/config.d/usb3-suspend-workaround", with the following content:
Quote:
#File: "/etc/pm/config.d/usb3-suspend-workaround".
SUSPEND_MODULES="xhci
4. sudo chmod +x /etc/pm/sleep.d/20_custom-xhci_hcd

Ubuntu 10.10 memo(4): IBUS 设置

添加startup项, command : ibus-daemon -d -x -r