http://ubuntuforums.org/showthread.php?p=6374990

wenching520 發表在 痞客邦 留言(0) 人氣()

http://www.ducea.com/2006/08/07/how-to-change-the-hostname-of-a-linux-system/

sudo vim /etc/hostname to NEW_HOSTNAME
sudo /etc/init.d/hostname.sh start

wenching520 發表在 痞客邦 留言(0) 人氣()

http://www.chinaunix.net/jh/25/506179.html

http://linux.vbird.org/linux_basic/0440processcontrol.php
Use 'ps -efjc' to find out the PID of your Daemon, and then use 'kill -9 PID' to kill the corresponding Daemon

http://www.annodex.net/cgi-bin/man/man2html?start-stop-daemon+8
start-stop-daemon - start and stop system daemon programs

wenching520 發表在 痞客邦 留言(0) 人氣()

related to upload_max_filesize & post_max_size in php.ini

change max_allowed_packet to avoid "DBD::mysql::db do failed: Got a packet bigger than 'max_allowed_packet' bytes..." error.

wenching520 發表在 痞客邦 留言(0) 人氣()

It is supposed to be

memory_limit > post_max_size > upload_max_filesize

and

usually post_max_size = 2*upload_max_filesize

wenching520 發表在 痞客邦 留言(0) 人氣()

sudo /usr/sbin/apachectl restart

wenching520 發表在 痞客邦 留言(0) 人氣()

http://www.quicomm.com/apm_dbddbi.htm
[2008.Jul.22] DBI : http://www.cpan.org/modules/by-category/07_Database_Interfaces/DBD/DBI-1.607.tar.gz
[2008.Oct.24] DBD : http://www.cpan.org/modules/by-category/07_Database_Interfaces/DBD/DBD-mysql-4.010.tar.gz

tar -zxvf DBI-1.607.tar.gz
cd DBI-1.607
perl Makefile.PL
make
make install
cd ..

tar -zxvf DBD-mysql-4.010.tar.gz
cd DBD-mysql-4.010
perl Makefile.PL
make
make install

wenching520 發表在 痞客邦 留言(0) 人氣()

MacPorts: http://www.macports.org/

Fink: http://www.finkproject.org/index.php?phpLang=en

wenching520 發表在 痞客邦 留言(0) 人氣()

locate: `/var/db/locate.database': No such file or directory

http://neilang.com/entries/updating-the-locate-database-in-mac-os-x/
sudo /usr/libexec/locate.updatedb

wenching520 發表在 痞客邦 留言(0) 人氣()

command line executable file
/usr/local/mysql-5.1.25-rc-osx10.4-powerpc/bin/mysql -u USER -p
/usr/local/mysql/bin/mysql -u USER -p
Enter password:


Set root's password
http://lists.mysql.com/mysql/156770
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new_password');


Add /usr/local/mysql/bin into /etc/profile

wenching520 發表在 痞客邦 留言(0) 人氣()

http://www.softwaregarden.com/products/listgarden/macperlsetup.html
http://forums.osxfaq.com/viewtopic.php?t=13875

wenching520 發表在 痞客邦 留言(0) 人氣()

http://hi.baidu.com/ship/blog/item/ac8ca61e34e10f1d41341758.html
http://www.wretch.cc/blog/peicheng/13609788

sudo apt-get install vim-full
cp /etc/vim/vimrc ~/.vimrc
vi ~/.vimrc
將 syntax on 前的 '' 拿掉即可

wenching520 發表在 痞客邦 留言(0) 人氣()

Session (Choose the session you want to connect with)
Window-〉Appearance-〉Font settings-〉Change...-〉字型(F):-〉標楷體
Window-〉Translation-〉Character set tranlation on recieved data-〉UTF-8
Session-〉Save

wenching520 發表在 痞客邦 留言(0) 人氣()

http://www.imusm.net/wp/archives/386
apt-get install apache2
/etc/init.d/apache2 start (啟動apache試試看)
/etc/init.d/apache2 stop (成功的話就先關掉吧)

apt-get install php5 libapache2-mod-php5
/etc/init.d/apache2 restart (重新啟用一下Apache套用新的php支援的更新)

apt-get install mysql-server
這個動作中間會要求你輸入root(mysql的管理者帳號)的密碼
apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin
這個動件中間會確認你phpmyadmin要支援的http伺服器版本,請選擇」apache2〞囉
要在apache2的地方按空白鍵做選擇
/etc/init.d/apache2 restart(最後重啟apache套用最後的套件更新囉)

mv /var/www/index.html /var/www/index.html.bk
ln -sf /usr/share/phpmyadmin /var/www/phpmyadmin

移除當使用者輸入不當URL時,顯示出目錄下的目錄列表
http://jonnyubuntu.blogspot.com/2008/03/apacheindexes.html
刪除 /etc/apache2/sites-available/default 中的 Indexes 來停用目錄列表之功能
寄得重新啟動 apache2
sudo /etc/init.d/apache2 restart

wenching520 發表在 痞客邦 留言(0) 人氣()

https://help.ubuntu.com/community/FreeNX

vim /etc/apt/sources.list
Adding
deb http://ppa.launchpad.net/freenx-team/ubuntu intrepid main
deb-src http://ppa.launchpad.net/freenx-team/ubuntu intrepid main
to the end of the file [plz refer to Ubuntu 的命名 about "intrepid"]

apt-get update
apt-get upgrade
aptitude install freenx

wenching520 發表在 痞客邦 留言(0) 人氣()