what in OpenBSD

Tags: OpenBSD

Shell:~ >: wh
what           whence         whereis        which-command  who            whois         
whatis         where          which          while          whoami

Shell:~ >: whereis what
/usr/bin/what

Shell:~ >: cd /usr/bin

Shell:/usr/bin >: what what
what
     Copyright (c) 1980, 1988, 1993
    $OpenBSD: what.c,v 1.11 2003/07/10 00:06:52 david Exp $
   
Shell:/usr/bin >: whatis what
what (1) - show what versions of object modules were used to construct a file

Shell:/usr/bin >: whatis what whatis whence where whereis which which-command while
what (1) - show what versions of object modules were used to construct a file
whatis (1) - describe what a command is
whereis (1) - locate programs
which (1) - locate a program file (or files) in the path
Converts a file with native (1) -encoded characters (characters which are non-Latin 1 and non-Unicode) to one with Unicode-encoded characters.
whence: not found
where: not found
which-command: not found
while: not found

Shell:/usr/bin >: whereis what whatis whence where whereis which which-command while
/usr/bin/what
/usr/bin/whatis
/usr/bin/whereis
/usr/bin/which

Shell:/usr/bin >: alias | grep wh
which-command=whence

whence, where, while inside zsh.

No Comments 2008-12-12 23:53:37 by No.0023

What's New in Python3.0

Tags: Python

原文:What's New in Python 3.0

这篇文章主要介绍了相比于python2.6,python3.0的新特性。更详细的介绍请参见python3.0的文档。

Common Stumbling Blocks

本段简单的列出容易使人出错的变动。

  • print语句被print()函数取代了,可以使用关键字参数来替代老的print特殊语法。例如:
    1. Old: print "The answer is", 2*2
    2. New: print("The answer is", 2*2)
    3. Old: print x,                                      # 使用逗号结尾禁止换行
    4. New: print(x, end=" ")                     # 使用空格代替换行
    5. Old: print                                         # 输出新行
    6. New: print()                                    # 输出新行
    7. Old: print >>sys.stderr, "fatal error"
    8. New: print("fatal error", file=sys.stderr)
    9. Old: print (x, y)                               # 输出repr((x, y))
    10. New: print((x, y))                           # 不同于print(x, y)!
    你可以自定义输出项之间的分隔符:
         print("There are <", 2**32, "> possibilities!", sep="")
    输出结果是:
         There are <4294967296> possibilities!

    注意:
    1. print()函数不支持老print语句的“软空格”特性,例如,在python2.x中,print "A\n", "B"会输出"A\nB\n",而python3.0中,print("A\n", "B")会输出"A\n B\n"
    2. 学会渐渐习惯print()吧!
    3. 使用2to3源码转换工具时,所有的print语句被自动转换成print()函数调用,对大项目,这是无需争论的。
  • python3.0使用字符串(strings)和bytes代替Unicode字符串和8位字符串,这意味着几乎所有使用Unicode编码和二进制数据的代码都要改动。这个改动很不错,在2.x的世界里,无数的bug都是因为编码问题。
  • map()和filter()返回迭代器(iterators)
  • dict方法keys(),items(),values()返回视图(同样是迭代器)而不是列表(list)
  • 内建的sorted()方法和list.sort()方法不再接受表示比较函数的cmp参数,使用key参数代替。
  • 1/2返回浮点数,使用1//2能得到整数。
  • repr()函数对于long整数不再包含拖尾的L,所以不加判断的去除最后一个字符会导致去掉一个有用的数字。

String and Bytes

  • 现在只有一种字符串:str,它的行为和实现都很像2.x的unicode串。
  • basestring超类已经去掉了,2to3工具会把每个出现的basestring替换成str。
  • PEP3137:新类型bytes,用来表示二进制数据和编码文本,str和bytes不能混合,需要时,必须进行显示的转换,转换方法是str.encode()(str->bytes)和bytes.decode()(bytes->str).
  • 在原始字符串(raw strings)中所有反斜线都按字面量解释,不再特殊处理Unicode转义字符。
  • PEP3112:bytes字面量,例如b"abc",创建bytes实例。
  • PEP3120:默认源文件编码为UTF-8
  • PEP3131:可以使用非ASCII标识符(然而,除了注释中贡献者的名字之外,标准库仍然只包含ASCII)
  • PEP3116:新的IO实现,API几乎100%向后兼容,二进制文件使用bytes代替strings
  • 去除了StringIO和cStringIO模块,取而代之的是io.StringIO或者io.BytesIO

PEP3101:字符串格式化的新方法

  • str.format方法(原文提到替代了%操作符,实际上,format方法和%的用法差别很大,各有所长)。

PEP3106:修补了dict的keys(),items(),values()方法

  • 删除了dict.iterkeys(),dict.itervalues()和dict.iteritems()
  • dict.keys(),dict.values()和dict.items()返回dict相关数据的引用

PEP3107:函数注解(Function Annotations)

  • 注解函数参数和返回值的标准化方法

Exception Stuff

  • PEP352:异常类必须继承自BaseException,它异常结构的基类。
  • 移除了StandardError
  • Dropping sequence behavior (slicing!) and message attribute of exception instances.
  • PEP3109:抛出异常:现在必须使用raise Exception(args)而不是原来的raise Exception, args
  • PEP3110:捕获异常,现在必须使用except Exception as identifier而不是原来的except Exception, identifier
  • PEP3134:异常链(Exception chain)。
  • 改良了一些windows不能加载模式时的异常信息,具有本地化处理。

New Class and Metaclass Stuff

  • 移除了classic class
  • PEP3115:新的metaclass语法
  • PEP3119:抽象基类。
  • PEP3129:类包装。
  • PEP3141:数字抽象基类

其他的语言变化

这里列出大多数的python语言核心和内建函数的变化。

  • 移除了backticks(使用repr()代替)
  • 移除了<>(不等号,使用!=代替)
  • as和with变成了关键字
  • True,False和None变成了关键字
  • PEP237:long不存在了,只有int,它和原来的long一样。不再支持以L结尾的数字字面量。移除sys.maxint,因为int现在已经是无限大了
  • PEP238:int相除,返回float
  • 改变了顺序操作符的行为,例如x<y,当x和y类型不匹配时抛出TypeError而不是返回随即的bool值
  • 移除了__getslice__,语法a[i:j]被解释成a.__getitem__(slice(i,j))
  • PEP3102:keyword-only arguments.在函数参数列表中,出现在*args之后的命名参数只能使用"关键字参数"的形式调用
  • PEP3104:nonlocal声明。使用nonlocal可以声明一个外部变量(不是global变量)
  • PEP3111:raw_input()改名为input(),也就是说,新的input()函数从标准输入设备(sys.stdin)读取一行 并返回(不包括行结束符),如果输入过早终止,该函数抛出EOFError,如果想使用老的input(),可以使用eval(input())代替。
  • xrange()改名为range(),range()现在不是产生一个列表(list),而是一个迭代器。
  • PEP3113:移除了"元组参数拆包(tuple parameter unpacking)"。这种写法已经不行了:
    def foo(a, (b, c)):...
    现在要这样写:
    def foo(a, b_c):
          b,c = b_c
  • PEP3114:next()重命名为__next__(),新的内建函数next()可以调用一个对象的__next__()方法。
  • PEP3127:新的八进制字面量,二进制字面量和bin()函数。你应该写0o666而不是0666,oct()函数也做了响应的改动。同样,0b1010等价于10,bin(10)返回"0b1010"。0666这种写法现在是错误的。
  • PEP3132:支持迭代器拆包。现在你可以这样写:
    a, b, *rest = some_seqence
    甚至象这样:
    *rest, a = stuff
    一般情况下,rest对象是list,而等号右边的对象是可迭代的
  • PEP3135:新的super()。你可以不适用任何参数调用super(),正确的参数和实例会被正确选择。如果使用参数,它的行为不变,和以前一样。
  • zip(),map(),filter()返回迭代器。
  • 移除了string.letters和它的朋友们(string.lowcase和string.uppercase),现在上场的是string.ascii_letters等
  • 移除了apply(),callable(),exefile(),file(),reduce(),reload()
  • 移除了dict.has_key()。使用in操作符进行测试
  • exec语句没有了,现在是exec()函数
  • 移除了__oct__()和__hex__()特殊方法。oct()和hex()方法使用__index__()
  • 移除了对__members__和__methods__的支持
  • nb_nonzero重命名为nb_bool,__nonzero__()重命名为__bool__()

Optimizations

  • 一般情况下,python 3.0比python 2.5慢33%左右。不过仍有提升空间。

模块变动(新的,改进的和废弃的)

  • 移除了cPickle模块,可以使用pickle模块代替。最终我们将会有一个透明高效的模块。
  • 移除了imageop模块
  • 移除了audiodev, Bastion, bsddb185, exceptions, linuxaudiodev, md5, MimeWriter, mimify, popen2, rexec, sets, sha, stringold, strop, sunaudiodev, timing和xmllib模块
  • 移除了bsddb模块(单独发布,可以从http://www.jcea.es/programacion/pybsddb.htm获取)
  • 移除了new模块
  • os.tmpnam()和os.tmpfile()函数被移动到tmpfile模块下
  • tokenize模块现在使用bytes工作。主要的入口点不再是generate_tokens,而是tokenize.tokenize()

Build and C API Changes

Python&rsquo;s build process和C API的改动包括:

  • PEP3118:新的Buffer API
  • PEP3121:扩展模块的的Initialization & Finalization
  • PEP3123:使PyObject_HEAD符合标准C

其他的改动和修复

在源码里分散一系列的改进和bug修复。changes log表明,从2.6到3.0,有XXX个改动和YYY的bug修复。

 

from http://jjz.javaeye.com/blog/259156

No Comments 2008-12-10 10:02:46 by No.0023

BSD发行版:BSDanywhere 4.4发布

Tags: OpenBSD

BSDanywhere是基于OpenBSD的自启动运行光盘镜像。它包含了整个OpenBSD基础系统(不含编译器),并带有一份图形桌面、一套非典型 的软件收藏、自动硬件检测,以及对很多显示卡、声卡、SCSI、USB设备及其他外设的支持。BSDanywhere可以作为一份教学UNIX系统,一套 修复环境,或者是硬件测试平台来使用。
Stephan Rickauer has announced the release of BSDanywhere 4.4, a live CD based on the latest stable version of OpenBSD: "We are pleased to announce the immediate availability of BSDanywhere 4.4 - Enlightenment at your fingertips. As always, we release our OpenBSD based images in two flavours: i386 (32bit) and amd64 (64bit). Here's a quick summary of the not-to-intense changes since 4.3: removed packages: GIMP, AbiWord, Audacious, Mutt, rsnapshot, Darkstat - we are really limited in space that's why we decided to concentrate on the primary focus of BSDanywhere, which is hardware testing and system rescue; added packages: Dnstop, dnstracer; we now enabled 'machdep.kbdreset' which permits console CTRL-ALT-DEL to do a nice halt; new artwork." Read the rest of the release announcement for further information. Download (MD5): bsdanywhere44-i386.iso (612MB), bsdanywhere44-amd64.iso (683MB).

No Comments 2008-12-09 17:34:54 by No.0023

Python 3.0 on OpenBSD

Tags: Python, OpenBSD

Shell:~/tools/Py3k/bin >: ./python3.0
Python 3.0 (r30:67503, Dec  4 2008, 23:27:21)
[GCC 3.3.5 (propolice)] on openbsd4
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.uname()
('OpenBSD', 'obsd.org', '4.4', 'GENERIC.MP#0', 'i386')
>>> import sys
>>> for line in sys.path: print(line)
...

/home/Py3k/mylibs/lib/Python
/home/Py3k/tools/Py3k/lib/python30.zip
/home/Py3k/tools/Py3k/lib/python3.0
/home/Py3k/tools/Py3k/lib/python3.0/plat-openbsd4
/home/Py3k/tools/Py3k/lib/python3.0/lib-dynload
/home/Py3k/tools/Py3k/lib/python3.0/site-packages
>>>

 

 

No Comments 2008-12-04 23:35:58 by No.0023

Python 3.0 Release

Tags: Python

Python 3.0

Python 3.0 (a.k.a. "Python 3000" or "Py3k") is a new version of the language that is incompatible with the 2.x line of releases. The language is mostly the same, but many details, especially how built-in objects like dictionaries and strings work, have changed considerably, and a lot of deprecated features have finally been removed. Also, the standard library has been reorganized in a few prominent places.

Here are some Python 3.0 resources:

Please report bugs at http://bugs.python.org

Python 3.0 Release: 03-Dec-2008

Download

This is a proeuction release; we currently support these formats:

MD5 checksums and sizes of the released files:

ac1d8aa55bd6d04232cd96abfa445ac4  11191348  Python-3.0.tgz
28021e4c542323b7544aace274a03bed 9474659 Python-3.0.tar.bz2
054131fb1dcaf0bc20b23711d1028099 13421056 python-3.0.amd64.msi
2b85194a040b34088b64a48fa907c0af 13168640 python-3.0.msi

Documentation

No Comments 2008-12-04 10:16:42 by No.0023

GAE SDK 1.1.6 Released

Tags: GAE

Today we released the 1.1.6 SDK. You can download it on our Google hosting project, and peruse the release notes for more details on the release.

This release contains some notable new features, including several to our datastore:

  • You can now sort and filter on an entity's key
  • You can now delete an entity directly using its key, without fetching the Model object.
  • If you specify a key_name when creating a Model, its key will now be available before you call put()
  • URLFetch calls made in the SDK now have a 5 second timeout, matching production

Also, it contains a number of issue fixes, including the following:

As always, any and all feedback is welcome in the Google Group!

No Comments 2008-11-21 22:21:43 by No.0023

Django 1.0.2发布

Tags: Django

在上周Django 1.0.1发布之后不久,有人发现用于生成release的打包脚本漏掉了几个Django源码目录,这不仅会到影响单元测试,而且至少有一个被遗漏的文件影响到Django的正常使用。于是Django工作组在11月18号发布Django 1.0.2修正了这些问题。

点击此处下载Django 1.0.2

 

from http://www.onlypython.com/post/4324/

1 Comment 2008-11-20 09:39:05 by No.0023

Django 1.0.1发布

Tags: Django

按照发布计划Django 1.0.1于11月15号正式发布。此版本修改了Django 1.0一些bug。

点击此处下载。

No Comments 2008-11-17 12:42:52 by No.0023

tar -j for openbsd

Tags: OpenBSD

TAR(1)                     OpenBSD Reference Manual                     TAR(1)

NAME
     tar - tape archiver

SYNOPSIS
     tar {crtux}[014578befHhjLmOoPpqsvwXZz]
         [blocking-factor | archive | replstr] [-C directory] [-I file]
         [file ...]
     tar {-crtux} [-014578eHhjLmOoPpqvwXZz] [-b blocking-factor] [-C
         directory] [-f archive] [-I file] [-s replstr] [file ...]

DESCRIPTION
     The tar command creates, adds files to, or extracts files from an archive
     file in ``tar'' format.  A tar archive is often stored on a magnetic
     tape, but can be stored equally well on a floppy, CD-ROM, or in a regular
     disk file.
...

-j      Compress archive using bzip2.  The bzip2 utility must be in-
             stalled separately.
...

已经支持bzip2了。

No Comments 2008-11-14 00:46:38 by No.0023

openjdk for openbsd

Tags: OpenBSD

Shell:~ >: uname -a
OpenBSD obsd.org 4.4 GENERIC.MP#0 i386
Shell:~ >: java -version
openjdk version "1.7.0-internal"
OpenJDK Runtime Environment (build 1.7.0-internal-naddy_12_aug_2008_23_14-b00)
OpenJDK Client VM (build 12.0-b01, mixed mode)
Shell:~ >: pkg_list jdk
jdk-1.7.0.00b24p2.tgz
Shell:~ >:

No Comments 2008-11-14 00:44:51 by No.0023

InfoQ: 架构师(试刊第二期)

Tags: others

架构师(试刊第二期)

作者 InfoQ中文站 发布于 2008年11月12日 上午12时46分

社区Architecture,Agile,Java,Ruby,.NET,SOA主题InfoQ声明,企业架构标签InfoQ,《架构师》月刊

篇首语
──由壹基金的专业性想到的

在西安出差时,恰逢凤凰卫视播放李连杰壹基金会为其评选出来的“典范工程”颁奖。观看整个晚会过程后,再联想到其一直以来所坚持的专业性,我不禁浮想联翩,想得最多的自然还是目前国内技术社区的发展状况。

记得在汶川大地震时,李连杰的壹基金团队也参与了救援,不过与其他类似的救援组织有所不同的是,与他们同去的还有德勤会计师事务所。据报道,其实从 壹基金成立的那天起,他们就特别注重对基金的专业化管理,从而使得自己在民众的心中更显中立和公正性。相比于那些屡屡爆出救灾资金被私吞或者被滥用的其他 基金会而言,壹基金的做法无疑高人一筹。而在这次的“典范工程”颁奖晚会上,壹基金再次彰显其公正的一面,为了选出最具有说服力的“典范”,他们邀请了多 位口碑好、专业强的评委,如希望工程创始人、南都基金会秘书长徐永光等,面试过程也是非常严格。事实证明这些站在讲台上的组织确实都令人折服!

以他人之例,可以反思我们手中所做的事情。做网站难,做技术社区更难,我想这是很多社区创始人的同感。当然其中有很多客观的原因,比如相比于欧美国 家,我们的IT产业大环境还不是很理想,专业人群的基数也不够大等等。但我想提醒的还是主观方面的原因,尤其是专业性方面。以从事技术社区的编辑记者为 例,我们的很多“专业人士”对技术缺少最基本的了解,所以在一些专家见面会上,常见我们的记者大人们问出一些让人哭笑不得的问题。究其客观原因,是因为技 术社区的特点决定了服务于这个社区的编辑记者需要具备技术和文学的复合能力;究其主观原因,是因为这样的复合人才确实稀少,为了缩减成本,某些社区只好退 而求其次,请一些文采略好但不懂技术的人来担大梁。并不是说这样就不可以,只是专业性也许稍微差了点。

再说一下国内技术社区的特点,“大而全”是其中多数社区的一个特点,原因其实也很简单,商务所迫或者追逐利益所致。只要是客户感兴趣的,都马上设置 相应的栏目。殊不知,专业的内容如果没有专业的人才来打理,那结果只能是遗笑大方。那么有没有什么解决的办法?研究一下壹基金的架构,人家主动邀请德勤来 做监督,我们是不是也应该给自己带个紧箍咒什么的,让自己将主要精力就放在对读者最有价值的事情上?这样一旦脑袋发热,紧箍咒就能提醒一下“要专注从事 ”。想起在做InfoQ中文站的过程中,我常想如果中文站也如国内其他的网站那么大该多好。就此事与Floyd聊起时,他常会嘿嘿一笑说,“我们目前只关 注企业软件开发领域”。现在反思,也许这就是为什么InfoQ在不到两年半的时间里就能为全球中高端技术人员所熟知和喜欢的原因吧。

回到本期的《架构师》试刊第二期,相比于上期,我们在内容的选择安排和版式上都根据读者的意见重新做了修正,比如将“人物专访”放在最前位置,以使 读者在最短的时间内阅读到技术专家的观点;将“新品推荐”的内容进行缩减,仅提供摘要性文字以提高信息量等;将段间距进行调整,以使得阅读过程更加轻松 等。“细节决定成败”,我们希望基于InfoQ中文站的专业内容,《架构师》能够一步步成为中文社区架构师、项目经理、团队领导者和高级软件工程师等朋友 喜欢的电子刊物!

霍泰稳

免费下载阅读

欢迎您 免费下载这本书(PDF) ,并为我们提出宝贵的建议。

No Comments 2008-11-13 19:17:23 by No.0023

OpenBSD 相册

Tags: OpenBSD

http://www.douban.com/photos/album/10925176/
http://www.douban.com/photos/album/12598413/
http://www.douban.com/photos/album/12598603/
http://www.douban.com/photos/album/12625183/

No Comments 2008-11-10 09:06:04 by No.0023

The Best Cheat Sheets for Web Developers

Tags: dev

1. jQuery Cheat Sheet

jQuery Cheat Sheet

2. Mootools Cheat Sheet

Mootools Cheat Sheet

3. Ruby on Rails Cheat Sheet

Ruby on Rails Cheat Sheet

4. Django Cheat Sheet

Django Cheat Sheet

5. YUI Cheat Sheet

YUI Cheat Sheet

6. Prototype Cheat Sheet

Prototype Cheat Sheet

7. Scriptaculous Cheat Sheet

Scriptaculous Cheat Sheet

8. extJs Cheat Sheet

extJs Cheat Sheet

9. Javascript Cheat Sheet

Javascript Cheat Sheet

10. HTML Cheat Sheet

HTML Cheat Sheet

11. CSS Cheat Sheet

CSS Cheat Sheet

12. Mod_Rewrite Cheat Sheet

Mod_Rewrite Cheat Sheet

13. Regular Expressions Cheat Sheet

Regular Expression Cheat Sheet

14. PHP Cheat Sheet

PHP Cheat Sheet

15. MySQL Cheat Sheet

MySQL Cheat Sheet

16. SEO Cheat Sheet

SEO Cheat Sheet

 

 

No Comments 2008-11-06 17:34:21 by No.0023

gcc

Tags: dev

八月初 Mark Mitchell 发布了 GCC 4.3.2 版本,GCC是GNU编译集合,包括C, C++, Objective-C, Fortran, Java, and Ada编译器等。从这里下载最新的GCC: http://gcc.gnu.org/mirrors.html



让我们了解一下GCC 4:

在过去的几年中,GNU Compiler Collection (GCC)一直在做GCC 3 到 GCC 4 的主要版本转换。GCC 4是一个重要的版本,GCC 4 新增了很多新的最优化框架(和新的中间代码生成),新的架构和语言支持,多种新属性和选项变化。了解GCC 4新的属性和它们的优点很有必要。

GCC是所有开发的基石,不管是对开源世界和闭源世界。它让操作系统和架构能够运行。当一个新的处理器出现,它必须依赖一个GCC版本支持(GCC在后台为它提供代码生成)。GCC也让开源操作系统Linux得以运行,让Linux进入嵌入开发领域成为现实……

但是GCC并不是静止的,新的处理器架构不停的出现,新的研究发现更好的方式来生成最优化代码,所以GCC也在一直在发展中,并且成功的发布了新的主要版本GCC 4。本文将浏览GCC的核心修改,让你熟悉新的编译标准。

首先简短复习一下的GCC历史:

GCC 最初是GNU C Compiler,由大名鼎鼎的 Richard Stallman 同学 在1987年首次发布。Richard开始这个项目于1984年,期望建立一个免费的C编译器,能够被使用和修改。GCC 最初跑在早期的Sun和DEC VAX系统上。

作为一个开源的编译器(意味着源代码是公开的),其他开发者也在热心帮助修复bug,更重要的是升级GCC支持新的语言和其他目标架构。不久以后,它的名称变成GNU Compiler Collection,它已经支持多种语言和最流行的架构。

GCC发布历史:



今天GCC已经成为最流行的编译器,支持Ada, Fortran, the Java&trade; language,  C 的变种 (C++ 和 Objective-C),以及覆盖了最大范围的处理器架构(支持30种处理器家族),GCC源代码移植到了超过60种平台,也是目前现存的最复杂的开源 系统,GCC现在拥有大概150万行源代码。

在开始之前简单了解GCC的基本架构:

编译器是一种pipeline管道架构,通过不同的层次为不同类型的数据进行通讯(见下图)。前台编译器针对特殊语言,包括特定语言的语法分析 器,解析为树状结构和中间状态代码(使用注册转换语言Register Transfer Language:RTL)。后台编译器提供与语言无关的解析和针对特定目标架构的创建结构。为了达到这个目标,最优化使用RTL创建更快速或者更简洁代 码(如果可能,两者同时兼顾)。最优化的RTL被代码生成器获取,然后生成目标代码。



GCC 4的核心转换:

GCC 4 提供许多标准编译器组件的修改,最大更改是通过引进树静态单一分配(tree Static Single Assignment:SSA)格式对代码最优化的支持。GCC 4 对于 警告warning和错误error的展示是非常彻底的(事实上,一些特定的警告信息在GCC 4中已经显示为错误)。GCC 4的一个退步是它并不是GCC 3创建对象的字节编译,这意味着GCC 3编译的代码必须通过GCC 4重新编译。不幸的是,这样的成本就要增加。

让我们看看GCC 4 的主要进步。

4.0 发布系列:

4.0系列(4.0.4是最后版本),是GCC 进入 第4版的第一步,所以并不推荐使用在生产环境中,这个版本包含很多修改,一个是前面介绍的树静态单一分配SSA,另外一个是autovectorization自动矢量化。

在GCC 4之前,中间代码名叫Register Transfer Language (RTL),RTL是一个低层的代码,非常类似于汇编语言(从LISP S-expressions获得灵感)。RTL的问题是它对转换成最终目标提供了优化,确失了解释信息。当需要支持更好的分析和优化的时候,Tree SSA 设计用来同时独立于语言和目标。

Tree SSA 引入了两个新的中间代码,第一个叫 GENERIC ,这是一个普通的树结构,用来形成前台树格式。 GENERIC 树转换为 GIMPLE格式和子序列控制流图来支持基于SSA的最优化。最后SSA树转换为RTL,这用于后台来做最终目标的代码生成。简单的说,就是,引入 Tree SSA的好处就是提供新的中间代码让高层和低层的最优化都做到最好。

GCC 4另外一个有趣的变化是添加了loop vectorizer 循环矢量(也是基于Tree SSA框架)。Autovectorization 自动矢量化让编译器标识代码内的分级进程循环,让目标处理器能够获得矢量指令的优势。结果是获得更加严格和高效的目标代码。另一个基于循环优化的是 Swing Modulo Scheduling (SMS),通过减少构造层平行数量来构建最小循环指令管道。

最后 4.0 系列引入很多C 和 C++ 修改,新的Fortran 前台,支持Fortran 90 和 95 (而不是古老的Fortran 77,GCC 3支持)。新的Ada 2005功能,支持更多Ada新的架构。

4.1发布系列:

改进的属性支持和更精确的分支可能性预判。两个很有用的优化是更好的内联支持和减少本地指令缓存能力。如果函数是内联方式,编译器不再频繁执行。 而且热点调用区域将更可能通过内联来保持代码数量尽可能小,获得内联函数的优势。GCC能够帮助分段函数进入热点或者冷静区域。保持热点函数放在一起,获 得更好的指令缓存。

前台做了系列更新,包括支持Objective-C++。同时有大量针对java核心库(libgc)的更新。后台引入对IBM&reg; System z&trade; 9-109 处理器支持,包括支持128位指令代码,Electronics Engineers (IEEE)浮点数,和内建原子内存存取能力。如果这些还不够吸引眼球,那么后台现在还能够发出保护堆栈攻击的指令,这意味着,如果缓冲buffer溢出 被检测到,将重新排列保护指针不会崩溃。一些内建功能也被更新,用来保护缓冲buffer不会被过量请求占用。

4.2发布系列:

4.2版本继续支持更好的优化,同时包括语言和处理器架构的进步。后台更新包括对Sun的UltraSPARC T1处理器支持(代码名称Niagara),同时支持Broadcom的SB-1A MIPS 芯片。前台修补了C++可视化处理机制,支持Fortran 2003 输入/输出流扩展。但是4.2最有趣的更新是添加了C,C++和Fortran编译器的OpenMP功能。

OpenMP是一个多线程实现,允许编译器生成平行任务和数据代码。

OpenMP一个概念:代码能够通过区域注释,这块区域平行处理能够被处理器直接使用。代码转换成多线程程序,用来处理代码块存在,然后在代码块结束后进入每个线程。

下图提供了处理器如何工作的示例。



4.3发布系列:

这个发布系列显示功能和支持架构的加速进步 (比如很多陈旧的架构支持被删除)。新的语言支持,比如添加对Fortran 2003支持。新的处理器支持,包括支持Coldfire 处理器家族, IBM System z9 EC/BC 处理器,Cell broadband engine 晶格宽带引擎架构的互协作处理器单元(Synergistic Processor Unit :SPU),支持SmartMIPS等。你将发现Thumb2的编译和库支持(简洁的ARM指令)以及对ARMv7架构支持,支持 Core2 处理器和Geode处理器家族。

4.3 发布以后:

已经开始4.4版本开发了,这个版本即将发布,在4.4版本中OpenMP的3.0版本规格将应用到C, C++, 和 Fortran中。

编译器现在允许你定义一个在函数层进行优化的级别,(代替文档层,原先是缺省设置)。这个功能提供优化参数,提供独立的选项做优化。

最后处理器将添加Picochip支持,这是一个16位多核处理器。

GCC的未来?

GCC的未来是光明的。GCC将支持更多的处理器和架构,GCC几乎涵盖整个开发语言。开发方面还支持一系列不同的语言,比如 Mercury,GHDL(一个用于VHDL的GCC前台语言),和 统一的并行C语言(Unified Parallel C language :UPC)。

由于GCC的进步,几乎所有的软件将从GCC的进步中获得好处(从Linux和Berkeley软件到Apache等),通过GCC 4进行软件编译将更加简洁和快速。

来自:ibm.com

No Comments 2008-11-06 17:27:32 by No.0023

firebug

Tags: dev

Firefox扩展Firebug是一个全功能的Web 应用程序调试器,可以协助Web黑客洞悉复杂的Web 应用程序的内部工作机制。它有两种版本:一种可以跨浏览器使用的组件Firebug Lite,另一种是专用于专用于火狐浏览器的扩展Firebug。本文将着重向读者介绍前者的用法。

一、简介

浏览器扩展Firebug提供了一个集成环境,我们能够在其中对感兴趣的Web 应用程序进行的全面的分析(参见图1)。它提供了许多功能,可以探索DOM结构、动态地修改HTML 代码、跟踪和调试JavaScript代码、监视网络请求和响应等等。

 

 
图1  浏览器扩展Firebug

二、利用Firebug控制台劫持函数

Firebug控制台可以用来计算表达式。作用如同命令行JavaScript解释器。在控制台中,我们不仅可以输入JavaScript表达式(例如,Alert (&lsquo;Message&rsquo;);),而且还能接收错误消息。如下图所示:

 
图2  Firebug控制台

您也可以动态插入代码,举例来说,如果要测试一个Web 应用程序,该程序有一个从窗口对象导出的方法,称为performRequest。应用程序使用该方法从客户端发送请求到服务器。我们更感兴趣的可能是这个函数请求的信息,所以我们将在控制台中提供下列命令来劫持该方法:

window._oldPerformRequest = window.performRequest;

window.performRequest = function () { console.log(arguments);

window._oldPerformRequest.apply(window, arguments) }



上述代码实际上将用我们自己的函数替换原先的performRequest函数,我们的函数执行时将在控制台中列出所有参数。当函数调用结束时,我 们将代码流程重定向到oldPerformRequest定义的原先的performRequest上,它将执行要求的操作。现在,我们已经明白如何在无 需改写Web 应用程序的方法的情况下来劫持函数。

二、利用Firebug浏览和动态修改HTML元素

许多Web开发人员和设计者经常忽视HTML 源代码的可读性,尤其是用所见即所得的编辑器产生的页面。这会加剧我们审查其源代码的难度,这时,我们就需要使用其他一些工具来重新组织页面的各个部分。当然,我们可以使用DOM Inspector来探索这些结构欠佳的HTML 源代码,而Firebug也能达到同样的目的,下面是Firebug的HTML视图。

 

 
图3   Firebug的HTML视图

如图3所见,可以选择并展开当前视图中的每个HTML 元素。当鼠标停在某个元素上的时候,浏览器就会高亮显示对应元素。在右边的窗口,显示了关于式样、布局和DOM 特性的信息。DOM信息极为有用,当您想查询各种不同类型的属性可用时,几乎与DOM Inspector一样。此外,我们也可以用它探索应用程序运行机制。举例来说,AJAX应用开发人员经常会为图像、链接及其他类型的html 元素添加附加的属性,而这些属性和方法可能是应用程序逻辑的关键部分。

HTML视图还能用于动态地修改应用程序文档的结构。我们可以通过按下键盘上的删除键来删除所选定的元素,或者修改各个元素的属性,方法是在元素属 性上双击并设置它的值。注意,HTML 结构的改变可能对页面更新事件不起作用。如果希望变化固定下来,可以使用GreaseMonkey脚本。

三、利用Firebug调试JavaScript脚本

Ajax 应用程序通常涉及JavaScript、XML和 按需信息检索。它们的规模常常超过正常应用程序,并且运行起来很像是桌面应用程序。因为大量使用JavaScript,所以您将发现标准漏洞估计程序将无 法覆盖所有可能的攻击方式。就像二进制程序测试一样,我们需要使用调试器来跟踪代码、分析程序结构和调查潜在的问题,Firebug为我们提供了所有这些 功能,下图向我们展示了Firebug脚本调试器视图。

 

 
图4  Firebug脚本调试视图

在图4中我们可以看到一个断点,其位于第2行。 断点是些伪指令,用来通知JavaScript解释器当代码抵达这些断点时停止/中止该进程。一旦程序暂停,我们就可以查看存放在全局、局部变量中的当前 数据,甚至更新它们。我们不仅可以通过它来了解程序正在干什么,并且还能取得对应用程序的完全控制。

在图4的右边,您可以看到监视和断点列表。断点列表包含我们在当前调试的代码中设置的全部断点。您可以迅速禁用和启用断点,但是却无需知道断点的精确位置。

监控列表提供了一个机制来监视DOM结构中的变化。举例来说,如果想知道某个的值在程序运行过程中的变化情况,只须简单创建一个相应的的监控条目即可。

DOM是存放Web 应用程序的内容的地方。DOM结构提供了动态编辑页面的所有必要功能,比如去除和插入html 元素、初始化计时器、创建和删除Cookie等等。DOM 是所有的Web 应用程序最为复杂的组件,所以对它的检查也是最难的。然而,Firebug 能够提供有用的DOM 视图,它的使用跟DOM Inspector一样。图5展示了Firebug的DOM 视图。

 
图 5  Firebug的DOM视图

如上图所示,DOM包含一个长长的元素表。我们可以查看当前可用的一些函数。通过使用Firebug的DOM 视图,我们可以检查当前打开的应用程序的各个部分。我们可以在一个树状结构中查看当前可用的所有属性和对象,并可以展开这些元素和对象来查看他们的子属性。

五、利用Firebug监视网络

Firebug最强大的的特性之一是网络流量监控功能。当我们想要监视应用程序内部发出的Web请求时,这个视图极为有用。当 然,LiveHttpHeaders扩展也可用来监视网络,但是它会把全部请求显示在一个列表中,而Firebug却可以详细查看每个请求的每个字符。

 

 
图6  Firebug的网络视图

在网络视图的顶部,我们可以选择不同类型的网络活动,在上图中我们要查看所有请求。 然而,您可以只列出特定对象发出的请求。Firebug一个更为有趣的特性是该扩展将会记录全部网络活动,不管它是否打开。这个特性跟扩展 LiveHttpHeaders有所不同,后者只有当它打开时才会记录网络事件。然而,与LiveHttpHeaders扩展不同的是,Firebug不 能重放网络活动,但是将能更细致的观察网络流量。下图展示了Firebug正在检查请求和响应头以及发送的参数。

 
图7  利用Firebug查看网络请求

六、Firebug Lite简介

Firebug Lite是一个跨浏览器的组件,能够轻易地嵌入到需要测试的应用程序中它是专为开发人员而非安全研究人员设计的,并且没有Firefox扩展版本那样多的用途。然而,它在某些情况下是非常有帮助的,比如需要在Internet Explorer、Opera及其他不支持Mozilla平台的跨平台安装(XPI)型文件的浏览器中调试应用程序时。

使用firebug lite之前,必须在需要调试的应用程序内嵌入一些脚本标签。我们必须在使用FireBug的应用程序页面内放入下列脚本标签:

 language="javascript" type="text/javascript"
src="/path/to/firebug/firebug.js">

要跟踪应用程序中的某个变量时,可以使用控制台对象。举例来说,如果我们想要跟踪下列循环中变量item的变化,可以使用下列代码:

function (var item in document)

console.log(item);



七、结束语

Firefox扩展Firebug是一个全功能的Web 应用程序调试器,可以协助Web黑客洞悉复杂的Web 应用程序的内部工作机制。本文详细介绍了在安全测试过程中的使用方法,如劫持函数、浏览和动态修改HTML元素、操作DOM、监视网络以及调试脚本等等。 最后,我们还对Firebug Lite做了简要介绍。

 

from http://soft.ccw.com.cn/news/htm2008/20081031_534852.shtml

No Comments 2008-11-06 12:42:09 by No.0023

Python FAQ from newsmth.net

Tags: Python

本FAQ内容包含:
0.Python 资源索引
1.Python的版本和下载方式
2.推荐书籍
3.推荐站点
4.Python有什么IDE
5.哪有Python电子书
6.使用easy_install安装第三方程序包
7.Python需要编译么?如何做成.exe文件
8.如何在代码中使用中文
9.Python有哪些图形库
10.一些网址
11.filter, map, reduce, zip函数
12.访问GAE,修改hosts文件的方法

0.Python 资源索引
  http://wiki.woodpecker.org.cn/mo ... on/LpyAttach2ResIdx
  大多数资料都在上面了,目录如下:
     1. Python 资源索引
         1. Py 语言自身
         2. Py 文本处理
         3. Py 数据库应用
         4. Py 网络应用
         5. Py 嵌入系统
         6. Py 多媒体支持
         7. Py 应用扩展
         8. Py 科学计算
         9. Py 行业应用
        10. Py 教育支持
        11. Py 集锦资源
     2. 资源回收

1.Python的版本和下载方式
A.至2008年10月,Python最新的版本为2.6。Python3000尚处于测试状态。Python的官方下载地址是:
http://www.python.org/download/

2.推荐书籍:
A.1、《A Byte of Python(简明python教程)》
     http://www.byteofpython.info/language/chinese/index.html
  2、《Dive into Python(Python研究)》
     http://www.woodpecker.org.cn/diveintopython/index.html
  3、《Learning Python》
  4、《Programming Python》
  第一本书非常简短,也有中文译本“简明Python教程”,是想速成(几小时)者的首选。另外在http://www.python.org/doc
很多官方的文档和教程,非常不错。

3.推荐站点:
A.1、啄木鸟社区
     http://www.woodpecker.org.cn/
  2、Python@Newsmth
     (wahahaha~~~)
  3. 中文用户组
     CPUG:
       http://python.cn
       [email]python-chinese@lists.python.cn[/email] (邮件列表) //已经停止服务,转CPyUG吧。
     CPyUG: 华蟒用户组
       https://groups.google.com/group/python-cn
     PyTUG: Python 語言台灣使用者群組
       https://groups.google.com/group/pythontw
  4. 中文论坛:
     1. Python@CU
        http://bbs.chinaunix.net/forumdisplay.php?fid=55

4.Python有什么IDE
A.Python官网有一份IDE列表,很全:
http://wiki.python.org/moin/IntegratedDevelopmentEnvironments
  如果看了上面的列表还是不知道自己该选哪个,推荐看置底的“Python IDE比较与推荐”

5.哪有Python电子书?
A.精华区x-5收录了一些经典的电子书。下载请用web方式。
  强烈推荐开放图书计划:
     http://code.google.com/p/openbookproject/ 聚集大量的Python技术图书.

另外这两个地方有很多python的电子书:
http://www.longtengwang.com/Soft/yiyong/Python/Index.html
http://www.pythonid.com/html/wendangxiazai/index.html
  想看纸质书,在书店里没有找到,那么最简单的办法是去淘宝网。

6. 使用easy_install安装第三方程序包:
A.参考:http://blog.chinaunix.net/u1/42287/showart_405102.html
        http://www.ibm.com/developerworks/cn/linux/l-cppeak3.html

  1. 安装
     wget -q http://peak.telecommunity.com/dist/ez_setup.py
     sudo python ez_setup.py
  2. 使用
     sudo easy_install CherryPy
     sudo easy_install -Z web.py-0.21.tar.gz

B. 想看看有什么第三方程序包:http://pypi.python.org/pypi

7.Python需要编译么?如何做成.exe文件?
A.Python不需要用户专门去编译它,第一次运行时,在运行过程中,Python的解析器会自动将代码编译为.pyc。一般来讲,运
行结束后不会自动删除.pyc文件。
  在Windows下,可以用py2exe等工具将代码编译为.exe文件。原理是py2exe会将必要的python解析器也打包进去。所以做成的
.exe有几M,如果有图形界面,就会有十几M,而且运行速度不会有提升。

8.如何在代码中使用中文
A.在Python2.5或之前的版本中,代码里默认是不能有中文的,包括注释。解决方法是在代码一开头加上:
# -*- coding: gbk -*-

# -*- coding: utf-8 -*-

#coding=utf-8
  具体选哪一种看具体情况。一般来讲,如果不是网络编程,统一用utf-8就OK了,包括与MySQL的交互也可以用utf-8搞定。如
果是网络编译,特别是与FTP打交道,推荐使用gbk,可以省去很多麻烦。
  注意本法没有涉及不同编码的转换。

9.Python有哪些图形库
A.常用的有tk/tcl, PyGtk,PyQt和wxPython。都是跨平台且开源的。第一个是Python自带的,但比较难用且难看。PyQt和
wxPython都漂亮好用且文档/demo很棒,目前来看PyQt4比wxPython更胜一畴。

10. 一些网址
Python:              www.python.org
ActivePython:        www.activestate.com
Stackless Python:     www.stackless.com
IronPython:          www.ironpython.com
PyPy:                pypy.org
JPython:             www.jpython.org

Django:              www.djangoproject.com
Mod_Python:          www.modpython.org
Webware:             www.webwareforpython.org
CherryPy:            www.cherrypy.org
Web.py:              webpy.org
Zope:                www.zope.org
Turbogears:          www.turbogears.org
Google AppEngine:    http://code.google.com/appengine
Twisted:             http://twistedmatrix.com
Beautiful Soup:      http://crummy.com/software/BeautifulSoup
PythonWeb:           www.pythonweb.org
JabberPy:            http://jabberpy.sourceforge.net
pyGoogle:            http://pygoogle.sourceforge.net
libgmail:            http://libgmail.sourceforge.net
pyExpect:            http://pexpect.sourceforge.net

MySQLdb:             http://sourceforge.net/projects/mysql-python
PyGreSQL:            www.pygresql.org
psycopg:             www.initd.org/pub/software/psycopg
cx_Oracle:           www.cxtools.net
SQLAlchemy:          www.sqlalchemy.org

scipy:               www.scipy.org
NumPy:               http://numpy.scipy.org
numarray:            www.stsci.edu/resources/software_hardware/numarray
matplotlib:          http://matplotlib.sourceforge.net

WxPython:            www.wxpython.org
PyGtk:               www.pygtk.org
PyQt:                http://trolltech.com/products/qt
Tkinter 3000:        http://effbot.org/zone/wck.htm
PIL:                 www.pythonware.com/products/pil
pyOpenGL:            http://pyopengl.sourceforge.net

pySoundic:           http://pysonic.sourceforge.net
pyMedia:             http://pymedia.org
FMOD:                http://www.fmod.org
pyMIDI:              http://www.cs.unc.edu/Research/assist/developer.shtml

Python Documentation Online: http://pydoc.org, http://docs.python.org
Python-cn:                   http://python.cn
Pythonic:                    http://www.woodpecker.org.cn
The Daily Python-URL:        http://www.pythonware.com/daily/index.htm
Python Package Index:        http://pypi.python.org
Planet Python:               http://www.planetpython.org
Pythonite:                   http://www.pythonite.org
Useless Python:              http://www.uselesspython.com
Python Cookbook:             http://aspn.activestate.com/ASPN/Cookbook/Python
Python Sidebar:              http://www.edgewall.org/python-sidebar
Python Source:               http://pythonsource.com

11.filter, map, reduce, zip函数
1. filter(function, sequence) 返回序列,为原序列中能使function返回true的值
    >>>a=[1,2,3,4]
    >>>filter(lambda x:x%2, a)
    [1, 3]
2. map(function, sequence, [sequence...]) 返回序列,为对原序列每个元素分别调用function获得的值.
    可以传入多个序列,但function也要有相应多的参数,如
    map(lambda x,y,z:x+y+z,range(1,3),range(3,5),range(5,7))
    计算过程为
    1+3+5=9
    2+4+6=12
    返回[9,12]
3. reduce(function,sequence,[init])
    返回一个单值为,计算步骤为 :
      * 第1个结果=function(sequence[0],sequence[1])
      * 第2个结果=function(第1个结果,sequence[2])
      * 返回最后一个计算得值
      * 如果有init,则先调用function(init,sequence[0])
      * sequence只有一个元素时,返回该元素,为空时抛出异常.
    如 reduce(lambda x,y:x+y,range(3),99) 的计算为
    99+0=99 => 99+1=100 => 100+2=102
    返回102

    注:实际使用中用内建函数sum来完成这个累加更合适,如这里等价sum(range(3),99)
4. zip用于多个sequence的循环
    questions=['name', 'quest', 'favorite color']
    answers=['lancelot', 'the holy grail', 'blue']

    for q, a in zip(questions, answers):
        print 'What is your %s ? It is %s.' % (q,a)
    输出:
    What is your name ? It is lancelot.
    What is your quest ? It is the holy grail.
    What is your favorite color ? It is blue.

12.访问GAE,修改hosts文件的方法
Shell:~/dev/AppEngine/google_appengine/n23 >: tail -n 3 /etc/hosts
209.85.171.118    n23.appspot.com
64.233.189.99   appengine.google.com
#203.208.35.100  appengine.google.com
Shell:~/dev/AppEngine/google_appengine/n23 >:

No Comments 2008-11-05 15:44:04 by No.0023

30 Cool Linux Login Screens

Tags: Linux

1-Somatic

By: pokemonjojo2

2-Clear Crisp Morning

By: penseleit

3-Tux vs. MS

By:  alcapcom

4-Doe

By: xyzwqt

5-Blue Swirl

By: darkknight9

6-Magic Book

By: gHiRo

7-Pixel Girl

By: fabiand

8-Super GNOME Bros

By: linuxville

9-Sunshine

By: paullinux

10-Relaxing Water

By: cooper14

11-Still Alive Sunshine

By: savagehp

12-Soft Flower

By: solarfields

13-Avio

By: tobain

14-Sunset

By: Dav87

15-Arc Colors

By: perfectska04

16-Toxic

By: guerrerocarl

17-Clean

By: Simoo

18-Porum

By:linuzoid

18-Sweet Darkness

By: Snooky (distro logos can be changed)

19-WorldKDM

By: codicem

20-LoveKDE

By: invernomuto

21-Peace

By: nico67

22-Impressions

By: linuzoid

23-Skyline

By: Soravis

24-KdmLinux

By: Codicem

25-Earth Abstract

By: repli2dev

26-True Nature

By: Stanlus

27-KDM Retina

By: codicem

28-Xmas KDM

By: thio83

29-Flamenco Modern

By: twi

30-Deep

By: mPtTybOB

No Comments 2008-11-04 08:41:21 by No.0023

mirror for OpenBSD

Tags: OpenBSD

Shell:~ >: grep PKG .zprofile
#export PKG_PATH=ftp://ftp.openbsd.org.tw/pub/OpenBSD/$(uname -r)/packages/$(machine -a)/
export PKG_PATH=ftp://ftp.freebsdchina.org/pub/OpenBSD/$(uname -r)/packages/$(machine -a)/
Shell:~ >: grep CVSROOT .zprofile
export CVSROOT=anoncvs@anoncvs.jp.openbsd.org:/cvs
#export CVSROOT=anoncvs@anoncvs.de.openbsd.org:/cvs

Shell:~ >: cat /etc/mk.conf
SUDO=/usr/bin/sudo

WRKOBJDIR=/usr/obj/ports
DISTDIR=/usr/distfiles
PACKAGE_REPOSITORY=/usr/packages

_MASTER_SITE_OPENBSD?= \
ftp://ftp.freebsdchina.org/pub/OpenBSD/distfiles/${DIST_SUBDIR}/ \
ftp://ftp.openbsd.org/pub/OpenBSD/distfiles/${DIST_SUBDIR}/ \
ftp://ftp.tw.openbsd.org/pub/OpenBSD/distfiles/${DIST_SUBDIR}/

XENOCARA_RERUN_AUTOCONF=Yes
ACCEPT_JRL_LICENSE=Yes
Shell:~ >:

http://mirror.openbsd.org.cn
http://www.iredmail.org/openbsd

No Comments 2008-11-03 00:31:12 by No.0023

OpenBSD 4.4 released, Nov 1. Enjoy!

Tags: OpenBSD
from Theo de Raadt <deraadt@cvs.openbsd.org>
to misc@openbsd.org
date Fri, Oct 31, 2008 at 16:34
subject OpenBSD 4.4 released, Nov 1. Enjoy!
mailed-by openbsd.org
------------------------------------------------------------------------
Nov 1, 2008.

We are pleased to announce the official release of OpenBSD 4.4.
This is our 24th release on CD-ROM (and 25th via FTP).  We remain
proud of OpenBSD's record of more than ten years with only two remote
holes in the default install.

As in our previous releases, 4.4 provides significant improvements,
including new features, in nearly all areas of the system:

- New/extended platforms:
   o OpenBSD/sparc64.
     Fujitsu's SPARC64-V, SPARC64-VI and SPARC64-VII processors are supported
     now, which means that many of the PRIMEPOWER machines and the SPARC
     Enterprise M4000/M5000/M8000/M9000 work now.
     Sun's UltraSPARC VI processors are supported now.  Many of Sun's
     mid-range and high-end servers with these processors or UltraSPARC III
     and UltraSPARC III+ processors work now.
     Sun's UltraSPARC T1 and UltraSPARC T2 processors are supported now,
     which means the sun4v architecture is now supported and machines like
     the SPARC Enterprise T1000 and SPARC Enterprise T5220 work now.
   o OpenBSD/socppc.
     For machines based on the Freescale MPC8349E
     System-on-Chip (SoC) platform that use Das U-Boot as a boot loader.
   o OpenBSD/landisk: added shared libraries support.

- Improved hardware support, including:
   o Several new/improved drivers for sensors: fins(4), andl(4), it(4),
     kate(4), sdtemp(4), lmtemp(4), adt(4), km(4).
   o Support for Intel G33 and G35 chipsets in agp(4).
   o New lii(4) driver for Attansic L2 10/100 Ethernet devices.
   o Preliminary support for UVC USB webcams: uvideo(4) and video(4).
   o WPA/WPA2-PSK support for several models of wireless cards.
   o Openchrome(4) and geode(4) video card drivers for X.Org.
   o New vmt(4) driver, implements VMware Tools.
   o New auglx(4) driver for AMD Geode LX CS5536 integrated AC'97 audio.
   o New ix(4) driver for Intel 82598 PCI Express 10Gb Ethernet.
   o New acpithinkpad(4) driver provides additional ACPI support for
     IBM/Lenovo ThinkPad laptops.
   o New acpiasus(4) driver provides additional ACPI support for ASUS
     laptops including the EeePC.
   o New gecko(4) driver supporting the GeckoBOA BC GSC+ port found on
     some hppa systems.
   o New tsec(4) driver supporting the Freescale Triple Speed Ethernet
     Controller..
   o The re(4) driver now supports RTL8102E and RTL8168 devices.
   o The cas(4) driver now supports National Semiconductor Saturn devices.
   o The pccom(4) driver has been removed; all platforms use com(4) now.
   o cardbus(4) and pcmcia(4) now work on most sparc64 machines.
   o The udcf(4) driver now supports mouseCLOCK USB II devices.
   o The msk(4) driver now supports 88E8040T devices.
   o The ath(4) now now supports many more Atheros wireless devices.
   o The ciss(4) driver now supports HP Smart Array P212, P410, P411, P411i
     and P812 devices.
   o The uftdi(4) driver now supports ELV Elektronik and FTDI 2232L devices.
   o The umsm(4) driver now supports Option GlobeTrotter 3G+, Huawei E220
     and more HSDPA MSM devices.
   o The ubsa(4) driver now supports ZTE CMDMA MSM devices.
   o The axe(4) driver now supports Apple USB A1277 devices.
   o The puc(4) driver now supports more Netmos devices.
   o The mgx(4) driver now supports 2D acceleration on selected boards.
   o The isp(4) driver firmware for some controllers has been updated.
   o The isp(4) driver no longer hangs during probe on some machines.
   o The bge(4) driver has better support for BCM5704 chipsets in fiber
     mode which helps with some blade servers.
   o The bge(4) driver has better support for the BCM5906 chipset on
     some systems.
   o The bge(4) driver has much better support for PCI Express chipsets
     resulting in much faster transmit performance.
   o The bge(4) driver has support for the BCM5714/5715/5780 chipsets
     using fiber interfaces.
   o The bnx(4) driver has support for the BCM5706/5708 chipsets using
     fiber interfaces.
   o The ral(4) driver now supports Ralink Technology RT2700 devices.
   o Serial ports other than com0 can now be used for console on amd64.
   o The serial console on i386 and amd64 has improved compatibility
     with server management cards.

- New tools:
   o rpc.statd(8), the host status monitoring daemon for use with the NFS
     file locking daemon.
   o Initial import of ypldap(8), a drop-in replacement for ypserv
     to glue in an LDAP directory for get{pw,gr}ent family of functions.
   o Deprecated slattach(8) and nmeaattach(8) in favor of ldattach(8).
   o Import of tcpbench(1), a small TCP benchmarking tool.

- New functionality:
   o aucat(1) is now able to play and record audio in fullduplex, it
     can mix unlimited number of streams, handles up to 16 channels, can
     resample streams on the fly, supports various 24-bit and 32-bit
     encodings and does format conversions on the fly.
   o httpd(8) now supports IPv6.
   o dhcpd(8) now supports basic synchronization of the /etc/dhcpd.leases
     file to allow for running multiple instances for redundancy.
   o rpc.lockd(8) now supports NLMv4 and does actually do locking.
   o ftp(1) now supports recursive mget transfers.
   o ftp(1) now uses keep alive packets by default.
   o Make ftp(1) accept empty passwords in URLs.
   o locate(1) now supports -b flag to perform search only on the last
     component of the path.
   o Allow cdio(1) in TAO mode to set the write speed.
   o cdio(1) no longer blanks media twice.
   o Add ability in cdio(1) to determine media capabilities and make it figure
     out if media supports TAO or blanking.
   o Initial version of softraid(4) crypto support.
   o dhcpd(8) now groks options tftp-config-file and auto-proxy-script in
     dhcpd.conf.
   o dhclient(8) option handling much more resistant to abuse.
   o dhclient(8) now aware of interface link state and reacts to changes.
   o DIOCRLDINFO, DIOCGPDINFO, and DIOCGPART support added to block devices
     previously lacking it.
   o disklabel(8) no longer supports the '-r' option, and obtains all disklabel
   information via ioctl's.
   o disklabel(8) no longer suggests offsets and sizes that would result in
     partitions starting or ending outside the OpenBSD section of the disk.
   o disklabel(8) now correctly reads back the 'vendor' field from text
     disklabels.
   o disklabel(8) editor mode '?' and 'p' commands are more compact and the 'l'
     command has been added to produce previous verbose output.
   o I/O's outside the bounds of the RAW_PART are now prevented, allowing
     proper detection of invalid I/O's.
   o USB floppies now have a valid cylinder count calculated, rather than 0.
   o newfs(8) can now create filesystems on devices with sector sizes other
     than 512, although such filesystems cannot yet be read.
   o scsi(4) probing displays less useless verbiage and fewer spurious error
     messages.
   o st(4) devices can now be detached.
   o ATAPI devices are now identified as such, rather than as SCSIn devices.
   o SATA tape drives now work.
   o scsi(4) probing now displays the ID of the initiator on the bus.
   o scsi(4) debug capabilities improved to show commands and input or output
     data as appropriate.
   o scsi(4) probing makes better use of the TEST UNIT READY command to clear
     errors and allow successfull attachments.
   o scsi(4) probing can now find more fibre channel attached devices.
   o Several mbuf pool cache corruption issues were fixed
   o identd(8) now supports IPv6 in standalone mode.
   o cal(1) now shows week numbers too.
   o In pf(4), implement a sloppy tcpstate tracker which does not look at
     sequence numbers at all.
   o pf(4) rule accounting now has a counter to record how many states in
     total have been created by a rule.
   o The kill states feature in pfctl(8) now supports two additional match
     targets: Kill by rule label or state ID.
   o Make relayd(8) use sloppy pf(4) state keeping for routed sessions (Direct
     Server Return).
   o Added support in relayd(8) for transparent L7 forwarding in relays.
   o Added support for dynamic IPv6-to-IPv4 or IPv4-to-IPv6 TCP relays
     in relayd(8).
   o Improved the DNS mode and use OpenBSD's Id shuffle code from named(8)
     in relayd(8).
   o Extend awk(1) with bitwise operations.
   o Updated the display code for systat(1) which adds views for pf(4) states,
     rules and queues.
   o Imported initial support for IEEE 802.3ad/LACP in trunk(4).

- Assorted improvements and code cleanup:
   o A greatly changed buffer cache subsystem which maps cache pages only
     when in use, resulting in improved filesystem performance, and
     allowing for the effective use of a much larger buffer cache
   o A greatly improved implementation of malloc(3), the general purpose
     memory allocator, which catches more mistakes, reduces address space
     fragmentation, and is faster.
   o The statfs(2) system call has been enhanced to support large filesystems.
   o The strtof(3) function has been added to libc.
   o A lot of work has been done on libm to add several functions towards more
     C99 compliance.
   o Lots of features have been implemented in OpenCVS, which can now be used
     to do some real work.
   o New APIs for arc4random, one to fill a buffer with random numbers
     and the other to return a uniformly distributed random number
     without bias.

- Install/Upgrade process changes:
   o A new tool sysmerge(1), derived from the old mergemaster port, makes
     it easier to merge configuration files changes during an upgrade.
   o Fully support OpenBSD inside extended partitions on i386 and amd64.
   o During installation 'dhcp' is now the initial default answer during
     network configuration.
   o Fetching sets via FTP more reliable due to automatic use of keep alive.
   o Fetching sets via NFS no longer hangs retrying a non-functional mount.
   o Installation ensures hostname.* files are installed with mode 600.
   o Serial console configuration now automatically detects speed.
   o Serial console support extended to all architectures.
   o Partition size display no longer limited to 32 bit sizes.
   o Partition sizes now scaled and formatted to use human readable units.
   o NTPD configuration questions improved.
   o Sparc miniroot root disk detection fixed.
   o Invocations of disklabel(8) by the scripts are now less verbose.


- OpenSSH 5.1:
   o New experimental fingerprint ASCII art visualisation system for easier
     verification of remote keys.
   o Added chroot(2) support for sshd(8).
   o Added an extended test mode (-T) to sshd(8).
   o Make ssh(1) support negation of groups in a "Match group" block.
   o Increased the ephemeral key size in protocol1 from 768 to 1024 bits.
   o Better tests of primes in /etc/moduli
   o Refuse to read .shosts or authorized_keys files that are not regular
     files.
   o Enable ~ escapes for multiplex slave sessions.
   o Support CIDR address matching in Match blocks and authorized_keys
     from="..." stanzas.
   o Make port forwarding code try additional addresses when connecting to
     a destination whose DNS name resolves to more than one address.
   o Make the maximum number of ssh(1) sessions run-time controllable via
     MaxSessions in sshd_config(5).
   o ssh-scan(1) now defaults to RSA protocol 2 keys, instead of RSA1.
   o Added an extension to sftp protocol to implement statvfs(2)-like operations
     and add a df command to sftp(1).
   o Disable execution of /.ssh/rc for sessions where a command has been
     forced by the sshd_config ForceCommand directive.
   o And several bug fixes and performance enhancements.

- Over 4,500 ports, minor robustness improvements in package tools.
   o Many pre-built packages for each architecture:
     i386:   5033    sparc64:  4862    alpha: 4852    sh:     1285
     amd64:  4940    powerpc:  4466    sparc: 3381    mips64: 3099
     arm:    4018    hppa:     1595    vax:   1954
   o Highlights include:
     o mozilla-firefox 3
     o drupal 5
     o Gnome 2.20.3.
     o GNUstep 1.14.2.
     o Inkscape 0.46.
     o JDK 1.7.0.b24.
     o KDE 3.5.8.
     o Mozilla Firefox 2.0.0.16 and 3.0.1.
     o Mozilla Thunderbird 2.0.0.16.
     o MySQL 5.0.51a
     o OpenMotif 2.3.0.
     o OpenOffice.org 2.4.1.
     o PostgreSQL 8.3.3.
     o Xfce 4.4.2.

- As usual, steady improvements in manual pages and other documentation.

- The system includes the following major components from outside
 suppliers:
   o Xenocara (based on X.Org 7.3 + patches, freetype 2.3.5,
     fontconfig 2.4.2, expat 2.0.1, Mesa 7.0.3, xterm 234 and more)
   o Gcc 2.95.3 (+ patches) and 3.3.5 (+ patches)
   o Perl 5.8.8 (+ patches)
   o Our improved and secured version of Apache 1.3, with SSL/TLS and DSO
     support
   o OpenSSL 0.9.7j (+ patches)
   o Groff 1.15
   o Sendmail 8.14.3, with libmilter
   o Bind 9.4.2-P2 (+ patches)
   o Lynx 2.8.5rel.4 with HTTPS and IPv6 support (+ patches)
   o Sudo 1.6.9p17
   o Ncurses 5.2
   o Latest KAME IPv6
   o Heimdal 0.7.2 (+ patches)
   o Arla 0.35.7
   o Binutils 2.15 (+ patches)
   o Gdb 6.3 (+ patches)

If you'd like to see a list of what has changed between OpenBSD 4.3
and 4.4, look at

       http://www.OpenBSD.org/plus44.html

Even though the list is a summary of the most important changes
made to OpenBSD, it still is a very very long list.
We provide patches for known security threats and other important
issues discovered after each CD release.  As usual, between the
creation of the OpenBSD 4.4 FTP/CD-ROM binaries and the actual 4.4
release date, our team found and fixed some new reliability problems
(note: most are minor and in subsystems that are not enabled by
default).  Our continued research into security means we will find
new security problems -- and we always provide patches as soon as
possible.  Therefore, we advise regular visits to

       http://www.OpenBSD.org/security.html
and
       http://www.OpenBSD.org/errata.html

Security patch announcements are sent to the security-announce@OpenBSD.org
mailing list.  For information on OpenBSD mailing lists, please see:

       http://www.OpenBSD.org/mail.html
OpenBSD 4.4 is also available on CD-ROM.  The 3-CD set costs $50 CDN
(EUR 50 including VAT) and is available via mail order and from a number
of contacts around the world.  The set includes a colourful booklet
which carefully explains the installation of OpenBSD.  A new set
of cute little stickers is also included (sorry, but our FTP mirror
sites do not support STP, the Sticker Transfer Protocol).  As an
added bonus, the second CD contains an audio track, a song entitled
"Trial of the BSD Knights".  MP3 and OGG versions of the audio track can
be found on the first CD.

Lyrics (and an explanation) for the songs may be found at:

   http://www.OpenBSD.org/lyrics.html#44

Profits from CD sales are the primary income source for the OpenBSD
project -- in essence selling these CD-ROM units ensures that OpenBSD
will continue to make another release six months from now.

The OpenBSD 4.4 CD-ROMs are bootable on the following four platforms:

 o i386
 o amd64
 o macppc
 o sparc64

(Other platforms must boot from floppy, network, or other method).

For more information on ordering CD-ROMs, see:

       http://www.OpenBSD.org/orders.html

The above web page lists a number of places where OpenBSD CD-ROMs
can be purchased from.  For our default mail order, go directly to:

       https://https.OpenBSD.org/cgi-bin/order

or, for European orders:

       https://https.OpenBSD.org/cgi-bin/order.eu

All of our developers strongly urge you to buy a CD-ROM and support
our future efforts.  Additionally, donations to the project are
highly appreciated, as described in more detail at:

       http://www.OpenBSD.org/goals.html#funding
For those unable to make their contributions as straightforward gifts,
the OpenBSD Foundation (http://www.openbsdfoundation.org) is a Canadian
not-for-profit corporation that can accept larger contributions and
issue receipts.  In some situations, their receipt may qualify as a
business expense writeoff, so this is certainly a consideration for
some organizations or businesses.  There may also be exposure benefits
since the Foundation may be interested in participating in press releases.
In turn, the Foundation then uses these contributions to assist OpenBSD's
infrastructure needs.  Contact the foundation directors at
directors@openbsdfoundation.org for more information.
The OpenBSD distribution companies also sell tshirts and polo shirts.
And our users like them too.  We have a variety of shirts available,
with the new and old designs, from our web ordering system at:

       https://https.OpenBSD.org/cgi-bin/order

and for Europe:

       https://https.OpenBSD.org/cgi-bin/order.eu

The OpenBSD 4.4 t-shirts are available now.  We also sell our older
shirts, as well as a selection of OpenSSH t-shirts.
If you choose not to buy an OpenBSD CD-ROM, OpenBSD can be easily
installed via FTP.  Typically you need a single small piece of boot
media (e.g., a boot floppy) and then the rest of the files can be
installed from a number of locations, including directly off the
Internet.  Follow this simple set of instructions to ensure that
you find all of the documentation you will need while performing
an install via FTP.  With the CD-ROMs, the necessary documentation
is easier to find.

1) Read either of the following two files for a list of ftp
  mirrors which provide OpenBSD, then choose one near you:

       http://www.OpenBSD.org/ftp.html
       ftp://ftp.OpenBSD.org/pub/OpenBSD/4.4/ftplist

  As of November 1, 2008, the following ftp mirror sites have the 4.4 release:

       ftp://ftp.kd85.com/pub/OpenBSD/4.4/             Austria
       ftp://ftp.stacken.kth.se/pub/OpenBSD/4.4/       Sweden
       ftp://ftp2.usa.openbsd.org/pub/OpenBSD/4.4/     NYC, USA
       ftp://ftp3.usa.openbsd.org/pub/OpenBSD/4.4/     CO, USA
       ftp://ftp5.usa.openbsd.org/pub/OpenBSD/4.4/     CA, USA
       ftp://rt.fm/pub/OpenBSD/4.4/                    IL, USA

       The release is also available at the master site:

       ftp://ftp.openbsd.org/pub/OpenBSD/4.4/  Alberta, Canada

       However it is strongly suggested you use a mirror.

  Other mirror sites may take a day or two to update.

2) Connect to that ftp mirror site and go into the directory
  pub/OpenBSD/4.4/ which contains these files and directories.
  This is a list of what you will see:

       ANNOUNCEMENT   amd64/         macppc/        sys.tar.gz
       Changelogs/    armish/        mvme68k/       tools/
       HARDWARE       ftplist        packages/      vax/
       PACKAGES       hp300/         ports.tar.gz   xenocara.tar.gz
       PORTS          hppa/          root.mail      zaurus/
       README         i386/          sparc/
       SIZES          landisk/       sparc64/
       alpha/         mac68k/        src.tar.gz

  It is quite likely that you will want at LEAST the following
  files which apply to all the architectures OpenBSD supports.

       README          - generic README
       HARDWARE        - list of hardware we support
       PORTS           - description of our "ports" tree
       PACKAGES        - description of pre-compiled packages
       root.mail       - a copy of root's mail at initial login.
                         (This is really worthwhile reading).

3) Read the README file.  It is short, and a quick read will make
  sure you understand what else you need to fetch.

4) Next, go into the directory that applies to your architecture,
  for example, i386.  This is a list of what you will see:

       INSTALL.i386    cd44.iso        floppyB44.fs    pxeboot*
       INSTALL.linux   cdboot*         floppyC44.fs    xbase44.tgz
       MD5             cdbr*           game44.tgz      xetc44.tgz
       base44.tgz      cdemu44.iso     index.txt       xfont44.tgz
       bsd*            comp44.tgz      install44.iso   xserv44.tgz
       bsd.mp*         etc44.tgz       man44.tgz       xshare44.tgz
       bsd.rd*         floppy44.fs     misc44.tgz

  If you are new to OpenBSD, fetch _at least_ the file INSTALL.i386
  and the appropriate floppy*.fs or install44.iso files.  Consult the
  INSTALL.i386 file if you don't know which of the floppy images
  you need (or simply fetch all of them).

  If you use the install44.iso file (roughly 200MB in size), then you
  do not need the various *.tgz files since they are contained on that
  one-step ISO-format install CD.

5) If you are an expert, follow the instructions in the file called
  README; otherwise, use the more complete instructions in the
  file called INSTALL.i386.  INSTALL.i386 may tell you that you
  need to fetch other files.

6) Just in case, take a peek at:

       http://www.OpenBSD.org/errata.html

  This is the page where we talk about the mistakes we made while
  creating the 4.4 release, or the significant bugs we fixed
  post-release which we think our users should have fixes for.
  Patches and workarounds are clearly described there.

Note: If you end up needing to write a raw floppy using Windows,
     you can use "fdimage.exe" located in the pub/OpenBSD/4.4/tools
     directory to do so.
X.Org has been integrated more closely into the system.  This release
contains X.Org 7.3.0.  Most of our architectures ship with X.Org, including
amd64, sparc, sparc64 and macppc.  During installation, you can install
X.Org quite easily.  Be sure to try out xdm(1) and see how we have
customized it for OpenBSD.
The OpenBSD ports tree contains automated instructions for building
third party software.  The software has been verified to build and
run on the various OpenBSD architectures.  The 4.4 ports collection,
including many of the distribution files, is included on the 3-CD
set.  Please see the PORTS file for more information.

Note: some of the most popular ports, e.g., the Apache web server
and several X applications, come standard with OpenBSD.  Also, many
popular ports have been pre-compiled for those who do not desire
to build their own binaries (see BINARY PACKAGES, below).
A large number of binary packages are provided.  Please see the PACKAGES
file (ftp://ftp.OpenBSD.org/pub/OpenBSD/4.4/PACKAGES) for more details.
The CD-ROMs contain source code for all the subsystems explained
above, and the README (ftp://ftp.OpenBSD.org/pub/OpenBSD/4.4/README)
file explains how to deal with these source files.  For those who
are doing an FTP install, the source code for all four subsystems
can be found in the pub/OpenBSD/4.4/ directory:

       xenocara.tar.gz     ports.tar.gz   src.tar.gz     sys.tar.gz
OpenBSD 4.4 includes artwork and CD artistic layout by Ty Semaka,
who also arranged an audio track on the OpenBSD 4.4 CD set.  Ports
tree and package building by Antoine Jacoutot, Nikolay Sturm,
Robert Nagy and Christian Weisgerber.  System builds by Theo de Raadt,
and Miod Vallat.  X11 builds by Todd Fries.  ISO-9660 filesystem
layout by Theo de Raadt.

We would like to thank all of the people who sent in bug reports, bug
fixes, donation cheques, and hardware that we use.  We would also like
to thank those who pre-ordered the 4.4 CD-ROM or bought our previous
CD-ROMs.  Those who did not support us financially have still helped
us with our goal of improving the quality of the software.

Our developers are:

   Alexander Bluhm, Alexander Schrijver, Alexander von Gernler,
   Alexandre Anriot, Alexandre Ratchov, Alexey Vatchenko,
   Anders Magnusson, Andreas Gunnarsson, Antoine Jacoutot,
   Artur Grabowski, Austin Hook, Bernd Ahlers, Bob Beck, Brad Smith,
   Bret Lambert, Can Erkin Acar, Chad Loder, Charles Longeau,
   Chris Kuethe, Christian Weisgerber, Claudio Jeker,
   Constantine A. Murenin, Dale Rahn, Damien Bergamini, Damien Miller,
   Daniel Hartmeier, Darren Tucker, David Gwynne, David Hill,
   David Krause, Deanna Phillips, Eric Faurot, Esben Norby,
   Federico G. Schwindt, Felix Kronlage, Gilles Chehade,
   Gordon Willem Klok, Hans-Joerg Hoexer, Henning Brauer,
   Henric Jungheim, Hugh Graham, Ian Darwin, Igor Sobrado,
   Jacob Meuser, Jakob Schlyter, Janne Johansson, Jared Yanovich,
   Jason Dixon, Jason George, Jason McIntyre,
   Jasper Lievisse Adriaanse, Joel Knight, Joel Sing,
   Johan Mson Lindman, Jolan Luff, Jonathan Gray, Jordan Hargrave,
   Joris Vink, Kenneth R Westerback, Kevin Lo, Kevin Steves,
   Kjell Wooding, Kurt Miller, Landry Breuil, Laurent Fanis,
   Marc Balmer, Marc Espie, Marco Peereboom, Marco Pfatschbacher,
   Marco S Hyman, Marcus Glocker, Mark Kettenis, Mark Uemura,
   Markus Friedl, Martin Reindl, Martynas Venckus,
   Mathieu Sauve-Frankel, Mats O Jansson, Matthias Kilian,
   Matthieu Herrb, Michael Erdely, Michael Knudsen, Mike Belopuhov,
   Miod Vallat, Moritz Grimm, Moritz Jodeit, Nick Holland,
   Nikolay Sturm, Okan Demirmen, Oleg Safiullin, Otto Moerbeek,
   Owain Ainsworth, Pedro Martelletto, Peter Hessler, Peter Stromberg,
   Peter Valchev, Philip Guenther, Pierre-Yves Ritschard,
   Rainer Giedat, Ray Lai, Reyk Floeter, Robert Nagy, Rui Reis,
   Ryan Thomas McBride, Saad Kadhi, Simon Bertrang, Stefan Kempf,
   Steven Mestdagh, Stuart Henderson, Ted Unangst, Theo de Raadt,
   Thordur I. Bjornsson, Tobias Stoeckmann, Tobias Weingartner,
   Todd C. Miller, Todd Fries, Tomoyuki Sakurai, Uwe Stuehler,
   Will Maier, Xavier Santolaria, Yojiro Uo, joshua stein

No Comments 2008-11-01 23:33:53 by No.0023

disktab on OpenBSD

Tags: OpenBSD

Shell:/etc >: cat disktab
#       $OpenBSD: disktab,v 1.19 2006/10/04 01:04:22 krw Exp $

# Disk geometry and partition layout tables.
# Key:
#    dt    controller type
#    ty    type of disk (fixed, removable, simulated)
#    d[0-4]    drive-type-dependent parameters

...

# a == root
# b == swap
# c == whole disk
# e == /var
# f == scratch
# h == /usr

cp3100new|Conner Peripherals 100MB IDE, with a different configuration:\
    :dt=ST506:ty=winchester:se#512:nt#8:ns#33:nc#766: \
    :pa#15840:oa#0:ta=4.2BSD:ba#4096:fa#512: \
    :pb#24288:ob#15840:tb=swap: \
    :pc#202224:oc#0: \
    :pe#15840:oe#40128:te=4.2BSD:be#4096:fe#512: \
    :pg#15840:og#55968:tg=4.2BSD:bg#4096:fg#512: \
    :ph#130416:oh#71808:th=4.2BSD:bh#4096:fh#512:

...

f == scratch 我的f装成home区了:

Shell:/etc >: df
Filesystem     Size    Used   Avail Capacity iused   ifree  %iused  Mounted on
/dev/sd0a     97.9M   43.2M   49.9M    46%    2462   13536    15%   /
/dev/sd0f     22.6G    5.3G   16.2G    24%  142269 2897857     5%   /home
/dev/sd0d     1005M   20.0K    955M     0%      37  155865     0%   /tmp
/dev/sd0g     34.5G    6.5G   26.2G    20%  354107 4271043     8%   /usr
/dev/sd0e     1005M   70.6M    884M     7%    2891  153011     2%   /var
procfs         397M    241M      0B   100%      74   65461     0%   /proc
/dev/sd0i     19.5G    9.8G    9.7G    50%   89632 10154708     1%   /mnt/c
/dev/sd0j     30.1G   20.3G    9.8G    67%   57920 10282504     1%   /mnt/d
Shell:/etc >:

No Comments 2008-11-01 00:08:03 by No.0023


共有文章169篇 第(3/9)页 首页 上一页 1 2 3 4 5 6 7 8 ... 下一页 末页