トップ «前の日記(2011-12-21) 最新 次の日記(2011-12-23)» 編集

ヨタの日々

2001|08|09|10|11|12|
2002|01|02|03|04|05|06|07|08|09|10|11|12|
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|02|03|04|05|06|07|08|12|
2024|01|02|03|

2011-12-22 :-(

_ 34歳になった

来年はアラフォーェ...

_ 午前

0520 起床

0830 出勤

0900 テスト準備

_ 午後

1300 テスト準備

1700 退勤

_

1900 力尽きた

2130 飯。豚肉の生姜焼き。というか豚肉と野菜の生姜炒めというか

2230 munin

_ ,

IBM さんが dw を翻訳してくれないなんて

NetBSD だからか (´・ω・`)

_ [NetBSD][翻訳]developerWorks - Get to know NetBSD NetBSD を知ろう

Summary: NetBSD runs on more hardware platforms than any other UNIX(R) derivative due to smart design decisions and a commitment to portable code. Whether you're porting an operating system to a proprietary embedded system or looking for stability and compatibility across hardware platforms in the lab, NetBSD and its open license is a compelling alternative to Linux(R) and the GNU Public License (GPL).

概要: NetBSD は、賢い設計決定とポータブルなコードにより、他の様々な UNIX 系よりもたくさんのハードウェア上で動作する。あなたのオペレーティングシステムをプロプライエタリな組み込みシステムへ移植したり、研究室でハードウェアプラットフォームを横断した安定性と互換性を追及{looking for}したりするとき、NetBSD とそのオープンライセンスは Linxu や GNU Public License (GPL) の代替となる。

One feature listed on the NetBSD Web site is that the operating system is hype free. I can do without hype, but generating some buzz for this operating system that is often overlooked certainly wouldn't hurt.

NetBSD ウェブサイトに挙げられてる 1 つの特徴は、オペレーティングシステムは拡張が自由{hype free}である、ということだ。拡張なしでは (上記のことを) 出来ないし、このオペレーティングシステムに作られたいくつかの buzz {「諸々」といった意味か????} は、高い視点で見れば傷つかずに済むことがある。

NetBSD has an interesting architecture, which is often taken for granted and rarely commented on outside Berkeley Software Distribution (BSD) circles. The system's well thought-out design allows for wide hardware support, a small footprint, stability, and security. NetBSD's unique features include a new paradigm for handling device drivers and other interesting innovations.

NetBSD は面白いアーキテクチャを持っている、というのは当然だし、バークレーソフトウェアディストリビューション (BSD) 界隈を外れたところでのコメントはほとんどない。システムは考えられたうえでの設計は幅広いハードウェア対応、小さい置き場所、安定性、セキュリティを許す。NetBSD のユニークな機能は、デバイスドライバをハンドルし、他の面白い技術革新のための新しいパラダイムを含んでいることだ。

These design decisions and commitment to source code, which not only works but works right, have helped NetBSD lay claim to being the most portable UNIX(R) derivative in existence. It particularly excels in embedded systems, but you should also consider it as a compelling alternative to more mainstream servers, desktops, and laptop operating systems.

これらの設計決定とソースコードへの誓約は、動作するということだけでなく、正しく動作するということだ。NetBSD がUNIX 系で最もポータブルであることへの要求に対応することを助ける。とくにすぐれているのは組み込みシステムだが、多くの主要サーバー、デスクトップ、そしてラップトップオペレーティングシステムと同様である???????????

An introduction to BSD (BSD の概要)

Three major BSD-derived operating systems are freely available: NetBSD, FreeBSD, and OpenBSD. All three systems are related to the original BSD distribution of UNIX, which dates back to the 1970s. In the early 1990s, at about the same time Linux(R) was coming together as a legitimate competitor to UNIX, a separate track was being forged to create a free UNIX-like operating system based on BSD. All three BSD versions have strong points, with FreeBSD leading the way in user base, OpenBSD leading in security, and NetBSD leading in portability.

BSD 由来の 3 つのおもなフリーな実装のオペレーティングシステムは、NetBSD、FreeBSD、そして OpenBSD がある。3 つすべてのシステムは、1970 年のころのオリジナルの UNIX の BSD ディストリビューションに関連する。。1990 年初頭、同じ時期に Linux が UNIX の正当な競争者に加わった。枝分かれにより、BSDを基にした UNIX ライクのオペレーティングシステムを作り出すことを進ませた。3 つの BSD バージョンにはすべて長所がある。FreeBSD はユーザーベース、OpenBSD はセキュリティ、NetBSD は可搬性に優れている。

Of course it runs on NetBSD (もちろん NetBSD なら動作する)

You can port NetBSD to run on just about anything with a processor -- hence the motto, "Of course it runs on NetBSD." NetBSD supports more than 50 platforms, ranging from old 68K and million instructions per second (MIPS) systems to the newest x86_64 processors from Advanced Micro Devices, Inc. (AMD) and Intel(R). Furthermore -- and possibly more importantly -- NetBSD has been ported for use on a massive number of embedded systems.

あらゆるプロセッサ上で NetBSD を動作させるために移植することができる。標語としてよく言われるのが「Of course it runs on NetBSD」(もちろん NetBSD なら動作する)。NetBSD は 50 以上のプラットフォームに対応している。MIPS のシステムである古い 68K から、AMD と Intel の最新の x86_64 プロセッサまで。さらに(これが重要なんだが)、NetBSD は数多くの組み込みシステム用途として移植されている。

Embedded systems (組み込みシステム)

Embedded systems are huge part of everyday life in the 21st century, far outselling traditional computing devices such as desktops, laptops, and servers. From mobile phones to automobiles to cable boxes, you're more than likely using a computer in some aspect of your life. The operating system and software that sit inside these devices is often as important as the traditional engineering decisions that go into their design.

組み込みシステムは 21 世紀の日々の生活の大きな部分である。デスクトップ、ラップトップやサーバーのような従来のコンピューティング機器よりも多く売れている。携帯電話から自動車からケーブルボックス { 電話装置????? }まで、あなたの生活のなかの様々な場面でコンピューターが使われている。これらの機器に入れられるオペレーティングシステムとソフトウェアは、ときに従来のエンジニアリング仕様と同じくらい重要に設計される。

Examples of NetBSD embedded systems range from the useful (routers and switches) to the bizarre (a NetBSD toaster). The variety of architectures commonly used in embedded systems far exceeds common choices for traditional computers, so portability is vital.

NetBSD の組み込みシステムの例として、有用なもの(ルーターやスイッチ)から、珍しいもの(NetBSD トースター)まで抑えている。組み込みシステムに使われる様々なアーキテクチャは、従来のコンピューターのよくある選択を上回る。だから可搬性が活きてくる。

NetBSD's small footprint, ease of portability, and BSD license make it a perfect choice for embedded systems. The small footprint is extremely important, as most embedded systems have a small amount of memory. Therefore, the operating system must be as thin as possible. Ease of portability significantly cuts development time to bring new products to market, which is key to staying ahead of competitors. The BSD license allows companies to build commercial products based on NetBSD and sell them for a profit while keeping the source code proprietary.

NetBSD は場所を取らず、可搬性を持たせやすく、BSD ライセンスである。これは組み込みシステムのために完璧な選択である 。この小さい独占領域は極めて重要である。多くの組み込みシステムはごく僅かなメモリしか持っていない。しかしオペレーティングシステムはそれでも動作しなければならない。可搬性が重要なのは、市場に新しい製品を投入するまでの開発者の時間をカットできることだ。競合よりも先をいくためにキーとなることだ。BSD ライセンスは企業が NetBSD をもとにした製品を構築し、ソースコードをプロプライエタリに維持しながら利益を得ることを許可している。

The BSD license (BSD ライセンス)

The BSD license is a big factor in corporate decision making when an organization is choosing NetBSD (or other BSD variants) over Linux for commercial products. The Linux kernel and most Linux software is released under the General Public License (GPL), which requires the release of the source for all modified codes. In contrast, the BSD license allows companies to modify and sell NetBSD code without releasing the modified source, thereby allowing companies to keep intellectual property close to the vest while leveraging open source software for the base of their product.

企業が商品のために Linux ではなく NetBSD ( または他の BSD 派生物 ) を選択することを決定するためには、BSD ライセンスは大きな要因である。Linux カーネルとほとんどの Linux ソフトウェアは GNU一般公的使用許諾 (GPL) のもとにリリースされる。ソースコードを変更したらリリース時にソースコードが要求される。対照的に、BSD ライセンスは企業が変更したり、NetBSD のコードを変更したコードをリリースしないことを許可している。それにより、企業が知的所有権を保持し、vest{????} に接する 彼らの製品のベースにオープンソースソフトウェアが影響し続ける。

In recent years, numerous companies have been sued over the improper use of GPL software. Choosing software released under the BSD license gives wider operating room for commercial products, which is another reason NetBSD is so well suited for embedded systems. For instance, if Company A were to use NetBSD in a new smart phone running on Intel XScale(R) technology, the company might add kernel support for Evolution-Data Optimized (EV-DO) devices. Under the BSD license, the company can keep this code proprietary so that Company B can't use the same code for their new phone. Had Company A decided to use a Linux kernel, their source for any modifications to the kernel would have to be released back to the community under a GPL license.

近年、いくつかの企業が GPL ソフトウェアを適切に使用しなかったとして告訴されている。BSD ライセンスでソフトウェアをリリースすることを選択することは、商品のための幅広い運用室{????}を与え、これが NetBSD が組み込みシステムにうまく当てはまるもう 1 つの理由である。具体的には、企業A が NetBSD を利用することは Intel XScale 技術の上で新しいスマートフォンを走らせ、そのうえ企業が Evolution-Data Optimized (EV-DO) デバイスの対応をカーネルに追加できる。BSD ライセンスのもとでは、企業はコードをプロプライエタリにし続けることができ、企業B が彼らの新しいスマートフォンのために同じコードを使用できないようにもできる。企業A が Linux カーネルを使った場合、彼らがカーネルのソースを何かひとつでも変更すれば、GPL ライセンスのもとでコミュニティへ反映させるためにリリースされなければならない。

Note: Find information in the BSD newsletter in the Resources section on building a small NetBSD kernel as a starting point for an embedded system.

注意: Resources 欄の BSD ニュースレターの「小さい NetBSD カーネルを構築する」の中に組み込みシステムを開始するための情報がある。

NetBSD: Not just for embedded systems (NetBSD: 組み込みシステムだけではない)

Any system administrator who has been in the business for a while understands the inevitability of hardware changes. You see it everyday when looking through an information technology (IT) room filled with architectures that were hot one day but failed to stand the test of time -- be it for technical or commercial reasons. Unfortunately, when many of these systems pass, their operating systems pass along with them. A big advantage of running a highly portable operating system, such as NetBSD, is consistency across platforms.

すべてのシステム管理者は、ハードウェアが変更されることは不可避であることを理解してたうえで仕事をしている。情報機器室へ行けば、時の試練に耐え{?????}、一日でも落ちることが許されないアーキテクチャで満たされていることをいつでも見ることができる。それは技術的または商業的な理由による。不運にもこれらのシステムの多くが pass {????} すると、それらのオペレーティングシステムはそれら自身を伝達する{????}。NetBSD のように可搬性があるオペレーティングシステムの大きな優位性は、プラットフォームを横断して一貫性があることだ。

If a system administrator can be confident that an operating system runs on the oldest workstation in the lab and the newest server comes off the assembly line, that administrator's job becomes substantially simpler. This simplification can be referred to as hardware compatibility through software homogeneity.

研究室で最古のワークステーションを走らせたり、生産ラインから出てきた最新のサーバーでオペレーティングシステムを走らせるとき、管理者の仕事はじつにシンプルであることをシステム管理者は確信している。この簡易化はハードウェア互換性によるもので、ソフトウェアのそれと同質のものである。

A similar example is sharing productivity documents across computers running Microsoft(R) Windows(R) and Mac OS X by using Microsoft Office programs on both platforms. Sharing at the operating system level is an advanced extension of the same concept, suitable for developers rather than everyday users.

同様の例として、Microsoft Office プログラムを Microsoft(R) Windows(R) と Mac OS X が走っているコンピューターで、生産性のある文書を文書を共有する、というのもある。オペレーティングシステムレベルで共有することは、同様の考えの先進的な拡張{advanced extension ???? }である。これは利用者のためというよりも開発者のためといってよい。

Some system administrators might argue that they have always, and will always, run on an x86 platform. So why should they be interested in an operating system that prides itself on portability? There are two answers (and one of them includes a question):

システム管理者はいつも、いつまでも x86 プラットフォームで走らせることについて議論しているだろう。なぜ彼らはオペレーティングシステムの可搬性に心が動かされるのか? 答えは 2 つある(そして 1 つの疑問が含まれている)。

A large component of the portability of NetBSD can be credited to an intelligently designed system and well-defined implementation standards. Portability and good design often go hand in hand, making the benefits of these decisions evident throughout the operating system.

NetBSD の可搬性の大きな要素により、高度に信頼された設計と、うまく定義された標準により実装ができる。可搬性とよい設計は、これらの決定によりオペレーティングシステムを明確な一貫性 {evident throughout} にするというメリット {benefits} がある。

Can you define always? While many companies and labs have been using x86 architectures for quite some time and don't anticipate variations, disruptive changes in technology are always difficult to predict. Knowing that your operating system won't restrict purchasing decisions opens up a cornucopia of choices that otherwise could not have been considered.

いつも定義しているか? ほとんどの企業と研究室は、多くの場合 x86 アーキテクチャを使っているので、変化しないことを予見できないし {don't anticipate variations}、技術の変更による混乱{ disruptive changes in technology } を予見することはいつも困難である。知ってのとおり、あなたのオペレーティングシステムは、他の方法は熟慮されないので {otherwise could not have been considered} 選択肢を豊富に拡大できないので {opens up a cornucopia of choices} 調達が制限される。

Saving money and gaining peace of mind by knowing that they won't need to port software and control systems to a new operating system are real and tangible benefits. Through these benefits, system administrators and programmers can focus on moving forward rather than simply keeping pace.

ソフトウェアを移植し、新しいオペレーティングシステムを制御することは、本当に、実際に利益があるので、お金を節約し、安らぎを得ることになる 。これらの利益により、システム管理者とプログラマは 簡単に保守すること{simply keeping pace} よりも前進すること {moving forward} に集中できる

The NetBSD kernel (NetBSD カーネル)

Every part of the NetBSD kernel is carefully thought out, with clean design and portability in mind. Here's a brief look at some design components of the NetBSD kernel.

NetBSD カーネルのすべての部分は、綺麗な設計と可搬性の意思により注意深く考え抜かれている。ここでは NetBSD カーネルのうちいくつかの設計について触れる。

NetBSD device drivers (NetBSD デバイスドライバ)

NetBSD's machine-independent driver framework is a unique method of handling device drivers, and it's crucial for simple and quick ports. In most operating systems, a device driver is specific to a piece of hardware (video card, network interface card (NIC), and so on), bus (such as Peripheral Component Interconnect (PCI), Industry Standard Architecture (ISA), Universal Serial Bus (USB)), and platform (i386, 68k, PowerPC(R), and so on). In NetBSD, device drivers are written to extend across multiple buses and multiple platforms, enabling developers to include addenda to the device driver's code to add compatibility to a new setup rather than writing a whole new driver. This is a huge shift from the typical operating system device driver paradigm that helps in overcoming one of the biggest stumbling blocks for operating system developers, system administrators, and component manufactures.

NetBSD のマシン非依存ドライバフレームワークはデバイスドライバをハンドリングする唯一の手段である。シンプルで迅速な移植のために重要なのである。ほとんどのオペレーティングシステムのデバイスドライバは、いくつかのハードウェア(ビデオカード、ネットワークインターフェースカード(NIC)、など)、バス(ペリフェラル コンポーネント インターコネクト(PCI)のような)、インダストリ スタンダード アーキテクチャ(ISA)、ユニバーサルシリアルバス(USB)、そしてプラットフォーム(i386、68k、PowerPCなど) 向けに設計されている{ specific }。NetBSD ではデバイスドライバは複数のバスやプラットフォームを横断して拡張できるように書かれている。開発者が 新規にデバイスドライバ全部を書くよりも、新しくデバイスドライバへ互換性コードを追加することを有効にする。これは典型的なオペレーティングシステムのデバイスドライバからのとても大きなパラダイムシフトであり、オペレーティングシステム開発者やシステム管理者や部品製造者 {component manufactures} の最大の障害を取り除く助けになる。

File system support (ファイルシステム対応)

NetBSD, again encouraging portability and interoperability, includes support for many different file systems. Berkeley Fast File System (FFS) is the default choice, with support in 32-bit and 64-bit configurations. Other major file systems that NetBSD supports include the Linux ext2 and the Windows NTFS and FAT32 file systems. The standard CD file system, International Standards Organization (ISO) 9660, is also supported, with both Rockridge and Joliet extensions.

NetBSD は様々な異なるファイルシステム対応を含めて再度 可搬性と相互運用性を促進する。バークレーファーストファイルシステム (FFS) は 32bit と 64bit の設定では既定で選択される。NetBSD が対応している他の主なファイルシステムは、Linux ext2 と Windows の NTFS と FAT32 ファイルシステムがある。国際標準化機構 ISO 9660 の CD 標準ファイルシステムについては Rockridge と Joliet extensions とともに対応している。

Cryptographic device driver (暗号デバイスドライバ)

The combined effect of today's wide-spread use of laptop computers and the increased amount of sensitive company and personal information stored digitally is a recipe for disaster. Every few months, you read a story in the headlines about a lost computer, or hard disk, containing sensitive data -- be it a government lab, a credit card company, or an individual who had all his or her banking information, including their Social Security number, on a personal computer.

今日の広くいきわたったラップトップコンピュータと、 増加するデジタル保存された企業機密と個人情報が複合して影響するのは、災害に対するレシピである。ここのところ毎月のように、あなたはコンピュータや、敏感なデータが入っているハードディスクを無くしたという話題を目にしただろう。それは大学の研究室や、クレジットカード会社や、工場である。彼ら/彼女たちのすべては、彼ら自身の社会セキュリティ番号を含んだ銀行情報をコンピュータに持っていた。

The fact is accounts, passwords, and permissions can only protect your data in the context of an operating system that obeys stated rules. Bits are bits, and any hard disk pulled out of one computer and put into another can easily be read -- unless that data is encrypted.

この影響は預金、パスワード、そして権限が、米国の法律では、オペレーティングシステムは あなたのデータを保護することだけを可能としている。データが暗号化されていなければ、少しずつ {Bits are bits,} あらゆるハードディスクは 1 つのコンピュータから出ていき、他の誰かが簡単に読めるようになっていく。

File encryption can be accomplished in a variety of ways, but it's rarely used because of the burden on system administrators or users. Most data encryption methods require explicit decisions of where and when to encrypt data, manual mounting and unmounting of encrypted images, and entering passwords.

ファイル暗号化は、様々な用途のために完成させることができた。まれに システム管理者やユーザーが重い荷物を運ぶ {burden} ために使われる。多くのデータ暗号化手法は、どこでいつデータを暗号化するのか、手動で暗号データをマウント/アンマウントするのか、パスワードを入力するのか、を明確に定義することを要求する。

NetBSD uses the cryptographic device driver (CGD) to implement an encrypted file system with a virtual device. By sitting between the rest of the operating system and the actual disk, CGD looks and acts like any other disk drive attached to the system, allowing for transparent access to secure storage.

NetBSD は仮想デバイスでの暗号化ファイルシステムの実装として cryptographic device driver (CGD) を利用している。休眠中 {rest of} オペレーティングシステムと実際のディスクのでは、CGD はシステムに取り付けられた他のディスクドライブと同じように見える。セキュアストレージへの透過的なアクセスを許可する。

Note: See the NetBSD Guide in the Resources section for information on how to enable CGD.

注意: 参考 章にある NetBSD ガイドに CGD を有効にするやり方が書いてある。

General security (セキュリティ全般)

NetBSD takes security very seriously; the inclusion of the CGD is only one of many examples. If portability is rule number one for the NetBSD community, security doesn't sit far behind. An absolute dedication to well-written code is paramount, including procedures for code auditing and continued checks.

NetBSD はセキュリティにとてもマジメに取り組んでいる。CGD に含まれている{inclusion}のは、たくさんの例のうちのたった 1 つだ。可搬性が NetBSD コミュニティの最高の規則だとしたら、セキュリティはすごく後退してはいない。よいコードを書くための絶対的な献身 {dedication} は 、 コード審査と継続チェックの手法を含めて最高であること {paramount} だ

Second, like OpenBSD, the default installation includes a bare minimum of packages installed, or configured. The first thing a system administrator is likely to do after a NetBSD installation on a server is to configure the network and enable Secure Shell (SSH), which gives you an indication of how little the default configuration enables.

次に、OpenBSD のように、規定のインストールでは必要最低限 {bare minimum} のパッケージのインストールと設定をしている。システム管理者の最初の仕事 {thing} は、NetBSD をサーバーにインストールした後におこなうことのように、ネットワークとセキュアシェル(SSH)を設定することだ。これにより 少ない既定の設定を有効になる。

While some new users might argue that this approach makes things more difficult on them, learning to control and configure services is an important part of any UNIX-like operating system, and learning to do so doesn't take long. A quick read through the official NetBSD Guide helps get new users off the ground.

新しい利用者は、この手法でより多くの違いを彼らにもたらすので、ときどき話題になるのだが { ubuntu 等のように富豪にすべき、といった議論になるということか? }、サービスの管理と設定を学ぶことは、UNIX 風オペレーティングシステムの重要な部分なので、あまり時間をかけない。新しい利用者は公式の NetBSD ガイドを軽く読むだけでよい。

Note: See the Resources section for an additional link from gna.org to a great document for new NetBSD users.

注意: 新しい NetBSD 利用者のために 参考 章に gna.org によるすばらしい文書へのリンクがある。

Application support: Package source and binary emulation (アプリケーション対応: パッケージソースとバイナリエミュレーション)

Application support in NetBSD is both wide and varied. Most standard software familiar to administrators of UNIX-like operating systems is natively available to NetBSD and easily installed through the NetBSD Packages Collection (pkgsrc), which includes more than 5000 packages. If you can't find what you are looking for through pkgsrc, you can always run through a series of binary emulators built into NetBSD, the most prominent of which is the Linux emulator running on i386.

NetBSD でのアプリケーション対応は幅広く様々に対応している。UNIX 風オペレーティングシステムで最も知られた標準の管理用ソフトウェアは、NetBSD にネイティブで有効になっているし、さらに 5000 以上のパッケージが NetBSD パッケージコレクション (pkgsrc) によって簡単にインストールできる。pkgsrc に見つからなければ、NetBSD 向けにビルドされた一連の{series} バイナリエミュレーションをいつでも走らせることができる。i386 上で走る Linux エミュレーターが最も著名 {the most prominent} だ。

The default installation of NetBSD, however, is quite thin. Not only is it configured with most services turned off, it has few packages installed, period. The kernel, compilers, network services, XFree, and standard UNIX utilities are all that's included in the base distribution. To install packages you're used to finding in a UNIX-like operating system (such as MySQL or PostgreSQL), use the pkg_add command to extract and install software (from local disk, CD/DVD, or over the network). If you're installing an x86 system, you can use /cdrom/packages/i386/All/ on the i386pkg-3.0.iso CD. Packages installed through the pkg_add command are installed in /usr/pkg/ and do not interfere with the core components of NetBSD.

NetBSD の既定のインストールは最小限になっている {quite thin}。ほとんどのサービスが無効に設定されているだけでなく、わずかなパッケージしかインストールされない。カーネル、コンパイラ、ネットワークサービス、XFree、そしてUNIX 標準ユーティリティはすべて base 配布物に含まれている。UNIX 風オペレーティングシステムで見かけるパッケージ(MySQL や PostgreSQL のような)をインストールするには、pkg_add コマンドで展開し、ソフトウェアをインストールする(ローカルディスク、CD/DVD またはネットワーク越しに)。x86 システムにインストールしたならば、/cdrom/packages/i386/All/ にある i386pkg-3.0.iso CD が使える。pkg_add コマンドでインストールされたパッケージは、/usr/pkg/ にインストールされ、NetBSD の核コンポーネントを妨げない。

For non-native applications, NetBSD can transparently run binaries from a variety of UNIX-like operating systems with a negligible impact on performance. While most of the popular open source applications have been ported to run natively on NetBSD, some commercial applications, such as Matlab and Mathematica, cannot be ported by the user community because the code is proprietary.

非ネイティブアプリケーションについては、NetBSD はとるに足らないパフォーマンスの影響はあるが、様々な UNIX 風オペレーティングシステムのバイナリを透過的に実行できる。人気のオープンソースアプリケーションのほとんどを NetBSD ネイティブに移植できるが、Matlab や Mathematica などいくつかの商業アプリケーションは、コードがプロプライエタリのためユーザーコミュニティによる移植は不可能だ。

This is where binary emulation becomes important for NetBSD users. The emulation process is streamlined because the binaries are native to the underlying architecture of the system. Don't confuse binary emulation with the CPU-hungry process of hardware emulation, which is not at play here. Binary emulation is often suitable for running processor-intensive applications in a production environment.

これは、バイナリエミュレーションは NetBSD 利用者にとって重要だということだ。バイナリはシステムのアーキテクチャの基礎なので、エミュレーションプロセスは効率的 {streamlined} である。混乱しないでほしいのだが、ハードウェアエミュレーションのように CPU 資源を食うプロセス {CPU-hungry process} としてのバイナリエミュレーションではない。それはここでは取り上げない。バイナリエミュレーションは、 製品環境でのプロセッサが厳しいアプリケーションを走らせるためにはときどき適している。

Decisions, decisions (決定、決定)

NetBSD's attention to detail, well-written code, and vast portability make it a solid choice for a number of deployment scenarios. Unfortunately, BSD derivatives are flying just low enough to stay under the radar and many developers and system administrators are missing important opportunities.

NetBSD で注力しているのは、詳細 {????} 、よいコードを書くこと、そして幅広い可搬性だ。これによりいくつかの設置シナリオ {deployment scenarios} については手堅い選択{solid choice} になる {アーキテクチャによっては定番のデプロイが出来るということか????}。不幸にも BSD 派生物は、レーダー{????}とたくさんの開発者とシステム管理者の下に居るには最低限充分なので、重要な機会を逃している。

The most important part of making a good decision is to be well informed. BSD might or might not be the right choice for you, but don't make the mistake of overlooking it just because you're familiar with something else. Use this article as a starting point to familiarize yourself with NetBSD, then give the distribution a shot -- the least you can do is learn.

よい決定をすることの最も重要なことは、よく精通{informed}していくことだ。BSD はあなたにとって正しい選択かもしれないし、そうでないかもしれない。しかし、あなたが他の何かについて精通するとしても、高い視点 {overlooking} では間違いではない。この章を使って NetBSD とともにあなた自身が精通するための出発点とし、配布物を得よう。少なくともあなたはそれが出来る。{????}

_ [NetBSD][munin]munin を入れてみた

NetBSD で pkgsrc でヒャッハー

munin って?

Munin - Trac

Munin is a networked resource monitoring tool that can help analyze resource trends and "what just happened to kill our performance?" problems. It is designed to be very plug and play. A default installation provides a lot of graphs with almost no work.

ネットワーク経由で計算機のリソース( CPU とかメモリとかファイルシステムとかいろいろ)をグラフなどにいい感じに出力などしてくれるツール。

munin-doc

% cd /usr/pkgsrc/sysutils/munin-doc
% make install clean clean-depens

munin-server

% cd /usr/pkgsrc/sysutils/munin-server
% make install clean clean-depens

:

===========================================================================
$NetBSD: MESSAGE,v 1.3 2006/06/09 13:25:22 he Exp $

You can start the collection of statistics and production of graphs by
installing a crontab for the munin user of the form

*/5 * * * * /usr/pkg/bin/munin-cron

You may need to give munin a valid shell to do so.


You may also want to add lines like

/var/log/munin/munin-graph.log  munin:munin 644 7 *    24   Z
/var/log/munin/munin-html.log   munin:munin 644 7 *    24   Z
/var/log/munin/munin-limits.log munin:munin 644 7 *    24   Z
/var/log/munin/munin-update.log munin:munin 644 7 *    24   Z

to your /etc/newsyslog.conf file to have the logs rotated.

===========================================================================

言われたとおりに作業する

cron に↑を追加

% crontab -u munin -e
*/5 * * * * /usr/pkg/bin/munin-cron

/etc/newsyslog.conf に↑を追加

/var/log/munin/munin-graph.log  munin:munin 644 7 *    24   Z
/var/log/munin/munin-html.log   munin:munin 644 7 *    24   Z
/var/log/munin/munin-limits.log munin:munin 644 7 *    24   Z
/var/log/munin/munin-update.log munin:munin 644 7 *    24   Z

/usr/pkg/etc/munin/munin.conf を編集

% vim /usr/pkg/etc/munin/munin.conf

デフォルトのまま

dbdir   /var/munin
htmldir /usr/pkg/www/munin/data
logdir  /var/log/munin
rundir  /var/run/munin
tmpldir /usr/pkg/etc/munin/templates

[mogu.area51.gr.jp]
    address 127.0.0.1
    use_node_name yes

apache

httpd の設定を追加

% sudo vim /usr/pkg/etc/httpd/httpd.conf
include etc/httpd/httpd-munin.conf
% sudo vim /usr/pkg/etc/httpd/httpd-munin.conf
ScriptAlias /munin/cgi/  /usr/pkg/www/munin/data/cgi/
Alias /munin/ /usr/pkg/www/munin/data/

<Directory "/usr/pkg/www/munin/data">
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>
Forbidden
You don't have permission to access /munin/ on this server.

と怒られたら Directory の設定してないとかなんとか

munin-node

% cd /usr/pkgsrc/sysutils/munin-node
% make install clean clean-depens

:

===========================================================================
The following files should be created for munin-node-1.3.2nb9:

        /etc/rc.d/munin-node (m=0755)
            [/usr/pkg/share/examples/rc.d/munin-node]

===========================================================================
===========================================================================
$NetBSD: MESSAGE,v 1.3 2006/12/05 14:53:32 xtraeme Exp $

Plugins can be auto-configured with "munin-node-configure --shell | sh"

You may also want to add an entry such as

/var/log/munin/munin-node.log   munin:munin 644 7 *    24   Z

to /etc/newsyslog.conf to have the node log rotated.

===========================================================================

rc ファイルをコピー

% cp /usr/pkg/share/examples/rc.d/munin-node /etc/rc.d/

/etc/newsyslog.conf に↑を追加

/var/log/munin/munin-node.log   munin:munin 644 7 *    24   Z

/etc/rc.conf に追加

munin_node=yes

設定を実行

% munin-node-configure --shell | sh
:
Could not open "/usr/pkg/etc/munin/plugins" for reading: No such file or directory at /usr/pkg/sbin/munin-node-configure line 348.

怒られたので作っておく

% mkdir /usr/pkg/etc/munin/plugins

もう一回

% munin-node-configure --shell | sh

デフォルトだとこんなのが作られる。

% ls -l /usr/pkg/etc/munin/plugins
lrwxr-xr-x 1 root wheel 30 Sep 26 20:49 cpu -> /usr/pkg/lib/munin/plugins/cpu*
lrwxr-xr-x 1 root wheel 29 Sep 26 20:49 df -> /usr/pkg/lib/munin/plugins/df*
lrwxr-xr-x 1 root wheel 32 Sep 26 20:49 forks -> /usr/pkg/lib/munin/plugins/forks*
lrwxr-xr-x 1 root wheel 38 Sep 26 20:49 if_errcoll_pcn0 -> /usr/pkg/lib/munin/plugins/if_errcoll_*
lrwxr-xr-x 1 root wheel 30 Sep 26 20:49 if_pcn0 -> /usr/pkg/lib/munin/plugins/if_*
lrwxr-xr-x 1 root wheel 37 Sep 26 20:49 interrupts -> /usr/pkg/lib/munin/plugins/interrupts*
lrwxr-xr-x 1 root wheel 33 Sep 26 20:49 iostat -> /usr/pkg/lib/munin/plugins/iostat*
lrwxr-xr-x 1 root wheel 37 Sep 26 20:49 iostat_ops -> /usr/pkg/lib/munin/plugins/iostat_ops*
lrwxr-xr-x 1 root wheel 35 Sep 26 20:49 irqstats -> /usr/pkg/lib/munin/plugins/irqstats*
lrwxr-xr-x 1 root wheel 31 Sep 26 20:49 load -> /usr/pkg/lib/munin/plugins/load*
lrwxr-xr-x 1 root wheel 33 Sep 26 20:49 memory -> /usr/pkg/lib/munin/plugins/memory*
lrwxr-xr-x 1 root wheel 39 Sep 26 20:49 memory_pools -> /usr/pkg/lib/munin/plugins/memory_pools*
lrwxr-xr-x 1 root wheel 39 Sep 26 20:49 memory_types -> /usr/pkg/lib/munin/plugins/memory_types*
lrwxr-xr-x 1 root wheel 34 Sep 26 20:49 netstat -> /usr/pkg/lib/munin/plugins/netstat*
lrwxr-xr-x 1 root wheel 37 Sep 26 20:49 nfs_client -> /usr/pkg/lib/munin/plugins/nfs_client*
lrwxr-xr-x 1 root wheel 31 Sep 26 20:49 nfsd -> /usr/pkg/lib/munin/plugins/nfsd*
lrwxr-xr-x 1 root wheel 37 Sep 26 20:49 open_files -> /usr/pkg/lib/munin/plugins/open_files*
lrwxr-xr-x 1 root wheel 44 Sep 26 20:49 postfix_mailqueue -> /usr/pkg/lib/munin/plugins/postfix_mailqueue*
lrwxr-xr-x 1 root wheel 36 Sep 26 20:49 processes -> /usr/pkg/lib/munin/plugins/processes*
lrwxr-xr-x 1 root wheel 31 Sep 26 20:49 swap -> /usr/pkg/lib/munin/plugins/swap*
lrwxr-xr-x 1 root wheel 36 Sep 26 20:49 swap_size -> /usr/pkg/lib/munin/plugins/swap_size*
lrwxr-xr-x 1 root wheel 33 Sep 26 20:49 uptime -> /usr/pkg/lib/munin/plugins/uptime*
lrwxr-xr-x 1 root wheel 33 Sep 26 20:49 vmstat -> /usr/pkg/lib/munin/plugins/vmstat*

動作確認

起動

% /etc/rc.d/munin-node start

telnet してみる

% telnet localhost 4949
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.

しゃべってみる

# munin node at mogu.area51.gr.jp
list
irqstats processes postfix_mailqueue if_errcoll_pcn0 memory_types swap_size memory_pools df netstat interrupts uptime swap load nfsd cpu if_pcn0 iostat forks open_files memory vmstat iostat_ops nfs_client

TLS Error: Could not enable TLS

ログ /var/log/munin/munin-node.log にこんなのがあった。

2011/12/22-22:00:00 [3491] TLS Notice: No key file "/usr/pkg/etc/munin/munin-node.pem". Continuing without private key.
2011/12/22-22:00:00 [3491] TLS Notice: No certificate file "/usr/pkg/etc/munin/munin-node.pem". Continuing without certificate.
Use of uninitialized value $msg in concatenation (.) or string at /usr/pkg/lib/perl5/vendor_perl/5.12.0/i386-netbsd-thread-multi/Net/SSLeay.pm line 693, <STDIN> line 1.
2011/12/22-22:00:00 [3491] TLS Error: Could not enable TLS:  3491: 1 - error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure
Dec 22 22:00:51 mogu newsyslog[7894]: log file turned over

ググる

うーたんの小部屋 » Blog Archive » Munin障害(対応)

/usr/pkg/etc/munin/munin.conf に以下を追加

tls disabled

再起動

% /etc/rc.d/munin restart

見る

http://example.org/munin/ にアクセスする。

こんな

本日のツッコミ(全4件) [ツッコミを入れる]
_ Fryght (2011-12-23 08:34)

ダイジョウブ、38カラアラフォートオモエバ…。

_ みわ (2011-12-23 23:54)

心は10代デス

_ かず母ちゃん (2011-12-30 23:46)

遅くなってしまったけどお誕生日おめでと~(^^)私は永遠に28歳で頑張り。。。たいです(>_<)でもここ数年体にガタがきてるヨ(T_T)

_ みわ (2011-12-31 21:13)

ありがとうゴマス。30過ぎてから体力が フジコ