July 14, 2010
Debian : sysstat

hdknr@deblen:~$ sudo aptitude install c
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます
パッケージの状態を初期化しています… 完了
タスクの記述を読み込んでいます… 完了
以下の新規パッケージがインストールされます:
sysstat
更新: 0 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。
200kB のアーカイブを取得する必要があります。展開後に 864kB のディスク領
域が新たに消費されます。
拡張状態情報を書き込んでいます… 完了
取得:1 http://ftp.jp.debian.org lenny/main sysstat 8.1.2-2 [200kB]
200kB を 1s 秒でダウンロードしました (174kB/s)
パッケージを事前設定しています …
未選択パッケージ sysstat を選択しています。
(データベースを読み込んでいます … 現在 80521 個のファイルとディレクト
リがインストールされています。)
(…/sysstat_8.1.2-2_i386.deb から) sysstat を展開しています…
man-db のトリガを処理しています …
doc-base のトリガを処理しています …
Processing 1 added doc-base file(s)…
sysstat (8.1.2-2) を設定しています … Creating config file /etc/default/sysstat with new version
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます
パッケージの状態を初期化しています… 完了
拡張状態情報を書き込んでいます… 完了
タスクの記述を読み込んでいます… 完了

hdknr@deblen:~$ dpkg -L sysstat | grep -v “LC_ME” | grep -v “.gz” | sort
/.
/etc
/etc/cron.d
/etc/cron.d/sysstat
/etc/cron.daily
/etc/cron.daily/sysstat
/etc/init.d
/etc/init.d/sysstat
/etc/sysstat
/etc/sysstat/sysstat
/etc/sysstat/sysstat.ioconf
/usr
/usr/bin
/usr/bin/iostat
/usr/bin/mpstat
/usr/bin/pidstat
/usr/bin/sadf
/usr/bin/sar.sysstat
/usr/lib
/usr/lib/sysstat
/usr/lib/sysstat/sa1 
/usr/lib/sysstat/sa2 
/usr/lib/sysstat/sadc
/usr/share
/usr/share/doc
/usr/share/doc-base
/usr/share/doc-base/sysstat-faq
/usr/share/doc/sysstat
/usr/share/doc/sysstat/README.Debian
/usr/share/doc/sysstat/TODO
/usr/share/doc/sysstat/copyright
/usr/share/doc/sysstat/examples
/usr/share/doc/sysstat/examples/crontab
/usr/share/doc/sysstat/xml
/usr/share/locale
/usr/share/locale/af
/usr/share/locale/da
/usr/share/locale/de
/usr/share/locale/es
/usr/share/locale/fi
/usr/share/locale/fr
/usr/share/locale/it
/usr/share/locale/ja
/usr/share/locale/ky
/usr/share/locale/nb
/usr/share/locale/nl
/usr/share/locale/nn
/usr/share/locale/pl
/usr/share/locale/pt
/usr/share/locale/pt_BR
/usr/share/locale/ro
/usr/share/locale/ru
/usr/share/locale/sk
/usr/share/locale/sv
/usr/share/locale/vi
/usr/share/locale/zh_CN
/usr/share/man
/usr/share/man/man1 
/usr/share/man/man8 
/var
/var/log
/var/log/sysstat
iostat - Report Central Processing Unit (CPU) statistics and
input/output statistics for devices, partitions and network filesystems
(NFS).
mpstat - Report processors related statistics.
pidstat - Report statistics for Linux tasks.
sadf - Display data collected by sar in multiple formats.

hdknr@deblen:~$ pidstat -p 1927 
Linux 2.6.26-2-686 (deblen) 2010年07月14日 _i686_ 10時00分09秒 PID %user %system %CPU CPU Command
10時00分09秒 1927 0.00 0.23 0.23 0 postgres

hdknr@deblen:~$ sudo mpstat -P ALL
Linux 2.6.26-2-686 (deblen) 2010年07月14日 _i686_ 10時01分21秒 CPU %user %nice %sys %iowait %irq %soft %steal %idle intr/s
10時01分21秒 all 0.06 0.00 0.93 0.35 0.06 0.02 0.00 98.57 2.53 
10時01分21秒 0 0.06 0.00 0.93 0.35 0.06 0.02 0.00 98.57 2.53

Posted via email from 原宿工業大学 | Comment »

June 9, 2010
spidermonkey : Debian Lenny が微妙にSqueezeよりもあたらしい?

Squeeze

hdknr@cuaraweb:~$ more /etc/debian_version
squeeze/sid
hdknr@cuaraweb:~$ js —version
JavaScript-C 1.8.0 pre-release 1 2007-10-03
usage: js [-zKPswWxCij] [-t timeoutSeconds] [-c stackchunksize] [-o option] [-v version] [-f scriptfile] [-e script] [-S maxstacksize] [scriptfile] [scriptarg…]

Lenny

(main)hdknr@deblen:~$ more /etc/debian_version ; js —version
5.0.4
JavaScript-C 1.8.0 pre-release 1 2009-02-16
usage: js [-zKPswWxCi] [-b branchlimit] [-c stackchunksize] [-o option] [-v version] [-f scriptfile] [-e script] [-S maxstacksize] [scriptfile] [scriptarg…]

Posted via email from 原宿工業大学 | Comment »

February 21, 2010
Java : Java6をaptでインストールする

aptライン編集


(op)hdknr@deblen:~/.ve/op/src/test$ sudo vim /etc/apt/sources.list (op)hdknr@deblen:~/.ve/op/src/test$ grep non-free /etc/apt/sources.list
deb http://ftp.jp.debian.org/debian/ lenny main contrib non-free
deb-src http://ftp.jp.debian.org/debian/ lenny main contrib non-free

aptitude update

(op)hdknr@deblen:~/.ve/op/src/test$ sudo aptitude update
発見 http://ftp.jp.debian.org lenny Release.gpg                                                                                          
発見 http://ftp.jp.debian.org lenny/main Translation-ja                                                                                  
無視 http://ftp.jp.debian.org lenny/contrib Translation-ja                                                                               
無視 http://ftp.jp.debian.org lenny/non-free Translation-ja                                                                              
発見 http://ftp.jp.debian.org lenny Release                                                 
発見 http://security.debian.org lenny/updates Release.gpg                                   
無視 http://security.debian.org lenny/updates/main Translation-ja
取得:1 http://volatile.debian.org lenny/volatile Release.gpg [189B]
無視 http://volatile.debian.org lenny/volatile/main Translation-ja
無視 http://security.debian.org lenny/updates/contrib Translation-ja               
無視 http://ftp.jp.debian.org lenny/main Packages/DiffIndex                        
発見 http://security.debian.org lenny/updates Release         
無視 http://ftp.jp.debian.org lenny/contrib Packages/DiffIndex
取得:2 http://ftp.jp.debian.org lenny/non-free Packages [100kB]                    
無視 http://volatile.debian.org lenny/volatile/contrib Translation-ja              
取得:3 http://volatile.debian.org lenny/volatile Release [40.7kB]
無視 http://ftp.jp.debian.org lenny/main Sources/DiffIndex                           
無視 http://ftp.jp.debian.org lenny/contrib Sources/DiffIndex                        
取得:4 http://ftp.jp.debian.org lenny/non-free Sources [48.8kB]                          
無視 http://security.debian.org lenny/updates/main Packages/DiffIndex                    
発見 http://ftp.jp.debian.org lenny/main Packages                                        
発見 http://ftp.jp.debian.org lenny/contrib Packages                                                          
発見 http://ftp.jp.debian.org lenny/main Sources                                                              
発見 http://ftp.jp.debian.org lenny/contrib Sources                                                             
無視 http://security.debian.org lenny/updates/contrib Packages/DiffIndex                                        
無視 http://security.debian.org lenny/updates/main Sources/DiffIndex
無視 http://security.debian.org lenny/updates/contrib Sources/DiffIndex
発見 http://security.debian.org lenny/updates/main Packages  
発見 http://security.debian.org lenny/updates/contrib Packages
発見 http://security.debian.org lenny/updates/main Sources   
発見 http://security.debian.org lenny/updates/contrib Sources
無視 http://volatile.debian.org lenny/volatile/main Packages/DiffIndex
無視 http://volatile.debian.org lenny/volatile/contrib Packages/DiffIndex
無視 http://volatile.debian.org lenny/volatile/main Sources/DiffIndex
無視 http://volatile.debian.org lenny/volatile/contrib Sources/DiffIndex
取得:5 http://volatile.debian.org lenny/volatile/main Packages [5477B]
発見 http://volatile.debian.org lenny/volatile/contrib Packages
取得:6 http://volatile.debian.org lenny/volatile/main Sources [2212B]
発見 http://volatile.debian.org lenny/volatile/contrib Sources
198kB を 4s 秒でダウンロードしました (46.6kB/s)
パッケージリストを読み込んでいます… 完了 現在の状態: 新規が 800 個 [+379]。

念のためにupgrade

(op)hdknr@deblen:~/.ve/op/src/test$ sudo aptitude safe-upgrade
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています               
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています… 完了
タスクの記述を読み込んでいます… 完了       
インストール・削除・更新されるパッケージがありません。
更新: 0 個、新規インストール: 0 個、削除: 0 個、保留: 0 個。
0B のアーカイブを取得する必要があります。展開後に 0B のディスク領域が新たに消費されます。
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています               
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています… 完了
タスクの記述を読み込んでいます… 完了  
    

java6確認

(op)hdknr@deblen:~/.ve/op/src/test$ apt-cache search java6
sun-java6-bin - Sun Java(TM) Runtime Environment (JRE) 6 (architecture dependent files)
sun-java6-demo - Sun Java(TM) Development Kit (JDK) 6 demos and examples
sun-java6-doc - Sun JDK(TM) Documention — integration installer
sun-java6-fonts - Lucida TrueType fonts (from the Sun JRE)
sun-java6-javadb - Java(TM) DB, Sun Microsystems’ distribution of Apache Derby
sun-java6-jdk - Sun Java(TM) Development Kit (JDK) 6
sun-java6-jre - Sun Java(TM) Runtime Environment (JRE) 6 (architecture independent files)
sun-java6-plugin - The Java(TM) Plug-in, Java SE 6
sun-java6-source - Sun Java(TM) Development Kit (JDK) 6 source files
openjdk-6-jdk - OpenJDK Development Kit (JDK)
openjdk-6-jre - OpenJDK Java runtime, using Hotspot JIT
openjdk-6-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)

インストール

(op)hdknr@deblen:~/.ve/op/src/test$ sudo aptitude install sun-java6-jdk sun-java6-demo  sun-java6-source sun-java6-doc sun-java6-plugin  sun-java6-fonts
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています               
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています… 完了
タスクの記述を読み込んでいます… 完了       
以下の新規パッケージがインストールされます:
  avahi-daemon{a} dbus{a} dbus-x11{a} iceweasel{a} java-common{a} libasound2{a} libavahi-common-data{a} libavahi-common3{a} libavahi-core5{a} libdaemon0{a} libdbus-1-3{a}
  libhunspell-1.2-0{a} liblcms1{a} libmozjs1d{a} libnspr4-0d{a} libnss-mdns{a} libnss3-1d{a} libstartup-notification0{a} myspell-en-us{a} odbcinst1debian1{a}
  sun-java6-bin{a} sun-java6-demo sun-java6-doc sun-java6-fonts sun-java6-jdk sun-java6-jre{a} sun-java6-plugin sun-java6-source unixodbc{a} xulrunner-1.9{a}
更新: 0 個、新規インストール: 30 個、削除: 0 個、保留: 0 個。
93.5MB のアーカイブを取得する必要があります。展開後に 236MB のディスク領域が新たに消費されます。
先に進みますか? [Y/n/?] Y
拡張状態情報を書き込んでいます… 完了
取得:1 http://ftp.jp.debian.org lenny/main java-common 0.30 [77.0kB]
取得:2 http://security.debian.org lenny/updates/main libmozjs1d 1.9.0.18-1 [351kB]
取得:3 http://ftp.jp.debian.org lenny/non-free sun-java6-jre 6-12-1 [6381kB]
取得:4 http://security.debian.org lenny/updates/main xulrunner-1.9 1.9.0.18-1 [6603kB]
取得:5 http://ftp.jp.debian.org lenny/main odbcinst1debian1 2.2.11-16 [65.8kB]                                                                                                 
取得:6 http://ftp.jp.debian.org lenny/main unixodbc 2.2.11-16 [286kB]                                                                                                          
取得:7 http://ftp.jp.debian.org lenny/non-free sun-java6-bin 6-12-1 [28.3MB]                                                                                                   
取得:8 http://ftp.jp.debian.org lenny/non-free sun-java6-jdk 6-12-1 [17.5MB]                                                                                                   
取得:9 http://ftp.jp.debian.org lenny/main libavahi-common-data 0.6.23-3lenny1 [32.0kB]                                                                                        
取得:10 http://ftp.jp.debian.org lenny/main libavahi-common3 0.6.23-3lenny1 [47.4kB]                                                                                           
取得:11 http://ftp.jp.debian.org lenny/main libavahi-core5 0.6.23-3lenny1 [115kB]                                                                                              
取得:12 http://ftp.jp.debian.org lenny/main libdaemon0 0.12-2lenny1 [12.5kB]                                                                                                   
取得:13 http://ftp.jp.debian.org lenny/main libdbus-1-3 1.2.1-5+lenny1 [148kB]                                                                                                 
取得:14 http://ftp.jp.debian.org lenny/main dbus 1.2.1-5+lenny1 [230kB]                                                                                                        
取得:15 http://ftp.jp.debian.org lenny/main avahi-daemon 0.6.23-3lenny1 [87.6kB]                                                                                               
取得:16 http://ftp.jp.debian.org lenny/main dbus-x11 1.2.1-5+lenny1 [64.1kB]                                                                                                   
取得:17 http://ftp.jp.debian.org lenny/main libnspr4-0d 4.7.1-5 [124kB]                                                                                                        
取得:18 http://ftp.jp.debian.org lenny/main libhunspell-1.2-0 1.2.6-1 [146kB]                                                                                                  
取得:19 http://ftp.jp.debian.org lenny/main liblcms1 1.17.dfsg-1+lenny2 [103kB]                                                                                                
取得:20 http://ftp.jp.debian.org lenny/main libnss3-1d 3.12.3.1-0lenny1 [958kB]                                                                                                
取得:21 http://ftp.jp.debian.org lenny/main libstartup-notification0 0.9-1 [20.5kB]                                                                                            
取得:22 http://ftp.jp.debian.org lenny/main iceweasel 3.0.6-3 [1132kB]                                                                                                         
取得:23 http://ftp.jp.debian.org lenny/main libasound2 1.0.16-2 [356kB]                                                                                                        
取得:24 http://ftp.jp.debian.org lenny/main libnss-mdns 0.10-3 [24.0kB]                                                                                                        
取得:25 http://ftp.jp.debian.org lenny/main myspell-en-us 1:2.4.0-3 [253kB]                                                                                                    
取得:26 http://ftp.jp.debian.org lenny/non-free sun-java6-demo 6-12-1 [12.2MB]                                                                                                 
取得:27 http://ftp.jp.debian.org lenny/non-free sun-java6-doc 6-12-1 [34.3kB]                                                                                                  
取得:28 http://ftp.jp.debian.org lenny/non-free sun-java6-fonts 6-12-1 [1854B]                                                                                                 
取得:29 http://ftp.jp.debian.org lenny/non-free sun-java6-plugin 6-12-1 [1954B]                                                                                                
取得:30 http://ftp.jp.debian.org lenny/non-free sun-java6-source 6-12-1 [17.8MB]                                                                                               
93.5MB を 3min1s 秒でダウンロードしました (514kB/s)                                                                                                                            
パッケージを事前設定しています …
未選択パッケージ java-common を選択しています。
(データベースを読み込んでいます … 現在 52001 個のファイルとディレクトリがインストールされています。)
(…/java-common_0.30_all.deb から) java-common を展開しています…
未選択パッケージ sun-java6-jre を選択しています。
(…/sun-java6-jre_6-12-1_all.deb から) sun-java6-jre を展開しています…
未選択パッケージ odbcinst1debian1 を選択しています。
(…/odbcinst1debian1_2.2.11-16_i386.deb から) odbcinst1debian1 を展開しています…
未選択パッケージ unixodbc を選択しています。
(…/unixodbc_2.2.11-16_i386.deb から) unixodbc を展開しています…
未選択パッケージ sun-java6-bin を選択しています。

同意。
再度

(…/sun-java6-bin_6-12-1_i386.deb から) sun-java6-bin を展開しています…
sun-dlj-v1-1 license has already been accepted
未選択パッケージ sun-java6-jdk を選択しています。
(…/sun-java6-jdk_6-12-1_i386.deb から) sun-java6-jdk を展開しています…
sun-dlj-v1-1 license has already been accepted
未選択パッケージ libavahi-common-data を選択しています。
(…/libavahi-common-data_0.6.23-3lenny1_i386.deb から) libavahi-common-data を展開しています…
未選択パッケージ libavahi-common3 を選択しています。
(…/libavahi-common3_0.6.23-3lenny1_i386.deb から) libavahi-common3 を展開しています…
未選択パッケージ libavahi-core5 を選択しています。
(…/libavahi-core5_0.6.23-3lenny1_i386.deb から) libavahi-core5 を展開しています…
未選択パッケージ libdaemon0 を選択しています。
(…/libdaemon0_0.12-2lenny1_i386.deb から) libdaemon0 を展開しています…
未選択パッケージ libdbus-1-3 を選択しています。
(…/libdbus-1-3_1.2.1-5+lenny1_i386.deb から) libdbus-1-3 を展開しています…
未選択パッケージ dbus を選択しています。
(…/dbus_1.2.1-5+lenny1_i386.deb から) dbus を展開しています…
未選択パッケージ avahi-daemon を選択しています。
(…/avahi-daemon_0.6.23-3lenny1_i386.deb から) avahi-daemon を展開しています…
未選択パッケージ dbus-x11 を選択しています。
(…/dbus-x11_1.2.1-5+lenny1_i386.deb から) dbus-x11 を展開しています…
未選択パッケージ libnspr4-0d を選択しています。
(…/libnspr4-0d_4.7.1-5_i386.deb から) libnspr4-0d を展開しています…
未選択パッケージ libhunspell-1.2-0 を選択しています。
(…/libhunspell-1.2-0_1.2.6-1_i386.deb から) libhunspell-1.2-0 を展開しています…
未選択パッケージ liblcms1 を選択しています。
(…/liblcms1_1.17.dfsg-1+lenny2_i386.deb から) liblcms1 を展開しています…
未選択パッケージ libmozjs1d を選択しています。
(…/libmozjs1d_1.9.0.18-1_i386.deb から) libmozjs1d を展開しています…
未選択パッケージ libnss3-1d を選択しています。
(…/libnss3-1d_3.12.3.1-0lenny1_i386.deb から) libnss3-1d を展開しています…
未選択パッケージ libstartup-notification0 を選択しています。
(…/libstartup-notification0_0.9-1_i386.deb から) libstartup-notification0 を展開しています…
未選択パッケージ xulrunner-1.9 を選択しています。
(…/xulrunner-1.9_1.9.0.18-1_i386.deb から) xulrunner-1.9 を展開しています…
未選択パッケージ iceweasel を選択しています。
(…/iceweasel_3.0.6-3_i386.deb から) iceweasel を展開しています…
未選択パッケージ libasound2 を選択しています。
(…/libasound2_1.0.16-2_i386.deb から) libasound2 を展開しています…
未選択パッケージ libnss-mdns を選択しています。
(…/libnss-mdns_0.10-3_i386.deb から) libnss-mdns を展開しています…
未選択パッケージ myspell-en-us を選択しています。
(…/myspell-en-us_1%3a2.4.0-3_all.deb から) myspell-en-us を展開しています…
未選択パッケージ sun-java6-demo を選択しています。
(…/sun-java6-demo_6-12-1_i386.deb から) sun-java6-demo を展開しています…
未選択パッケージ sun-java6-doc を選択しています。
(…/sun-java6-doc_6-12-1_all.deb から) sun-java6-doc を展開しています…
未選択パッケージ sun-java6-fonts を選択しています。
(…/sun-java6-fonts_6-12-1_all.deb から) sun-java6-fonts を展開しています…
未選択パッケージ sun-java6-plugin を選択しています。
(…/sun-java6-plugin_6-12-1_i386.deb から) sun-java6-plugin を展開しています…
未選択パッケージ sun-java6-source を選択しています。
(…/sun-java6-source_6-12-1_all.deb から) sun-java6-source を展開しています…
man-db のトリガを処理しています …
java-common (0.30) を設定しています …
odbcinst1debian1 (2.2.11-16) を設定しています …
unixodbc (2.2.11-16) を設定しています …
libavahi-common-data (0.6.23-3lenny1) を設定しています …
libavahi-common3 (0.6.23-3lenny1) を設定しています …
libavahi-core5 (0.6.23-3lenny1) を設定しています …
libdaemon0 (0.12-2lenny1) を設定しています …
libdbus-1-3 (1.2.1-5+lenny1) を設定しています …
dbus (1.2.1-5+lenny1) を設定しています …
Adding system user `messagebus’ (UID 107) …
Adding new group `messagebus’ (GID 112) …
Adding new user `messagebus’ (UID 107) with group `messagebus’ …
Not creating home directory `/var/run/dbus’.
Starting system message bus: dbus.
avahi-daemon (0.6.23-3lenny1) を設定しています …
Reloading system message bus config…done.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
dbus-x11 (1.2.1-5+lenny1) を設定しています …
libnspr4-0d (4.7.1-5) を設定しています …
libhunspell-1.2-0 (1.2.6-1) を設定しています …
liblcms1 (1.17.dfsg-1+lenny2) を設定しています …
libmozjs1d (1.9.0.18-1) を設定しています …
libnss3-1d (3.12.3.1-0lenny1) を設定しています …
libstartup-notification0 (0.9-1) を設定しています …
xulrunner-1.9 (1.9.0.18-1) を設定しています …
iceweasel (3.0.6-3) を設定しています …
libasound2 (1.0.16-2) を設定しています …
libnss-mdns (0.10-3) を設定しています …
First installation detected…
Checking NSS setup…
myspell-en-us (1:2.4.0-3) を設定しています …
Updating OpenOffice.org’s dictionary list… done.
sun-java6-doc (6-12-1) を設定しています …
This package is an installer package, it does not actually contain the
JDK documentation.  You will need to go download one of the
archives:     jdk-6u12-docs.zip jdk-6u12-docs-ja.zip

(choose the non-update version if this is the first installation).
Please visit     http://java.sun.com/javase/downloads/

now and download.  The file should be owned by root.root and be copied
to /tmp. [Press RETURN to try again, ‘no’ + RETURN to abort] no
Abort installation of JDK documentation
dpkg: sun-java6-doc の処理中にエラーが発生しました (—configure):
 サブプロセス post-installation script はエラー終了ステータス 1 を返しました
以下のパッケージの処理中にエラーが発生しました:
 sun-java6-doc
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています               
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています… 完了
タスクの記述を読み込んでいます… 完了        

ドキュメントを別途入手

http://harajuku-tech.posterous.com/java-342 でダウンロード VirtualBoxのMac からダウンロードして転送。

malmot:~ hide$ scp ~/Downloads/jdk-6u18-docs.zip hdknr@deblen:/tmp/jdk-6u12-docs.zip
jdk-6u18-docs.zip                                                        100%   56MB   7.0MB/s   00:08    

再度aptインストール

hdknr@deblen:~$ sudo aptitude install sun-java6-jdk sun-java6-demo  sun-java6-source sun-java6-doc sun-java6-plugin  sun-java6-fonts
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています               
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています… 完了
タスクの記述を読み込んでいます… 完了       
以下の、インストールが完了していないパッケージが設定されます:
  sun-java6-doc
更新: 0 個、新規インストール: 0 個、削除: 0 個、保留: 0 個。
0B のアーカイブを取得する必要があります。展開後に 0B のディスク領域が新たに消費されます。
拡張状態情報を書き込んでいます… 完了
sun-java6-doc (6-12-1) を設定しています …
/tmp/jdk-6u12-docs.zip has been unpacked and installed.
You can now delete it, if you wish.
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています               
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています… 完了
タスクの記述を読み込んでいます… 完了

Posted via email from 原宿工業大学 | Comment »

February 10, 2010
Doctrine: Install on Debian Lenny

PHPのライブラリはどこに入れるのか。(Debian)


deblen:/etc/php5# find . -name “*.ini” -exec grep -H include_path {} \;
./cli/php.ini:; (directory must also be in include_path or full path must
./cli/php.ini:;include_path = “.:/usr/share/php”
./cli/php.ini:;include_path = “.;c:\php\includes”
./apache2/php.ini:; (directory must also be in include_path or full path must
./apache2/php.ini:;include_path = “.:/usr/share/php”
./apache2/php.ini:;include_path = “.;c:\php\includes”
./cgi/php.ini:; (directory must also be in include_path or full path must
./cgi/php.ini:;include_path = “.:/usr/share/php”
./cgi/php.ini:;include_path = “.;c:\php\includes” /usr/shar/phpはないし、よくわからん。

とりあえず、PEARを入れて調べる。

deblen:/etc/php5# aptitude install php-pear
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています               
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています… 完了
タスクの記述を読み込んでいます… 完了       
以下の新規パッケージがインストールされます:
  php-pear
更新: 0 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。
335kB のアーカイブを取得する必要があります。展開後に 2408kB のディスク領域が新たに消費されます。
拡張状態情報を書き込んでいます… 完了
取得:1 http://ftp.jp.debian.org lenny/main php-pear 5.2.6.dfsg.1-1+lenny4 [335kB]
335kB を 0s 秒でダウンロードしました (621kB/s)
未選択パッケージ php-pear を選択しています。
(データベースを読み込んでいます … 現在 51790 個のファイルとディレクトリがインストールされています。)
(…/php-pear_5.2.6.dfsg.1-1+lenny4_all.deb から) php-pear を展開しています…
php-pear (5.2.6.dfsg.1-1+lenny4) を設定しています …
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています               
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています… 完了
拡張状態情報を書き込んでいます… 完了       
タスクの記述を読み込んでいます… 完了  hdknr@deblen:~$ dpkg -L php-pear
/.
/usr
/usr/share
/usr/share/doc
/usr/share/php
/usr/share/php/.channels
/usr/share/php/.channels/pear.php.net.reg
/usr/share/php/.channels/pecl.php.net.reg
/usr/share/php/.channels/__uri.reg
/usr/share/php/.channels/.alias
/usr/share/php/.channels/.alias/pear.txt
/usr/share/php/.channels/.alias/pecl.txt
/usr/share/php/.lock
/usr/share/php/data
/usr/share/php/data/PEAR
/usr/share/php/data/PEAR/package.dtd
/usr/share/php/data/PEAR/template.spec
/usr/share/php/Archive
/usr/share/php/Archive/Tar.php
/usr/share/php/.registry
/usr/share/php/.registry/structures_graph.reg
/usr/share/php/.registry/pear.reg
/usr/share/php/.registry/archive_tar.reg
/usr/share/php/.registry/console_getopt.reg
/usr/share/php/PEAR.php
/usr/share/php/Structures
/usr/share/php/Structures/Graph
/usr/share/php/Structures/Graph/Node.php
/usr/share/php/Structures/Graph/Manipulator
/usr/share/php/Structures/Graph/Manipulator/TopologicalSorter.php
/usr/share/php/Structures/Graph/Manipulator/AcyclicTest.php
/usr/share/php/Structures/Graph.php
/usr/share/php/.filemap
/usr/share/php/PEAR
/usr/share/php/PEAR/Builder.php
/usr/share/php/PEAR/Common.php
/usr/share/php/PEAR/REST
/usr/share/php/PEAR/REST/13.php
/usr/share/php/PEAR/REST/10.php
/usr/share/php/PEAR/REST/11.php
/usr/share/php/PEAR/Frontend.php
/usr/share/php/PEAR/PackageFile
/usr/share/php/PEAR/PackageFile/Generator
/usr/share/php/PEAR/PackageFile/Generator/v1.php
/usr/share/php/PEAR/PackageFile/Generator/v2.php
/usr/share/php/PEAR/PackageFile/v1.php
/usr/share/php/PEAR/PackageFile/v2
/usr/share/php/PEAR/PackageFile/v2/rw.php
/usr/share/php/PEAR/PackageFile/v2/Validator.php
/usr/share/php/PEAR/PackageFile/Parser
/usr/share/php/PEAR/PackageFile/Parser/v1.php
/usr/share/php/PEAR/PackageFile/Parser/v2.php
/usr/share/php/PEAR/PackageFile/v2.php
/usr/share/php/PEAR/REST.php
/usr/share/php/PEAR/FixPHP5PEARWarnings.php
/usr/share/php/PEAR/PackageFile.php
/usr/share/php/PEAR/Validate.php
/usr/share/php/PEAR/Dependency2.php
/usr/share/php/PEAR/Exception.php
/usr/share/php/PEAR/ChannelFile.php
/usr/share/php/PEAR/Installer
/usr/share/php/PEAR/Installer/Role.php
/usr/share/php/PEAR/Installer/Role
/usr/share/php/PEAR/Installer/Role/Ext.xml
/usr/share/php/PEAR/Installer/Role/Common.php
/usr/share/php/PEAR/Installer/Role/Data.php
/usr/share/php/PEAR/Installer/Role/Src.php
/usr/share/php/PEAR/Installer/Role/Ext.php
/usr/share/php/PEAR/Installer/Role/Doc.xml
/usr/share/php/PEAR/Installer/Role/Cfg.php
/usr/share/php/PEAR/Installer/Role/Src.xml
/usr/share/php/PEAR/Installer/Role/Data.xml
/usr/share/php/PEAR/Installer/Role/Www.xml
/usr/share/php/PEAR/Installer/Role/Cfg.xml
/usr/share/php/PEAR/Installer/Role/Www.php
/usr/share/php/PEAR/Installer/Role/Script.php
/usr/share/php/PEAR/Installer/Role/Test.php
/usr/share/php/PEAR/Installer/Role/Script.xml
/usr/share/php/PEAR/Installer/Role/Php.xml
/usr/share/php/PEAR/Installer/Role/Doc.php
/usr/share/php/PEAR/Installer/Role/Php.php
/usr/share/php/PEAR/Installer/Role/Test.xml
/usr/share/php/PEAR/Installer.php
/usr/share/php/PEAR/Frontend
/usr/share/php/PEAR/Frontend/CLI.php
/usr/share/php/PEAR/Task
/usr/share/php/PEAR/Task/Common.php
/usr/share/php/PEAR/Task/Windowseol.php
/usr/share/php/PEAR/Task/Postinstallscript.php
/usr/share/php/PEAR/Task/Postinstallscript
/usr/share/php/PEAR/Task/Postinstallscript/rw.php
/usr/share/php/PEAR/Task/Replace.php
/usr/share/php/PEAR/Task/Replace
/usr/share/php/PEAR/Task/Replace/rw.php
/usr/share/php/PEAR/Task/Unixeol.php
/usr/share/php/PEAR/Task/Windowseol
/usr/share/php/PEAR/Task/Windowseol/rw.php
/usr/share/php/PEAR/Task/Unixeol
/usr/share/php/PEAR/Task/Unixeol/rw.php
/usr/share/php/PEAR/Downloader.php
/usr/share/php/PEAR/Packager.php
/usr/share/php/PEAR/XMLParser.php
/usr/share/php/PEAR/DependencyDB.php
/usr/share/php/PEAR/ErrorStack.php
/usr/share/php/PEAR/Command
/usr/share/php/PEAR/Command/Remote.xml
/usr/share/php/PEAR/Command/Common.php
/usr/share/php/PEAR/Command/Auth.xml
/usr/share/php/PEAR/Command/Package.xml
/usr/share/php/PEAR/Command/Pickle.xml
/usr/share/php/PEAR/Command/Config.xml
/usr/share/php/PEAR/Command/Channels.xml
/usr/share/php/PEAR/Command/Registry.xml
/usr/share/php/PEAR/Command/Mirror.php
/usr/share/php/PEAR/Command/Channels.php
/usr/share/php/PEAR/Command/Mirror.xml
/usr/share/php/PEAR/Command/Auth.php
/usr/share/php/PEAR/Command/Install.php
/usr/share/php/PEAR/Command/Pickle.php
/usr/share/php/PEAR/Command/Package.php
/usr/share/php/PEAR/Command/Build.php
/usr/share/php/PEAR/Command/Registry.php
/usr/share/php/PEAR/Command/Build.xml
/usr/share/php/PEAR/Command/Test.php
/usr/share/php/PEAR/Command/Install.xml
/usr/share/php/PEAR/Command/Config.php
/usr/share/php/PEAR/Command/Remote.php
/usr/share/php/PEAR/Command/Test.xml
/usr/share/php/PEAR/Validator
/usr/share/php/PEAR/Validator/PECL.php
/usr/share/php/PEAR/Command.php
/usr/share/php/PEAR/RunTest.php
/usr/share/php/PEAR/Dependency.php
/usr/share/php/PEAR/Registry.php
/usr/share/php/PEAR/Downloader
/usr/share/php/PEAR/Downloader/Package.php
/usr/share/php/PEAR/ChannelFile
/usr/share/php/PEAR/ChannelFile/Parser.php
/usr/share/php/PEAR/Config.php
/usr/share/php/PEAR/Remote.php
/usr/share/php/PEAR/Autoloader.php
/usr/share/php/.depdblock
/usr/share/php/Console
/usr/share/php/Console/Getopt.php
/usr/share/php/OS
/usr/share/php/OS/Guess.php
/usr/share/php/System.php
/usr/share/php/.depdb
/usr/share/php/pearcmd.php
/usr/share/php/peclcmd.php
/usr/bin
/usr/bin/pear
/usr/bin/pecl
/usr/bin/peardev
/etc
/etc/pear
/etc/pear/pear.conf
/usr/share/doc/php-pear
/usr/share/php/doc

Authも入れてみる。

hdknr@deblen:~$ sudo aptitude install php-auth
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています               
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています… 完了
タスクの記述を読み込んでいます… 完了       
以下の新規パッケージがインストールされます:
  php-auth
更新: 0 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。
77.3kB のアーカイブを取得する必要があります。展開後に 537kB のディスク領域が新たに消費されます。
拡張状態情報を書き込んでいます… 完了
取得:1 http://ftp.jp.debian.org lenny/main php-auth 1.6.1-1 [77.3kB]
77.3kB を 0s 秒でダウンロードしました (173kB/s)
未選択パッケージ php-auth を選択しています。
(データベースを読み込んでいます … 現在 51943 個のファイルとディレクトリがインストールされています。)
(…/php-auth_1.6.1-1_all.deb から) php-auth を展開しています…
php-auth (1.6.1-1) を設定しています …
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています               
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています… 完了
拡張状態情報を書き込んでいます… 完了       
タスクの記述を読み込んでいます… 完了 

hdknr@deblen:~$ dpkg -L php-auth
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/php-auth
/usr/share/doc/php-auth/examples
/usr/share/doc/php-auth/examples/logging.php
/usr/share/doc/php-auth/examples/tests
/usr/share/doc/php-auth/examples/tests/DBContainer.php
/usr/share/doc/php-auth/examples/tests/FileContainer.php
/usr/share/doc/php-auth/examples/tests/POP3aContainer.php
/usr/share/doc/php-auth/examples/tests/tests.php
/usr/share/doc/php-auth/examples/tests/POP3Container.php
/usr/share/doc/php-auth/examples/tests/bug8735.passwd
/usr/share/doc/php-auth/examples/tests/auth_container_mdb2_options.php
/usr/share/doc/php-auth/examples/tests/auth_container_pop3a_options.php
/usr/share/doc/php-auth/examples/tests/users
/usr/share/doc/php-auth/examples/tests/bug8735.phpt
/usr/share/doc/php-auth/examples/tests/MDB2Container.php
/usr/share/doc/php-auth/examples/tests/auth_container_mdb_options.php
/usr/share/doc/php-auth/examples/tests/TestAuthContainer.php.gz
/usr/share/doc/php-auth/examples/tests/mysql_test_db.sql
/usr/share/doc/php-auth/examples/tests/auth_container_pop3_options.php
/usr/share/doc/php-auth/examples/tests/auth_container_db_options.php
/usr/share/doc/php-auth/examples/tests/auth_container_file_options.php
/usr/share/doc/php-auth/examples/tests/MDBContainer.php
/usr/share/doc/php-auth/examples/multi-container.php
/usr/share/doc/php-auth/README.Auth
/usr/share/doc/php-auth/copyright
/usr/share/doc/php-auth/README.AdvancedSecurity
/usr/share/doc/php-auth/package.xml.gz
/usr/share/doc/php-auth/changelog.Debian.gz
/usr/share/php
/usr/share/php/.registry
/usr/share/php/.registry/auth.reg
/usr/share/php/Auth
/usr/share/php/Auth/Container.php
/usr/share/php/Auth/Controller.php
/usr/share/php/Auth/Anonymous.php
/usr/share/php/Auth/Frontend
/usr/share/php/Auth/Frontend/md5.js
/usr/share/php/Auth/Frontend/Html.php
/usr/share/php/Auth/Container
/usr/share/php/Auth/Container/SAP.php
/usr/share/php/Auth/Container/File.php
/usr/share/php/Auth/Container/POP3.php
/usr/share/php/Auth/Container/Multiple.php
/usr/share/php/Auth/Container/RADIUS.php
/usr/share/php/Auth/Container/SMBPasswd.php
/usr/share/php/Auth/Container/SOAP.php
/usr/share/php/Auth/Container/PEAR.php
/usr/share/php/Auth/Container/LDAP.php
/usr/share/php/Auth/Container/NetVPOPMaild.php
/usr/share/php/Auth/Container/MDB.php
/usr/share/php/Auth/Container/KADM5.php
/usr/share/php/Auth/Container/DBLite.php
/usr/share/php/Auth/Container/MDB2.php
/usr/share/php/Auth/Container/IMAP.php
/usr/share/php/Auth/Container/vpopmail.php
/usr/share/php/Auth/Container/Array.php
/usr/share/php/Auth/Container/DB.php
/usr/share/php/Auth/Container/SOAP5.php
/usr/share/php/Auth/Auth.php
/usr/share/php/Auth.php

となっているので、/usr/share/php/* ?

/usr/share/php/ライブラリ/ と、/usr/share/php/ライブラリ.phpをいれればいいんですかね。

doctrineをチェックアウト(/usr/src/ )

hdknr@deblen:/usr/src$ pwd
/usr/src
hdknr@deblen:/usr/src$ sudo svn co http://svn.doctrine-project.org/tags/1.2.1 doctrine-svn-1.2.1
….
A    doctrine-svn-1.2.1/lib/Doctrine.php
A    doctrine-svn-1.2.1/CHANGELOG
A    doctrine-svn-1.2.1/COPYRIGHT
A    doctrine-svn-1.2.1/UPGRADE_TO_1_2
A    doctrine-svn-1.2.1/package.xml
 U   doctrine-svn-1.2.1 外部項目を ‘doctrine-svn-1.2.1/lib/Doctrine/Parser/sfYaml’ に取得しています
A    doctrine-svn-1.2.1/lib/Doctrine/Parser/sfYaml/sfYamlInline.php
A    doctrine-svn-1.2.1/lib/Doctrine/Parser/sfYaml/sfYaml.php
A    doctrine-svn-1.2.1/lib/Doctrine/Parser/sfYaml/sfYamlDumper.php
A    doctrine-svn-1.2.1/lib/Doctrine/Parser/sfYaml/sfYamlParser.php
外部項目 (リビジョン 27792) をチェックアウトしました。

リビジョン 7129 をチェックアウトしました

シンボリックリックを作成(/usr/share/php/Doctrine/)

hdknr@deblen:/usr/src$ sudo ln -s /usr/src/doctrine-svn-1.2.1/lib/Doctrine /usr/share/php
hdknr@deblen:/usr/src$ sudo ln -s /usr/src/doctrine-svn-1.2.1/lib/Doctrine.php /usr/share/php

hdknr@deblen:/usr/src$ ls -l /usr/share/php | grep Doc
lrwxrwxrwx  1 root root    40 2010-02-09 14:29 Doctrine -> /usr/src/doctrine-svn-1.2.1/lib/Doctrine
lrwxrwxrwx  1 root root    44 2010-02-09 14:29 Doctrine.php -> /usr/src/doctrine-svn-1.2.1/lib/Doctrine.php

確認

(djtweet)hdknr@deblen:~/.ve/djtweet/apache/www$ more test.php
<?PHP
require_once “Doctrine.php”;
$d = new Doctrine();
 ?>


なので、Core.phpを読みにいけているから配置はOKかな?

bootstrap.phpを準備。

(djtweet)hdknr@deblen:~/.ve/djtweet/apache/www$ more bootstrap.php
<?PHP
require_once “Doctrine.php”;
spl_autoload_register(array(‘Doctrine’, ‘autoload’));
$manager = Doctrine_Manager::getInstance();
 ?>

test.phpを変更して確認。


(djtweet)hdknr@deblen:~/.ve/djtweet/apache/www$ more test.php
<?PHP
require_once(‘bootstrap.php’);
echo Doctrine::getPath();
 ?>

なので動作しているモノと思われ。

Posted via email from 原宿工業大学 | Comment »

February 8, 2010
PHP:PDO : Debian Lenny での確認

PHPバージョン確認

hdknr@deblen:~$ php -v
PHP 5.2.6-1+lenny4 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 22 2009 02:38:03)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies
    with XCache v1.2.2, Copyright (c) 2005-2007, by mOo
 

PHP.INIはどこ?

hdknr@deblen:~$ dpkg -L php5-common | grep ini
/usr/share/doc/php5-common/examples/php.ini-dist
/usr/share/doc/php5-common/examples/php.ini-paranoid
/usr/share/doc/php5-common/examples/php.ini-recommended
/usr/share/php5/php.ini-dist
/usr/share/php5/php.ini-dist.cli
/etc/php5/conf.d/pdo.ini

PDOはある?

hdknr@deblen:~$ dpkgdpkg -L php5-common | grep pdo
/usr/lib/php5/20060613+lfs/pdo.so
/etc/php5/conf.d/pdo.ini

MySQLのPDOは?

hdknr@deblen:~$ sudo find / -name "pdo*" -print
/usr/lib/php5/20060613+lfs/pdo_mysql.so
/usr/lib/php5/20060613+lfs/pdo_pgsql.so
/usr/lib/php5/20060613+lfs/pdo.so
/etc/php5/conf.d/pdo_mysql.ini
/etc/php5/conf.d/pdo_pgsql.ini
/etc/php5/conf.d/pdo.ini

php5-mysqlをいれると入るようです。

hdknr@deblen:~$ dpkg -L php5-mysql | grep pdo
/usr/lib/php5/20060613+lfs/pdo_mysql.so
/etc/php5/conf.d/pdo_mysql.ini

conf.dの内容確認。

hdknr@deblen:~$ more /etc/php5/conf.d/pdo_mysql.ini
# configuration for php MySQL module
extension=pdo_mysql.so

サンプルコード

hdknr@deblen:~$ more test.php
<?PHP
$DBN='tweet';
$DBU=$DBN;
$DBP=$DBN;
try {
    $pdo = new PDO("mysql:host=localhost; dbname=$DBN",$DBU,$DBP);
    $stmt = $pdo->query("SET NAMES utf8");
    $stmt = $pdo->query("SELECT * FROM tweets_tweet limit 5");
     while($row = $stmt->fetch(PDO::FETCH_ASSOC)){
        echo implode(", ", $row) . PHP_EOL;
    }
} catch (PDOException $e){
    var_dump($e->getMessage());
}
 $pdo = null;
?>
 

実行結果

hdknr@deblen:~$ php test.php
1, 8015912, hdknr, ひできならでは, http://d.hatena.ne.jp/hdknr/, 2010-01-23 14:19:19, 2010-01-23 14:19:19, http://twitter.com/hdknr/statuses/8100709399, hdknr: いいっすね! RT @tkudos じゃ、うちからはこれを http://blog.livedoor.jp/chezkatsuno/ RT @hdknr @ni http://tl.gd/4sfvq, hdknr: いいっすね! RT @tkudos じゃ、うちからはこれを http://blog.livedoor.jp/chezkatsuno/ RT @hdknr @ni http://tl.gd/4sfvq
2, 8015912, hdknr, ひできならでは, http://d.hatena.ne.jp/hdknr/, 2010-01-23 14:14:21, 2010-01-23 14:14:21, http://twitter.com/hdknr/statuses/8100568460, hdknr: 白のタキシードは日本独自。タキシードは6:00以降の服で、昼の結婚式にどうしてもタキシードを着たいという独自のニーズでできた。, hdknr: 白のタキシードは日本独自。タキシードは6:00以降の服で、昼の結婚式にどうしてもタキシードを着たいという独自のニーズでできた。
3, 8015912, hdknr, ひできならでは, http://d.hatena.ne.jp/hdknr/, 2010-01-23 13:12:33, 2010-01-23 13:12:33, http://twitter.com/hdknr/statuses/8098728166, hdknr: @doramimy 答えはリンク先の写真をクリック!, hdknr: @doramimy 答えはリ ンク先の写真をクリック!
4, 8015912, hdknr, ひできならでは, http://d.hatena.ne.jp/hdknr/, 2010-01-23 13:09:07, 2010-01-23 13:09:07, http://twitter.com/hdknr/statuses/8098621429, hdknr: Jay Electronica - Exhibit C - EP - http://itunes.apple.com/jp/album/exhibit-c-ep/id346331122 #iTunes, hdknr: Jay Electronica - Exhibit C - EP - http://itunes.apple.com/jp/album/exhibit-c-ep/id346331122 #iTunes
5, 8015912, hdknr, ひできならでは, http://d.hatena.ne.jp/hdknr/, 2010-01-23 13:07:38, 2010-01-23 13:07:38, http://twitter.com/hdknr/statuses/8098575957, hdknr: Jay Electronica - Exhibit C ってラップはNas? カッコいいね。, hdknr: Jay Electronica - Exhibit C ってラップはNas? カッコいいね。

Posted via email from 原宿工業大学 | Comment »

February 6, 2010
varnish: @notentact とビルドした結果が違う

hdknr@deblen:/usr/local/var/varnish$ ls -l /usr/local/bin/varnish* -rwxr-xr-x 1 root staff 13948 2010-02-06 13:16 /usr/local/bin/varnishadm

-rwxr-xr-x 1 root staff 21293 2010-02-06 13:16 /usr/local/bin/varnishhist -rwxr-xr-x 1 root staff 23605 2010-02-06 13:16 /usr/local/bin/varnishlog

-rwxr-xr-x 1 root staff 26771 2010-02-06 13:16 /usr/local/bin/varnishncsa -rwxr-xr-x 1 root staff 31187 2010-02-06 13:16 /usr/local/bin/varnishreplay

-rwxr-xr-x 1 root staff 67509 2010-02-06 13:16 /usr/local/bin/varnishstat -rwxr-xr-x 1 root staff 120660 2010-02-06 13:16 /usr/local/bin/varnishtest

-rwxr-xr-x 1 root staff 22718 2010-02-06 13:16 /usr/local/bin/varnishtop

Posted via email from 原宿工業大学 | Comment »

とりあえず: [Debian] warning: underquoted definition of AM_PATH_LIBMCRYPT

メモ代わり。てきとーに。 いや、ですからてきとーですって。

2008年2月6日水曜日

[Debian] warning: underquoted definition of AM_PATH_LIBMCRYPT

うーむ。

unstableからupgradeしたせいかしら。。。

/usr/share/aclocal/libmcrypt.m4

の17行目の


AC_DEFUN(AM_PATH_LIBMCRYPT,



AC_DEFUN([AM_PATH_LIBMCRYPT],

と修正。

Posted via web from 原宿工業大学 | Comment »

resolvconf : install on Debian lenny

resolvconfインストール

hdknr@deblen:~$ sudo aptitude install resolvconf
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます      
パッケージの状態を初期化しています... 完了
タスクの記述を読み込んでいます... 完了        
以下の新規パッケージがインストールされます:
  resolvconf 
更新: 0 個、新規インストール: 1 個、削除: 0 個、保留: 0 個。
53.6kB のアーカイブを取得する必要があります。展開後に 270kB のディスク領域が新たに消費されます。
拡張状態情報を書き込んでいます... 完了
取得:1 http://ftp.jp.debian.org lenny/main resolvconf 1.42 [53.6kB]
53.6kB を 0s 秒でダウンロードしました (107kB/s)
パッケージを事前設定しています ...
未選択パッケージ resolvconf を選択しています。
(データベースを読み込んでいます ... 現在 51464 個のファイルとディレクトリがインストールされています。)
(.../resolvconf_1.42_all.deb から) resolvconf を展開しています...
man-db のトリガを処理しています ...
resolvconf (1.42) を設定しています ...
mkdir: created directory `/lib/init/rw/resolvconf'
mkdir: created directory `/lib/init/rw/resolvconf/interface'
パッケージリストを読み込んでいます... 完了
依存関係ツリーを作成しています                
状態情報を読み取っています... 完了
拡張状態情報を読み込んでいます      
パッケージの状態を初期化しています... 完了
拡張状態情報を書き込んでいます... 完了        
タスクの記述を読み込んでいます... 完了  

確認

hdknr@deblen:~$ ls -l /etc/resolv.conf
lrwxrwxrwx 1 root root 31 2010-02-06 11:41 /etc/resolv.conf -> /etc/resolvconf/run/resolv.conf hdknr@deblen:~$ dpkg -L resolvconf /. /lib /lib/resolvconf /lib/resolvconf/list-records /etc /etc/network /etc/network/if-down.d /etc/network/if-down.d/resolvconf /etc/network/if-up.d /etc/network/if-up.d/000resolvconf /etc/init.d /etc/init.d/resolvconf /etc/dhcp3 /etc/dhcp3/dhclient-enter-hooks.d /etc/dhcp3/dhclient-enter-hooks.d/resolvconf /etc/resolvconf /etc/resolvconf/interface-order /etc/resolvconf/resolv.conf.d /etc/resolvconf/resolv.conf.d/base /etc/resolvconf/resolv.conf.d/head /etc/resolvconf/update-libc.d /etc/resolvconf/update.d /etc/resolvconf/update.d/dnscache /etc/resolvconf/update.d/libc /etc/resolvconf/update.d/bind /etc/ppp /etc/ppp/ip-down.d /etc/ppp/ip-down.d/000resolvconf /etc/ppp/ip-up.d /etc/ppp/ip-up.d/000resolvconf /sbin /sbin/resolvconf /usr /usr/share /usr/share/man /usr/share/man/man8 /usr/share/man/man8/resolvconf.8.gz /usr/share/man/man5 /usr/share/man/man5/interface-order.5.gz /usr/share/doc /usr/share/doc/resolvconf /usr/share/doc/resolvconf/README.gz /usr/share/doc/resolvconf/copyright /usr/share/doc/resolvconf/changelog.gz hdknr@deblen:~$ sudo ifdown eth0; sudo ifup eth0 There is already a pid file /var/run/dhclient.eth0.pid with pid 31039 killed old client process, removed PID file Internet Systems Consortium DHCP Client V3.1.1 Copyright 2004-2008 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/08:00:27:d5:30:7b Sending on LPF/eth0/08:00:27:d5:30:7b Sending on Socket/fallback DHCPRELEASE on eth0 to 10.0.2.2 port 67 Internet Systems Consortium DHCP Client V3.1.1 Copyright 2004-2008 Internet Systems Consortium. All rights reserved. For info, please visit http://www.isc.org/sw/dhcp/ Listening on LPF/eth0/08:00:27:d5:30:7b Sending on LPF/eth0/08:00:27:d5:30:7b Sending on Socket/fallback DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 DHCPOFFER from 10.0.2.2 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPACK from 10.0.2.2 bound to 10.0.2.15 -- renewal in 37589 seconds. hdknr@deblen:~$ more /etc/resolv.conf # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 192.168.11.1 nameserver 220.220.248.1 nameserver 220.220.248.9

Posted via email from 原宿工業大学 | Comment »

NetworkConfiguration - Debian Wiki

The resolvconf program

The resolvconf program keeps track of system information about the currently available nameservers. It should not be confused with the configuration file resolv.conf, which unfortunately has a nearly identical name. The resolvconf program is optional on a Debian system.

The configuration file resolv.conf contains information about the the nameservers to be used by the system. However, when multiple programs need to dynamically modify the resolv.conf configuration file they can step on each other and the file can become out-out-sync. The resolvconf program addresses this problem. It acts as an intermediary between programs that supply nameserver information (e.g. dhcp clients) and programs that use nameserver information (e.g. resolver).

When resolvconf is properly installed, the resolv.conf configuration file at /etc/resolv.conf is replaced by a symbolic link to /etc/resolvconf/run/resolv.conf and the resolver instead uses the configuration file that is dynamically generated by resolvconf at /etc/resolvconf/run/resolv.conf.

The resolvconf program is generally only necessary when a system has multiple programs that need to dynamically modify the nameserver information. In a simple system where the nameservers do not change often or are only changed by one program, the resolv.conf configuration file is adequate.

If the resolvconf program is installed, you should not edit the resolv.conf configuration file manually as it will be dynamically changed by programs in the system. If you need to manually define the nameservers (as with a static inferface), add a line something like the following to the interfaces configuration file at /etc/network/interfaces:

dns-nameservers 12.34.56.78 12.34.56.79

Place the line indented within an iface stanza, e.g., right after the gateway line. Enter the IP addresses of the nameservers you need to use after dns-nameservers. Put all of them on one line separated by spaces. Don’t forget the “s” on the end of dns-nameservers.

The resolvconf program is a fairly new addition to Debian and many older programs need to be updated or reconfigured to work properly with it. If you have problems, see /usr/share/doc/resolvconf/README. It has lots of information on making other programs get along with resolvconf.

- /etc/resolv.conf -> /etc/resolvconf/run/resolv.conf
- /etc/network/interfacesにネームサーバーを書くこと
- dns-nameservers 8.8.8.8 8.8.4.4 
- /etc/share/doc/resolvconf/README を参照

Posted via web from 原宿工業大学 | Comment »

January 21, 2010
samba: インストール on Debian

VirtualBoxで動いているDebianに接続してみる。 hdknr@deblen:~$ sudo aptitude install samba
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています               
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています… 完了
タスクの記述を読み込んでいます… 完了       
以下の新規パッケージがインストールされます:
  libtalloc1{a} libwbclient0{a} samba samba-common{a}
更新: 0 個、新規インストール: 4 個、削除: 0 個、保留: 0 個。
7794kB のアーカイブを取得する必要があります。展開後に 21.5MB のディスク領域が新たに消費されます。
先に進みますか? [Y/n/?] y
拡張状態情報を書き込んでいます… 完了
取得:1 http://ftp.jp.debian.org lenny/main libtalloc1 1.2.0~git20080616-1 [14.3kB]
取得:2 http://security.debian.org lenny/updates/main libwbclient0 2:3.2.5-4lenny7 [79.0kB]
取得:3 http://security.debian.org lenny/updates/main samba-common 2:3.2.5-4lenny7 [3405kB]
取得:4 http://security.debian.org lenny/updates/main samba 2:3.2.5-4lenny7 [4295kB]
7794kB を 11s 秒でダウンロードしました (653kB/s)                               
パッケージを事前設定しています …
未選択パッケージ libtalloc1 を選択しています。
(データベースを読み込んでいます … 現在 51344 個のファイルとディレクトリがインストールされています。)
(…/libtalloc1_1.2.0~git20080616-1_i386.deb から) libtalloc1 を展開しています…
未選択パッケージ libwbclient0 を選択しています。
(…/libwbclient0_2%3a3.2.5-4lenny7_i386.deb から) libwbclient0 を展開しています…
未選択パッケージ samba-common を選択しています。
(…/samba-common_2%3a3.2.5-4lenny7_i386.deb から) samba-common を展開しています…
未選択パッケージ samba を選択しています。
(…/samba_2%3a3.2.5-4lenny7_i386.deb から) samba を展開しています…
man-db のトリガを処理しています …
libtalloc1 (1.2.0~git20080616-1) を設定しています …
libwbclient0 (2:3.2.5-4lenny7) を設定しています …
samba-common (2:3.2.5-4lenny7) を設定しています …

Creating config file /etc/samba/smb.conf with new version
samba (2:3.2.5-4lenny7) を設定しています …
Generating /etc/default/samba…
tdbsam_open: Converting version 0 database to version 3.
account_policy_get: tdb_fetch_uint32 failed for field 1 (min password length), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 2 (password history), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 3 (user must logon to change password), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 4 (maximum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 5 (minimum password age), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 6 (lockout duration), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 7 (reset count minutes), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 8 (bad lockout attempt), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 9 (disconnect time), returning 0
account_policy_get: tdb_fetch_uint32 failed for field 10 (refuse machine password change), returning 0
Importing account for root…ok
Importing account for daemon…ok
Importing account for bin…ok
Importing account for sys…ok
Importing account for sync…ok
Importing account for games…ok
Importing account for man…ok
Importing account for lp…ok
Importing account for mail…ok
Importing account for news…ok
Importing account for uucp…ok
Importing account for proxy…ok
Importing account for www-data…ok
Importing account for backup…ok
Importing account for list…ok
Importing account for irc…ok
Importing account for gnats…ok
Importing account for nobody…ok
Importing account for libuuid…ok
Importing account for Debian-exim…ok
Importing account for statd…ok
Importing account for hdknr…ok
Importing account for sshd…ok
Importing account for mysql…ok
Importing account for postgres…ok
Importing account for postfix…ok
Adding group `sambashare’ (GID 111) …
終了。
Starting Samba daemons: nmbd smbd.
パッケージリストを読み込んでいます… 完了
依存関係ツリーを作成しています               
状態情報を読み取っています… 完了
拡張状態情報を読み込んでいます     
パッケージの状態を初期化しています… 完了
拡張状態情報を書き込んでいます… 完了       
タスクの記述を読み込んでいます… 完了


hdknr@deblen:~$ vi /etc/samba/smb.conf
[globa]
 security =user hdknr@deblen:~$ sudo smbpasswd -a hdknr
New SMB password:
Retype new SMB password:

hdknr@deblen:~$ sudo /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd. ファインダーで、「移動」⇒「サーバーへ接続」

/Volume/hdknrにマウントされています。

malmot:~ hide$ ls -l /Volumes/
total 40
lrwxr-xr-x   1 root  admin      1  1 13 03:34 Macintosh HD -> /
drwxr-xr-x  41 hide  staff  16384  1 20 03:00 hdknr この状態では書き込めない。

hdknr@deblen:~$ sudo vi !$
sudo vi /etc/samba/smb.conf [home]
 read only = no

hdknr@deblen:~$ sudo /etc/init.d/samba restart
Stopping Samba daemons: nmbd smbd.
Starting Samba daemons: nmbd smbd. で書き込める。

Posted via email from 原宿工業大学 | Comment »