Recently in FreeBSD Category

FreeBSD UTF-8 Console Settings

| | Comments (0)

for CSH, TCSH
edit ~/.cshrc
setenv LANG zh_TW.UTF-8
setenv LC_ALL zh_TW.UTF-8
setenv LC_CTYPE zh_TW.UTF-8
setenv MM_CHARSET utf8

for BASH
edit ~/.profile
export LANG=zh_TW.UTF-8
export LC_ALL=zh_TW.UTF-8
export LC_CTYPE=zh_TW.UTF-8
export MM_CHARSET=utf8

FreeBSD 7.x 在啟動 Apache 2.2.x 時, 出現
[warn] (2)No such file or directory: Failed to enable the 'httpready' Accept Filter
表示沒有載入 accf_http module, 這是用來 buffer incoming connections 用的.
kldload accf_http (載入此 module)
echo 'accf_http_load="YES"' >> /boot/loader.conf (設定下次開機載入)
若自行編 Kernel, 加入 options ACCEPT_FILTER_HTTP

ref. FreeBSD: Apache httpready filter - Failed to enable the 'httpready' Accept Filter

FreeBSD 7.2

| | Comments (0)

日前出了 FreeBSD 7.2. 也把手邊的 Server 從 4.11 換成 7.2 (用重灌的方式)
7.2 的安裝介面仍是 Text, 跟我開始用 FreeBSD 2.x 到現在, 可以說是幾乎沒變,
說好聽是維持一貫的風格, 說難聽是完全沒進步, 用得滿習慣的了, 有沒有 X 介面其實沒差.
7.2 的 X Window 仍是落後 Linux 一大截, 全選安裝含 X, 裝好後 X Window 仍是不堪用.
不像隨便一套 Linux, 隨便裝 X Window 都很好用.

pkg_add -r

| | Comments (0)

FreeBSD 下的 pkg_add -r 跟 Linux 下的 apt/yum/urpmi 一樣, 可以從 Server 下載 package 回來, 並自動安裝 dependency packages
例: 在 FreeBSD 6.x 下裝 mutt
setenv PACKAGESITE ftp://ftp.tw.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/
pkg_add -r mutt

ref. 如何安裝遠端的 packages?

FreeBSD 7.0 MySQL Performance

| | Comments (0)

MySQL Database performance
這篇文章提到, FreeBSD 7.0 在 8 Core 的 CPU 下, MySQL 的效能很優異, 勝過 Linux.
不曉得在一般的 Dual Core CPU 下, 效能是如何?
看來 FreeBSD 7.0 在效能上有很大的改進.

ref. FreeBSD 7.0 Bests Linux In SMP Performance
FreeBSD 上的 MySQL 效率

FreeBSD 7.0 Released

| | Comments (0)

在 ~/.inputrc 檔增加設定如下:
# inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.
# Be 8 bit clean.
set meta-flag on
set input-meta on
set output-meta on
# To allow the use of 8bit-characters like the german umlauts, comment out
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.
set convert-meta off
ref. 在 Bash/Tcsh Shell 底下的中文輸入

[FreeBSD] Change login shell to BASH

| | Comments (0)

FreeBSD 的預設 Shell 是 TCSH, 把全部人的 Shell 都改成 BASH

for i in `awk -F: '/tcsh/ {if ($3==0||$3>=1000) print $1}' /etc/passwd`
do
   chsh -s /usr/local/bin/bash $i
done

在 /etc/ipnat.conf 最前面加一行
map rl0 192.168.0.0/24 -> 0/32 proxy port 21 ftp/tcp
(rl0:網卡, 192.168.0.0/24: LAN 網段)
相當於 Linux 的 ip_nat_ftp + ip_conntrack_ftp module
ref. FreeBSD Handbook: 26.5.21 FTP and NAT

凱莉手工坊

凱莉手工坊

September 2009

Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30      

About this Archive

This page is a archive of recent entries in the FreeBSD category.

Data is the previous category.

Game is the next category.

Find recent content on the main index or look in the archives to find all content.