Archive for the 'Computer' Category

OpenSuse 11 on HP 2133

[ korean simplified chinese english ] [2008/09/08 (月)の記事一覧]

先日Fedora 9 を HP 2133 にインストールしてしばらく使ってみたが、マウスのドラッグで時々フリーズすることがあった。おそらく タッチパッドのドライバの不具合だろうと思っていたのだが、思い切って、 OpenSuse に載せ替えてみた。

インストールは、おそろしく簡単。今回は、 OpenSuse 11.0 の DVD イメージをUSB stick にコピーして syslinux でブートするように改造したものを使った。

Gnome on OpenSuse 11.0 with HP 2133Fedora のときと違って、X windows を起動しても固まることなく、デフォルトのインストールオプションでふつうにインストールできた。

ただし、ワイヤレスのファームウエアだけは後から手動でインストールする必要があるのは同じ。内蔵の小型カメラも普通に特に細工しなくても普通に使えたし(スクリーンショット参照)、電源管理、ハイバネーションも最初からまともに動作した。

これから HP 2133 に Linux をインストールする人には、 OpenSuse 11.0 激しくおすすめです。

HP2133 on Fedora 9

[ korean simplified chinese english ] [2008/09/01 (月)の記事一覧]

HP2133にFedora 9をインストールした。

おおよそ所望の動作ができるようになった。以下、その概要。

インストールは、USBメモリでやった。インストールCD(今回はnetinst.isoを使用)をfat32でフォーマットしたメモリスティックにコピーして、syslinux用に改造(設定ファイルの準備とMBRへのブートローダの書き込みなど)。

インストールCDのブートは、テキストモードを選択して、インストールオプションは、Xデスクトップ環境(Gnomeなど)を選択しないこと。インストール終了後に、yumでgnomeをインストールして、/etc/X11/xorg.conf のDeviceを「vesa」に編集する。

無線LANの設定は、簡単。デフォルトのカーネルでモジュールの対応がされているので、ファームウエアをインストールするだけでよい。以下、その手順。
(more…)

HP 2133 mini-note

[ korean simplified chinese english ] [2008/08/27 (水)の記事一覧]

6月ごろからずっとほしくて、何度も買おうとしたのだけれど、そのたびに売り切れ。とうとう、英語キーボードではなく、日本語キーボードになってしまった、もう買うのをあきらめていた。

ひょっとして秋葉原には英語版の在庫があるかとおもって、昼休みにツクモdos/vにいってみたら、ありましたよ。しかも、「展示品」で1万円引きの英語キーボード版! やったぁー。速攻で買いましたが、仕事中だったので、支払いだけして、夕方仕事帰りにとりにいった。

それにしても、うわさどおりの「発熱」。キーボードが熱くて、手の甲に汗かいてくる。多少チューニングしたら、ましになりそうな気配。 まあ、筐体やキーボードが金属製なので、プラスチック製のものと比べて、表面に熱がつ伝わりやすいだけという気がする。機械そのものの発熱は、そうたいしたことは無いように思う。まあ、体感温度が高いということですかね。

なんだかウィンドウズって使いにくいので、ほかのOSいれたい気分。

mysqld が異常負荷

[ korean simplified chinese english ] [2008/06/20 (金)の記事一覧]

Load Average 97 だって。すごいなー、と思っていたら、mysqldが原因。調べたところ、どうやら wordpress の StatPress が原因。

そこで、pluginディレクトリから、StatPress を削除したら、ロードアベレージが嘘のように正常値に戻った。めでたし、めでたし。

Host key verification failed.

[ korean simplified chinese english ] [2008/06/20 (金)の記事一覧]

SSHクライアントで “Host key verification failed.” って怒られて、ログインできない。

[hijiri@takayuki ~]$ ssh -v hijiri.umemoto.org
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to hijiri.umemoto.org [210.167.182.8] port 22.
debug1: Connection established.
debug1: identity file /home/hijiri/.ssh/identity type -1
debug1: identity file /home/hijiri/.ssh/id_rsa type -1
debug1: identity file /home/hijiri/.ssh/id_dsa type -1
debug1: Remote protocol version 1.99, remote software version OpenSSH_4.3
debug1: match: OpenSSH_4.3 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
Host key verification failed.
[hijiri@takayuki ~]$


[root@takayuki dev]# ls -l tty*
crw——- 1 root root 5, 0 2008-06-20 22:13 tty
crw——- 1 root root 4, 0 2008-06-21 03:37 tty0
crw——- 1 root root 4, 1 2008-06-20 18:47 tty1
crw——- 1 root root 4, 10 2008-06-21 03:37 tty10
crw——- 1 root root 4, 11 2008-06-21 03:37 tty11
crw——- 1 root root 4, 12 2008-06-21 03:37 tty12
crw——- 1 root root 4, 2 2008-06-20 18:38 tty2
crw——- 1 root root 4, 3 2008-06-20 18:38 tty3
crw——- 1 root root 4, 4 2008-06-20 18:38 tty4
crw–w—- 1 root tty 4, 5 2008-06-20 18:37 tty5
crw–w—- 1 root tty 4, 6 2008-06-20 18:37 tty6
crw——- 1 root root 4, 7 2008-06-21 03:37 tty7
crw——- 1 root root 4, 8 2008-06-21 03:37 tty8
crw——- 1 root root 4, 9 2008-06-21 03:37 tty9
crw——- 1 root root 4, 64 2008-06-20 18:38 ttyS0
crw——- 1 root root 4, 65 2008-06-21 03:37 ttyS1
crw——- 1 root root 4, 66 2008-06-21 03:37 ttyS2
crw——- 1 root root 4, 67 2008-06-21 03:37 ttyS3

原因は、ttyに書き込みのグループパーミッシンがついていなかったこと。
./MAKEDEV でつくりなおすか、あるいは、 chmod する。

で、 パーミッションが、”crw–w—-”になったら、無事ログインできるようになった。めでたし、めでたし。

Wordpress 2.3 アップグレードしたら、カテゴリーが文字化け

[ korean simplified chinese english ] [2008/02/16 (土)の記事一覧]

Wordpress 2.1から2.3 アップグレードしたら、カテゴリーが文字化け。
日本語でのカテゴリーの編集ができない。
結論から言うと、あとから追加されたテーブルの文字コードが「スエーデン語」になってしまったため。手動で、データベースの修正。

一応、下記の方法を試したがだめで、結局、一旦ダンプしたSQLファイルで latin1となっている部分をutf8に書き換えて、リストアしたら正常になった。 (more…)

postfix + courier imap — maildirsize のつくりなおし

[ korean simplified chinese english ] [2008/02/09 (土)の記事一覧]

# /usr/lib/courier-imap/bin/maildirmake -q 1000000000S ./Maildir
# cd Maildir
# chown 20001:20001 maildirsize

CISCO VPN client for Linux

[ korean simplified chinese english ] [2007/08/13 (月)の記事一覧]

職場のLANにVPNでつなぐには、CISCO の VPNクライアントと RSA の SecurID が必要。職場では、Windows クライアントしか供給されていないのだが、自宅では MacOS と Fedora Linux を使っている。先週Macでの接続に成功。きょうは、残業なしで帰宅できたので、さっそくLinuxで試してみることに。
結論から言うと、現時点では、パッチが必要。

まず、kernel-develが必要。

# yum install kernel-devel -y

そして、VPNのソース(vpnclient-linux-4.8.00.0490-k9.tar.gz)をインストールする。たぶん、そのままでは、コンパイルできない。ソースは、自分で探してくださいな。

で、解凍。

# tar vpnclient-linux-4.8.00.0490-k9.tar.gz

つぎに、カーネルにあったパッチを適用。まずは、現在うごいているOSを確認。

# uname -a
Linux localhost.localdomain 2.6.22.1-41.fc7 #1 SMP Fri Jul 27 18:10:34 EDT 2007 i686 i686 i386 GNU/Linux

それでは、2.6.22ということなので、パッチをダウンロードして入れてみましょう。くれぐれも、バージョンを間違わんといてや。

# wget http://tuxx-home.at/projects/cisco-vpnclient/vpnclient-linux-2.6.22.diff
# patch -p0 < vpnclient-linux-2.6.22.diff
patching file IPSecDrvOS_linux.c
patching file frag.c
patching file interceptor.c
patching file linuxcniapi.c
# cd vpnclient
# ./vpn_install
Cisco Systems VPN Client Version 4.7.00 (0640) Linux Installer
Copyright (C) 1998-2005 Cisco Systems, Inc. All Rights Reserved.

By installing this product you agree that you have read the
license.txt file (The VPN Client license) and will comply with
its terms.

Directory where binaries will be installed [/usr/local/bin]

Automatically start the VPN service at boot time [yes]no

In order to build the VPN kernel module, you must have the
kernel headers for the version of the kernel you are running.

Directory containing linux kernel source code [/lib/modules/2.6.22.1-41.fc7/build]

これで無事にインストールできるはず。

あとは設定だけだが、設定がややこしいので、PCFファイルは、WindowやMacで作ったファイルをそのまま /etc/opt/cisco-vpnclient/Profiles/ にコピーすると簡単。

とりあえず、起動してみる。

# /etc/init.d/vpnclient_init start
Starting /opt/cisco-vpnclient/bin/vpnclient: Done

で、確認。

# /etc/init.d/vpnclient_init status
Module Size Used by
cisco_ipsec 549788 0
cipsec0 Link encap:Ethernet HWaddr 00:0B:FC:F8:01:8F
NOARP MTU:1356 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

デバイスは、できていますね。

では、接続。

[root@localhost cisco-vpnclient]# vpnclient connect AsiaPac
Cisco Systems VPN Client Version 4.8.00 (0490)
Copyright (C) 1998-2005 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.22.1-41.fc7 #1 SMP Fri Jul 27 18:10:34 EDT 2007 i686
Config file directory: /etc/opt/cisco-vpnclient

Initializing the VPN connection.
Contacting the gateway at 58.XX.XX.XX
User Authentication for AsiaPac…
Enter Username and Password.
Username [伏せ字]:
Passcode []:
Authenticating user.
Negotiating security policies.
Securing communication channel.

Your VPN connection is secure.

VPN tunnel information.
Client address: 10.23.1.3
Server address: 58.XX.XX.XX
Encryption: 168-bit 3-DES
Authentication: HMAC-MD5
IP Compression: None
NAT passthrough is active on port UDP 10000
Local LAN Access is disabled

bash-3.2$ /sbin/ifconfig
cipsec0 Link encap:Ethernet HWaddr 00:0B:FC:F8:01:8F
inet addr:10.23.1.3 Mask:255.0.0.0
inet6 addr: fe80::20b:fcff:fef8:18f/64 Scope:Link
UP RUNNING NOARP MTU:1356 Metric:1
RX packets:0 errors:0 dropped:26 overruns:0 frame:0
TX packets:0 errors:0 dropped:22 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

よっしゃ、ええ感じ。大成功。