摘要: $ python -VPython 2.6.6$ curl -kL https://raw.github.com/utahta/pythonbrew/master/pythonbrew-install | bash$ . $HOME/.pythonbrew/etc/bashrc$ pythonbrew install 2.7.1$ pythonbrew switch 2.7.1Switched to Python-2.7.1$ python -VPython 2.7.1前提是要先安装curl 阅读全文
posted @ 2013-02-08 22:23 balaamwe 阅读(1499) 评论(0) 推荐(0) 编辑
摘要: Ubuntu Linux 10.04自带的输入法不是很好用,linux下的输入法和windows下的比起来还是有很大差距的,相对来说比较好的输入法我看还是fcitx还不 错,不过在Ubuntu下通过“sudo apt-get install fcitx”命令安装之后会出现方块的乱码。那是因为fcitx安装后默认的中文显示字体设置错误。fcitx的配置文件 是~/.fcitx/config但是直接用 gedit ~/.fcitx/config 打开配置文件显示的也都是乱码,解决办法就是指定编码方式打开“sudo gedit --encoding gbk ~/.fcitx/config” Ubun 阅读全文
posted @ 2013-02-08 22:22 balaamwe 阅读(1338) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/conanboa/archive/2010/03/04/1678402.htmlUbuntu自带的输入法不太尽如人意思,用起来也不方便,我在Ubuntu和FC中都是用Fcitx,很好用!安装配置如下:1. 安装 fcitx sudo apt-get install fcitx2. 配置默认输入法为 fcitx im-switch -s fcitx // 注意无须加 sudo3. 重启 x-window 重启之后,fcitx 输入法应当正常启动,输入条将显示在屏幕最上面,不过输入框中文显示可能是 “口口”,需要小小的改动。4. 修改配置文件 ... 阅读全文
posted @ 2013-02-08 22:21 balaamwe 阅读(383) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/samantha_sun/article/details/63476451,让ubuntu系统支持中文方式:sudo locale-gen zh_CN.GB18030自己man 了几个手册页,这样做就成了。网上有一些文章说要先编辑/var/lib/locales/supported.d/local添加一行:zh_CN.GB18030 GB18030然后执行 locale-gen这样似乎没必要……执行完"sudo locale-gen zh_CN.GB18030"后,程序会自动在/var/lib/locales/supported.d 阅读全文
posted @ 2013-02-08 22:18 balaamwe 阅读(406) 评论(0) 推荐(0) 编辑
摘要: 减少 Linux 电耗,第 1 部分: CPUfreq 子系统http://www.ibm.com/developerworks/cn/linux/l-cpufreq-1/减少 Linux 耗电,第 2 部分: 一般设置和与调控器相关的设置http://www.ibm.com/developerworks/cn/linux/l-cpufreq-2/减少 Linux 耗电,第 3 部分: 调优结果http://www.ibm.com/developerworks/cn/linux/l-cpufreq-3/index.html 阅读全文
posted @ 2013-02-08 21:51 balaamwe 阅读(191) 评论(0) 推荐(0) 编辑
摘要: http://songgz.iteye.com/blog/1139345下面讲述怎样在Ubuntu 11.04上安装mongoDB。1. 添加10gen package到source.list。10gen package 包含最新的mongoDB版本, 在文件“/etc/apt/sources.list”的末尾添加下面的行。Java代码debhttp://downloads-distro.mongodb.org/repo/ubuntu-upstartdist10gen例如:用nano编辑文件“source.list”并像下面一样添加10gen package。Java代码$sudonano/e 阅读全文
posted @ 2013-02-08 21:47 balaamwe 阅读(270) 评论(0) 推荐(0) 编辑