CentOS5へのVBoxLinuxAdditionsインストール

ちょっとCentOSも使ってみようとVirtualBoxにインストールして、
とりあえず解像度は何とかしたいな…と、
いつものようにGuest Additionsをインストールしようとしたらつまづいたのでメモ。

# sh VBoxLinuxAdditions-amd64.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 3.2.10 Guest Additions for Linux........
VirtualBox Guest Additions installer
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules [失敗]
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.
Once you have corrected it, you can
run

/etc/init.d/vboxadd setup

to build them.
Doing non-kernel setup of the Guest Additions [ OK ]
Installing the Window System drivers
Installing X.Org 7.1 modules [ OK ]
Setting up the Window System to use the Guest Additions [ OK ]
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services componen[ OK ]

途中でビルドに失敗している模様。
/var/log/vboxadd-install.log を見ろと書いてあるのでチェック。

# cat /var/log/vboxadd-install.log
Makefile:23: *** Error: unable to
find the sources of your current Linux kernel. Specify
KERN_DIR=<directory> and run Make again.. 荳ュ豁「.
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

どうやらkernelのソースが必要みたいなので、
インストールして環境変数KERN_DIR(ソースのパス)を設定。

# yum install kernel-devel -y
# export KERN_DIR=/usr/src/kernels/2.6.18-194.26.1.el5-x86_64

で、再度セットアップを実行

# /etc/init.d/vboxadd setup
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Building the VirtualBox Guest Additions kernel modules
Your guest system does not seem to have sufficient OpenGL support to enable
accelerated 3D effects (this requires Linux 2.6.27 or later in the guest
system). This Guest Additions feature will be disabled.


Building the main Guest Additions module [ OK ]
Building the shared folder support module [ OK ]
Doing non-kernel setup of the Guest Additions [ OK ]
Starting the VirtualBox Guest Additions [ OK ]

今度はOK。
再起動して、解像度が変更できるようになったことを確認。

thinkpadのtp4table.dat

いつも忘れるのでメモ。

X201s(Windows7 64bit)では C:\Program Files\Synaptics\SynTP にある。
管理者権限で実行したエディタでオープンして編集する

tp4table.dat

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Pass 0 rules (These rules run first)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

; Flash etc...
*,*,*,*,*,NativeWindowClass,WheelStd,0,9

; Flash for ActiveX
*,*,*,*,*,MacromediaFlashPlayerActiveX,WheelStd,0,9

; twhirl
*,*,twhirl.exe,*,*,*,WheelStd,0,9

; chatter
*,*,Chatter Desktop.exe,*,*,*,WheelStd,0,9

; evernote
*,*,Evernote.exe,*,*,*,WheelStd,0,9

; chrome
*,*,chrome.exe,*,*,*,WheelStd,0,9

xdebugを有効にする

php5-xdebugを導入して、php.iniに以下を記述。
html_errors = Onが入っていないとトレースの結果がテキスト表示になってしまうので注意

zend_extension=/path_to_xdebug/xdebug.so

xdebug.auto_trace = 1
xdebug.profiler_enable = 1
xdebug.dump.GET=*
xdebug.dump.POST=*
xdebug.var_display_max_depth=7
; 以下、xdebugの設定をお好みで

html_errors = On

ubuntuのhttpd.confの場所

ubuntu10.10のapacheをセットアップしていて、
httpd.confの場所がわかりづらかったのでメモ

本体

/etc/apache2/apache2.conf

モジュール関係

/etc/apache2/mods-available 以下
*.load: モジュールのロード
*.conf: モジュールのコンフィグ

サイト関連

/ect/apache2/sites-available/*