2011-10-01から1ヶ月間の記事一覧

inSSIDer

2012/05/17 追記 ubu12.04 + aspireoneにてインストール追加でこちらの事前準備も必要でした apt-get install libglade2.0-cil*ありゃうごかん。 ぐぐってみたら、パッチことがわかったので 以下のように作業 root@aspire-blue:/home/hirasawa/download# cd …

/etc/html/conf.d/php.info

/etc/mime.typesをまずみること [root@cent5-64b-40 conf.d]# pwd /etc/httpd/conf.d [root@cent5-64b-40 conf.d]# cat php.conf # # PHP is an HTML-embedded scripting language which attempts to make it # easy for developers to write dynamically ge…

sendmail

今日はgemだけ [hirasawa@aspire-white ~]$ sudo gem install mail [sudo] password for hirasawa: Successfully installed mime-types-1.16 Successfully installed polyglot-0.3.2 Successfully installed treetop-1.4.10 Successfully installed i18n-0.6…

expect memo

いっつもわすれてます。 んで、めも #!/usr/bin/expect set timeout 5 spawn ssh -l hirasawa 192.168.1.40 expect "hirasawa@192.168.x.xx's password:" send "yourpass\n" expect "Last login" send "ls -l\n" interact

つづいて johnson(javascript runtime)をいれてjsのてすと

簡単な例デス [hirasawa@cent5-64b-40 ruby]$ cat my_execjs.rb #!/usr/local/bin/ruby -Ku # # see https://raw.github.com/sstephenson/execjs/master/test/test_execjs.rb # $LOAD_PATH << '/usr/local/lib/ruby/gems/1.8/gems/multi_json-1.0.3/lib/' $L…

execjs gem-install

[root@cent5-64b-40 openssl]# gem install execjs Fetching: multi_json-1.0.3.gem (100%) Fetching: execjs-1.2.9.gem (100%) Successfully installed multi_json-1.0.3 Successfully installed execjs-1.2.9 2 gems installed Installing ri documentatio…

no such file to load -- openssl

opensslはgemからインストールできるとおもっていたんですけど、違うみたいです。 以下はruby/gemをソースコードから入れた場合について記するrpm or apt-getでruby/gemをいれた場合はきっとまた話がちがってくるとおもう。 rpm または apt-getで openssl-de…

ブラウザでJavaScriptが動く時代がやってきた! って?

一瞬、なんだかわからんかったけど、 http://d.hatena.ne.jp/hasegawayosuke/20110518/p1書きかけデス

こんなんでましたぁ、 lacking expected security protectins @aspire1 with ubu10.04

はやじめてremoteからログインしたら、 はじめてこんなんでましたぁ Your CPU appears to be lacking expected security protections. Please check your BIOS settings, or for more information, run: /usr/bin/check-bios-nx --verbose なんやろ [hirasaw…

ruby-oci8をインストールしてみる step3

gemをソースからインストール済みとする。 [root@cent5-64b-40 ruby]# gem list --local *** LOCAL GEMS *** [root@cent5-64b-40 ruby]# [root@cent5-64b-40 ruby]# gem upgrade --system ERROR: While executing gem ... (RuntimeError) Unknown command up…

sed branch b

sed

tr tagだけ /^/{ :top N /\/tr/!b top /^/s/\n/ /g } あれ、ブランケットがきえちゃう。 どうやって記述すればいいんだ?

ruby rvmを用いてruby update

RVM(Ruby Version Manager)はUNIX系の環境で 複数のRuby処理系をインストール/共存させることができるツール RVMはbashスクリプトで,RVMを導入することで以下のようなことができます。 -Rubyのインストール -使用するRuby処理系の切り替え -複数のRubyでスク…

clamav install

ここの記事をほぼそのまま、実行してみました。http://centossrv.com/clamav.shtmlありがとう、いいサイトです。 [root@cent5-64b-40 ~]# cat /tmp/yumlist | grep clam clamav.i386 0.97.2-3.el5 epel clamav.x86_64 0.97.2-3.el5 epel clamav-db.x86_64 0.…

電脳ルビー

extconf.rb をぐぐったらここにきたhttp://ruby.gfd-dennou.org/tutorial/ こっちもいかすー!感たっぷりです。http://kkaneko.com/rinkou/ruby/index.htmlRuby拡張ライブラリ作成チュートリアル http://ruby.gfd-dennou.org/tutorial/ruby-ext/

おまけ httpまわりの事前準備

[root@cent5-64b-40 conf]# ps -ef | grep httpd root 22297 1 0 21:52 ? 00:00:00 /usr/sbin/httpd apache 22299 22297 0 21:52 ? 00:00:00 /usr/sbin/httpd apache 22300 22297 0 21:52 ? 00:00:00 /usr/sbin/httpd apache 22301 22297 0 21:52 ? 00:00:00…

おまけ ライブラリの位置確認など

[root@cent5-64b-40 build]# cd /usr/local/lib/ruby/1.8/apache/ [root@cent5-64b-40 apache]# ls l ls: l: そのようなファイルやディレクトリはありません [root@cent5-64b-40 apache]# ls -l 合計 96 -rw-r--r-- 1 root root 3664 9月 29 22:52 erb-run.r…

ruby-oci8をインストールしてみる step3

gemをソースからインストール済みとする。 [root@cent5-64b-40 ruby]# gem list --local *** LOCAL GEMS *** [root@cent5-64b-40 ruby]# [root@cent5-64b-40 ruby]# gem update --system Updating rubygems-update Fetching: rubygems-update-1.8.11.gem (10…

gemをソースからインストール ruby step2

つぎは gemをソースから [root@cent5-64b-40 src]# ls -l | grep ruby drwxr-sr-x 3 1000 1000 4096 9月 29 22:17 eruby-1.0.5 -rw-r--r-- 1 root root 61187 12月 14 2004 eruby-1.0.5.tar.gz drwxr-sr-x 5 1000 1000 4096 9月 29 22:51 mod_ruby-1.3.0 -rw…

ruby mod_ruby eruby step1

erubyをやってみた@ centos1)ソースから ruby-1.8.10をインストール(yumでやんなかったのはgemが使えなかったから) 2)ソースから eruby-1.0.5をインストール (erubyはCでかかれているのだよ) 3)ソースから mod_ruby-1.3.0をインストール [root@cent5-64b-4…

RubyからMySQLへの接続

お、つぎはここ行ってみますか そのうち、やるつもりhttp://oboerutech.blog16.fc2.com/blog-entry-30.html