☆ Linux(20)☆ Linux(18)前へ


☆ Linux奮闘記 (19) ユ−ザ主体の時代? '2001/4- ☆



2年位前に、パワ−ユ−ザにはLinuxは、とても魅力的に感じるのではないかと書きましたが、ついに某機関が、システムのOSにLinuxを採用し、オ−プンソ−スの考え方でソフトを開発、近日中にリリ−ス予定だそうです。 業界のコンピュ−タは比較的高価で、維持するにもかなりのコストがかかり大変でした。今まで、F、S、T社でほぼ独占状態で、他が入る隙間も無かったのですが、Linuxがこの閉鎖的な業界に、オ−プンソ−スで風穴を開けるとは予想もしませんでした。 価格的にも、現行費用の約1/2程度で導入出来るでしょうし、今後は、競争原理が働いて、ますます使い勝手の良い物が出てくるかもしれません。これらは、業界にとっては朗報かもしれません。 私も10年くらい前に、業界のシステム構築、サポ−トを1年くらいやっていましたが、なかなか特殊な業界で、計算等大変でした。この経験をふまえて、今後の普及問題は、ソフトの品質の良さ、扱い安さ、法改正等に速やかに対応出来るか、オ−プンソ−スをサポ−トする企業、個人が多く出てくるかどうかが、今後の普及に向けての大きな課題だと考えています。個人的には、是非成功してもらいたいと思っています。
これから、他の業界にもこの流れが加速度的に押し寄せてくるのではないかと思うと、我々の業界も近い将来大激震が起こるかも知れません。やはり最後は、市場が決める時代か


i-mode java の続き
  • 01/3/19 本屋で、i-mode javaによるプログラム30例という本を見つけて、思わず衝動買いをしました。最近、この手の出版物が多くなり始めています、事例を見ながら学習するのは勉強になります。

    test.jamの中身
    AppName = test
    PackageURL = test.jar
    AppSize = 1273
    AppClass = test
    AppVer = 0.0
    KvmVer = 1.0 
    LastModified = Fri, 23 Mar 2001 16:40:00
    test.java の中身
    import com.nttdocomo.ui.*;
    
    public class test extends IApplication {
            MainCanvas gc;
    
    	public void start() {
             gc = new MainCanvas();
             Display.setCurrent(gc);
             }
            }
    class MainCanvas extends Canvas {
             public void paint(Graphics g){
                g.lock();
                g.setColor(Graphics.getColorOfName(Graphics.BLACK)); 
                g.drawString("Hello World!", 30, 70);
                g.unlock(true);
            }
    }
    01/3/23 3月初めにやっていたときにはうまく動作しなかったのですが、今度はHello woldが表示されて大成功です。


PostgreSQL7.0.3+DBI+DBD
  • 01/3/26 DBI-1.13+DBD-Pg-0.93をPostgreSQL7.0.3で使用。インスト−ルに約30分位かかりましたが、問題は起こらず
    #!/usr/bin/perl
    
    use DBI;
    $dbh = DBI->connect("dbi:Pg:dbname=keydb", '', '');
    $sth = $dbh->prepare("select * from empmst");
    $sth->execute();
    while ( @row = $sth->fetchrow_array() ) {
       print "@row\n";
    }


PGP5.0i for unix
  • 01/3/30 Linux でPGP使用。インスト−ルに約20分位かかりましたが、問題は起こらず、良かった。
    [root@redhat6 /tmp]# cd pgp50i/src
    [root@redhat6 src]# ./configure
    creating cache ./config.cache
    checking for gcc... /usr/bin/gcc
    checking whether we are using GNU CC... yes
    checking whether gcc accepts -g... yes
    checking for useful warning options ($WARN)... -Wall -W -Wshadow -Wpointer-arith
     -Wmissing-prototypes -Wwrite-strings
    checking for socket in -lsocket... no
    checking for gethostbyname in -lnsl... yes
    checking for exp in -lm... yes
    checking for internal RSA encrypt/sign support... yes
    checking for lib/pgp/pubkey/pgpRSAKeyGen.c... yes
    checking for the Full License... yes
    checking how to run the C preprocessor... gcc -E
    checking how to make dependencies... gcc -E -M
    checking for a BSD compatible install... /usr/bin/install -c
    checking for ranlib... ranlib
    checking whether ln -s works... yes
    checking how to test for symlinks... test -L
    checking for ANSI C header files... yes
    checking for fcntl.h... yes
    checking for limits.h... yes
    checking for stdarg.h... yes
    checking for stdlib.h... yes
    checking for unistd.h... yes
    checking for sys/ioctl.h... yes
    checking for sys/time.h... yes
    checking for sys/timeb.h... yes
    checking for sys/param.h... yes
    checking for arpa/inet.h... yes
    checking for sys/stat.h... yes
    checking whether time.h and sys/time.h may both be included... yes
    checking for working const... yes
    checking for off_t... yes
    checking for size_t... yes
    checking for gethrtime... no
    checking for clock_gettime... no
    checking for clock_getres... no
    checking for gettimeofday... yes
    checking for getitimer... yes
    checking for setitimer... yes
    checking for ftime... yes
    checking for mkstemp... yes
    updating cache ./config.cache
    creating ./config.status
    Using ./config/pre.in for pre-makefile
    Using ./config/post.in for post-makefile
    creating Makefile
    creating lib/Makefile
    creating lib/bn/Makefile
    creating lib/pgp/Makefile
    creating lib/pgp/include/Makefile
    creating lib/pgp/helper/Makefile
    creating lib/pgp/compress/Makefile
    creating lib/pgp/hash/Makefile
    creating lib/pgp/cipher/Makefile
    creating lib/pgp/random/Makefile
    creating lib/pgp/pubkey/Makefile
    creating lib/pgp/pipe/Makefile
    creating lib/pgp/pipe/utils/Makefile
    creating lib/pgp/pipe/file/Makefile
    creating lib/pgp/pipe/sig/Makefile
    creating lib/pgp/pipe/crypt/Makefile
    creating lib/pgp/pipe/text/Makefile
    creating lib/pgp/pipe/parser/Makefile
    creating lib/pgp/utils/Makefile
    creating lib/pgp/keys/Makefile
    creating lib/pgp/keydb/Makefile
    creating lib/ttyui/Makefile
    creating lib/simple/Makefile
    creating apps/Makefile
    creating apps/common/Makefile
    creating apps/pgp/Makefile
    creating apps/pgpk/Makefile
    creating man/Makefile
    creating plugins/Makefile
    creating config.h
    [root@redhat6 src]#make
    
    make[2]: Leaving directory `/tmp/pgp50i/src/apps/pgpk'
    make[1]: Leaving directory `/tmp/pgp50i/src/apps'
    Making all in man
    make[1]: Entering directory `/tmp/pgp50i/src/man'
    make[1]: Leaving directory `/tmp/pgp50i/src/man'
    Making all in plugins
    make[1]: Entering directory `/tmp/pgp50i/src/plugins'
    make[1]: Leaving directory `/tmp/pgp50i/src/plugins'
    
    [root@redhat6 bin]# pgpe -c -a pgp_test.txt
    Cannot open configuration file /root/.pgp/pgp.cfg
    Cannot open secret keyring "/root/.pgp/secring.skr"
    Cannot open public keyring "/root/.pgp/pubring.pkr"
    You need a passphrase to encrypt the file
    Enter pass phrase:
    Enter same passphrase again
    Enter pass phrase:
    Creating output file pgp_test.txt.asc
    
    [root@redhat6 bin]# cat pgp_test.txt.asc
    -----BEGIN PGP MESSAGE-----
    Version: PGPfreeware 5.0i for non-commercial use
    MessageID: jitBZ/GLPb2fqOOilUsXuGZnt8/+lHXb
    
    pEAocfWvWNn059Mp0vPV5FIwY+255LQvJrANMVy1LsmVViHIvrJRzpBPOZmKLyWq
    ueQ48zJeo7Jnj17Y/sH+ojY7
    =4NpJ
    -----END PGP MESSAGE-----
    [root@redhat6 bin]#pgpv pgp_test.txt.asc
    Cannot open configuration file /root/.pgp/pgp.cfg
    Cannot open secret keyring "/root/.pgp/secring.skr"
    Cannot open public keyring "/root/.pgp/pubring.pkr"
    Message is encrypted.
    Enter pass phrase:
    File "pgp_test.txt" already exists. Overwrite? [y/N] y
    Opening file "pgp_test.txt" type binary.
    [root@redhat6 bin]#mail ritsuo@mxy.mesh.ne.jp < pgp_test.txt.asc
    
    [root@redhat6 bin]# pgpk -l
    Cannot open configuration file /root/.pgp/pgp.cfg
    Type Bits KeyID      Created    Expires    Algorithm       Use
    0 matching keys found
    [root@redhat6 bin]#
    
    これを、読みとって windowsクライアントのPGPで復号、うまく復号出来ている。すばらしい。


namazu filterによる、word文章の検索
  • 01/4/12 namazu filter word に挑戦。
    wvWaer + Ivの導入
    checking for getpagesize... yes
    checking for working mmap... yes
    updating cache ./config.cache
    creating ./config.status
    creating Makefile
    creating oledecod/Makefile
    creating expat/Makefile
    creating expat/xmltok/Makefile
    creating expat/xmlparse/Makefile
    creating iconv/Makefile
    creating magick/Makefile
    creating config.h
    configure: warning: Could not find gdwmf library or some of its components: libw
    v *will* build but will not have wmf to png support: see README
    configure: warning: Could not find ttf library or some of its components: libwv
    *will* build but will not have text in its wmf to png support: see README
    
    [root@redhat6 wv]# make
    rm -f wv-libconfig
    echo \#\!/bin/sh > wv-libconfig
    echo echo -L/usr/local/lib -lwv -lpng -lz    -lXpm  -L/usr/X11R6/lib -lX11  -lm
     >> wv-libconfig
    rm -f wv-incconfig
    echo \#\!/bin/sh > wv-incconfig
    echo echo  -I/usr/local/include  >> wv-incconfig
    
    [root@redhat6 wv]# make install
    /usr/bin/install -c ./wvSummary /usr/local/bin/wvSummary
    /usr/bin/install -c ./wvSimpleCLX /usr/local/bin/wvSimpleCLX
    /usr/bin/install -c ./wvVersion /usr/local/bin/wvVersion
    /usr/bin/install -c ./wvConvert /usr/local/bin/wvConvert
    rm -f -f /usr/local/bin/wvText
    ln -s /usr/local/bin/wvConvert /usr/local/bin/wvText
    /usr/bin/install -c ./wvHtml /usr/local/bin/wvHtml
    /usr/bin/install -c ./wv-libconfig /usr/local/bin/wv-libconfig
    /usr/bin/install -c ./wv-incconfig /usr/local/bin/wv-incconfig
    /usr/bin/install -c -m 644 ./wvHtml.1 /usr/local/man/man1/
    /usr/bin/install -c -m 644 wv.h /usr/local/include/wv.h
    /usr/bin/install -c -m 644 ./libwv.a /usr/local/lib/libwv.a
    /usr/bin/install -c -m 644 ./wvHtml.xml /usr/local/lib/wv/wvHtml.xml
    /usr/bin/install -c -m 644 ./wvConfig.xml /usr/local/lib/wv/wvConfig.xml
    for filename in wingdingfont/*.gif; do \
            /usr/bin/install -c -m 644 $filename /usr/local/lib/wv/wingdingfont; \
    done
    for filename in patterns/*.gif patterns/*.jpg; do \
            /usr/bin/install -c -m 644 $filename /usr/local/lib/wv/patterns; \done
    
    [root@redhat6 wv]# tar zxvf Iv4493.tar.gz
    lv4493/src/mapksc.pl
    lv4493/src/rev0208.pl
    lv4493/src/rev0212.pl
    lv4493/src/rev8859.pl
    lv4493/src/revbig5.pl
    lv4493/src/revgb.pl
    lv4493/src/revksc.pl
    lv4493/src/d2uall.sh
    [root@redhat6 /tmp]# cd lv4493
    
    [root@redhat6 lv4493]# cd build
    [root@redhat6 build]# ../src/configure
    creating cache ./config.cache
    checking whether ln -s works... yes
    checking for gcc... gcc
    checking whether the C compiler (gcc  ) works... yes
    checking whether the C compiler (gcc  ) is a cross-compiler... no
    checking whether we are using GNU C... yes
    checking whether gcc accepts -g... yes
    checking for a BSD compatible install... /usr/bin/install -c
    checking how to run the C preprocessor... gcc -E
    checking whether make sets ${MAKE}... yes
    checking for perl... /usr/bin/perl
    checking if --enable-purify is specified... no
    checking for tgetstr in -lterminfo... no
    checking for tgetstr in -ltermcap... yes
    checking for ANSI C header files... yes
    checking for sys/wait.h that is POSIX.1 compatible... yes
    checking for fcntl.h... yes
    checking for sys/ioctl.h... yes
    checking for sys/time.h... yes
    checking for termio.h... yes
    checking for unistd.h... yes
    checking for termios.h... yes
    checking for sigvec... yes
    checking for tgetnum... yes
    checking whether getpgrp takes no argument... yes
    checking whether gcc needs -traditional... no
    checking return type of signal handlers... void
    updating cache ./config.cache
    creating ./config.status
    creating Makefile
    
    [root@redhat6 build]# make
    gcc -g -O2 -DLV_HELP_PATH=\"/usr/local/lib/lv\" -I../src  -DUNIX=1 -DTERMCAP=1 -
    DHAVE_LIBTERMCAP=1 -DSTDC_HEADERS=1 -DHAVE_SYS_WAIT_H=1 -DHAVE_FCNTL_H=1 -DHAVE_
    SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_TERMIO_H=1 -DHAVE_UNISTD_H=1 -DHAVE_TER
    MIOS_H=1 -DHAVE_SIGVEC=1 -DHAVE_TGETNUM=1 -DGETPGRP_VOID=1 -DRETSIGTYPE=void  -c
     ../src/unirev.c
    gcc  -o lv itable.o ctable.o uty.o istr.o stream.o file.o guess.o decode.o encod
    e.o escape.o iso2022.o iso8859.o iso2cn.o iso2jp.o iso2kr.o kana.o eucjapan.o sh
    iftjis.o big5.o hz.o raw.o fetch.o screen.o command.o display.o find.o re.o nfa.
    o dfa.o conv.o version.o conf.o lv.o console.o utf.o unimap.o unirev.o -ltermcap
    
    [root@redhat6 build]# make install
    /usr/bin/install -c -s -o bin -g bin -m 555 lv /usr/local/bin
    if test -f /usr/local/bin/lgrep; then \
            /bin/rm -f /usr/local/bin/lgrep; \
    fi
    (cd /usr/local/bin; ln lv lgrep)
    if test ! -d /usr/local/lib/lv; then \
            mkdir -p /usr/local/lib/lv; \
    fi
    /usr/bin/install -c -o bin -g bin -m 444 ../src/../lv.hlp /usr/local/lib/lv
    if test -d /usr/local/man -a -d /usr/local/man/man1; then \
            /usr/bin/install -c -o bin -g bin -m 444 ../src/../lv.1 /usr/local/man/m
    an1; \
    fi
    [root@redhat6 build]# tar zxvf xlHtml-0.2.6.tar.gz
    
    xlHtml-0.2.6/pptHtml/pptHtml.c
    xlHtml-0.2.6/pptHtml/TODO
    xlHtml-0.2.6/pptHtml/THANKS
    xlHtml-0.2.6/pptHtml/test.ppt
    xlHtml-0.2.6/README-pptHtml
    xlHtml-0.2.6/cole.ide
    xlHtml-0.2.6/README-cole
    
    [root@lx3601-03 public_html]#./configure
    creating Makefile
    creating cole.h
    creating version.c
    creating examples/Makefile
    creating doc/Makefile
    creating cole.spec
    creating examples/topsrcdir.h
    creating xlHtml/Makefile
    creating pptHtml/Makefile
    creating utils/Makefile
    creating cole-config
    creating config.h
    Configured cole release 2.0.1
    
    [root@lx3601-03 xlHtml-0.2.6]#make
    creating doc/Makefile
    make[2]: Leaving directory `/home/users/fujii/public_html/xlHtml-0.2.6/doc'
    make[2]: Entering directory `/home/users/fujii/public_html/xlHtml-0.2.6/doc'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/users/fujii/public_html/xlHtml-0.2.6/doc'
    make[1]: Leaving directory `/home/users/fujii/public_html/xlHtml-0.2.6'
    
    [root@lx3601-03 xlHtml-0.2.6]#make install
    Making install in utils
    make[1]: Entering directory `/home/users/fujii/public_html/xlHtml-0.2.6/utils'
    make[2]: Entering directory `/home/users/fujii/public_html/xlHtml-0.2.6/utils'
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/home/users/fujii/public_html/xlHtml-0.2.6/utils'
    make[1]: Leaving directory `/home/users/fujii/public_html/xlHtml-0.2.6/utils'
    Making install in examples
    make[1]: Entering directory `/home/users/fujii/public_html/xlHtml-0.2.6/examples
    '
    make[2]: Entering directory `/home/users/fujii/public_html/xlHtml-0.2.6/examples
    '
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/home/users/fujii/public_html/xlHtml-0.2.6/examples'
    make[1]: Leaving directory `/home/users/fujii/public_html/xlHtml-0.2.6/examples'
    Making install in doc
    make[1]: Entering directory `/home/users/fujii/public_html/xlHtml-0.2.6/doc'
    make[2]: Entering directory `/home/users/fujii/public_html/xlHtml-0.2.6/doc'
    make[2]: Nothing to be done for `install-exec-am'.
    make[2]: Nothing to be done for `install-data-am'.
    make[2]: Leaving directory `/home/users/fujii/public_html/xlHtml-0.2.6/doc'
    make[1]: Leaving directory `/home/users/fujii/public_html/xlHtml-0.2.6/doc'
    [root@lx3601-03 xlHtml-0.2.6]#
    
    01/04/12 導入後、検索をやってみるが、うまくキ−作成時にDoc文章を認識しない。どうしてだろう。
    --------------------------------------------------------------------
    9個のファイルがインデックス作成の対象として見つかりました
    1/9 - /usr/local/apache/htdocs/20010412.doc 未対応の形式(application/rtf)無視します
    上記メッセ−ジがインデックス作成時に出ます。

    01/04/13  原因が分かりました、word95/97で登録すると中身はrtfイメ−ジで登録されるようです、きちんとword97形式で 登録して、検索をすると出来ました。すばらしい、これで検索するために色々な付帯作業をする必要がなくなるので、業務効率が飛躍的に向上しそうです。
    検索対象のファイルを調べています...
    2個のファイルがインデックス作成の対象として見つかりました
    1/2 - /xxx/xxx/wwwroot/44.xls [application/excel]
    2/2 - /xxx/xxx/wwwroot/123.doc [application/msword]
    インデックスを書き出しています...
    [追加]
    日付:                Fri Apr 20 10:25:07 2001
    追加された文書の数:  2
    サイズ (bytes):      36,352
    合計の文書数:        5
    追加キーワード数:    71
    合計キーワード数:    365
    わかち書き:          module_kakasi -ieuc -oeuc -w
    経過時間 (秒):       2
    ファイル/秒:         1.00
    システム:            linux
    Perl:                5.00503
    Namazu:              2.0.5
    Doccatというソフトがあり、こちらを使用すると、word、 taro、 pdf と、とにかく業務で使用しているすべての文章管理が出来ます。ただし、doccatは有償。


i-mode で barcode
  • 01/4/16 i-mode上へ二次元バ−コ−ドを表示し、この文字を読みとる、初期の実験をしています。
    barcodeを作るソフト(barstr-pro)と読みとりソフト(RS-resiver)、この読みとりソフトがちと高い。codabar(NW7)..(5mm)を使用して3桁程度の文字を、gifに変換。画面に表示した barcodeを紙に出し、スキヤンすると問題なく読みとれる。しかし、i-mode上へ表示されているbarcodeは、読みとれない。
    
          


Linux+ASP関連のリンク集

TsDiaryのペ−ジ・・・TsDiary(日記システム)。

Palm tutorialのペ−ジ・・・Palm tutorial。

Palm de ponのペ−ジ・・・Palm de pon。

Namazu filterペ−ジ・・・namazu filter。

Linux Link・・・Linux Link関係。



このホ−ムペ−ジの画像の無断転載はかたくお断りします。Linuxメーリングリストの皆さん、Oracle,PostgreSQL,XML,RedHat メーリングリストの皆さん、ならびに私を支援していただいた多くの方々に、 この場をお借りして、厚くお礼申し上げます。
ritsuo@mxy.mesh.ne.jp


前へ戻る

Copyright(C) 2001 by Ritsuo Fujii