DFB – Debian for Beginners
在 AndrewLee 等人的努力之下, DFB 終於出現了.
主要是為了一些沒辦法用到新電腦的地方的使用者, 並輕鬆帶入使用 Linux.
在 auto script 的引導之下, 使得 debian 的中文環境及影音環境可以很容易的弄好, 只要有網路連線.
有興趣的可以去試試看.
在 AndrewLee 等人的努力之下, DFB 終於出現了.
主要是為了一些沒辦法用到新電腦的地方的使用者, 並輕鬆帶入使用 Linux.
在 auto script 的引導之下, 使得 debian 的中文環境及影音環境可以很容易的弄好, 只要有網路連線.
有興趣的可以去試試看.
這年頭, 什麼東西都可以包成 php….
話說剛剛在 irc 聊天提到 ffmpeg 時, 就找了 ffmpeg-php, 沒想到真的有…
用這東西配合上 ffmpeg+flvtool2+web server, 便可以自己架設一個 VOD streaming server.
撰寫教學網頁在這裡.
Etch released.
and 為了減輕 http://ftp.tw.debian.org 的負擔, 請大家多多使用 multi-arch 的 netinst CD, 或者是 BT 方式抓 CD.
各種 install CDs 的比較請參考此文.
btw, http://debian.csie.nctu.edu.tw/ 也有做 mirror, 不過由於上游仍在整理中,
–
update: 目前已經全部 mirror 完畢
官網公佈了 NTFS-3G (這是其他 OS 可以讀寫 NTFS partition 的 driver) 的 stable version.
有興趣的可以研究一下~
之前在使用 linux cd router 時, 看到有內建 shorewall, 所以說就拿來玩玩看.
玩了一下, 感覺是個還不錯的 frontend, 至少不用記太多參數 :p
還有內建一些 Traffic Shaping 及 QoS 的 patterns, 可以少寫某些 rules, 只要寫與使用環境相關的 firewall 設定便可.

先貼張screenshot of KDE, 看起來比windows好多了:p
接下來在講講, 在PowerPC版遇到的可能問題.
參考 gentoo-wiki 所寫關於便當盒的問題:
1. 灌完ubuntu以後, 最大問題在於X的設定, 所以在dpkg-reconfigure xserver-xorg完以後, 加入:
Option “UseFBDev" “false"
Option “MonitorLayout" “TMDS"
Option “RenderAccel" “true"
Option “DCCMode" “true"
Option “AGPMode" “4″
Option “AGPFastWrite" “true"
Option “EnablePageFlip" “true"
Option “BackingStore" “true"
Option “ColorTiling" “false"
在/etc/X11/Xorg.conf 便可.
2. 設定MPlayer與其他的codecs
在官網 的codecs link中抓for powerpc的codec
解壓縮以後, 丟到/usr/lib/win32底下,
realvideo部份, 到這裡抓檔解壓以後, 只要把codecs目錄下的所有檔案也丟到/usr/lib/win32底下,
wmv部份, 參考jserv大的說明, 編完後同樣丟到/usr/lib/win32下.
基本上大部分的video都能看了.
(待續)
官方網頁http://asic-linux.com.mx/~izto/checkinstall/
作法很簡單, 如下:
1. 抓source tarball.
2. 解壓縮以後, configure, make.
3. 在該軟體目錄下執行 checkinstall -D make install (安裝並順便製作deb檔)
(1) 預設會問你要不要建立default doc of package -> yes
(2) package description: 請自己填
(3) 接下來會出現以下畫面, 請選擇該修改的地方做修改.
修改完以後, 按enter就會做出deb檔了~
進階: 預設值會做完deb檔且安裝, 可是要只做deb檔怎麼辦?, 順便手動設定dependencies: blah1, blah2.
-> checkinstall -D –install=no –requires=blah1, blah2(用","隔開)
說實在話, 我相當不習慣portage限制很多阿…..
portage最主要的工具有兩個: emerge與ebuild.
在debian上, 關係就如apt-get與dpkg的相依性.
所以以下, 為了我自己看方便, 只列出與apt相似的指令(在怎麼說, apt比較習慣)
1. emerge: 最主要的ports管理程式, 如果只是裝裝東西, 找找東西之類的, 用這個就夠了
(1) emerge –sync(emerge –websync): 即apt-get update. 設定檔在/etc/make.conf
(2) emerge –search “pkg_name": 即apt-cache search “pkg_name" or FreeBSD下的make search name="pkg_name"
(3) emerge “pkg_name": 即apt-get install “pkg_name"
(4) emerge –unmerge “pkg_name": 即apt-get remove “pkg_name"
2. ebuild: 建立 or 安裝一個ebuild(ports), 可以將emerge想成ebuild的frontend
(1) 一個正常的ebuild file如下 (以rstatd-4.0.1.ebuild為例): (also “man 5 ebuild")
#版權宣告, Header請自己加
# Copyright announcement.
# Please add “$Header: $" after
- Copyright 1999-2006 Gentoo Foundation
- Distributed under the terms of the GNU General Public License v2
- $Header: $
# package 描述
# Package Description
DESCRIPTION="rpc.rstatd – remotely view many system load related parameters"
HOMEPAGE="http://sourceforge.net/projects/rstatd/"
# package的source uri, 與BSD不同的是, package source是從各package的維護網頁抓下來
- 所以一定要附有該uri, 不然找不到source
# package’s source uri. The difference between BSD is, package source is obtained from package’s homepage, so this line is needed.
SRC_URI="mirror://sourceforge/${PN}/rpc.${P}.tar.gz"
# license授權方式# license warrenty
LICENSE="GPL-2″
# 設定有幾個不同版本的package可同時存在, 通常設定"0″# How many different versions of packages can exist together.
SLOT="0″
- Gentoo 著名的keyword限制, 以避免某些非官方認可的packages裝上系統.
- 當然可以自己強迫安裝, 修改/etc/portage/package.keywords.
- 以本例來說, 加入 net-misc/rstatd ~x86
# Keyword permission, to avoid some non-official packages installed.
# But, you can install with force, by modifying /etc/portage/package.keywords.
# in here, I added “net-mist/rstatd-x86″
KEYWORDS="~x86 ~amd64″
- list of USE flags
IUSE=""
- compile時, 需要與哪些packages相依
# Dependency of this package, for link only
DEPEND=""
- Runtime時, 需要與哪些packages相依, “!"代表不與某package相依.
# Runtime Dependency
RDEPEND="!net-misc/netkit-rusers"
- 暫存build directory
# Temporary directory
S="${WORKDIR}/rpc.${P}"
- 需要安裝的source, 必須有S這參數宣告過
- 寫法類似Makefile, 不過有些keywords, 請man
# Needed source, please have “S" declared
# This like Makefile, but it uses some keywords, please have man it for details.
src_install() {
emake DESTDIR="${D}" install || die “emake install failed"
doinitd ${FILESDIR}/rstatd || die “doinitd failed"doman rpc.rstatd.8 rstatd.8 rup.1 rsysinfo.1
dodoc ChangeLog README
}
(2) 建立一完整package並整合到portage tree步驟如下: (以category/pkg為例)
<1> 編寫category/pkg.ebuild檔案, 並幫其放到/usr/portage之適當目錄下
<2> 切到該目錄, ebuild pkg.ebuild digest, 這樣會產生Manifest檔, 與files/digest-pkg-ver. 這是相當重要的, 因為emerge在install package時會依賴這些檔案.
<3> ebuild pkg.ebuild fetch: 抓取pkg的source
<4> ebuild pkg.ebuild unpack; ebuild pkg.ebuild compile: 解壓source, 並且compile.
<5> ebuild pkg.ebuild install: 安裝compile完的obj files.
<6> ebuild pkg.ebuild qmerge: 將pkg整合到portage tree.
(p.s: <3>~<6>可用ebuild pkg.ebuild merge完成之)
<7> 若要建立package or rpm: ebuild pkg.ebuild package(rpm)
(3) 這樣, 你就有自己獨創的portage source tree了. 以後要重裝, 可透過emerge處理.
更多訊息, 可man 5 ebuild, man emerge.
Do you still have this thing working? And can I download this somewhere?
Could you perhaps translate the comment lines in the ebuild?
Hello, I’ve translate the comment lines into English. (co-exist with the Chinese one).
And, this example Makefile is just an example, I only write it here.
There is no download link.
If you want to link this article, please do by CC-SA authorization.
Thanks a lot.
–
Stephon
如果想要入門iptables的, 請參考這個
可以參考這篇
http://wsc3c.blogspot.com/2011/08/ffmpeg-php-warning.html