follow me

Parted Magic

新しいノートPCにすると困るのが、Cドライブしかない事。
Dドライブ作るのに、OS入れなおすのはめんどくさいし、Partition Magicを買うのはもったいない。
Linuxを起動してNTFSをリサイズすれば良いのだが、CD-ROMドライブが付いていない。

で、見つけました。
Parted Magicです。
USBメモリから起動できるのです。
90GBのパーティションをリサイズするのに5分程度で出来ました。
やり方は、以下です。

1.Windowsで念の為、デフラグ実行。

2.Parted Magicをダウンロード。
 pmagic-usb-***.zip

3.ZIPファイル内のデータをUSBメモリに展開。

4.syslinux ブートローダーをダウンロード。
 http://www.kernel.org/pub/linux/utils/boot/syslinux/
 syslinux-***.zip

5.SYSLINUX boot loader をインストール
 syslinux.exe -ma E: (USBメモリのドライブを指定)
follow me

OpenSolaris 2008.05 Release

SolarisOpenSolaris 2008.05がリリースされました。

仮想化関連でHypervisorとして、VirtualBoxが組み込まれた様です。
その他の項目は、イマイチわかりませんので、入れてみたら再度報告します。
ZFSbootもZFSrootもPreview 2で搭載済みなだけに、イマイチこれって感じはまだ持てないです。
で、イメージをダウンロード中ですが、ダウンローダは4時間かかるといっております。
follow me

Solaris10u5 Core System

SolarisSolaris10 5/08をCore System Supportで導入してみました。
CD1枚目しか使用しませんでした。
かつ、IPを固定で振るとなぜか、インストール失敗。(良く分かりません。
SolarisをCoreでインストールするのは初めてですが、かなりコンパクトですね。
しかし、Sendmailが動いていたり、まだまだ不要なものが動いている様です。
不要な物の停止、必要な物の導入は次回。

ディスク使用量
# df -k
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/dsk/c1t0d0s0    4130302  284507 3804492     7%    /
/devices                   0       0       0     0%    /devices
ctfs                       0       0       0     0%    /system/contract
proc                       0       0       0     0%    /proc
mnttab                     0       0       0     0%    /etc/mnttab
swap                  881336     496  880840     1%    /etc/svc/volatile
objfs                      0       0       0     0%    /system/object
fd                         0       0       0     0%    /dev/fd
swap                  880840       0  880840     0%    /tmp
swap                  880848       8  880840     1%    /var/run
/dev/dsk/c1t0d0s3    10663332   10593 10546106     1%    /opt
/dev/dsk/c1t0d0s7    2033839    2065 1970759     1%    /export/home
起動プロセス
# ps -ef
     UID   PID  PPID   C    STIME TTY         TIME CMD
    root     0     0   0 19:10:06 ?           0:09 sched
    root     1     0   0 19:10:07 ?           0:00 /sbin/init
    root     2     0   0 19:10:07 ?           0:00 pageout
    root     3     0   0 19:10:07 ?           0:01 fsflush
    root   484     1   0 19:17:05 ?           0:00 /usr/lib/picl/picld
    root     7     1   0 19:10:10 ?           0:07 /lib/svc/bin/svc.startd
    root     9     1   0 19:10:10 ?           1:37 /lib/svc/bin/svc.configd
    root   650     1   0 19:20:19 ?           0:02 /usr/lib/inet/inetd start
  daemon   616     1   0 19:19:55 ?           0:00 /usr/lib/nfs/statd
    root    37     1   0 19:10:13 ?           0:00 /sbin/dhcpagent
    root   571     1   0 19:17:17 ?           0:00 /usr/sbin/cron
    root   458     1   0 19:16:40 ?           0:00 /usr/lib/sysevent/syseventd
    root   461     1   0 19:16:40 ?           0:00 devfsadmd
  daemon   485     1   0 19:17:05 ?           0:00 /usr/lib/crypto/kcfd
    root   500     1   0 19:17:10 ?           0:00 /usr/sbin/nscd
  daemon   620     1   0 19:19:56 ?           0:00 /usr/lib/nfs/nfs4cbd
    root   862     1   1 19:20:45 ?           0:05 /usr/lib/fm/fmd/fmd
  daemon   631     1   0 19:19:58 ?           0:00 /usr/lib/nfs/lockd
  daemon   611     1   0 19:19:55 ?           0:00 /usr/sbin/rpcbind
  daemon   618     1   0 19:19:56 ?           0:00 /usr/lib/nfs/nfsmapid
    root   635     7   0 19:19:59 ?           0:00 /usr/lib/saf/sac -t 300
    root   638     1   0 19:19:59 ?           0:00 /usr/lib/utmpd
    root   639   635   0 19:19:59 ?           0:00 /usr/lib/saf/ttymon
    root   651     7   0 19:20:19 console     0:00 -sh
    root   856     1   0 19:20:43 ?           0:00 /usr/sbin/syslogd
    root   826     1   0 19:20:42 ?           0:00 /usr/lib/autofs/automountd
    root   827   826   0 19:20:42 ?           0:00 /usr/lib/autofs/automountd
    root   944   651   0 19:21:42 console     0:00 ps -ef
    root   867     1   0 19:20:45 ?           0:00 /usr/lib/sendmail -bd -q15m
   smmsp   869     1   0 19:20:45 ?           0:00 /usr/lib/sendmail -Ac -q15m
follow me

Slackware 12.1リリース

Linux - SlackwareSlackware 12.1がリリースされました。
相変わらずMirrorされるのが遅いです。
slack-pkg upgradeすると、前回同様に失敗しそうなので、完全にMirrorされるの待ちですかね。

とりあえず、Torrentでダウンロード完了しましたが、見た感じあまり変化なさそうなんですよね。
Kernel 2.6。。。
LVM。。。
シンプルなままなのは好きなんですが、SELinuxとかXenとかとか標準で付かないのかな。
付いてないのが、Slackwareの良さかな。。。

年々、Slackware使ってる人が減っていってる気がする。。。
今一度、Slackware流行らないかな。。。
いや、流行らせるか。。。
follow me

dynamips-0.2.7 for CentOS5

dynamips(Cisco 7200 Simulater)のCentOS5用RPM用意しました。
ついでに、dynagenも。
dynamips起動して、dynagenでconfig喰わせて、telnetでCisco Simulaterに接続がやりやすいっぽいです。
使い方もろもろは次回。

dynamips-0.2.7-1.i386.rpm
dynamips-0.2.7-1.i686.rpm
dynamips-0.2.7-1.athlon.rpm
dynagen-0.9.3-1.noarch.rpm
follow me

Nexenta Core

Solaris久々にSolaris。
Nexenta Coreを試してみました。
きっかけは、Solari10 5/08が良いけど、CDが多すぎめんどくさい、かつ、Coreで使いたかった。ただそれだけです。

導入は、1時間もかからずサクッと完了。
選択項目も特に無いのでラク。
で、触った感じ、ZFSもZoneも満足できる状態。
とりあえず、ZFSとZoneの勉強にはちょうど良さそう。
会社の勉強会でも、コレ使おうかな(笑

Solaris10 5/08 on Nexenta Coreが出来れば良いのだが。。。
とりあえず、Solaris10 5/08(DomU) on Nexenta Core(Dom0)は無理っぽいので、Solaris10 5/08(Zone) on Nexenta Core出来ないかは、これから検証。

follow me

PEMU

Cisco Pix Firewall Emulator
探せば色々ありますね。

PIXは一度触って見たいのですがね。
ネットワーク屋さんでは無いですが、どちらかと言うとサーバ構築系ですが。。。
まだ試せてないので、情報だけ。
なんか、QEMUを元に作っているらしいです。
まぁ使っても実用ではなく、勉強用にしかならないと思われますが(笑)

本家サイトがどれやら良くわからなかったので、ソースファイルのリンクのあったサイト。
http://www.dynamips.cn/category/pemu/
follow me

Rails動かなかった

Ruby on RailsRailsが動きませんでした。
理由は、現在標準で使用されるDBがsqliteに変更されていました。
で、以下で対応。

sqlite3-rubyをgemで追加
エラーで止まってしまいました。
# gem install sqlite3-ruby
Building native extensions.  This could take a while...
ERROR:  Error installing sqlite3-ruby:
        ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb install sqlite3-ruby
checking for sqlite3.h... no

make
make: *** `sqlite3_api_wrap.o' に必要なターゲット `ruby.h' を make するルールがありません.  中止.


Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/ext/sqlite3_api/gem_make.out
で、解決方法は、以下方法
gccが入ってなかったと、初めsqlite関係で足りないのかと思っていたら。。。
わざわざ、開発環境一式入れたくなかったのですが、仕方が無い。
# yum install gcc
再度、sqlplus3-rubyを導入。
# gem install sqlite3-ruby
Building native extensions.  This could take a while...
Successfully installed sqlite3-ruby-1.2.1
1 gem installed
Installing ri documentation for sqlite3-ruby-1.2.1...
Installing RDoc documentation for sqlite3-ruby-1.2.1...
follow me

ようこそCisco 7000 Series

詳細は次回。
Cisco Internetwork Operating System Software
IOS (tm) 7200 Software (C7200-IS-M), Experimental Version 12.0(20000110:181554) [otroan-thanksgiving-rel 175]
Copyright (c) 1986-2000 by cisco Systems, Inc.
Compiled Thu 20-Jan-00 15:07 by otroan
Image text-base: 0x60008900, data-base: 0x613D0000

cisco 7206VXR (NPE200) processor with 253952K/8192K bytes of memory.
R5000 CPU at 200Mhz, Implementation 35, Rev 1.2
6 slot VXR midplane, Version 2.1

Last reset from power-on
Bridging software.
X.25 software, Version 3.0.0.
1 FastEthernet/IEEE 802.3 interface(s)
125K bytes of non-volatile configuration memory.
4096K bytes of packet SRAM memory.

65536K bytes of ATA PCMCIA card at slot 0 (Sector size 512 bytes).
8192K bytes of Flash internal SIMM (Sector size 256K).

         --- System Configuration Dialog ---

Would you like to enter the initial configuration dialog? [yes/no]:
follow me

Rails on CentOS5

Ruby on RailsRuby on Railsの環境構築メモです。
うん簡単。
特に引っかかる所もなし。

yumで必要なもの導入。
# yum install ruby ruby-libs rdoc
Gemsをダウンロード
# wget http://rubyforge.org/frs/download.php/35283/rubygems-1.1.1.tgz
Gemsを導入
# ruby setup.rb
install -c -m 0644 ubygems.rb /usr/lib/ruby/site_ruby/1.8/ubygems.rb
install -c -m 0644 rubygems.rb /usr/lib/ruby/site_ruby/1.8/rubygems.rb
mkdir -p /usr/lib/ruby/site_ruby/1.8/rubygems
.....
Railsを導入
恐ろしく時間がかかります。
CPU 100%使ってました。
Swapをかなり使ってましたので、メモリ多く取って置いた方が良さそうです。
# gem install rails
Bulk updating Gem source index for: http://gems.rubyforge.org/
        Bulk updating Gem source index for: http://gems.rubyforge.org/
Successfully installed rake-0.8.1
Successfully installed activesupport-2.0.2
Successfully installed activerecord-2.0.2
Successfully installed actionpack-2.0.2
Successfully installed actionmailer-2.0.2
Successfully installed activeresource-2.0.2
Successfully installed rails-2.0.2
7 gems installed
Installing ri documentation for rake-0.8.1...
Installing ri documentation for activesupport-2.0.2...
Installing ri documentation for activerecord-2.0.2...
Installing ri documentation for actionpack-2.0.2...
Installing ri documentation for actionmailer-2.0.2...
Installing ri documentation for activeresource-2.0.2...
Installing RDoc documentation for rake-0.8.1...
Installing RDoc documentation for activesupport-2.0.2...
Installing RDoc documentation for activerecord-2.0.2...
Installing RDoc documentation for actionpack-2.0.2...
Installing RDoc documentation for actionmailer-2.0.2...
Installing RDoc documentation for activeresource-2.0.2...
確認
rails -v
Rails 2.0.2