<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="https://wiki.sars.tw/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>Sars' History freebsd</title>
        <description></description>
        <link>https://wiki.sars.tw/</link>
        <lastBuildDate>Sun, 17 May 2026 01:26:15 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>https://wiki.sars.tw/lib/tpl/dokuwiki/images/favicon.ico</url>
            <title>Sars' History</title>
            <link>https://wiki.sars.tw/</link>
        </image>
        <item>
            <title>freebsd:basic</title>
            <link>https://wiki.sars.tw/doku.php?id=freebsd:basic&amp;rev=1303924661&amp;do=diff</link>
            <description>SSHD

啟動系統內建的 SSH Server
# vim /etc/rc.conf
增加一行：
sshd_enable=&quot;YES&quot;# /etc/rc.d/sshd
.cshrc

安裝 gnuls
# cd /usr/ports/misc/gnuls ; make install clean

alias ls gnuls --color=auto

setenv  EDITOR  vim
setenv  PAGER   less
setenv  BLOCKSIZE       K

set prompt = '%n@%m:%~%# '</description>
        <category>freebsd</category>
            <pubDate>Thu, 28 Apr 2011 01:17:41 +0800</pubDate>
        </item>
        <item>
            <title>freebsd:documents</title>
            <link>https://wiki.sars.tw/doku.php?id=freebsd:documents&amp;rev=1222759134&amp;do=diff</link>
            <description>FreeBSD 中文計畫

&lt;https://opensvn.csie.org/traccgi/freebsddoc/wiki&gt;

FreeBSD 中文文件

&lt;http://freebsddoc.twbbs.org/&gt;</description>
        <category>freebsd</category>
            <pubDate>Tue, 30 Sep 2008 15:18:54 +0800</pubDate>
        </item>
        <item>
            <title>freebsd:ftpd-tls</title>
            <link>https://wiki.sars.tw/doku.php?id=freebsd:ftpd-tls&amp;rev=1188227480&amp;do=diff</link>
            <description>ftpd-tls

產生憑證，並放在 /etc/ssl
# cd /etc/ssl
# openssl genrsa -out server.key
# chmod 400 server.key
# openssl req -new -key server.key -x509 -days 3650 -out server.crt
安裝 ftpd-tls
# cd /usr/ports/ftp/ftpd-tls
# make install clean
如果沒有用過 inetd，要先修改 /etc/rc.conf，加入</description>
        <category>freebsd</category>
            <pubDate>Mon, 27 Aug 2007 23:11:20 +0800</pubDate>
        </item>
        <item>
            <title>freebsd:gvinum</title>
            <link>https://wiki.sars.tw/doku.php?id=freebsd:gvinum&amp;rev=1245490062&amp;do=diff</link>
            <description>gvinum 製作軟體 Raid

在 FreeBSD 下，使用 gvinum 製作軟體 raid5。

參考：&lt;http://www.unx.ch/?p=10&gt;、

假設有以下三個硬碟：
/dev/da1
/dev/da2
/dev/da3
將硬碟格式化
# dd if=/dev/zero of=/dev/da1 bs=512 count=79
# dd if=/dev/zero of=/dev/da2 bs=512 count=79
# dd if=/dev/zero of=/dev/da3 bs=512 count=79</description>
        <category>freebsd</category>
            <pubDate>Sat, 20 Jun 2009 17:27:42 +0800</pubDate>
        </item>
        <item>
            <title>freebsd:ldap_client</title>
            <link>https://wiki.sars.tw/doku.php?id=freebsd:ldap_client&amp;rev=1210764298&amp;do=diff</link>
            <description>LDAP Client at FreeBSD

&lt;http://www.weithenn.idv.tw/cgi-bin/wiki.pl&gt;
&lt;http://mail.lsps.tp.edu.tw/~gsyan/freebsd2001/pam_ldap.html&gt;

透過 PAM 認證使用者

install

安裝 nss_ldap、pam_ldap、pam_mkhomedir


# cd /usr/ports/net/nss_ldap/
# make install clean
# cd /usr/ports/security/pam_ldap
# make install clean
# cd /usr/ports/security/pam_mkhomedir
# make install clean</description>
        <category>freebsd</category>
            <pubDate>Wed, 14 May 2008 19:24:58 +0800</pubDate>
        </item>
        <item>
            <title>freebsd:ldap_server</title>
            <link>https://wiki.sars.tw/doku.php?id=freebsd:ldap_server&amp;rev=1201540772&amp;do=diff</link>
            <description>LDAP Server

&lt;http://freebsd.ntut.idv.tw/document/openldap_freebsd_single%20sign%20in.html&gt;</description>
        <category>freebsd</category>
            <pubDate>Tue, 29 Jan 2008 01:19:32 +0800</pubDate>
        </item>
        <item>
            <title>freebsd:pam_mkhomedir</title>
            <link>https://wiki.sars.tw/doku.php?id=freebsd:pam_mkhomedir&amp;rev=1201505872&amp;do=diff</link>
            <description>pam_mkhomedir

第一次透過 PAM_LDAP 登入時，可以使用 PAM_MKHOMEDIR 自動創建使用者家目錄，但是原本的程式有缺陷，不能遞迴地建立目錄，只好自己 patch。

例：若 /home 存在，可以建立 /home/sars 目錄，但無法建立 /home/student/sars。</description>
        <category>freebsd</category>
            <pubDate>Mon, 28 Jan 2008 15:37:52 +0800</pubDate>
        </item>
        <item>
            <title>freebsd:pf</title>
            <link>https://wiki.sars.tw/doku.php?id=freebsd:pf&amp;rev=1270527281&amp;do=diff</link>
            <description>設定 pf

/etc/pf.conf：


ext_if=&quot;em0&quot;    # 設定網卡

table &lt;ssh_list&gt; { 127.0.0.1 , 192.168.1.1 }    # 填寫允許 ssh 登入的 IP 列表
table &lt;block_list&gt; { 211.180.219.200 , 60.248.76.6}    # 不允許登入的 IP

set block-policy return
scrub in all

# Filtering: the implicit first two rules are
pass in all 
pass out all

block in on $ext_if proto tcp from any to any port 1 &gt;&lt; 1023
block in quick on $ext_if proto tcp from any to any port = 139 
block in quick on $ext_if proto tcp from any to any port = 445 
block in quick o…</description>
        <category>freebsd</category>
            <pubDate>Tue, 06 Apr 2010 12:14:41 +0800</pubDate>
        </item>
        <item>
            <title>freebsd:world_kernel</title>
            <link>https://wiki.sars.tw/doku.php?id=freebsd:world_kernel&amp;rev=1263093401&amp;do=diff</link>
            <description>FreeBSD 6.2 RELEASE 至 FreeBSD 7.2 RELEASE 等。

版本升級

EX: 從 FreeBSD 6.3 RELEASE 升級至 FreeBSD 7.2 RELEASE

查詢 /etc/make.conf 中的 SUPFILE 設定指向哪個檔案：
SUPFILE=        /usr/share/examples/cvsup/standard-supfile
至該檔案查詢：</description>
        <category>freebsd</category>
            <pubDate>Sun, 10 Jan 2010 11:16:41 +0800</pubDate>
        </item>
    </channel>
</rss>
