約 2,870,476 件
https://w.atwiki.jp/ppnlab/pages/16.html
最終更新:2013年07月05日 (金) 09時00分32秒 ここではOpenCVのビルドに関するメモをまとめます。 ここに書かれていることを行いなにか問題があっても責任はとれません。くれぐれも自己責任でお願いいたします。個人的な意見・間違いも多いと思います。アドバイスされると喜びます( ・ω・*) ※ VaioZに最新NVIDIA(最新CUDA)を非正規導入するのはお勧めしません。ディスプレイのバックライト輝度を調節できなくなり,目が辛いです。 追記・メモ等(読み飛ばしてください) ・ ・ ・ ■はじめに 公式のドキュメントより抜粋 OpenCV may come in multiple flavors. There is a “core” section that will work on its own. Nevertheless, there is a couple of tools, libraries made by 3rd parties that offer services of which the OpenCV may take advantage. These will improve its capabilities in many ways. In order to use any of them, you need to download and install them on your system. Installation in Windows — OpenCV 2.4.5.0 documentation OpenCVはビルド済みのものが配布されており,それにより比較的簡単な準備でGUI,カメラ,顔検出,その他画像処理を行うことが可能です。 自分でビルドすることで3rdパーティーによる恩恵が受けられます。3rdパーティによるライブラリはダウンロードおよびインストールする必要があります。ものによってはビルドの必要があり,割と手間です。 残念ながら,どれだけアドバンテージがあるのか試してません。 !!追加予定 Face Detect等簡単なもので比べる。 ■3rdパーティーのライブラリ 公式で説明されている主なライブラリは次のもの。 python, Numpy, TBB, IPP(有料), Qt, Eigen, CUDA, OpenEXR, OpenNI, Miktex, Sphinx とりあえずパフォーマンスに貢献するCUDA, TBBを入れておけばいいんじゃないでしょうか。 !!追加予定 訳?と+αの説明, 必要性。こんなかんじ TBB, CUDAが一番重要そうです。マルチスレッド,GPUのものです? pythonを使うならpython, numpyも。 numpy, eigen等のライブラリがどう役立つのかわかってません。 QtはGUIを高機能?にしますが,個人的には今のところ不要です。 OpenEXRは今ここでは無視。追加予定です。そのうち使ってみたいです。 Miktexはwindows,SphinxはpythonでOpenCvのドキュメントを作成するためのものです。 OpenNIはOpenCVで用意されているOpenNI関連の関数を使いたい場合に。OpenNI2にバージョンが変わったので,2次配布されているものを拾ってきます。OpenNIとOpenNI2はおそらく共存できず互換性もないので,あきらめてOpenNI2はOpenNI2で使った方がいいかもしれません。 ■ビルド環境 ビルドは次の環境で試しました。 MSVC 2008/2010 EE 32bit/64bit ※ 2008 EE 64bit はコマンドプロンプトコンパイラによるOpenCVビルドの所で失敗したままです。 ※ビルドする際の注意点 OpenCVライブラリを利用する環境と次をビルドする環境は合わせましょう。 OpenCVライブラリ 3rdパーティのライブラリ ビルドする環境によってその環境用のdll等が生成されます。例えばMSVC 2008,32bitでライブラリをビルドした場合,そのライブラリはMSVC 2008,32bitでのみ利用できます。これに関して,Express Editionかどうかは問題じゃなさそうです。 これは3rdパーティーのライブラリも同様です。それらを自分でビルドしなければならない際は,OpenCVを利用する環境に合わせてビルドしましょう。 ■注意等 OpenCVを「ビルドする時」と「利用する時」のMSVCのバージョン,ビット数は合わせましょう。 また,3rdパーティのライブラリをMSVCでビルドする必要がある場合,こちらも合わせましょう。 Qtをビルドした際,その結果のファイルパスが記憶されるようで,フォルダ位置を変更するとおかしくなりました。 OpenNIがOpenNI2になってしまった 旧ver. 再配布を拾ってくる。もしくはあきらめて,OpenNI2はOpenNI2で使う。 3rdパーティによりどれくらい良くなるか比較していません。 NotePCではNVIDIAドライバを更新しづらくCUDA導入は手間です。特にVaio Zで最新CUDAを利用する場合,NVIDIAドライバを更新しなければなりません。その際にBIOSの書き換えが必要で,ディスプレイの輝度がいじれなくなります。まぶしいのでおすすめしません。 ■OpenCVのビルド OpenCVのビルドに最低限必要なもの 最低限必要なものは3つ ・OpenCV ソースファイル ・CMake ・Microsoft Visual Studio C++ 2008/2010 Express Edition(略:msvc) CMakeはビルド設定をサポートしてくれます。パスの設定や,どの3rdパーティーのライブラリを追加するのか,テストプログラムはコンパイルするかなどの設定をGUIで行えます。設定後,MSVCでビルド可能なようにソリューション以下プロジェクト等を生成してくれます。 ※ MSVC2008でOpenCVを利用する場合は,MSVC2008でOpenCVをビルドしてください。 32bitビルドと64bitビルド 実際,64bitの方が速いのでしょうか。 少なくともpythonは32bitだけでよさそうです。 → リンク挿入 3rdパーティーのライブラリ 3rdパーティーのライブラリには予めビルドしなければならないものと,OpenCVビルドの際に一緒にビルドされるものがあります。 OpenCVをビルドする際に何か問題が出た場合,一旦除外したうえでビルドが通るか試すといいです。OpenCVのコアが上手くビルドされることを確認したうえで,3rdパーティーのライブラリを追加してゆく方が問題に専念しやすいです。 また,先行までで示したようにビルドのパターンはMSVCのバージョンで2パターン,ビット数で2パターン,計4パターンあります。 予めMSVCでビルドしなければならないものは,OpenCVをビルドする際のパターンと合わせましょう。 OpenCVのビルドにはどちらのバージョンを使い何ビットでコンパイルするのかに注意して,3rdパーティの準備を行いましょう, ■繰り返しになりますが,OpenCVの使用/ビルドに当たっての注意点 開発環境(MSVC)と依存ファイル(OpenCV等)のバージョンを合わせる ビルド済みで配布されているものを解凍すると,次のようなフォルダ構成が見られます. 32/64bitで分けられているだけでなく,vc9/10でも分けられています. ※ vc9はMSVC2008, vc10はMSVC2010です. opencv build x86 vc9 bin, lib, staticlib (フォルダ) opencv build x86 vc10 bin, lib, staticlib opencv build x64 vc9 bin, lib, staticlib opencv build x64 vc10 bin, lib, staticlib なぜ分けられているかというと,おそらくOpenCVライブラリを使ったプログラムをどちらでコンパイル/ビルドするかで,使いわけなけらばならないからです. 実際,MSVCのバージョンを合わせなかったところ,引数が正しく渡されませんでした(stringポインタが不正な値になりました).もちろん,私の知識が乏しいので,他の問題が根本的な原因が見つけられなかったのかもしれませんが. OpenCVをビルドする際の注意 また,OpenCV自体をビルドする際にも注意しなければなりません. 1. OpenCVをmsvc2008でビルドした場合,自作プログラムをコンパイル/ビルドするのはmsvc2008である必要があるのは先ほどと同じことです. 2. 問題はQt等を自分でビルドし,OpenCVビルド時に使用する場合です.QtをビルドするMSVCのバージョンとOpenCVをビルドするMSVCのバージョンは合わせなければなりません. いわずもがなですが,ビルド時のパターンは全部で4つです 32bit/MSVC2008 64bit/MSVC2008 32bit/MSVC2010 64bit/MSVC2010
https://w.atwiki.jp/oldscoolessential/pages/201.html
⧼Open Game License⧽ DESIGNATION OF PRODUCT IDENTITY All original artwork, logos, and presentation in "オールド・スクール・エッセンシャル非公式日本語wiki" are product identity. The names “peneri1130”, "ペネリ1130", and “オールド・スクール・エッセンシャル非公式日本語wiki” are product identity. All graphical and layout designs specific to this edition are product identity. DESIGNATION OF OPEN GAME CONTENT All text derived from the Old-School Essentials System Reference Document,translated into Japanese, and not part of the product identity, are declared as Open Game Content. OPEN GAME LICENSE Version 1.0a The following text is the property of Wizards of the Coast, Inc. and is Copyright 2000 Wizards of the Coast, Inc (“Wizards”). All Rights Reserved. 1. Definitions (a)”Contributors” means the copyright and/or trademark owners who have contributed Open Game Content; (b)”Derivative Material” means copyrighted material including derivative works and translations (including into other computer languages), potation, modification, correction, addition, extension, upgrade, improvement, compilation, abridgment or other form in which an existing work may be recast, transformed or adapted; (c) “Distribute” means to reproduce, license, rent, lease, sell, broadcast, publicly display, transmit or otherwise distribute; (d)”Open Game Content” means the game mechanic and includes the methods, procedures, processes and routines to the extent such content does not embody the Product Identity and is an enhancement over the prior art and any additional content clearly identified as Open Game Content by the Contributor, and means any work covered by this License, including translations and derivative works under copyright law, but specifically excludes Product Identity. (e) “Product Identity” means product and product line names, logos and identifying marks including trade dress; artifacts; creatures characters; stories, storylines, plots, thematic elements, dialogue, incidents, language, artwork, symbols, designs, depictions, likenesses, formats, poses, concepts, themes and graphic, photographic and other visual or audio representations; names and descriptions of characters, spells, enchantments, personalities, teams, personas, likenesses and special abilities; places, locations, environments, creatures, equipment, magical or supernatural abilities or effects, logos, symbols, or graphic designs; and any other trademark or registered trademark clearly identified as Product identity by the owner of the Product Identity, and which specifically excludes the Open Game Content; (f) “Trademark” means the logos, names, mark, sign, motto, designs that are used by a Contributor to identify itself or its products or the associated products contributed to the Open Game License by the Contributor (g) “Use”, “Used” or “Using” means to use, Distribute, copy, edit, format, modify, translate and otherwise create Derivative Material of Open Game Content. (h) “You” or “Your” means the licensee in terms of this agreement. 2. The License This License applies to any Open Game Content that contains a notice indicating that the Open Game Content may only be Used under and in terms of this License. You must affix such a notice to any Open Game Content that you Use. No terms may be added to or subtracted from this License except as described by the License itself. No other terms or conditions may be applied to any Open Game Content distributed using this License. 3.Offer and Acceptance By Using the Open Game Content You indicate Your acceptance of the terms of this License. 4. Grant and Consideration In consideration for agreeing to use this License, the Contributors grant You a perpetual, worldwide, royalty-free, non-exclusive license with the exact terms of this License to Use, the Open Game Content. 5.Representation of Authority to Contribute If You are contributing original material as Open Game Content, You represent that Your Contributions are Your original creation and/or You have sufficient rights to grant the rights conveyed by this License. 6.Notice of License Copyright You must update the COPYRIGHT NOTICE portion of this License to include the exact text of the COPYRIGHT NOTICE of any Open Game Content You are copying, modifying or distributing, and You must add the title, the copyright date, and the copyright holder’s name to the COPYRIGHT NOTICE of any original Open Game Content you Distribute. 7. Use of Product Identity You agree not to Use any Product Identity, including as an indication as to compatibility, except as expressly licensed in another, independent Agreement with the owner of each element of that Product Identity. You agree not to indicate compatibility or co-adaptability with any Trademark or Registered Trademark in conjunction with a work containing Open Game Content except as expressly licensed in another, independent Agreement with the owner of such Trademark or Registered Trademark. The use of any Product Identity in Open Game Content does not constitute a challenge to the ownership of that Product Identity. The owner of any Product Identity used in Open Game Content shall retain all rights, title and interest in and to that Product Identity. 8. Identification If you distribute Open Game Content You must clearly indicate which portions of the work that you are distributing are Open Game Content. 9. Updating the License Wizards or its designated Agents may publish updated versions of this License. You may use any authorized version of this License to copy, modify and distribute any Open Game Content originally distributed under any version of this License. 10 Copy of this License You MUST include a copy of this License with every copy of the Open Game Content You Distribute. 11. Use of Contributor Credits You may not market or advertise the Open Game Content using the name of any Contributor unless You have written permission from the Contributor to do so. 12 Inability to Comply If it is impossible for You to comply with any of the terms of this License with respect to some or all of the Open Game Content due to statute, judicial order, or governmental regulation then You may not Use any Open Game Material so affected. 13 Termination This License will terminate automatically if You fail to comply with all terms herein and fail to cure such breach within 30 days of becoming aware of the breach. All sublicenses shall survive the termination of this License. 14 Reformation If any provision of this License is held to be unenforceable, such provision shall be reformed only to the extent necessary to make it enforceable. 15 COPYRIGHT NOTICE Open Game License v 1.0 © 2000, Wizards of the Coast, Inc. System Reference Document © 2000, Wizards of the Coast, Inc.; Authors Jonathan Tweet, Monte Cook, Skip Williams, based on original material by E. Gary Gygax and Dave Arneson. System Reference Document © 2000-2003, Wizards of the Coast, Inc.; Authors Jonathan Tweet, Monte Cook, Skip Williams, Rich Baker, Andy Collins, David Noonan, Rich Redman, Bruce R. Cordell, John D. Rateliff, Thomas Reid, James Wyatt, based on original material by E. Gary Gygax and Dave Arneson. Modern System Reference Document © 2002-2004, Wizards of the Coast, Inc.; Authors Bill Slavicsek, Jeff Grubb, Rich Redman, Charles Ryan, Eric Cagle, David Noonan, Stan!, Christopher Perkins, Rodney Thompson, and JD Wiker, based on material by Jonathan Tweet, Monte Cook, Skip Williams, Richard Baker, Peter Adkison, Bruce R. Cordell, John Tynes, Andy Collins, and JD Wiker. Castles Crusades Players Handbook, © 2004, Troll Lord Games; Authors Davis Chenault and Mac Golden. Cave Cricket from the Tome of Horrors, © 2002, Necromancer Games, Inc.; Authors Scott Greene and Clark Peterson, based on original material by Gary Gygax. Crab, Monstrous from the Tome of Horrors, © 2002, Necromancer Games, Inc.; Author Scott Greene, based on original material by Gary Gygax. Fly, Giant from the Tome of Horrors, © 2002, Necromancer Games, Inc.; Author Scott Greene, based on original material by Gary Gygax. Golem, Wood from the Tome of Horrors, © 2002, Necromancer Games, Inc.; Authors Scott Greene and Patrick Lawinger. Kamadan from the Tome of Horrors, © 2002, Necromancer Games, Inc.; Author Scott Greene, based on original material by Nick Louth. Rot Grub from the Tome of Horrors, © 2002, Necromancer Games, Inc.; Authors Scott Greene and Clark Peterson, based on original material by Gary Gygax. Labyrinth Lord™ © 2007-2009, Daniel Proctor. Author Daniel Proctor. B/X Essentials Core Rules © 2017 Gavin Norman. Author Gavin Norman. B/X Essentials Classes and Equipment © 2017 Gavin Norman. Author Gavin Norman. B/X Essentials Cleric and Magic-User Spells © 2017 Gavin Norman. Author Gavin Norman. B/X Essentials Monsters © 2017 Gavin Norman. Author Gavin Norman. B/X Essentials Adventures and Treasures © 2018 Gavin Norman. Author Gavin Norman. Old-School Essentials Core Rules © 2018 Gavin Norman. Old-School Essentials Classic Fantasy Genre Rules © 2018 Gavin Norman. Old-School Essentials Classic Fantasy Cleric and Magic-User Spells © 2018 Gavin Norman. Old-School Essentials Classic Fantasy Monsters © 2018 Gavin Norman. Old-School Essentials Classic Fantasy Treasures © 2018 Gavin Norman. Old-School Essentials Classic Fantasy Rules Tome © 2019 Gavin Norman. Old-School Essentials System Reference Document © 2019 Gavin Norman. Author Gavin Norman. オールド・スクール・エッセンシャル非公式日本語wiki© 2024 peneri1130 END OF LICENSE
https://w.atwiki.jp/shirayuu/pages/44.html
昨今、セキュアな接続が求められているので勉強しておきたいところです。 ちょっとやそっちょじゃ把握しきれないので様々なサイトを参考にしつつメモしていきます。 そもそも、SSL とは IT用語辞典より http //e-words.jp/w/SSL.html SSLとは、Netscape Communications社が開発した、インターネット上で情報を暗号化して送受信するプロトコル。現在インターネットで広く使われているWWWやFTPなどのデータを暗号化し、プライバシーに関わる情報やクレジットカード番号、企業秘密などを安全に送受信することができる。 SSLは公開鍵暗号や秘密鍵暗号、デジタル証明書、ハッシュ関数などのセキュリティ技術を組み合わせ、データの盗聴や改ざん、なりすましを防ぐことができる。OSI参照モデルではセッション層(第5層)とトランスポート層(第4層)の境界で動作し、HTTPやFTPなどの上位のプロトコルを利用するアプリケーションソフトからは、特に意識することなく透過的に利用することができる。SSL 3.0をもとに若干の改良が加えられたTLS 1.0がRFC 2246としてIETFで標準化されている。 OpenSSL 公式ページ http //www.openssl.org/ OpenSSL 公式ページ(日本語) http //www.infoscience.co.jp/technical/openssl/ Wikipedia OpenSSL http //ja.wikipedia.org/wiki/OpenSSL 参考にするサイト UNIXな生活 OpenSSLでの自己認証局(CA)と自己証明書の作成http //park15.wakwak.com/~unixlife/practical/openssl.html OpenSSLを使ったCAの構築http //www.fc-lab.com/network/server/pki/openssl.html CA 構築のための OpenSSL の設定http //moca.wide.ad.jp/notes/ca_doc/openssl.html サーバの実験室 Slackware opensslコマンドhttp //www.nina.jp/server/slackware/openssl/openssl-command.html 何が作れるか CA.sh の場所 CA.sh の編集 CA(認証局) の作成 何が作れるか OpenSSL を活用することにより暗号化通信を行うことができます。そのためには、認証局や秘密鍵、公開鍵、認証書などを作成する必要があります。 CA(自己認証局) 秘密鍵 公開鍵 認証書 注釈) 自前でHTTPSやFTPSなどSSLを活用するサーバを作る場合には、自分で認証する機関を作ってその認証機関から自分のサーバは信頼できるという情報を与えるわけですから、よく考えれば自分で作った機関が自分のサーバは信頼できるという信頼できないサーバを作ることになります。そのため、WWWブラウザからは信頼されないWebサイトとして警告を受けます。例えば、amazon.com は、VeriSign, Inc.(ベリサイン)から認証を受けています。 CA.sh の場所 OS や ディストリビューション(Linux) によって異なる場合があります。実際に、 ubuntu(9.10) では、/usr/lib/ssl/misc/CA.sh に存在し、 FreeBSD では、/usr/local/openssl/misc/CA.sh 存在します。 例えば、次の方法でCA.sh を取得します。 # cp -v /usr/lib/ssl/misc/CA.sh ~/tmp/ssl/ # cp -v /usr/local/openssl/misc/CA.sh ~/tmp/ssl/ CA.sh の編集 さて、実際にCA.sh を編集していきます。 CA(認証局) の作成 CA certificate filename (or enter to create) [Enter] Making CA certificate ... Generating a 1024 bit RSA private key ................++++++ ......................++++++ writing new private key to ./demoCA/private/./cakey.pem Enter PEM pass phrase パスワード Verifying - Enter PEM pass phrase パスワード ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter . , the field will be left blank. ----- Country Name (2 letter code) [AU] JP (国名) State or Province Name (full name) [Some-State] Kyoto(都市名) Locality Name (eg, city) [] Kyoto (市町村) Organization Name (eg, company) [Internet Widgits Pty Ltd] (組織名) Organizational Unit Name (eg, section) [] (部署名) Common Name (eg, YOUR name) [] (ホスト名) Email Address [] root@localhost (連絡先メールアドレス) 自分で認証局を作る場合は、組織名も部署名もないわけですからかまわないと思います(それゆえに信頼できない認証局)。 cacert.pem 認証機関の証明書 private/cakey.pem 認証機関の秘密鍵
https://w.atwiki.jp/memodelvin/pages/19.html
OpenVPN設定 http //www.atmarkit.co.jp/flinux/special/openvpn/openvpnc.html http //centossrv.com/openvpn.shtml http //www.yomaigoto.jp/archives/153 http //www.yam-web.net/openvpn/index.html http //griffonworks.net/freebsd/openvpn/ 192.168.1.xxxからVPN接続する場合で、クライアントPCをOpenVPNサーバのIPアドレスにNAT変換する IPマスカレード機能で通信させる場合、push “route 192.168.1.0 255.255.255.0″をserver.confに 書くと通信できなくなる(なんで?間違ってるかも)。 OpenVPN for Windowsでの注意点 インターネットプロトコルバージョン6(TCP/IPv6)に対応していない為、TAP-Win32 Adapterのプロパティでチェックを外す。 Windows7の場合、スタートメニュ- すべてのプログラム- OpenVPN- OpenVPN GUIを右クリックして「プロパティ」-「互換性」-「管理者としてこのプログラムを実行する」をチェックして「OK」にしないと通信できない。※インストール後最初の1回のみ パスワードを変更しようとするとno OPENSSL_Applinkとかいうエラーが出て失敗する。 上記の問題は、日本語版OpenVPN for Windowsだと生じない。 OpenVPNクライアント(windows)からOpenVPNサーバへのpingは通るが、その逆は通らない(Windowsだから?)。OpenVPNクライアント(Linux)だとサーバからもpingは通る。 OpenVPNはデフォルトゲートウェイをVPN接続のゲートウェイとする為、VPNサーバにNICが2つ以上ある場合、 デフォルトゲートウェイを適切に設定しないとVPN接続が確立しない。 具体的には外部から接続する方のNICのゲートウェイをデフォルトゲートウェイにする。 つまり、/etc/sysconfig/networkに GATEWAY=xxx.xxx.xxx.xxx と書く。xxx.xxx.xxx.xxxは外部から接続する方のNICのゲートウェイアドレス。 Wimaxで接続する場合の注意点 http //www.mythril.ne.jp/modules/smartsection/print.php?itemid=198 http //femt.ddo.jp/modules/xpwiki/?Gentoo%20Linux%E3%81%AA%E7%94%9F%E6%B4%BB%2FOpenVPN%E3%81%A7%E6%82%A9%E3%82%80 パスフレーズ変更 openssl rsa -aes256 -in *.key -out *.key
https://w.atwiki.jp/memcache/pages/58.html
概要 動作環境TUN/TAPデバイスについて 環境構築静的鍵(static key)鍵の生成(Windows) 鍵の生成(Unix) 設定ファイルの作成 X.509 PKI前準備 プライベートCAの構築とCA証明書・CA秘密鍵の作成 サーバ証明書・サーバ秘密鍵の作成 クライアント証明書・クライアント秘密鍵の作成 DHパラメータの作成 設定ファイルの作成 (server.conf) 設定ファイルの作成 (client.conf) FAQクライアント証明書・鍵生成エラー クライアント同士を見えるようにする クライアントの全てのトラフィックをサーバ経由にする 複数のVLANを接続するサーバ設定ファイル LinuxのIPフォワード設定 認証 link 概要 VPNクライアント/サーバを構成する方法は以下の2種類。 方法 説明 静的鍵(static key) 秘密鍵を用いる方法。クライアント/サーバは1 1のみ X.509 PKI 証明書と秘密鍵を使った公開鍵基盤を用いる方法 OpenVPNサーバは、Listenポートとしてudp 1194(default)を利用する。 動作環境 OpenVPNを利用するのに必要なソフトウェアは以下の3つ。 OpenSSL LZO圧縮 TUN/TAPデバイス(Linuxカーネルの機能) cf http //www.komoto.org/vpn/openvpn.html 組み込みLinuxカーネルの構築時にこれだけは知っておかなければならない項目 Linux Kernel 2.4 Documentation TUN/TAPデバイスについて 以下のモジュールをカーネル構築時に有効とする。 Network device support ARCnet devices Universal TUN/TAP device driver support 環境構築 静的鍵(static key) 環境構築の大まかな手順は以下の通り。 鍵の生成 設定ファイルの作成 設定ファイルの拡張子はUnixとWindowsで異なる。 Windowsでの設定ファイル (server.ovpn, client.ovpn) Unixでの設定ファイル (server.conf, client.conf) 以下の環境を構築する。 PC VPN上IPアドレス IPアドレス OpenVPNサーバ 10.8.0.1 192.168.0.1 OpenVPNクライアント 10.8.0.2 192.168.0.2 鍵の生成(Windows) スタートメニューから"Generate a static OpenVPN key"を実行するとconfigフォルダにkey.txtが生成される。 鍵の生成(Unix) 以下のコマンドを実行する。 openvpn --genkey --secret key.txt 設定ファイルの作成 サーバ設定ファイル (server.conf) dev tun ifconfig 10.8.0.1 10.8.0.2 secret key.txt クライアント設定ファイル (client.conf) remote 192.168.0.1 dev tun ifconfig 10.8.0.2 10.8.0.1 secret key.txt cf. Static Key Mini-HOWTO 静的鍵 Mini-HOWTO WindowsでのOpenVPN(1) X.509 PKI Unixを前提とする。環境構築の大まかな手順は以下の通り。 前準備:設定ファイルのひな形を/etc/openvpnへコピー プライベートCAの構築とCA証明書・CA秘密鍵の作成 サーバ証明書・サーバ秘密鍵の作成 クライアント証明書・クライアント秘密鍵の作成 DHパラメータの作成 この作業で作成するファイルは以下の通り。 ファイル名 説明 配置PC ca.crt CA証明書 サーバ・クライアント ca.key CA秘密鍵 server.crt サーバ証明書 サーバ server.key サーバ秘密鍵 サーバ client*.crt クライアント証明書 クライアント client*.key クライアント秘密鍵 クライアント dh1024.pem DHパラメータファイル サーバ 前準備 以後、OpenVPNサーバ側で作業を行う。 以下のファイル・ディレクトリを/etc/openvpnへコピーする。 server.conf (クライアントには不要) client.conf (サーバには不要) easy-rsa/ (クライアントには不要) 設定ファイルのひな形は以下のディレクトリにある。(ディストリビューションによって異なる) /usr/share/doc/openvpn-2.1.4/sample-config-files や /usr/share/doc/openvpn/examples/sample-config-files (Ubuntuの場合) など。 easy-rsaは以下のディレクトリ。これもディストリビューションによって異なる。 /usr/share/openvpn/easy-rsa や /usr/share/doc/openvpn/examples/easy-rsa (Ubuntuの場合) など。 プライベートCAの構築とCA証明書・CA秘密鍵の作成 以下の作業を行う。 /etc/openvpn/easy-rsa/2.0/varsファイルの修正 build-caの実行 /etc/openvpn/easy-rsa/2.0/varsの修正内容 export KEY_COUNTRY="JP" ←国名 export KEY_PROVINCE="Tokyo" ←都道府県名 export KEY_CITY="suginami" ←区市町村名 export KEY_ORG="xxxxxxx" ←団体名 export KEY_EMAIL="xxxxxx@gmail.co.jp" ←メールアドレス 以下の手順でbuild-caを実行する。 # cd /etc/openvpn/easy-rsa/2.0/ # sudo bash # source ./vars # ./clean-all # ./build-ca ...省略... Country Name (2 letter code) [JP] ←Enterを入力 State or Province Name (full name) [Tokyo] ←Enterを入力 Locality Name (eg, city) [suginami] ←Enterを入力 Organization Name (eg, company) [xxxxxxx] ←Enterを入力 Organizational Unit Name (eg, section) [] ←Enterを入力 Common Name (eg, your name or your server s hostname) [xxxx CA] ←Enterを入力 Email Address [xxxxxx@gmail.co.jp] ←Enterを入力 サーバ証明書・サーバ秘密鍵の作成 以下の作業を行う。 build-key-serverの実行(サーバ証明書とサーバ秘密鍵の作成) 以下の手順でbuild-key-serverを実行する。 # cd /etc/openvpn/easy-rsa/2.0/ # sudo bash # source ./vars # ./build-key-server server ...省略... Country Name (2 letter code) [JP] ←Enterを入力 State or Province Name (full name) [Tokyo] ←Enterを入力 Locality Name (eg, city) [suginami] ←Enterを入力 Organization Name (eg, company) [xxxxxxx] ←Enterを入力 Organizational Unit Name (eg, section) [] ←Enterを入力 Common Name (eg, your name or your server s hostname) [server] ←Enterを入力 Email Address [xxxxxx@gmail.co.jp] ←Enterを入力 ...省略... A challenge password [] ←Enterを入力 An optional company name [] ←Enterを入力 ...省略... Sign the certificate? [y/n] y ←「y」を入力 ...省略... 1 out of 1 certificate requests certified, commit? [y/n]y ←「y」を入力 クライアント証明書・クライアント秘密鍵の作成 build-key-passの実行 以下の手順でbuild-key-passを実行する。 # cd /etc/openvpn/easy-rsa/2.0/ # sudo bash # source ./vars # ./build-key-pass client01 ←クライアントが複数台ならclient02、client03のように変えて台数分実行します ...省略... Enter PEM pass phrase ←パスフレーズを入力 Verifying - Enter PEM pass phrase ←パスフレーズを再入力 ...省略... Country Name (2 letter code) [JP] ←Enterを入力 State or Province Name (full name) [Tokyo] ←Enterを入力 Locality Name (eg, city) [suginami] ←Enterを入力 Organization Name (eg, company) [xxxxxxx] ←Enterを入力 Organizational Unit Name (eg, section) [] ←Enterを入力 Common Name (eg, your name or your server s hostname) [client01] ←Enterを入力 Email Address [xxxxx@gmail.co.jp] ←Enterを入力 ...省略... A challenge password [] ←Enterを入力 An optional company name [] ←Enterを入力 ...省略... Sign the certificate? [y/n] y ←「y」を入力 ...省略... 1 out of 1 certificate requests certified, commit? [y/n]y ←「y」を入力 DHパラメータの作成 build-dhの実行 以下の手順でbuild-dhを実行する。 # cd /etc/openvpn/easy-rsa/2.0/ # ./build-dh 設定ファイルの作成 (server.conf) 以下の設定内容に注意。 ca cert key dh サンプル server.conf 設定ファイルの作成 (client.conf) 以下の設定内容に注意。 ca cert key サンプル client.conf FAQ クライアント証明書・鍵生成エラー クライアント生成スクリプトbuild-key-passを実行する際、証明書(certificate)への署名時に以下のエラーが発生することがある。 ... Using configuration from /etc/openvpn/easy-rsa/2.0/openssl.cnf Check that the request matches the signature Signature ok The Subject s Distinguished Name is as follows countryName PRINTABLE JP stateOrProvinceName PRINTABLE Tokyo localityName PRINTABLE ひみつ organizationName PRINTABLE ひみつ commonName PRINTABLE client1 -- ここ! emailAddress IA5STRING ひみつ Certificate is to be certified until Feb 18 04 22 38 2022 GMT (3650 days) Sign the certificate? [y/n] y failed to update database TXT_DB error number 2 ... 以前作成したクライアント証明書と鍵のcommonNameは以下のファイル(TXT_DB)に保存されている。作成済みcommonNameのクライアント証明書・鍵を生成するとこのエラーが発生する。このファイルの該当行を削除するとこの問題を回避可能。 /etc/openvpn/easy-rsa/2.0/keys/index.txt クライアント同士を見えるようにする サーバ設定ファイル(server.conf)で以下のコマンドを追記する。 client-to-client クライアントの全てのトラフィックをサーバ経由にする push "redirect-gateway" 複数のVLANを接続する 手順は大きく以下の2つ。 サーバ設定ファイルにクライアントへpushするルートを追加 LinuxのIPフォワード設定 サーバ設定ファイル osaka.conf sapporo.conf LinuxのIPフォワード設定 echo 1 /proc/sys/net/ipv4/ip_forward 認証 以下の認証方法が利用可能。 クライアント証明書 (default) LDAP認証 Radius認証 sqlite認証 link OpenVPNで手軽にVPN構築 (@IT) OpenVPN.JP OpenVPN 2.0 HOWTO 日本語訳
https://w.atwiki.jp/hmiku/pages/28536.html
【登録タグ CD CDO muhmueCD】 open_cafe.jpg 前作 本作 次作 Magic Logic Open Cafe Pavilion muhmue 流通 即売 発売 2013年7月7日 価格 ¥500(税込) サークル office muhmue CD紹介 muhmue氏 の 1st mini album. CD未収録曲・未発表曲に、書き下ろしの新曲を加えた全5曲を収録。 THE VOC@LOiD M@STER 25(ボーマス25) にてリリース。 曲目 カテドラルベル feat. GUMI その手の中で feat. 鏡音リン interlude -お茶会- クリスマスツリーの下で feat. 鏡音リン カプチーノ・エデン feat. 初音ミク リンク 作者ホームページ コメント 名前 コメント
https://w.atwiki.jp/openmusic/pages/2.html
メニュー トップページダウンロード インストール クイックスタートセッションの開始 パッチの作成 ワークスペースでのパッチの操作 アプリケーションを作る (1) アプリケーションを作る (2) アプリケーションを作る (3) オブジェクトの操作 (1) オブジェクトの操作 (2) 保存・終了 ユーザーマニュアル 基本リファレンス ライブラリリファレンスEsquisse LZ OMAlea OMChaos OMClouds Profile RepMus Situation OpenMusicの歴史 非公式Tutorial 概要01 note chord chord-seq 02 repeat-n omloop 03 random 04 omif subpatch 05 様々なファンクション 06 バッハ平均律 07 武満徹分析 08 multi-seq voice poly 09 ディアトニック即興 10 メシアン様式即興 11 文字列のファンクション 12 ハイドンの名による 13 リズム1 14 リズム2ファーニホウ1 15 リズム3ファーニホウ2 16 リズム4ファーニホウ3 掲示板 落書き 落書き20150822 ここを編集
https://w.atwiki.jp/hael/pages/25.html
検索 ドキュメント公式マニュアル チュートリアル 日本語資料 概観基本的な構造(マニュアルP8) 再生までの大まかな流れ(マニュアルP10) OpenGL/DirectXとの親和性 ステートマシン ドキュメント 公式マニュアル http //connect.creativelabs.com/openal/Documentation/Forms/AllItems.aspx チュートリアル http //www.devmaster.net/articles.php?catID=6 日本語資料 ドキュメント 概観 基本的な構造(マニュアルP8) デバイス デバイス = コンテクスト(複数) + バッファ(複数) コンテクスト = リスナ(単数) + ソース(複数) バッファ デバイスごとに管理され、複数のソースで共有される 再生までの大まかな流れ(マニュアルP10) デバイス作成 コンテクスト作成 バッファ作成 音声ファイル読み込み 音声ファイルをバッファへバインド 音声ファイルを閉じる ソース作成 バッファからソースへ読み込み 再生 OpenGL/DirectXとの親和性 ソースコードの雰囲気がOpenGLにかなり近い というか、それを意識してつくられてる 座標系を含めて、OpenGLと透過的に扱って問題なさげ(マニュアルP13) ってことは、z軸さえ気をつければDirectXとも親和性は高い? VistaからDirectSoundが使えないらしいし、むしろこっちに移行したほうがいいかも 単位系は秒とHz 距離単位は特に決まってない 距離によるゲインの減衰は自由に設定できる AL_SPEED_OF_SOUNDのデフォルト値が343.3だから、とりあえずメートル単位が無難? ステートマシン コマンド群は、OpenGL的なステート操作にかなり近い 実装はオブジェクト指向らしいけど、まぁ普通のステートマシン操作と考えて問題なさげ 「オブジェクト」に対しては、それぞれのNameを通じてアクセスできる
https://w.atwiki.jp/ffxi_enm/pages/18.html
3月2日 アットワENM 猛進1PT Marugon Nyain Toritama Eucaly Dillan 猛進2PT Kentalow Kosame Ashuram Yuritan Gum 猛進3PT Creatle Skypier Garian Miruku Finatty 猛進4PT Damage Fujikom Roboneko Zerugius Ruuna 貝塚1PT Gatsby Biscuit Elfy Sira Apulo 今回の当たりは フォーレージマント
https://w.atwiki.jp/memorandum_book/pages/58.html
double iOpen( string symbol, int timeframe, int shift) symbol、timeframe、shiftによって指定された始値を返す。 もし、過去データが読み込めず、カラだった場合、この関数は0を返す。 現在のチャートにおいて終値は定義済み変数Open[]内にある。 symbol 通貨名。NULLを指定すると現在の通貨。 timeframe 時間枠。時間枠列挙型のどれか。0は現在の時間枠。 shift 現在の足から何本前の値を出したいか