安装好 Ubuntu 后需要进行如下基本配置。
-
启用 root 账户:
$ sudo passwd root
-
将软件源更改为 163 源,更改后在终端输入:
$ sudo apt-get update
更新源
-
卸载 libreoffice:
$ sudo apt-get purge libreoffice?
-
通过软件更新器更新系统
-
中文字体渲染效果变差,原因为中文本地化后会安装2个字体:fonts-arphic-ukai 和 fonts-arphic-uming,只要将这两个删了就好,所以可以执行代码:
$ sudo apt-get remove fonts-arphic-ukai $ sudo apt-get remove fonts-arphic-uming
-
禁用系统错误报告
将 /etc/default/apport 文件中的 enabled=1 替换成 enabled=0 即可。
-
笔记本挂起后无法唤醒解决方案
-
打开终端在 /etc/pm/sleep.d/ 建立 20_custom-ehci_hcd 文件:
$ sudo gedit /etc/pm/sleep.d/20_custom-ehci_hcd
-
复制下面代码到文件里保存并退出
#!/bin/sh #inspired by http://art.ubuntuforums.org/showpost...0&postcount=19 #...and http://thecodecentral.com/2011/01/18...ot-working-bug # tidied by tqzzaa VERSION=1.1 DEV_LIST=/tmp/usb-dev-list DRIVERS_DIR=/sys/bus/pci/drivers DRIVERS="ehci xhci" # ehci_hcd, xhci_hcd HEX="[[:xdigit:]]" MAX_BIND_ATTEMPTS=2 BIND_WAIT=0.1 unbindDev() { echo -n > $DEV_LIST 2>/dev/null for driver in $DRIVERS; do DDIR=$DRIVERS_DIR/${driver}_hcd for dev in `ls $DDIR 2>/dev/null | egrep "^$HEX+:$HEX+:$HEX"`; do echo -n "$dev" > $DDIR/unbind echo "$driver $dev" >> $DEV_LIST done #for bus in $EHCI_BUSES; do echo -n $bus > /sys/bus/pci/drivers/ehci_hcd/unbind # done done } bindDev() { if [ -s $DEV_LIST ]; then while read driver dev; do DDIR=$DRIVERS_DIR/${driver}_hcd #for bus in $EHCI_BUSES; do echo -n $bus > /sys/bus/pci/drivers/ehci_hcd/bind #done while [ $((MAX_BIND_ATTEMPTS)) -gt 0 ]; do echo -n "$dev" > $DDIR/bind if [ ! -L "$DDIR/$dev" ]; then sleep $BIND_WAIT else break fi MAX_BIND_ATTEMPTS=$((MAX_BIND_ATTEMPTS-1)) done done < $DEV_LIST fi rm $DEV_LIST 2>/dev/null chvt 1 chvt 7 } EHCI_BUSES="0000:00:1a.0 0000:00:1d.0" case "$1" in hibernate|suspend) unbindDev;; resume|thaw) bindDev;; esac
-
改变 20_custom-ehci_hcd 文件权限:
$ sudo chmod 755 /etc/pm/sleep.d/20_custom-ehci_hcd
-
重启
注:本方法貌似是将挂起转换成了锁定屏幕,并没有从根本解决问题,但在目前情况下不失为一种暂时性解决方案。
-