忍者ブログ
出来損ないのカメレオン

・PS1
 通常のプロンプト。いくつかの特殊文字が使える。
   
特殊文字
 
意味
   \d  日付
   \h  ホスト名
   \n  改行
   \s  シェルの名前
   \t  時間
   \u  ユーザー名
   \w  ワークディレクトリ
   \W  ワークディレクトリのベース名
   \#  コマンド番号
   \!  ヒストリ番号
   \$  有効なUIDが0なら「#」、それ以外なら「$」
   \nnn  8進数での文字コード
   \\  バックスラッシュそのもの
   \[  非表示文字の開始
   \]  非表示文字の終了


 bashの関連ファイルには、次のようなものがあります。

    * /etc/profile
    * ~/.bash_profile
    * ~/.bash_login
    * ~/.profile
    * ~/.bashrc
    * ~/.bash_logout

 ユーザーがログインすると、まず/etc/profileを読み込み、次に~/.bash_profileを読み込みます。 ~/.bash_profileが存在しない場合は、~/.bash_loginを読み込みます。~/.bash_loginもない場合は ~/.profileを読み込みます。~/.bash_logoutは、ログアウト時に読み込まれるファイルです。

 .bashrcは、プロセスとしてbashを起動したときに読み込まれます。つまり、いったんログインした後でも、
$ bash

などとして新しくbashを起動するたびに読み込まれるというわけです。

 どれも単なるテキストファイルですから、エディタで簡単に編集できます。しかし、編集しただけでは変更が反映されません。いったんログアウトしてもう1度ログインし直すか、sourceコマンドを使って、
$ source .bash_profile


$ source .bashrc

とする必要があります。

 .bash_profileと.bashrcの使い分けですが、ログイン時に一度設定すればいいものは前者に、bashを起動するたびに設定する必要のあるものは後者にするのが原則です。もっとも、私の場合はどちらも同じなので、.bash_profileの内容は
source .bashrc

PR

/var/www/htdocs

/etc/apache2/default-server.conf

<Directory "/var/www/htdocs/man">
 Options Indexes MultiViews
 AllowOverride None
 Order allow,deny
 Allow from all
</Directory>

/etc/rc.d/apache2 graceful
/etc/rc.d/apache2 restart

------------------------------------------------------
<VirtualHost *:80>
    ServerAdmin webmaster@domain.com
    VirtualDocumentRoot /var/www/%0/htdocs
    VirtualScriptAlias /var/www/%0/htdocs/cgi-bin
    <Directory /var/www/*/htdocs>
        AllowOverride All
        Options -Indexes +Includes +FollowSymLinks
        <Limit GET POST OPTIONS>
            Order allow,deny
            Allow from all
        </Limit>
        <LimitExcept GET POST OPTIONS>
            Order deny,allow
            Deny from all
        </LimitExcept>
    </Directory>
    <Directory /var/www/*/htdocs/cgi-bin>
        Options +ExecCGI
    </Directory>
    ErrorLog logs/error_log
    CustomLog logs/access_log common
</VirtualHost>
------------------------------------------------------

CGI

default-serveer.conf
<Directory /usr/local/apache2/htdocs/somedir>
Options +ExecCGI
</Directory>

mod_mime-defaults.conf
AddHandler cgi-script .cgi .pl

acroread install

1.YaSTにソフトウェアソースを追加
FTP
サーバ名: ftp.kddilabs.jp
ディレクトリ:Linux/distributions/SuSE/suse/i386/10.0/SUSE-Linux10.0-GM-Extra/

2.YaST-ソフトウェアの追加で acroread を追加

3.以下のアドレスのフォントをインストールする
http://www.adobe.com/jp/products/acrobat/acrrasianfontpack.html
$ tar xzvf FontPack708_jpn_i386-linux.tar.gz
$ cd JPNKIT/
$ sudo ./INSTALL
>y-q
>accept
>/usr/X11R6/lib/Acrobat7/

4.Pluginをインストール
$ /usr/X11R6/lib/Acrobat7/Browser/install_browser_plugin

5.余計なPluginファイルをリネーム
#cd /usr/lib/browser-plugins
#mv libdragonnegg.so libdragonnegg.so.bak

install

CentOS4.4

--------------------------
セキュリティでhttpdを信用できるサービスに。
chkconfig httpd on
chkconfig --list httpd

root
/var/www/html/


db
/var/lib/postgres,mysql
--------------------------
MySQL&phpMyAdmin
chkconfig mysqld on

wget http://prdownloads.sourceforge.net/phpmyadmin/phpMyAdmin-2.10.0.2-all-languages-utf-8-only.tar.gz

cp /var/www/html/~

# cd /var/www/html/phpMyAdmin/
# cp -p config.sample.inc.php config.inc.php
# chmod 664 /var/www/phpmyadmin/config.inc.php
# mkpasswd -l 46
cwicivIu4velcepjfisfcvircqwropshk>ddl2besgvAov
# vi config.inc.php
$cfg['blowfish_secret'] = 'cwicivIu4velcepjfisfcvircqwropshk>ddl2besgvAov';

 

--------------------------
PostgreSQL&phpPgAdmin
chkconfig postgresql on

# passwd postgres
# psql template1
$ alter user postgres with password 'postgres';
\q

$ createuser -AdPE root

vi /var/lib/pgsql/data/pg_hda.conf

local all all trust
host  all all 127.0.0.1 255.255.255.0 trust
#host all all 192.168.0.1 255.255.255.255 trust
#host all all 0.0.0.0 0.0.0.0 password crypt

wget http://prdownloads.sourceforge.net/phppgadmin/phpPgAdmin-4.1.1.tar.gz

cp /var/www/html/~

vi /var/www/html/phpPgAdmin/conf/config.ini.php

$conf['extra_login_security'] = true;
>
$conf['extra_login_security'] = false;

------------------------------------------------------
php

wget http://jp.php.net/get/php-4.4.6.tar.gz/from/this/mirror

web_local
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-apxs2=/usr/sbin/apxs2 --with-ndbm=/usr --with-db4=/usr --with-mcrypt=/usr --with-mhash=/usr --without-interbase --with-ming=/usr --with-swf=/usr --without-sybase --with-gdbm=/usr --without-fdftk --with-java=/opt/sun-jdk-1.4.2.10 --with-mcal=/usr --without-unixODBC --with-pgsql=/usr --with-snmp=/usr --enable-ucd-snmp-hack --with-xpm-dir=/usr/X11R6 --with-gmp --without-mssql --without-crack --without-pdflib --with-gd=/usr --enable-gd-native-ttf --with-png=/usr --with-png-dir=/usr --with-jpeg=/usr --with-jpeg-dir=/usr --enable-exif --with-tiff=/usr --with-tiff-dir=/usr --with-mysql=/usr --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-freetype-dir=/usr --with-ttf=/usr --with-t1lib=/usr --with-gettext --with-pspell=/usr --with-openssl=/usr --with-imap=/usr --with-ldap=/usr --with-dom=/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --without-kerberos --with-pam --enable-memory-limit --disable-ipv6 --without-yaz --disable-debug --with-curlwrappers --with-curl=/usr --enable-dbx --with-imap-ssl --with-zlib=/usr --with-zlib-dir=/usr --with-sablot=/usr --enable-xslt --with-xslt-sablot --with-xmlrpc --enable-wddx --with-xml --enable-mbstring=all --enable-mbregex --with-bz2=/usr --with-cdb --enable-pcntl --enable-bcmath --enable-calendar --enable-dbase --enable-filepro --enable-ftp --with-mime-magic=/usr/share/misc/file/magic.mime --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --with-iconv --enable-shmop --enable-dio --enable-yp --without-ncurses --without-readline --enable-inline-optimization --enable-track-vars --enable-trans-sid --enable-versioning --with-config-file-path=/etc/php/apache2-php4 --libdir=/usr/lib/php --without-pear --build=i686-pc-linux-gnu


default
./configure --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info --cache-file=../config.cache --with-config-file-path=/etc --with-config-file-scan-dir=/etc/php.d --enable-force-cgi-redirect --disable-debug --enable-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db4=/usr --with-curl --with-exec-dir=/usr/bin --with-freetype-dir=/usr --with-png-dir=/usr --with-gd=shared --enable-gd-native-ttf --without-gdbm --with-gettext --with-ncurses=shared --with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png --with-pspell --with-xml --with-expat-dir=/usr --with-dom=shared,/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --with-xmlrpc=shared --with-pcre-regex=/usr --with-zlib --with-layout=GNU --enable-bcmath --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-track-vars --enable-trans-sid --enable-yp --enable-wddx --with-pear=/usr/share/pear --with-imap=shared --with-imap-ssl --with-kerberos --with-ldap=shared --with-mysql=shared,/usr --with-mcrypt=/usr --with-pgsql=shared --with-snmp=shared,/usr --with-snmp=shared --enable-ucd-snmp-hack --with-unixODBC=shared,/usr --enable-memory-limit --enable-shmop --enable-calendar --enable-dbx --enable-dio --enable-mbstring=all --enable-mbstr-enc-trans --enable-mbregex --with-mime-magic=/usr/share/file/magic.mime --with-apxs2=/usr/sbin/apxs

 --enable-mbstring=all
--with-mcrypt=/usr

Zend

/etc/system
set shmsys: shminfo_shmmax = 67108864
set shmsys: shminfo_shmmni = 200
set shmsys: shminfo_shmseg = 20

Java JRE
#java -version

GUI
#install
./install-tty

ZendPlatform
ZendOptimizer

mySql start
/usr/local/Zend/MySQL/bin/mysql.sh start
mkdir /usr/local/Zend/MySQL/var
touch /usr/local/Zend/MySQL/var/mysql.sock

----------------------------------------------
MySQL
mkdir /usr/local/Zend/MySQL/var
chown nobody:nodoby /usr/local/Zend/MySQL/var
/usr/local/Zend/MySQL/bin/mysql.sh start

mysqlユーザーを作成する。
# useradd -d /usr/local/mysql -g mysql -s /bin/false mysql
mysqlディレクトリのユーザーを変更する。
# chown -R mysql:mysql /usr/local/mysql
DBをインストールする。
# ln -s /usr/bin/hostname /usr/local/bin/hostname
# /usr/local/mysql/bin/mysql_install_db --user=mysql

ブログ内検索
Counter


カレンダー
04 2026/05 06
S M T W T F S
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31
忍者ブログ [PR]