2008/8/31

FreeBSD DNS - How to work

# /etc/rc.d/named start
# ndc start

A DNS server in FreeBSD relies on the BIND daemon. This daemon is called 'named' for obvious reasons.

named - the bind daemon

ndc - name daemon control program

/etc/namedb - directory where all the bind information resides

/etc/namedb/named.conf - daemon configuration file

zone files are usually contained within the /etc/namedb directory, and contain the information (query answers from your site) served by your name server.


2008/8/28

把mpich加入PATH

export PATH=$PATH:/opt/mpich/bin
export LIBRARY_PATH=$LIBRARY_PATH:/opt/mpich/include

2008/8/22

play rmvb file in linux

Option 1 mplayer
I go to mplayer homepage: http://www.mplayerhq.hu/design7/news.html
Then download binary code. It says that move the extract file from the essential-20071007.tar.bz2 to
/usr/lib/codecs/ or /usr/local/lib/codecs/ or /usr/lib/win32
finally, replay mplayer. It is ok!
However, it does not work for my OS.
Option 2 Helix Player
Helix Player homepage: https://player.helixcommunity.org/2007/releases/HelixPlayer/ReleaseNotes.html
You can use urpmi helixplayer
Or download rpm from download page
It also does not work
hxplay XXX.rmvb
Option 3 RealPlayer
http://www.real.com/linux download RealPlayer11GOLD.bin
Then chmod 744
RealPlayer11GOLD.bin
./
RealPlayer11GOLD.bin
realplay XXX.rmvb
It work.

2008/8/19

自家網頁的認証

當你有一個網頁裡的連結要認證實可以用這個方法:
  1. 在~/public_html建個目錄: $ mkdir ~/public_html/protect
  2. 在~/下: $ htpasswd -c ~/apache.passwd user
  3. 在~/public_html/protect/下: $ touch .htaccess
  4. vi .htaccess
  5. 加入
AuthName "need password"
Authtype Basic
AuthUserFile /home/user/apache.passwd
require valid-user

打完收工,接著把要連結的網頁或檔案放進~/public_html/protect/
你會發現居然要輸入user和password

free FTP and sFTP solution in LINUX

I suggest FileZilla. It is from the same designer of firefox.
How to install:
$ yum or urpmi filezilla (remember to su root)
Homepage: http://filezilla-project.org/index.php

linux 上的翻譯軟體

推薦星際翻譯王(stardict),想必應該很多人應該從一些地方知道這套
free software但是我還是簡單介紹一下好了
You can use yum(Fedora) or urpmi(Mandriva) to simply install like that
$ urpmi stardict
It is very easy. Or go to Stardict homepage: http://stardict.sourceforge.net/index.php
additionally, you can download many dictionary from homepage then
Install Dictionaries in Linux:
1. To download these tarball dictionaries,
2. do this: tar -xjvf a.tar.bz2
3. mv a /usr/share/stardict/dic
More detail please visit 重灌狂人: http://briian.com/
However, it operates in windows XP. You can do the same in LINUX.