Miro Video Converter
http://www.mirovideoconverter.com/
It is easy to convert video from H264 toOGG and WebM.
HTML5 uses
Monday, October 18, 2010
Tuesday, May 11, 2010
MacOSX ssh 公開キー snow Leopard
SSHクライアントからの接続
iMac:~ me$ ssh you@hostname.com
$ ssh (サーバーのユーザー名)@(サーバーのホスト名 ip adress)
iMac:~ me$ ssh you@www.hoge.co.jp
The authenticity of host 'www.hoge.co.jp (192.168.0.1)' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'www.hoge.co.jp,192.168.0.1' (RSA) to the list of known hosts.
Password:パスワード
Last login: Thu Dec 3 12:36:45 2009
Welcome to Darwin!
WWW:~ you$
ちなみに、一回接続に成功すると ~/.ssh/known_hosts というファイルにSSHサーバが記録されるので、二回目以降ではパスワードの入力だけになります
公開鍵と秘密鍵を作成する
iMac:~ me$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/terra/.ssh/id_rsa):
Enter passphrase (empty for no passphrase): PASSPHRASE ¶ # パスフレーズを入力
Enter same passphrase again: PASSPHRASE ¶ # もう一度、同じパスフレーズを入力
Your identification has been saved in /Users/terra/.ssh/id_rsa.
Your public key has been saved in /Users/terra/.ssh/id_rsa.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx me@ iMac.local.
確認する
iMac:~ me$ ls -l ~/.ssh/
total 24
-rw------- 1 nmizojp staff 736 5 11 15:55 id_dsa
-rw-r--r-- 1 nmizojp staff 619 5 11 15:55 id_dsa.pub
-rw-r--r-- 1 nmizojp staff 3532 5 11 17:04 known_hosts
中身を表示
iMac:~ me$ cat ~/.ssh/id_rsa.pub
公開鍵をログイン先に登録する
SSHクライアントとなるコンピュータ上で作成した公開鍵ファイル(~/.ssh/id_rsa.pub)の内容を、
SSHサーバとなるコンピュータ上の ~/.ssh/authorized_keys というファイルに追加します。
公開キーファイルを別名でSSHサーバーにコピーしておく
iMac:~ me$ scp -p ~/.ssh/id_rsa.pub you@www.hoge.co.jp:tmp.pub
you@www.hoge.co.jp's password:パスワード
id_rsa.pub 100% |*********************************| 229 00:00
# SSHサーバにログインして作業
iMac:~ me$ ssh you@www.hoge.co.jp
Password:パスワード
Last login: Sun May 9 10:19:48 2010
~/.ssh ディレクトリが存在しない場合は、作成してから以下の作業を行う.
WWW:~ you% cat tmp.pub >> ~/.ssh/authorized_keys
WWW:~ you% rm tmp.pub # 不要になった公開鍵ファイルを削除
~/.ssh ディレクトリの作成 :OpenSSHのコマンドを利用して作成する
WWW:~ you% ssh localhost echo OK
~/.ssh ディレクトリの作成 手作業で作成する
WWW:~ you% mkdir ~/.ssh
WWW:~ you% chmod go-rwx ~/.ssh
WWW:~ you% ls -ld ~/.ssh
drwx------ 5 you staff 170 5 11 15:55 /Users/you/.ssh
RSA認証の動作を確認する
iMac:~ me$ ssh you@www.hoge.co.jp
Enter passphrase for key '/Users/you/.ssh/id_rsa': PASSPHRASE # パスフレーズを入力
またはダイヤログでpassphraseを聞かれます
iMac:~ me$ ssh you@hostname.com
$ ssh (サーバーのユーザー名)@(サーバーのホスト名 ip adress)
iMac:~ me$ ssh you@www.hoge.co.jp
The authenticity of host 'www.hoge.co.jp (192.168.0.1)' can't be established.
RSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'www.hoge.co.jp,192.168.0.1' (RSA) to the list of known hosts.
Password:パスワード
Last login: Thu Dec 3 12:36:45 2009
Welcome to Darwin!
WWW:~ you$
ちなみに、一回接続に成功すると ~/.ssh/known_hosts というファイルにSSHサーバが記録されるので、二回目以降ではパスワードの入力だけになります
公開鍵と秘密鍵を作成する
iMac:~ me$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/terra/.ssh/id_rsa):
Enter passphrase (empty for no passphrase): PASSPHRASE ¶ # パスフレーズを入力
Enter same passphrase again: PASSPHRASE ¶ # もう一度、同じパスフレーズを入力
Your identification has been saved in /Users/terra/.ssh/id_rsa.
Your public key has been saved in /Users/terra/.ssh/id_rsa.pub.
The key fingerprint is:
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx me@ iMac.local.
確認する
iMac:~ me$ ls -l ~/.ssh/
total 24
-rw------- 1 nmizojp staff 736 5 11 15:55 id_dsa
-rw-r--r-- 1 nmizojp staff 619 5 11 15:55 id_dsa.pub
-rw-r--r-- 1 nmizojp staff 3532 5 11 17:04 known_hosts
中身を表示
iMac:~ me$ cat ~/.ssh/id_rsa.pub
公開鍵をログイン先に登録する
SSHクライアントとなるコンピュータ上で作成した公開鍵ファイル(~/.ssh/id_rsa.pub)の内容を、
SSHサーバとなるコンピュータ上の ~/.ssh/authorized_keys というファイルに追加します。
公開キーファイルを別名でSSHサーバーにコピーしておく
iMac:~ me$ scp -p ~/.ssh/id_rsa.pub you@www.hoge.co.jp:tmp.pub
you@www.hoge.co.jp's password:パスワード
id_rsa.pub 100% |*********************************| 229 00:00
# SSHサーバにログインして作業
iMac:~ me$ ssh you@www.hoge.co.jp
Password:パスワード
Last login: Sun May 9 10:19:48 2010
~/.ssh ディレクトリが存在しない場合は、作成してから以下の作業を行う.
WWW:~ you% cat tmp.pub >> ~/.ssh/authorized_keys
WWW:~ you% rm tmp.pub # 不要になった公開鍵ファイルを削除
~/.ssh ディレクトリの作成 :OpenSSHのコマンドを利用して作成する
WWW:~ you% ssh localhost echo OK
~/.ssh ディレクトリの作成 手作業で作成する
WWW:~ you% mkdir ~/.ssh
WWW:~ you% chmod go-rwx ~/.ssh
WWW:~ you% ls -ld ~/.ssh
drwx------ 5 you staff 170 5 11 15:55 /Users/you/.ssh
RSA認証の動作を確認する
iMac:~ me$ ssh you@www.hoge.co.jp
Enter passphrase for key '/Users/you/.ssh/id_rsa': PASSPHRASE # パスフレーズを入力
またはダイヤログでpassphraseを聞かれます
Thursday, March 11, 2010
Xdebugのインストール MacOSX Snow Leopard
Xdebugのインストール
http://www.xdebug.org/
$ tar xvf xdebug-1.3.2.tar
$ cd xdebug-1.3.2/
$ phpize
$ ./configure --enable-xdebug
$ make
$ sudo make install
php.ini
/etc/php.ini
php.ini の最後に
xdebug.soへの絶対パスを記述します。
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; for Xdebug
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
extension="xdebug.so"
Apache をリスタート
$ sudo apachectl restart
ブラウザーで
localhost/info.php
http://www.xdebug.org/
$ tar xvf xdebug-1.3.2.tar
$ cd xdebug-1.3.2/
$ phpize
$ ./configure --enable-xdebug
$ make
$ sudo make install
php.ini
/etc/php.ini
php.ini の最後に
xdebug.soへの絶対パスを記述します。
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; for Xdebug
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
extension="xdebug.so"
Apache をリスタート
$ sudo apachectl restart
ブラウザーで
localhost/info.php
Thursday, February 25, 2010
MacOSX VirtualBox 複製仮想マシンの登録
MacOSX VirtualBox 仮想マシンの複製
$ VBoxManage clonevdi source_file new_file
・複製する仮想ディスクディレクトリーに移動
・複製コマンド
$ cd ~/Library/VirtualBox/HardDisks/
$ /Applications/VirtualBox.app/Contents/MacOS/VBoxManage clonevdi CentOS.vdi CentOS2.vdi
Sun VirtualBox Command Line Management Interface Version 3.1.4
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: 59fcb470-7876-4d1b-a9f2-31a61b3c1776
参考にした映像
http://www.youtube.com/watch?v=nBb9pyGJdeU
・複製する仮想ディスクディレクトリーに移動
・複製コマンド
$ cd ~/Library/VirtualBox/HardDisks/
$ /Applications/VirtualBox.app/Contents/MacOS/VBoxManage clonevdi CentOS.vdi CentOS2.vdi
Sun VirtualBox Command Line Management Interface Version 3.1.4
(C) 2005-2010 Sun Microsystems, Inc.
All rights reserved.
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VDI'. UUID: 59fcb470-7876-4d1b-a9f2-31a61b3c1776
参考にした映像
http://www.youtube.com/watch?v=nBb9pyGJdeU
Monday, January 25, 2010
MacOSX 10.6でのMySQLの設定
MySQLのDownload
Download MySQL Community Server
http://dev.mysql.com/downloads/mysql/
Select PlatformでMacOSXを選ぶ
64bit dmg版がお勧め
MySQL インストール
pkg 2つインストール
MySQL.prefPane インストール ダブルクリックでOK
prefPaneはシステム環境設定に入りMySQLの起動停止が出来ます
インストールユーザーだけではすべてのユーザーにしておいた方が開発では便利
MySQL5の設定
・管理者パスワードの設定
/usr/local/mysql/bin/mysqladmin -u root password 'パスワード'
・設定ファイルの作成・編集
sudo cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf
/etc/my.cnf の設定
[mysqld] の項目の最後に以下の2行を追加
default-character-set = utf8
skip-character-set-client-handshake
[mysqldump] の項目の最後に以下を追加
default-character-set = utf8
[mysql] の項目の最後に以下を追加
default-character-set = utf8
======================================================
Apache2の設定
PHP5の有効化
・php5 を有効にする
/etc/apache2/httpd.conf の変更
#LoadModule php5_module libexec/apache2/libphp5.so
コメント(#)をとり保存
・DirectoryIndexはいじらない すでに
/etc/apache2/other/php5.conf でindex.php が追加されている
確かめるなら
cat /etc/apache2/other/php5.conf
.htpaccess の有効化
/etc/apache2/users/WHO.conf
WHO は アカウント名 中身は
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
3行目を下記のように変更
AllowOverrite All
修正後は以下になる
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
もしアカウントがmynameならば
myname.conf
内容は
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
--------------------------------------------------------------------------
CGIの有効化
/etc/apache2/httpd.conf
#AddHandler cgi-script .cgi
コメントを外す
AddHandler cgi-script .cgi
/etc/apache2/users/*.conf を編集
Options Indexes MultiViews ExecCGI FollowSymLinks
に変更
--------------------------------------------------------------------------
phpMyAdmin
以下からDownload
http://www.phpmyadmin.net/home_page/index.php
ホルダー名を「phpMyAdmin」にして
/Library/WebServer/Documents/
に保存する
--------------------------------------------------------------------------
php.ini の設定 やらなくとも良いかもしれません
/etc/php.ini の作成
/etc/php.ini.default しかないのでそれをコピーして
/etc/php.ini という名前で保存
次にphp.iniを編集します
次の行を変更
mysql.default_socket =
下記のように socketを指定する
mysql.default_socket = /tmp/mysql.sock
--------------------------------------------------------------------------
ブラウザーで
http://localhost/phpmyadmin/
にアクセス設定する
Download MySQL Community Server
http://dev.mysql.com/downloads/mysql/
Select PlatformでMacOSXを選ぶ
64bit dmg版がお勧め
MySQL インストール
pkg 2つインストール
MySQL.prefPane インストール ダブルクリックでOK
prefPaneはシステム環境設定に入りMySQLの起動停止が出来ます
インストールユーザーだけではすべてのユーザーにしておいた方が開発では便利
MySQL5の設定
・管理者パスワードの設定
/usr/local/mysql/bin/mysqladmin -u root password 'パスワード'
・設定ファイルの作成・編集
sudo cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf
/etc/my.cnf の設定
[mysqld] の項目の最後に以下の2行を追加
default-character-set = utf8
skip-character-set-client-handshake
[mysqldump] の項目の最後に以下を追加
default-character-set = utf8
[mysql] の項目の最後に以下を追加
default-character-set = utf8
======================================================
Apache2の設定
PHP5の有効化
・php5 を有効にする
/etc/apache2/httpd.conf の変更
#LoadModule php5_module libexec/apache2/libphp5.so
コメント(#)をとり保存
・DirectoryIndexはいじらない すでに
/etc/apache2/other/php5.conf でindex.php が追加されている
確かめるなら
cat /etc/apache2/other/php5.conf
.htpaccess の有効化
/etc/apache2/users/WHO.conf
WHO は アカウント名 中身は
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
3行目を下記のように変更
AllowOverrite All
修正後は以下になる
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
もしアカウントがmynameならば
myname.conf
内容は
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
--------------------------------------------------------------------------
CGIの有効化
/etc/apache2/httpd.conf
#AddHandler cgi-script .cgi
コメントを外す
AddHandler cgi-script .cgi
/etc/apache2/users/*.conf を編集
Options Indexes MultiViews ExecCGI FollowSymLinks
に変更
--------------------------------------------------------------------------
phpMyAdmin
以下からDownload
http://www.phpmyadmin.net/home_page/index.php
ホルダー名を「phpMyAdmin」にして
/Library/WebServer/Documents/
に保存する
--------------------------------------------------------------------------
php.ini の設定 やらなくとも良いかもしれません
/etc/php.ini の作成
/etc/php.ini.default しかないのでそれをコピーして
/etc/php.ini という名前で保存
次にphp.iniを編集します
次の行を変更
mysql.default_socket =
下記のように socketを指定する
mysql.default_socket = /tmp/mysql.sock
--------------------------------------------------------------------------
ブラウザーで
http://localhost/phpmyadmin/
にアクセス設定する
Subscribe to:
Posts (Atom)




