Kernel 2.6.12 Released

不過,ITE8212 的驅動程式還沒有進去。

Posted by yungyuc at 22:12, 0 comment, 0 trackback.

It's a little bit strange to build an apt mirror right in home... but I do need it.

I referenced How to build a local apt-get mirror and found that apt-mirror is a very handy utility to do apt mirror. Before this time, I established another apt mirror with rsync and shell script, but that old mirror have failed when the main archive of apt broke down last year.

Now I have this Perl-written, well-behaved and easy-configurable apt-mirror, and it took me only less than 2 days to get the testing and unstable i386 binary as well as source packages from a taiwan mirror, via my 2M/512 ADSL line. The total size of downloaded local apt archive is around 25GB.

apt-mirror is easy to use, but still not in official archive. So you need to add

deb http://apt-mirror.sourceforge.net/ apt-mirror/

this line to your sources.list, then

apt-get install apt-mirror

to install the package. After successfully install, apt-mirror will create its config file to /etc/apt/mirror.list, and the syntax is very similar to sources.list. My mirror.list is like:

# apt-mirror configuration file

##
## The default configuration options (uncomment and change to override)
##
#
# set base_path          /var/spool/apt-mirror
# set mirror_path  $base_path/mirror
# set skel_path          $base_path/skel
# set var_path     $base_path/var
#
# set defaultarch  <running host architecture>
# set nthreads     20
#

set base_path /var/lib/aptmirror
set mirror_path       $base_path/mirror
set skel_path $base_path/skel
set var_path  $base_path/var

set defaultarch i386

# testing @nchc
deb http://opensource.nchc.org.tw/debian/ testing main non-free contrib
deb-src http://opensource.nchc.org.tw/debian/ testing main non-free contrib

# unstable @nchc
deb http://opensource.nchc.org.tw/debian/ unstable main non-free contrib
deb-src http://opensource.nchc.org.tw/debian/ unstable main non-free contrib

# irssi precompiled package
deb http://irssi.qvr.info/debian/ sarge/

# apt-mirror itself
deb http://apt-mirror.sourceforge.net/ apt-mirror/

##
## Cleaner configuration example
##
#
# set cleanscript $var_path/clean.sh
#

# What shold we clean up
clean http://security.debian.org/
clean http://opensource.nchc.org.tw/

# But exclude this directories
skip-clean http://opensource.nchc.org.tw/doc/
skip-clean http://opensource.nchc.org.tw/tools/
skip-clean http://opensource.nchc.org.tw/debian-cd/
skip-clean http://opensource.nchc.org.tw/debian-minicd/
skip-clean http://opensource.nchc.org.tw/debian/dists/potato/main/disks-i386/
skip-clean http://opensource.nchc.org.tw/debian/dists/woody/main/disks-i386/
skip-clean http://opensource.nchc.org.tw/debian/doc/
skip-clean http://opensource.nchc.org.tw/debian/tools/
skip-clean http://opensource.nchc.org.tw/debian/project/
skip-clean http://opensource.nchc.org.tw/debian-non-US/project/

You may see that in the config file, base_path is set to /var/lib/aptmirror, where the mirror_path, skel_path and var_path reside in. These related subdirectory must be first created, because apt-mirror will write data into them.

The mirrored apt archive will be collected in mirror_path, and is organized by host name.

apt-mirror should be executed once it's configured. Initially it takes time, but as its first execution succeeds, subsequent execution won't use too much time.

apt-mirror places a cron job in /etc/cron.d/apt-mirror, off by default. It can be opened by removing the heading comment mark (#). Further more, it can be modified like

0 4     * * *   apt-mirror /usr/bin/apt-mirror >> /var/lib/aptmirror/log/apt-mirror.log

to have everyday update tracked and logged.

Posted by yungyuc at 22:00, 0 comment, 0 trackback.

May I call it "Stellvia of the Universe"? :)

不過我總覺得

http://photos5.flickr.com/19331907_e7b5d1d89a_o.png

這張圖很 Eva 風呢。

Posted by yungyuc at 23:33, 0 comment, 0 trackback.

Debian: Where should wewe should go from here?

大意是說,在 sarge 發行之後,Mr. Murdock 認為 Debian 後續的發展有兩大主題:

  1. 穩定版本發行的規則化;
  2. 與各衍生版本的統合性。

Mr. Murdock 認為這些是 Debian 更進一步與產業界結合所需的重要項目。

相關連結:

» continue reading
Posted by yungyuc at 22:59, 0 comment, 0 trackback.

總算可以看 DVD 了。

用了一年的 Windows XP 系統爛得不成樣子。今天努力把之前拍的 DV 影片製作成 DVD 片子,系統裡的 codec 不知道出了什麼問題,沒辦法把明明有音訊的 DVD 的聲音播放出來;直接放 .VOB 檔卻沒問題。最後下午痛下決心,把安裝光碟請出來重灌吧。

今天的重灌有幾點心得:

  1. 系統總是會在有任務需求的時候壞掉。
  2. 當你要裝驅動程式的時候,光碟會不見;浩鑫的網站 (http://www.shuttle.com/) 也會當機。
  3. 矽統 (SiS) 網站 (http://www.sis.com.tw/) 有線上偵測晶片組的 ActiveX 程式。
  4. k-lite codec pack 出到了 2.49。
  5. iTunes 看起來真不錯,不過我的 music archive 已經有一半以上是 lossless format 了;還是得用 foobar2000 。Quicktime 6.5 和 iTunes 綁到了一起,非得 同時安裝 才成 (感謝 jetcat,更正:有 standalone 的版本 )。
  6. BroadBand 下行還是至少要有 2M 的速度才好用。今天抓檔案的速度和之前用 512k 下行差了好多。
  7. 重灌系統愈多次,愈覺得麻煩。
Posted by yungyuc at 23:38, 2 comments, 0 trackback.

在作 sp2 patched 的時候,下

WindowsXP-KB835935-SP2-ENU.exe /n

詳細的參數說明請見:

WindowsXP-KB835935-SP2-ENU.exe /help

的彈出視窗。

Posted by yungyuc at 20:20, 0 comment, 0 trackback.

之前為了 VMware 裡 2.6 Linux 系統時間過慢的問題 重編核心 ,不過今天驚覺其實只要加上 clock=pit 核心參數就可以了。

傷腦筋,之前怎麼沒有測到呢。

Posted by yungyuc at 22:54, 2 comments, 0 trackback.

在 Debian 上編 PIL,要先準備好

  1. libjpeg62-dev
  2. zlib1g-dev
  3. libfreetype6-dev

然後 tar xvfz /path/to/Imaging-1.1.5.tar.gz ,進入解開的原始碼目錄後:

$ /path/to/python setup.py build_ext -i
running build_ext
--------------------------------------------------------------------
PIL 1.1.5 BUILD SUMMARY
--------------------------------------------------------------------
version       1.1.5
platform      linux2 2.3.5 (#1, Jun 10 2005, 21:14:22)
              [GCC 3.3.5 (Debian 1:3.3.5-12)]
--------------------------------------------------------------------
*** TKINTER support not available
--- JPEG support ok
--- ZLIB (PNG/ZIP) support ok
--- FREETYPE2 support ok
--------------------------------------------------------------------
To add a missing option, make sure you have the required
library, and set the corresponding ROOT variable in the
setup.py script.

To check the build, run the selftest.py script.

然後用隨附的程式測試:

$ /path/to/python selftest.py
55 tests passed.

如果如上測試成功的話,即可進行安裝:

$ /path/to/python setup.py install

後續安裝 Zope 請參考 Zope 自訂安裝

Posted by yungyuc at 15:34, 0 comment, 0 trackback.

剛剛 學會作 patch 。這是 patch 檔

Posted by yungyuc at 12:44, 2 comments, 0 trackback.

為什麼 Charlies' Angels 可以作到連素子都作不到的事....

喵。

Posted by yungyuc at 20:00, 0 comment, 0 trackback.
Change to page (10 entries in each page): 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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
© hover year to navigate month: powered by django