http://ubuntuforums.org/showthread.php?p=6374990
- Dec 16 Tue 2008 18:28
[ubuntu] BUG for 8.10 'Auto reinstall Eth0 after rebooting'
- Dec 16 Tue 2008 18:27
[ubuntu] hostname
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
- Dec 12 Fri 2008 18:20
[Linux] About Daemon
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
- Dec 12 Fri 2008 16:05
[MySQL] max_allowed_packet
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.
- Dec 12 Fri 2008 15:35
[Apache] upload_max_filesize, post_max_size, and memory_limit in php.ini
It is supposed to be
memory_limit > post_max_size > upload_max_filesize
and
usually post_max_size = 2*upload_max_filesize
- Dec 12 Fri 2008 15:31
[Mac] restart apache
sudo /usr/sbin/apachectl restart
- Nov 14 Fri 2008 12:04
[Mac] Perl Modules: DBD & DBI
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
- Nov 14 Fri 2008 11:10
[Mac] MacPorts(port install) === APT(apt-install)
MacPorts: http://www.macports.org/
Fink: http://www.finkproject.org/index.php?phpLang=en
- Nov 13 Thu 2008 20:42
[Mac] locate
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
- Nov 13 Thu 2008 17:30
[Mac] MySQL
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
- Nov 13 Thu 2008 11:14
[Mac][OS X] Perl Setup or The 'make' utility
http://www.softwaregarden.com/products/listgarden/macperlsetup.html
http://forums.osxfaq.com/viewtopic.php?t=13875
- Nov 11 Tue 2008 17:10
[Ubuntu] vim 的顏色
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 前的 '' 拿掉即可
- Nov 11 Tue 2008 13:54
[Ubuntu] PuTTY SSH 出現亂碼
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
- Nov 11 Tue 2008 11:38
[Ubuntu] LAMP
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
- Nov 11 Tue 2008 10:50
[ubuntu] Installing freenx on Ubuntu 8.10
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