ubuntu已经9.10了,我懒得升了,还是9.04,感觉用得还是很顺手的。

1、预备工具 bootchart

$ sudo apt-get install bootchart

2、使用bootchart

安装完后重启系统,即会在/var/log/bootchart目录下生成系统启动过程的时序图我本本的启动时序图见本文最后。

3、禁用bootchart

注意:默认情况下,每次系统启动时bootchartd都会执行,并生成这样一个启动时序图。

禁止自动执行bootchartd的方法很简单,如下:

$ cd /etc/init.d

$ sudo update-rc.d -f stop-bootchart remove

Removing any system startup links for /etc/init.d/stop-bootchart …

/etc/rc2.d/S99stop-bootchart

/etc/rc3.d/S99stop-bootchart

/etc/rc4.d/S99stop-bootchart

/etc/rc5.d/S99stop-bootchart

4、启用bootchart

$ cd /etc/init.d

$ sudo update-rc.d stop-bootchart start 99 2 3 4 5 .

Adding system startup for /etc/init.d/stop-bootchart …

/etc/rc2.d/S99stop-bootchart -> ../init.d/stop-bootchart

/etc/rc3.d/S99stop-bootchart -> ../init.d/stop-bootchart

/etc/rc4.d/S99stop-bootchart -> ../init.d/stop-bootchart

/etc/rc5.d/S99stop-bootchart -> ../init.d/stop-bootchart

 强烈推荐使用牛13的 Dropbox 进行文件同步,注册 Dropbox 并在不同电脑安装 Dropbox 同步程序后,设置一个同步文件夹,就可以让 Dropbox 后台运行了,在该文件夹的任何操作都会同步到其它登录统一帐号的电脑。

Dropbox支持Windows、Linux和Mac OS系统的客户端程序,可以随时随地的同步文件夹,而无需考虑所使用的操作系统。

官方有一个介绍Dropbox功能和使用的短片

修改/etc/apt/source.list,加入以下两行更新源地址:

deb http://linux.getdropbox.com/ubuntu jaunty main
deb-src http://linux.getdropbox.com/ubuntu jaunty main

水木blog贴图不便,找个网上别人的图来展示一下Dropbox吧。

rar格式的比较好办,rar 3.6以后版本对unicode的支持更加智能化。Linux下使用rar进行压缩/解压缩时,可以使用-scuc,来强制指定文件名用unicode编码进行压缩和解压缩。对于zip格式的需要注意,Windows下创建的zip压缩包默认是使用的本地编码。即如果是简体中文的Win系统,则会使用GBK来存储文件名。此时,在Linux下解压缩包含中文文件名的压缩包时,需要在命令行使用参数-O cp936。同理,在Windows下如果用WinRAR来解压缩zip文件倒是没有这个限制,WinRAR会自动检测文件名的编码方式。不建议在Linux下使用gz/tar格式的压缩文件来给Windows机器共享文件,如果gz/tar压缩包中包含中文文件名会导致winrar解压缩包含中文文件名的文件时失败!

 工具链

  • build-essential              Informational list of build-essential packages

手册页

  • manpages-dev              Manual pages about using GNU/Linux for development
  • glibc-doc                      GNU C Library: Documentation
  • manpages-posix-dev    Manual pages about using a POSIX system for development

以上所有工具/文档统一使用apt-get来安装。
IDE

  • 下载编译vim所依赖的所有libs
    $ sudo apt-get build-dep vim
  • http://clewn.sourceforge.net下载vimgdb
  • 按照vimgdb压缩包中的说明,给vim打补丁,编译生成可执行程序

交叉索引/自动补全

  • ctags
    * 配合vim的code_complete插件实现函数的自动补全
    code_complete的函数自动补全demo
    *配合vim的OmniCppComplete插件实现C结构体成员的自动补全
  • cscope
    * 代码阅读
    * 代码交叉索引查找
    # Find this C symbol
    # Find this global definition
    # Find functions called by this function
    # Find functions calling this function
    # Find this text string
    # Find this egrep pattern
    # Find this file
    # Find files #including this file

我用的Ubuntu发行版本是9.04(jaunty),使用了compiz作为系统的window decorator,显卡是Intel的集成显卡,当在Firefox中使用F11进行全屏浏览切换时,会闪现桌面背景一下然后消失。

经过一番Google之后,找到了问题的解决方法:

System -> Preferences -> CompizConfig Settings Manager -> General,去掉Unredirect Fullscreen Windows前面的勾选,退出后即可。


© 2007 猪在笑 | iKon Wordpress Theme by TextNData | Powered by Wordpress | rakCha web directory
登录 | 访问数172209 | 水木BLOG | 水木社区 | 关于我们 | Blog论坛 | 法律声明 | 隐私权保护 | 京ICP证050249号
水木社区Blog系统是基于KBS系统WordPress MU架构的