上一页 1 2 3 4 5 6 7 8 9 ··· 31 下一页
摘要: http://www.cnblogs.com/jcli/archive/2012/04/09/2439674.html 今天笔记本电脑忘了插电源线,出去一趟后回来发现没电关机了。重启后发现网连不上,提示“网络禁用”,上网搜了下: http://ubuntuforums.org/showthread.php?t=1505217 这里给出了原因: Have you had a failed hibernate that locked up and you had to do a hard reboot?Apparently, the problem is that the Networ... 阅读全文
posted @ 2013-03-04 16:34 balaamwe 阅读(430) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/wanpython/archive/2012/12/02/2798305.htmlpython中的Module是比较重要的概念。常见的情况是,事先写好一个.py文 件,在另一个文件中需要import时,将事先写好的.py文件拷贝 到当前目录,或者是在sys.path中增加事先写好的.py文件所在的目录,然后import。这样的做法,对于少数文件是可行的,但如果程序数目很 多,层级很复杂,就很吃力了。有没有办法,像Java的Package一样,将多个.py文件组织起来,以便在外部统一调用,和在内部互相调用呢?答案是有的。主要是用到python的包的概 阅读全文
posted @ 2013-02-19 16:40 balaamwe 阅读(151) 评论(0) 推荐(0) 编辑
摘要: $ 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 阅读(1321) 评论(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 阅读(405) 评论(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 阅读(190) 评论(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) 编辑
摘要: lshw -C networklshw命令用来显示系统硬件信息,network说明显示网卡信息,-C说明显示详细内容发现有线网卡驱动没有查找网卡型号lspci | grep -i ethernet到Broadcom公司官网http://www.broadcom.com/support/ethernet_nic/netxtreme.php下载驱动下载后得到这样一个文件:linux-3.122g.zip1、解压后得到一个Server文件件,进入/Server/Linux/Driver文件夹cd /Server/Linux/Driver2、tar -xvzf tg3-3.122g.tar.gz3、c 阅读全文
posted @ 2013-02-07 18:58 balaamwe 阅读(1035) 评论(0) 推荐(0) 编辑
摘要: /home/xxx/.vimrcsyntax onfiletype onset history=1000set numberset autoreadset tabstop=4set shiftwidth=4set foldmethod=markerset foldlevel=0set expandtabset showmatchset background=darkset mouse=aset ffs=unix,dos,mac 阅读全文
posted @ 2013-02-07 13:49 balaamwe 阅读(144) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 31 下一页