Khwooo’s Weblog

May 20, 2009

Install FreeNAS on a USB Drive

Filed under: freebsd — khwooo @ 2:51 pm

好久沒回來了
沒想到這裡人氣也破萬了@@ 

最近要做窮人softraid
先裝個以FreeBSD為base的FreeNAS來試試 

目標是裝在USB上
參考一些作法 

novell的文件
http://developer.novell.com/wiki/index.php/HOWTO:_Install_FreeNAS 
Two mirrored disks + system on compact flash <-這就是我要的

圖文安裝
http://m0n0.org/bbs/thread-140-1-1.html 

通常是要用光碟開機安裝,不過也可以用usb開機
http://m0n0.org/bbs/thread-140-1-1.html

Advertisements

August 1, 2008

mldonkey 安裝

Filed under: freebsd — khwooo @ 4:40 pm

### freebsd 7.0 release 安裝 mldonkey-core ###

cd /usr/ports/net-p2p/mldonkey-core
make

make完後執行檔會在
/usr/ports/net-p2p/mldonkey-core/work/mldonkey-2.9.5/mlnet &

修改 /root/.mldonkey/download.ini
預設只能讓本機連入 127.0.0.1
加入允許連入的IP,請參考這裡

/usr/ports/net-p2p/mldonkey-core/work/mldonkey-2.9.5/mlnet stop
/usr/ports/net-p2p/mldonkey-core/work/mldonkey-2.9.5/mlnet start &

http://your.server.ip:4080

🙂

February 24, 2008

mount USB storage device on freebsd

Filed under: freebsd — khwooo @ 3:11 pm

/etc/rc.conf
usbd_enable=”YES”

mount:
mkdir /mnt/usb
mount -t msdos /dev/da0s1 /mnt/usb

umount:
umount /mnt/usb

January 18, 2008

dns settings on freebsd

Filed under: freebsd — khwooo @ 10:49 pm

freebsd要上網,設定正確的DNS是必要的,以下以hinet為例。

編輯resolv.conf檔案

vi /etc/resolv.conf

加入

domain dns.hinet.net
nameserver 168.95.1.1

可以參考文件

May 18, 2007

phpBB Migrate Failed

Filed under: freebsd — khwooo @ 3:08 pm

i tried to migrate phpBB from my freebsd machine to byethost.
the procedure should be:

*backup phpbb files from my machine
tar czvf phpbb.tgz /phpbb
*backup phpbb database from may machine
mysqldump -u root phpbb>somefolder/phpbb.sql
*ftp upload phpbb files
*restore phpbb database by phpmysqladmin or phpbb function
**phpbb function -> failed
**phpmysqladmin -> OK!

but my forum is full with unknown codes like [????]
there is a language format proplem in my phpbb forum.

my original phpbb forum data saved by mysql is coded by BIG5 ( in mysql is LATIN?)
when i restore the database i should choose the right coding method, so i tried.
by selecting big5 but still failed.

when i looking for some clues on google,
find out this proplem is a pain in the ass for a lot of chinese phpbb users.
the proplem is trasfer BIG5 into UTF8.

still looking for best way to convert the database…

April 30, 2007

FreeBSD Network Settings : DHCP Client

Filed under: freebsd — Tags: , , — khwooo @ 4:33 pm

最近要整理荒廢已久的freebsd主機,之前的網路設定是撥號連上ADSL(ppp),現在我要讓他自動取得DHCP IP,連上我的AP。

步驟如下:

1. 先停掉ppp的service(沒有可以略過)

2. ee /etc/rc.conf
先comment掉原先的網路設定,再加入下面這行(xxx代表網路卡代號 ex: rl0)
ifconfig_xxx="DHCP"

4. ENTER+ESC 儲存

5. Reboot 重開機,然後 ifconfig 一下有沒有抓到IP,有時候需要等一下。

沒抓到?那可能要檢查網路連線和AP那邊的設定。

via FreeBSD 入魔手冊

September 5, 2005

PC作業系統的新選擇 , FreeBSD.

Filed under: freebsd — Tags: — khwooo @ 10:33 pm

下面是兩套GUI界面安裝的FreeBSD系統,都是一次幫你把xwindow和kde裝到好,那就不用自己compile半天了,freebsd白痴救星。

PC-BSD

PC-BSD has as its goals to be an easy to install and use desktop OS, which is built on the FreeBSD operating system.

DesktopBSD

DesktopBSD is based on FreeBSD, which is one of the most reliable and robust operating systems in the world.

No command line installing ! Am I dreaming A_A
不過…目前尚不支援中文。

August 30, 2005

Proftpd 啟動方式

Filed under: freebsd — khwooo @ 11:26 pm

根據官方proftpd手冊上的說明,proftpd有兩種啟動方式:

1.
由 /usr/local/etc/rc.d/proftpd.sh 啟動
必須於 /etc/rc.conf 中加入 proftpd_enable=yes
2.
由 inetd啟動
必須編輯 /etc/inetd.conf
註解原本的ftp service 接著加入下行
ftp stream tcp nowait root /usr/local/libexec/proftpd proftpd
存檔後重新啟動 inetd
kill -HUP `cat /var/run/inetd.pid `

啟動後可以telnet 21看是否成功。

如何清空檔案?

Filed under: freebsd — khwooo @ 10:27 pm

又遇到了一個龐大的log檔案,要清空它最笨的辦法是刪除它,然後再touch一個,真麻煩,複習一下以前貼在這裡的東西:

> 請教各位高手,我有一記錄檔 放在 /var/log/XXX-access_log
> 超過 1G…
> 想用NULL 指令去清除,我是新手,請教一下如何下指令…
> NULL 檔案在那?
> 另外我想要定時清除?要如何設定?

cp /dev/null /var/log/XXX-access_log

快又簡單 🙂

July 1, 2005

Looking at FreeBSD 6 and Beyond

Filed under: freebsd — khwooo @ 11:06 am

Interview: Looking at FreeBSD 6 and Beyond – OSNews.com

有關小惡魔的未來發展Q&A

Older Posts »

Create a free website or blog at WordPress.com.