Install LogFedora Core 1参考リンク:
RedHatでaptRedHat Linuxでaptを利用した、パッケージの管理をするためのメモ。 まえがきこちらによると、RedHatが7.2-8.0までを2003年末で、9.0を2004年3月末でサポート終了するため、 学内のRedHat Linuxのサーバのメンテをどうするか検討中。 ひとまず、RHNへのguest登録も期限が切れているので、aptによるパッケージの管理を導入し、テストすることにする。 APT(Advanced Package Tool)はDebianやVineではメジャーなパッケージ管理ツールなので、使い勝手もよい。 aptの入手とインストールFRESH RPMS( http://freshrpms.net/apt/ )にアクセス。 RedHat LinuxのバージョンにあわせたRPMファイルをダウンロードする。 # wget http://ftp.freshrpms.net/pub/freshrpms/redhat/7.2/apt/apt-0.3.19cnc55-fr7.i386.rpm --16:22:41-- http://ftp.freshrpms.net/pub/freshrpms/redhat/7.2/apt/apt-0.3.19cnc55-fr7.i386.rpm => `apt-0.3.19cnc55-fr7.i386.rpm' ftp.freshrpms.net をDNSに問いあわせています... 完了しました。 ftp.freshrpms.net[193.1.219.82]:80 に接続しています... 接続しました。 HTTP による接続要求を送信しました、応答を待っています... 200 OK 長さ: 780,987 [audio/x-pn-realaudio-plugin] 100%[====================================>] 780,987 25.12K/s ETA 00:00 16:23:12 (25.12 KB/s) - `apt-0.3.19cnc55-fr7.i386.rpm' を保存しました [780987/780987] ダウンロードできたら、インストール。 # rpm -ivh apt-0.3.19cnc55-fr7.i386.rpm Preparing... ########################################### [100%] 1:apt ########################################### [100%] aptの設定設定ファイルは/etc/apt/apt.confと/etc/apt/sources.listの2つだが、とくに変更しなくてもよい。
aptを利用するには、パッケージの依存関係などを管理しているデータベースを入手・更新する必要がある。 入手したデータベースは、/var/state/apt/listsに保存される。 # apt-get update Get:1 http://apt.freshrpms.net redhat/7.2/en/i386/base/pkglist.os [1037kB] Get:2 http://apt.freshrpms.net redhat/7.2/en/i386 release.os [144B] Get:3 http://apt.freshrpms.net redhat/7.2/en/i386/base/pkglist.updates [616kB] Get:4 http://apt.freshrpms.net redhat/7.2/en/i386 release.updates [157B] Get:5 http://apt.freshrpms.net redhat/7.2/en/i386/base/pkglist.freshrpms [90.2kB] Get:6 http://apt.freshrpms.net redhat/7.2/en/i386 release.freshrpms [161B] Get:7 http://apt.freshrpms.net redhat/7.2/en/i386/base/srclist.os [141kB] Get:8 http://apt.freshrpms.net redhat/7.2/en/i386 release.os [144B] Get:9 http://apt.freshrpms.net redhat/7.2/en/i386/base/srclist.updates [50.6kB] Get:10 http://apt.freshrpms.net redhat/7.2/en/i386 release.updates [157B] Get:11 http://apt.freshrpms.net redhat/7.2/en/i386/base/srclist.freshrpms [23.2kB] Get:12 http://apt.freshrpms.net redhat/7.2/en/i386 release.freshrpms [161B] Ign http://apt.freshrpms.net redhat/7.2/en/i386/base/mirrors Ign http://apt.freshrpms.net redhat/7.2/en/i386/base/mirrors Fetched 1958kB in 1m50s (17.8kB/s) Processing File Dependencies... Done Reading Package Lists... Done Building Dependency Tree... Done aptの利用
参考リンク
htaccessインストールネタではないですが。。。 メモをこちらに。 Debian GNU/Linux (woody)PHP Acceralator (2003-10-09)配布元作業&設定Apache+openssl RedHat Linux 7.2 (2003-04-24)配布元設定
# cd /etc/httpd/conf # rm ssl.key/server.key # rm ssl.crt/server.crt
# make genkey
# /usr/bin/openssl genrsa 1024 > /etc/httpd/conf/ssl.key/server.key # chmod go-rwx /etc/httpd/conf/ssl.key/server.key
# make testcert
You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [AU]:JP State or Province Name (full name) [Some-State]:Hyogo Locality Name (eg, city) []:Kakogawa Organization Name (eg, company) [Internet Widgits Pty Ltd]:Hyogo University Organizational Unit Name (eg, section) []:ISC Common Name (eg, your name or your server's hostname) []:hoge.hoge.hyogo-dai.ac.jp Email Address []:isc@hyogo-dai.ac.jp
# /sbin/service httpd restart Python配布元Python 2.2.2のインストール (2003-04-16)# tar zxf Python-2.2.2.tgz # cd Python-2.2.2 # sh ./configure --withoute-gcc # make # make test # make install Python 2.3.4のインストール (2004-06-14)gccでコンパイルできなかったので、Tru64のccでコンパイル # tar zxf Python-2.3.4.tgz # cd Python-2.3.4 # ./configure -with-dec-threads # make # make test # make install Mailman配布元Mailman 2.1.1+JP patch (2003-04-16)
# groupadd -g 197 mailman # useradd -g 197 -d /usr/local/mailman -m -u 197 mailman # chmod a+rx,g+ws /usr/local/mailman
# su mailman % tar zxf mailman-2.1.1.tgz % cd mailman-2.1.1 % patch -p0 < ../mailman-2.1.1+patch.20030214 % ./configure --with-mail-gid=nogroup --with-cgi-gid=nogroup --with-gcc=no % cd /usr/local/mailman % ./bin/check_perms % ./bin/check_perms -f (エラーが出なくなるまで) # cd mailman-2.1.1 # cp misc/mailman.jpg misc/PythonPowered.png misc/gnu-head-tiny.jpg /usr/local/apache/icons
ScriptAlias /mailman/ "/usr/local/mailman/cgi-bin/" <Directory "/usr/local/mailman/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> Alias /pipermail/ "/usr/local/mailman/archives/public/" <Directory "/usr/local/mailman/archives/public"> Options Indexes FollowSymlinks MultiViews AllowOverride None Order allow,deny Allow from all </Directory>
IMAGE_LOGOS = '/images/' DEFAULT_SERVER_LANGUAGE = 'ja'
% cd ~mailman/cron % crontab crontab.in
% bin/newlist mailman
カスタマイズ
% ~mailman/bin/mmsitepass <your-site-password>
% bin/newlist test-ml
Mailman 2.1.5+Mailman-2.1.5用修正パッチ (2004-06-14)Mailmanを、 2.1.2から2.1.5へアップグレード。
|