10/20/2008

Update the Rsync from 2.8 to 3.0.4 on CentOs

安裝 for CenOS 5 i386 版的 rpmforge-release package

  • wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
  • rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm

安裝之後,在 /etc/yum.repos.d/ 目錄底下會多了兩個檔案,分別為 mirrors-rpmforge與 rpmforge.repo

執行 yum update rsync 之後,就可以看到有新版的 rsync 可以升級囉!

10/19/2008

Add x-debugger-server to the test server

Step:
1 download the x-debugger-server
http://downloads.zend.com/pdt/server-debugger/

2 Locate ZendDebugger.so or ZendDebugger.dll file
that is compiled for the correct version of PHP (4.3.x, 4.4.x, 5.0.x, 5.1.x, 5.2.x) in the
appropriate directory.
("5_2_x_comp" is used for me)

2. Add the following line to the php.ini file:
Linux and Mac OS X: zend_extension=/full/path/to/ZendDebugger.so
Windows: zend_extension_ts=/full/path/to/ZendDebugger.dll
zend_debugger.allow_hosts=
zend_debugger.expose_remotely=always
example:


[Zend]
zend_extension_ts=D:/PHP/ext/ZendDebugger.dll
zend_debugger.allow_hosts=127.0.0.1/32
zend_debugger.allow_tunnel=127.0.0.1/32
zend_debugger.expose_remotely=always

3. Place dummy.php file in the document root directory.
when in ZF project :add the DummyphpController.php to default Module

class DummyphpController extends Core_Controller_Abstract {
public function indexAction() {
@ini_set ( 'zend_monitor.enable', 0 );
if (@function_exists ( 'output_cache_disable' )) {
@output_cache_disable ();
}
if (isset ( $_GET ['debugger_connect'] ) && $_GET ['debugger_connect'] == 1) {
if (function_exists ( 'debugger_connect' )) {
debugger_connect ();
exit ();
} else {
echo "No connector is installed.";
}
}

}
}
?>

4. Restart web server.

10/18/2008

set up the player in ubuntu

1 add the resource ,and update ,install it
sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list
sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

2 install xine
sudo apt-get install libxine1-ffmpeg libxine1-all-plugins libxine1-plugins w32codecs gcc-3.3-base libstdc++5

3 install gstream
sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-pitfdll gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse gstreamer0.10-esd
sudo apt-get install gstreamer0.10-fluendo-mpegdemux gstreamer0.10-gnonlin libflashsupport

4 install smplay
sudo apt-get remove totem-mozilla -y
sudo apt-get install smplayer smplayer-themes mozilla-mplayer

10/17/2008

Install process of Ubuntu8.X

The aim of this article is to log the ubuntu install process for PHP developers . So , if you want to work on Ubuntu , this article will give you some hands.
1 Install system by CD
Note:set the language to English

2 Directions layout
Select to manually edit the partition table. I’m doing my testing on a standard 80GB harddrive and will modify these sizes for production.


/boot ext3 200MB bootable
/ ext3 15GB or More (files are relatively static)
swap 4GB (4xRAM if you don't have much memory, down to 1xRAM if you have gobs of memory)
/home ext3 10GB (personal files)
/repository ext3 40G (for you other archives)
/backup ext3 16G (workspace)

3 add the resurce


deb http://archive.ubuntu.org.cn/ubuntu-cn/ hardy main restricted universe multiverse

deb http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
deb http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-backports main restricted universe multiverse
deb-src http://tw.archive.ubuntu.com/ubuntu hardy-proposed main restricted universe multiverse

deb http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-proposed main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ hardy-backports main restricted universe multivers


then

# sudo apt-get update

4 edit fstab

mkdir /home/edwin/workspace
mkdir /home/edwin/repository
sudo gedit /etc/fstab

then add the fllowing

/dev/sda6 /home/edwin/repository ext3 defaults 0 0
/dev/sda5 /home/edwin/workspace ext3 defaults 0 0

5 setting the SCIM
if you have set the current profile that the scim is available, the following process is just for you.
5.1 install scim pinyin
 sudo apt-get install scim-pinyin

5.2 setting scim
sudo im-switch -s scim

5.3 Edit the file /etc/X11/xinit/xinput.d/scim by typing in a terminal (Applications>Accessories>Terminal):
sudo gedit /etc/X11/xinit/xinput.d/scim

If you want to use scim input in KDE applications, you will also have to change the following line :

GTK_IM_MODULE="xim"
QT_IM_MODULE="xim"

into :

GTK_IM_MODULE="scim-bridge"
QT_IM_MODULE="scim-bridge"

5.4 sudo gedit /usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules

find the followling line,

"xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh"

change the them into:

"xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh"


6 setting Right Click Terminal Menu
sudo apt-get install nautilus-open-terminal


7 setting the docs reader
sudo apt-get install xpdf-chinese-simplified xpdf-chinese-traditional poppler-data

8 install zip tools

sudo apt-get install unrar p7zip-full cabextract

9 install devs tools

install zend server
sudo apt-get install build-essential autoconf automake subversion
sudo apt-get install mysql-server mysql-client

10 install system rc tools

sudo apt-get install sysv-rc-conf

10/15/2008

setup Compiz Fusion in ubuntu


1 add deb source

deb http://download.tuxfamily.org/3v1deb feisty eyecandy
deb-src http://download.tuxfamily.org/3v1deb feisty eyecandy

get key
wget http://download.tuxfamily.org/3v1deb/DD800CD9.gpg -O- | sudo apt-key add -

2 update system
sudo apt-get update
sudo apt-get dist-upgrade

3 Install Compiz and Compiz Fusion
sudo apt-get install compiz compiz-gnome compiz-fusion-* compizconfig-settings-manager

4、run Compiz Fusion

in sessions, add the following

compiz --replace

5、if you want to use Compiz Fusion + emerald, so run the following

sudo apt-get install emerald

in sessions

compiz --replace -c emerald &

10/11/2008

Build Flex SDK in Ubuntu 8.X

1、安装Java环境  
(1)安装sun-java6-jre/sun-java6-jdk

sudo apt-get install sun-java6-jre
sudo apt-get install sun-java6-jdk

(2)设置当前默认的java解释器:
sudo update-alternatives --config java

执行后会出现类似如下的画面:
There are 2 alternatives which provide `java'.
Selection Alternative
-----------------------------------------------
*+ 1 /usr/lib/jvm/java-6-sun/jre/bin/java
2 /usr/bin/gij-wrapper-4.1
Press enter to keep the default

  • , or type selection number:
  •   输入有包含 "sun" 的行的前面的数字。如上面显示,则输入1,然后回车确定。    

    (3)编辑/etc/environment,加入下面两行:
    CLASSPATH=.:/usr/lib/jvm/java-6-sun/lib
    JAVA_HOME=/usr/lib/jvm/java-6-sun

    sudo gedit /etc/jvm
    将文件中的/usr/lib/jvm/java-6-sun
    这一行填入到配置块的顶部
    2. 安装flex Sdk
    安装Adobe FLEX 3.0 SDK 从下面的地址http://www.adobe.com/go/flex3_sdk下载Adobe FLEX 3.0 SDK,我下载的是flex_sdk_3.2.0.3562_mpl.zip
    #mkdir /home/edwin/flexSdk
    #cd /home/edwin
    #unzip Desktop/flex_sdk_3.2.0.3562_mpl.zip -d flexSdk/
    #chmod -R 777 flexSdk/bin
    3 测试
    #gedit hello.as
    #/home/edwin/flexSdk/mxmlc hello.as
    #firefox hello.swf