2013年4月

第一步:vim ~/.profile TZ='Asia/Shanghai'; export TZ
第二步:rm /etc/localtime cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
第三步:apt-get install -y ntp 一般情况下/etc/ntp.conf里面包含如下内容:
server 0.debian.pool.ntp.org iburst dynamic
server 1.debian.pool.ntp.org iburst dynamic
server 2.debian.pool.ntp.org iburst dynamic
server 3.debian.pool.ntp.org iburst dynamic
然后查看时间去吧,如果还和本地时间差8个钟头,就重启系统。
over。

MAC OS 10.8.3 因为系统是64位,安装后import wx 提示如下错误:

ImportError: /usr/local/lib/wxPython-unicode-2.8.12.1/lib/python2.7/site-packages/wx-2.8-mac-unicode/wx/core.so: no appropriate 64-bit architecture (see "man python" for running in 32-bit mode)

设置如下即可正常:

在当前用户目录 vim ~/.profile

加入

export VERSIONERPYTHONPREFER32BIT=yes

或者临时在当前终端输入:

defaults write com.apple.versioner.python Prefer-32-Bit -bool yes

在Finder 界面标题栏显示全路径

defaults write com.apple.finder _FXShowPosixPathInTitle -bool TRUE;killall Finder 窗口显示全路径

defaults delete com.apple.finder _FXShowPosixPathInTitle;killall Finder 删除以显示默认

终端显示和linux下面类似的前缀:
vim ~/.profile
加入 export PS1="[u@h W]$"
这样在终端里面就不是一坨老长的了