2008年11月12日

[Linux] Install Vmware-tools on Fedora Core 8

Step 1. Install gcc
#yum install gcc

Step 2. Install kernel-devel
#yum install kernel-devel

Step 3. Check if the version number of kernel and the version number of kernel-devel are the same
#uname -r
#rpm -q kernel-devel

Step 4. Upgrade kernel and kernel-devel if their version number showed in in Step 3. are different
#yum -y upgrade kernel kernel-devel
Go to Step 3.

Step 5. Reboot
#init 6

Step 6. Put vmware-tools in running FC8
Removable Devices > CD-ROM > Edit -->
Select Auto detect and check Legacy emulation
VM > Install VMware Tools Install

Step 7. Install vmware-tools
#mount /dev/cdrom /mnt
#cp /mnt/VMwareTools-*.tar.gz /tmp
#cd /tmp
#tar -zxvf VMwareTools-*.tar.gz
#cd vmware-tools-distrib
#./cd vmware-install.pl
...


Reference
http://163.23.24.147/ya/read-287.html
http://hi.baidu.com/sinauc/blog/item/2d393754243636c2b745ae24.html

2008年11月6日

[Linux] Samba on Fedora Core 8

Step 0. Samba Package
samba
samba-client
samba-common


Step 1.
Install Samba
#yum install samba


Step 2.
Configuration
#vi /etc/samba/smb.conf

I. Security Level: Anonymous access
# ==== Global Settings =======
security = share
# ==== Share Definitions =====
[tmp]
comment = Temporary file space
path = /tmp
read only = no
public = yes


II. Security Level: User authentication
# ==== Global Settings =======
security = user
passdb backend = tdbsam
# ==== Share Definitions =====
[homes]
comment = Home Directories
browseable = yes
writable = yes
;valid users = %S
;valid users = MYDOMAIN\%S


Step 3. Parse smb.conf setting in Step 2.
#testparm

Step 4. New a Samba User
(Samba user must be a existing acount)
#useradd SambaUserName
#pdbedit -a SambaUserName

Step 4. Restart Samba Service
#/etc/rc.d/init.d/smb restart

Reference
http://www.mtm.ks.edu.tw/computer/FC5/#samba
http://blog.yam.com/iq180/article/13382018
http://b2d.phc.edu.tw/modules/tadbook2/view.php?book_sn=12&bdsn=697
http://phorum.study-area.org/index.php?action=printpage;topic=53332.0

2008年10月14日

[Linux] Hostname

Step 1.
#hostname NewHostname

Step 2.
#vi /etc/sysconfig/network
HOSTNAME=NewHostname

Step 3.
#vi /etc/hosts
add a new line in the following format
IP NewHostname

2008年10月6日

[Other] Game

http://www.rocksolidarcade.com/games/dogfight2/

2008年10月2日

[English] Nice English Sample

Nice English Sample

By this I mean
按照先前所說的話我指的是
我的意思是
ex:
1. Don't think I am joking; I mean business.
不要以為我是在開玩笑,我可是當真的。

2. By "the cities" I mean the big cities in particular.
我所說的"城市" 主要是指大城市。
(這句的句型就和你提目的相似)

3. I realized what he meant.
我明白他的意思了。

2008年10月1日

[Knowledge] Toolchain

In software, a toolchain is the set of computer programs (tools) that are used to create a product (typically another computer program or system of programs). The tools may be used in a chain, so that the output of each tool becomes the input for the next, but the term is used widely to refer to any set of linked development tools.

A simple software development toolchain consists of a text editor for editing source code, a compiler and linker to transform the source code into an executable program, and libraries to provide interfaces to the operating system. A complex product such as a video game needs tools for preparing sound effects, music, textures, 3-dimensional models, and animations, and further tools for combining these resources into the finished product.

Reference
Wiki-Toolchain

[Knowledge] Turnkey

Turnkey => turn the key


Turnkey refers to something that is ready for immediate use, generally used in the sale or supply of goods or services.

The term turnkey is also often used in the technology industry, most commonly to describe pre-built computer "packages" in which everything needed to perform a certain type of task (e.g. audio editing) is put together by the supplier and sold as a bundle. This often includes a computer with pre-installed software, various types of hardware, and accessories. Such packages are commonly called appliances.

Reference
Wiki-Turnkey

2008年9月25日

[Linux] Command

Search
find 路徑 -name 檔案名稱
grep -inr 欲搜尋字串 路徑

Format new disk
command: mke2fs (disk)
#mke2fs /dev/sdc
#mount /dev/sdc /tmp <-- 掛載到/tmp上面

2008年9月10日

[Blogger] Read More

1. 繼續閱讀懶人加強版
2. BLOGGER繼續閱讀

[Asterisk]Configuration

path: /etc/asterisk/

sip.conf

[111]
type=friend
secret=111
qualify=yes
nat=no
host=dynamic
canreinvite=no
mailbox=111
context=sip on-net

[222]
type=friend
secret=222
qualify=yes
nat=no
host=dynamic
canreinvite=no
mailbox=222
context=sip on-net

extensions.conf
[sip on-net]
exten => 111,1,dial(sip/111,10,r)
exten => 111,2,voicemail(
u111@default)
exten => 111,222,voicemail(
b111@default)
exten => 222,1,dial(sip/222,10,r)
exten => 222,2,voicemail(
u222@default)
exten => 222,111,voicemail(
b222@default)
exten => 500,1,voicemailmain()
exten => _XXX,1,dial(sip/${EXTEN},,r)
exten => _XXXXX,1,dial(sip/$EXTDN},,r}

voicemail.conf

[default]
111 => 111,111,111@asterisk.com,111@phone.com
222 => 222,222,222@asterisk.com,222@phone.com

2008年9月9日

Work

VoIP
Asterisk
C\C++