2005年01月18日
UNRAR
必要に駆られてunrarをコンパイルしました。
パッケージを置いておきます。
以下のようにオプション無しで起動すると使い方が表示されます。
# unrar
UNRAR 3.40 freeware Copyright (c) 1993-2004 Alexander Roshal
Usage: unrar <command> -<switch 1> -<switch N> <archive> <files...>
<@listfiles...> <path_to_extract\>
<Commands>
e Extract files to current directory
l[t,b] List archive [technical, bare]
p Print file to stdout
t Test archive files
v[t,b] Verbosely list archive [technical,bare]
x Extract files with full path
<Switches>
- Stop switches scanning
ad Append archive name to destination path
ap<path> Set path inside archive
av- Disable authenticity verification check
c- Disable comments show
cfg- Disable read configuration
cl Convert names to lower case
cu Convert names to upper case
dh Open shared files
ep Exclude paths from names
ep3 Expand paths to full including the drive letter
f Freshen files
idp Disable percentage display
ierr Send all messages to stderr
inul Disable all messages
kb Keep broken extracted files
o+ Overwrite existing files
o- Do not overwrite existing files
ow Save or restore file owner and group
p[password] Set password
p- Do not query password
r Recurse subdirectories
ri<P>[:<S>] Set priority (0-default,1-min..15-max) and sleep time in ms
ta<date> Process files modified after <date> in YYYYMMDDHHMMSS format
tb<date> Process files modified before <date> in YYYYMMDDHHMMSS format
tn<time> Process files newer than <time>
to<time> Process files older than <time>
ts<m,c,a>[N] Save or restore file time (modification, creation, access)
u Update files
v List all volumes
ver[n] File version control
vp Pause before each volume
x<file> Exclude specified file
x@ Read file names to exclude from stdin
x@<list> Exclude files in specified list file
y Assume Yes on all queries
ソースはここで見つけました。
2005年01月12日
時刻合わせ
SL-C3000の内部時計が1時間ほどずれました。
バッテリが空の状態で放置していたことが原因なようです。
SL-C3000にはRTC用の電池とか積んでないのでしょうか?
まぁ、良い機会なので時刻合わせ環境を構築してみることにしました。
まずどんとこいタイムをインストールしてみました。
ペン操作でボタンをクリックするだけでntpにより時刻合わせをおこなってくれます。
またネットワークの接続も自動でおこなうことができ、直感的に判りやすく、使いやすいです。
ただ私はずぼらですので、出来れば何の操作もせずに時刻を合わせてほしいのです。
そこで今回はntpdateを使うことにしました。
ZaurusArchiveさんよりntpdateのパッケージを持ってきてインストールします。
- ntpdate_ntp-4.1.1b-z-4_arm.ipk
あとは実行スクリプトをどこに書くかですが、私はPHSカードからしかネットに接続しませんので
/home/etc/ppp/ip-upに以下スクリプトを追記することにしました。
if [ -e /usr/bin/ntpdate ]; then
ntpdate clock.nc.fukuoka-u.ac.jp
fi
これでネットに接続するたびに時刻合わせがおこなわれるようになりました。
(追記です)
上記NTPサーバーに指定している福岡大学の福岡研究室では
アクセスが集中しすぎて困っているようです。
「個人のPCが直接我々のサーバーへ問い合わせすべきではない」
とのことなのでここらあたりを参考にして他サーバーを利用してください。
2005年01月08日
SL-C3000でSLが走る!
昔懐かしのlsコマンド入力ミス矯正ソフトです。
ipkの作り方勉強がてら作ってみました。
sl_3.03_arm.ipk
ターミナルで以下のようにコマンドを入力してください。
# sl
そうすると画面いっぱいにSLが走り出し、その間何もできなくなります。
あと以下のようなオプションを付けると
LOGOの機関車になったり、
アクシデントが起きたり、
飛んでいったり(!)します。
# sl -l組み合わせることも出来ますので試してみてください。
# sl -a
# sl -F
PCの端末は近年速くなり、矯正ソフトとしてあまり意味がありませんでしたが、
SL-C3000だとかなり動作が遅いので矯正ソフトとして役にたちます(苦笑)
オリジナルはこちらを参照してください。
http://www.tkl.iis.u-tokyo.ac.jp/%7Etoyoda/