5分毎に /etc/cron.5minsly/* を root で実行する
- /etc/crontab
: : */5 * * * * root run-parts /etc/cron.5minsly : :
ディレクトリの作成とサービスの再起動
- bash
# mkdir /etc/cron.5minsly # service crond stop # service crond start
5分毎に /etc/cron.5minsly/* を root で実行する
:
:
*/5 * * * * root run-parts /etc/cron.5minsly
:
:
ディレクトリの作成とサービスの再起動
# mkdir /etc/cron.5minsly
# service crond stop
# service crond start
前回 base レポジトリから OpenOffice.org-* を除外して、しばらく更新対象から外れていたけれど
今度は updates リポジトリへ更新
$ yum check-update
Loaded plugins: fastestmirror, priorities
Excluding Packages from CentOS-5 - Base
Finished
0 packages excluded due to repository priority protections
openoffice.org-ure.i386 1:3.1.1-19.5.el5_5.1 updates
update にも除外を追加
[updates]
exclude=openoffice.org-*
yum update したら OpenOffice.org ver3.2 が ver3.1.1 にダウングレードされて しかも .xls ファイルをダブルクリックで読み込んで表示してくれない。
ひとまず ver3.1.1 のパッケージを削除して、そのあと ver3.2 を再インストール。
また上書きされないように OpenOffice.org を yum レポジトリから除外する。
[base]
:
exclude=openoffice.org-*
yum レポジトリの管理下にあるパッケージを削除して、最新版をソフトウェアの公式ページなどから ダウンロードして、インストールする場合は注意する。
IPv6 を無効にしてから現象が起こっていないので IPv6 の取得に失敗すると IPv4 も道連れにされることがあるのかもしれない。
/sbin/dhclient あたりを覗けば原因がわかりそうだけれど、うまくいっているので追求しないことにする。
とりあえずの対処。次の順番で実行すると直りやすい。
# /sbin/dhclient -r
:
:
# /sbin/ifdown eth0
# /sbin/ifup eth0
Determining IP information for eth0...done.
確認
# /sbin/ifconfig
:
:
# /bin/ping (default-gateway)
xsltproc
xsltproc は Text パッケージの libxslt 含まれている。
$ find . -name '*~' -print0 | xargs -0 rm -v
$ find . -print0 | xargs -0 grep -H 'string'
$ rpm -qa | grep -i 'string'
$ rpm -ql 'package' | more
$ rename from to files...
from : ファイル名の変換したい部分の文字列
to : 変換後の文字列
files... : 変換したいファイル郡
command | effect |
---|---|
/usr/sbin/dmidecode | bios data |
/sbin/mii-tool | network link status |
/bin/df -h | mounted devices(volume status) |
/bin/df -ih | mounted devices(i-node status) |
Family Name | Note | Sample |
---|---|---|
IPA Pゴシック | ossipedia.ipa.go.jp/ipafont/ | The quick brown fox jumps over the lazy dog. 0123456789 |
VL Pゴシック | dicey.org/vlgothic/ | The quick brown fox jumps over the lazy dog. 0123456789 |
content | path |
---|---|
hosts | /etc/hosts |
hostname | /etc/sysconfig/network |
ipaddress | /etc/sysconfig/network-scripts/ifcfg-eth0 |
dns | /etc/resolv.conf |