<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.sars.tw/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>Sars&#039; History - freebsd</title>
        <description></description>
        <link>https://wiki.sars.tw/</link>
        <lastBuildDate>Mon, 26 Oct 2026 22:39:46 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://wiki.sars.tw/_media/wiki:dokuwiki.svg</url>
            <title>Sars&#039; History</title>
            <link>https://wiki.sars.tw/</link>
        </image>
        <item>
            <title>basic</title>
            <link>https://wiki.sars.tw/freebsd:basic?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 = &#039;%n@%m:%~%# &#039;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 27 Apr 2011 17:17:41 +0000</pubDate>
        </item>
        <item>
            <title>documents</title>
            <link>https://wiki.sars.tw/freebsd:documents?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>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 30 Sep 2008 07:18:54 +0000</pubDate>
        </item>
        <item>
            <title>ftpd-tls</title>
            <link>https://wiki.sars.tw/freebsd:ftpd-tls?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>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 27 Aug 2007 15:11:20 +0000</pubDate>
        </item>
        <item>
            <title>gvinum</title>
            <link>https://wiki.sars.tw/freebsd:gvinum?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>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sat, 20 Jun 2009 09:27:42 +0000</pubDate>
        </item>
        <item>
            <title>ldap_client</title>
            <link>https://wiki.sars.tw/freebsd:ldap_client?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>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Wed, 14 May 2008 11:24:58 +0000</pubDate>
        </item>
        <item>
            <title>ldap_server</title>
            <link>https://wiki.sars.tw/freebsd:ldap_server?rev=1201540772&amp;do=diff</link>
            <description>LDAP Server

&lt;http://freebsd.ntut.idv.tw/document/openldap_freebsd_single%20sign%20in.html&gt;</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 28 Jan 2008 17:19:32 +0000</pubDate>
        </item>
        <item>
            <title>pam_mkhomedir</title>
            <link>https://wiki.sars.tw/freebsd:pam_mkhomedir?rev=1201505872&amp;do=diff</link>
            <description>pam_mkhomedir

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

例：若 /home 存在，可以建立 /home/sars 目錄，但無法建立 /home/student/sars。</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Mon, 28 Jan 2008 07:37:52 +0000</pubDate>
        </item>
        <item>
            <title>pf</title>
            <link>https://wiki.sars.tw/freebsd:pf?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>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 06 Apr 2010 04:14:41 +0000</pubDate>
        </item>
        <item>
            <title>world_kernel</title>
            <link>https://wiki.sars.tw/freebsd:world_kernel?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>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Sun, 10 Jan 2010 03:16:41 +0000</pubDate>
        </item>
    </channel>
</rss>
