雞又加價,牛肉又加價,豬肉又加價,石油又加價,奶粉又加價。
今天雞蛋又加價,米又加價。
什麼時候人工加,利息加呢?
關於我
2008/03/27
Playstation 3
2008/03/26
2008/03/24
Create a debian repository for APT
Source: http://hausheer.osola.com/docs/14
By: David Hausheer
Config files:
/etc/apt/apt-ftparchive.conf
/etc/apt/apt-custom-release.conf
Create tree layout under /path/to/myrepository:
dists
+-custom
+-main
|-binary-i386
+-source
Put binary deb files into binary-i386
Put source files into source
Create archive config file under /etc/apt/apt-ftparchive.conf:
Dir {
ArchiveDir "/path/to/myrepository";
};
BinDirectory "dists/custom/main/binary-i386" {
Packages "dists/custom/main/binary-i386/Packages";
Contents "dists/custom/Contents-i386";
SrcPackages "dists/custom/main/source/Sources";
};
Tree "dists/custom" {
Sections "main";
Architectures "i386 source";
};
Create release config file under /etc/apt/apt-custom-release.conf:
APT::FTPArchive::Release::Origin "myrepository";
APT::FTPArchive::Release::Label "myrepository";
APT::FTPArchive::Release::Suite "custom";
APT::FTPArchive::Release::Codename "custom";
APT::FTPArchive::Release::Architectures "i386 source";
APT::FTPArchive::Release::Components "main";
APT::FTPArchive::Release::Description "Custom debian packages for myrepository";
Script: /etc/apt/update-archive.sh:
apt-ftparchive generate apt-ftparchive.conf
apt-ftparchive -c apt-custom-release.conf release /path/to/myrepository/dists/custom > /path/to/myrepository/dists/custom/Release
Add repository to /etc/apt/sources.list:
deb file:/path/to/myrepository/ custom main
By: David Hausheer
Config files:
/etc/apt/apt-ftparchive.conf
/etc/apt/apt-custom-release.conf
Create tree layout under /path/to/myrepository:
dists
+-custom
+-main
|-binary-i386
+-source
Put binary deb files into binary-i386
Put source files into source
Create archive config file under /etc/apt/apt-ftparchive.conf:
Dir {
ArchiveDir "/path/to/myrepository";
};
BinDirectory "dists/custom/main/binary-i386" {
Packages "dists/custom/main/binary-i386/Packages";
Contents "dists/custom/Contents-i386";
SrcPackages "dists/custom/main/source/Sources";
};
Tree "dists/custom" {
Sections "main";
Architectures "i386 source";
};
Create release config file under /etc/apt/apt-custom-release.conf:
APT::FTPArchive::Release::Origin "myrepository";
APT::FTPArchive::Release::Label "myrepository";
APT::FTPArchive::Release::Suite "custom";
APT::FTPArchive::Release::Codename "custom";
APT::FTPArchive::Release::Architectures "i386 source";
APT::FTPArchive::Release::Components "main";
APT::FTPArchive::Release::Description "Custom debian packages for myrepository";
Script: /etc/apt/update-archive.sh:
apt-ftparchive generate apt-ftparchive.conf
apt-ftparchive -c apt-custom-release.conf release /path/to/myrepository/dists/custom > /path/to/myrepository/dists/custom/Release
Add repository to /etc/apt/sources.list:
deb file:/path/to/myrepository/ custom main
2008/03/23
XEPC 升級光碟 - 放到 USB 隨身碟的方法
忙了幾個星期,終於有時間研究用 USB 隨身碟來做 XEPC 升級的媒體了,下一版本的升級光碟會把需要的工具和設定都放進去,所以,下一版本的升級光碟可以直接燒錄到光碟,也可以放到 USB 隨身碟上使用。
想搶先試用的可以抓下這個一壓縮檔,到下一版就不需要做 unzip 一步。
方法如下(要有一點點 Linux 基本認識):
1. 假設已經把 XEPC 升級光碟的 ISO 檔和上面的 usb-upgrade-20080324.zip 下載了在桌機的 /root,您的檔案名字跟例子中的可能不同
2. 先把升級光碟的 ISO 檔裝載(mount)起來,如果是 Linux 的話就是用 loop mount了,用法是 mount -o loop /root/xepc.iso /mnt:
3. 裝載好以後,在 /mnt 中應該可以看到光碟的內容。
4. 把一隻已經用 VFAT/FAT32 格式化的 USB 隨身碟插進桌機,這時候應該會自動裝載在 /media 的一個目錄,這個跟你的 USB 隨身碟的 Label 有關,我例子中的是 "USB", 所以會出現在 /media/USB/,不知道的可以輸入 mount 指令看看,先記下最開頭的 /dev/xxx 名字,到後來有用的,這例子中是 /dev/sdc1 。
5. 如果在 Eee PC 上面製造這 USB 隨身碟,請先用sudo apt-get install rsync 安裝 rsync 套件,或者用 zip 檔中的 deb 包。
來用指令把 /mnt 內的所有檔案拷貝到 /media/USB 中,用 rsync -av /mnt/ /media/USB/ 指令即可:
6. 拷貝完以後,進入 /media/USB 目錄,把剛才的 zip 檔案解壓到 /media/USB/ 中,完成後可以用 ls 指令確定內容:
7. 如果在 Eee PC 上面製造這 USB 隨身碟,請先用 sudo apt-get install mtools syslinux 安裝 mtools 和 syslinux 套件,或者用 zip 檔中的 deb 包,然後就可以用 syslinux /dev/sdc1 指令把 USB 隨身碟設成可開機,用桌機 Linux 的話請用相應的方法安裝 syslinux。
(注意,如果在第2步看到的不是 /dev/sdc1, 請換成你看到的設備名字)。
8. 最後把 ISO 檔跟 USB 都卸載掉,用 umount 指令:
9. umount 完成以後,用這支 USB 隨身碟開機就可以做 XEPC.org 的大升級了。
如果是用 Windows 做的話,方法一樣,都是找工具把 升級光碟的 ISO 檔打開,把內容都拷貝到 USB 隨身碟中,然後在終端機 (cmd.exe) 中,到 USB 隨身碟的目錄底下(假設是 E:),跑 syslinux E: 指令就可以了。
想搶先試用的可以抓下這個一壓縮檔,到下一版就不需要做 unzip 一步。
方法如下(要有一點點 Linux 基本認識):
1. 假設已經把 XEPC 升級光碟的 ISO 檔和上面的 usb-upgrade-20080324.zip 下載了在桌機的 /root,您的檔案名字跟例子中的可能不同
2. 先把升級光碟的 ISO 檔裝載(mount)起來,如果是 Linux 的話就是用 loop mount了,用法是 mount -o loop /root/xepc.iso /mnt:
3. 裝載好以後,在 /mnt 中應該可以看到光碟的內容。
4. 把一隻已經用 VFAT/FAT32 格式化的 USB 隨身碟插進桌機,這時候應該會自動裝載在 /media 的一個目錄,這個跟你的 USB 隨身碟的 Label 有關,我例子中的是 "USB", 所以會出現在 /media/USB/,不知道的可以輸入 mount 指令看看,先記下最開頭的 /dev/xxx 名字,到後來有用的,這例子中是 /dev/sdc1 。
5. 如果在 Eee PC 上面製造這 USB 隨身碟,請先用sudo apt-get install rsync 安裝 rsync 套件,或者用 zip 檔中的 deb 包。
來用指令把 /mnt 內的所有檔案拷貝到 /media/USB 中,用 rsync -av /mnt/ /media/USB/ 指令即可:
6. 拷貝完以後,進入 /media/USB 目錄,把剛才的 zip 檔案解壓到 /media/USB/ 中,完成後可以用 ls 指令確定內容:
7. 如果在 Eee PC 上面製造這 USB 隨身碟,請先用 sudo apt-get install mtools syslinux 安裝 mtools 和 syslinux 套件,或者用 zip 檔中的 deb 包,然後就可以用 syslinux /dev/sdc1 指令把 USB 隨身碟設成可開機,用桌機 Linux 的話請用相應的方法安裝 syslinux。
(注意,如果在第2步看到的不是 /dev/sdc1, 請換成你看到的設備名字)。
8. 最後把 ISO 檔跟 USB 都卸載掉,用 umount 指令:
9. umount 完成以後,用這支 USB 隨身碟開機就可以做 XEPC.org 的大升級了。
如果是用 Windows 做的話,方法一樣,都是找工具把 升級光碟的 ISO 檔打開,把內容都拷貝到 USB 隨身碟中,然後在終端機 (cmd.exe) 中,到 USB 隨身碟的目錄底下(假設是 E:),跑 syslinux E: 指令就可以了。
2008/03/22
2008/03/18
Half day trip to shen zhen
MSN Live Messenge for Pidgin
Just found a new plugin for Pidgin on internet, msn-pecan is a re-implementation of MSN protocol, which should support a newer MSN protocol, from the website it said:
This is a fork of that code with a much faster development process.
Features include:
This is a fork of that code with a much faster development process.
Features include:
- Support for personal messages
- Server-side storage for display names (private alias)
- Partial direct connection support
- Improved network IO
- Improved error handling
- Network issues tested with netem
- GObject usage
化療、電療後的爸爸
四個月的化療,頭髮很多都脱落了,他把心一横都剃光了,但看起來反而頗好看。
最近一個月做電療,完成後,頭髮重新長出來,很有趣呢,可是記憶很多都錯亂了,很多簡單的事記不起來,不過相信幾個星期後就會好轉,希望只是電療的副作用吧。
最近一個月做電療,完成後,頭髮重新長出來,很有趣呢,可是記憶很多都錯亂了,很多簡單的事記不起來,不過相信幾個星期後就會好轉,希望只是電療的副作用吧。
2008/03/17
2008/03/15
XEPC.org 軟體庫再添一個鏡像
因為 XEPC.org 軟體庫,越來越流行,越來越多人使用,所以主站經常反應遲鈍,現在我們已經設立了2個鏡像給大家用來做 apt-get 了,
在 /etc/apt/sources.list 中除了原來的
deb http://updates.xepc.org/ p701 main
之外,還可以使用以下兩個鏡像之一:
deb http://mirror.xepc.org/pub/xepc-updates/ p701 main
deb http://download.tuxfamily.org/xepcrepo/ p701 main
建議國外的用戶使用 tuxfamily.org 的鏡像。
使用軟體庫方法可參考教學。
至於重新安裝的用戶,建議使用 升級光碟。
在 /etc/apt/sources.list 中除了原來的
deb http://updates.xepc.org/ p701 main
之外,還可以使用以下兩個鏡像之一:
deb http://mirror.xepc.org/pub/xepc-updates/ p701 main
deb http://download.tuxfamily.org/xepcrepo/ p701 main
建議國外的用戶使用 tuxfamily.org 的鏡像。
使用軟體庫方法可參考教學。
至於重新安裝的用戶,建議使用 升級光碟。
Mirroring ftp site with lftp
XEPC.org has down due to data center power supply, I found that I need to find one more place to backup my XEPC.org software repository.
I applied a project on www.tuxfamily.org and it has been approved.
But there is one difficult, it only support ftp upload, not rsync, so how can I do synchronization between my local mirror and tuxfamily mirror?
I tried gftp to upload, but as it is GUI tool, I cannot run it remotely on office machine (which is the local mirror). After researching, I found lftp has a mirror operation, which works very closed to rsync, the lftp mirror operation manual.
mirror [options] [remotedir [localdir] ]
Copy a directory exactly. The mirror command accepts the following arguments:
-c, --continue
If mirroring was interrupted, resume it.
-e, --delete
Delete local files that are not present at the remote site.
-R, --reverse
Mirror files from the local system to the remote system. With this argument, make sure that you specify the local directory first and the remote directory second. If you do not specify both directories, the second is assumed to be the same as the first. If you choose neither, the operation occurs in the current working directories.
-L, --dereference
When mirroring a link, download the file the link points to rather than just the link.
-i, --include regex
Get only the files whose names match the regular expression regex. See grep for more information about regular expressions.
-x, --exclude regex
Do not get the files whose names match regex. See grep for more information about regular expressions.
-v, --verbose=n
Set the verbose level. You can set n from 0 (no output) to 3 (full output) using a number or by repeating the v. For example, -vvv is level 3 verbose mode.
--remove-source-files
Move, rather than copy, files when mirroring.
I applied a project on www.tuxfamily.org and it has been approved.
But there is one difficult, it only support ftp upload, not rsync, so how can I do synchronization between my local mirror and tuxfamily mirror?
I tried gftp to upload, but as it is GUI tool, I cannot run it remotely on office machine (which is the local mirror). After researching, I found lftp has a mirror operation, which works very closed to rsync, the lftp mirror operation manual.
mirror [options] [remotedir [localdir] ]
Copy a directory exactly. The mirror command accepts the following arguments:
-c, --continue
If mirroring was interrupted, resume it.
-e, --delete
Delete local files that are not present at the remote site.
-R, --reverse
Mirror files from the local system to the remote system. With this argument, make sure that you specify the local directory first and the remote directory second. If you do not specify both directories, the second is assumed to be the same as the first. If you choose neither, the operation occurs in the current working directories.
-L, --dereference
When mirroring a link, download the file the link points to rather than just the link.
-i, --include regex
Get only the files whose names match the regular expression regex. See grep for more information about regular expressions.
-x, --exclude regex
Do not get the files whose names match regex. See grep for more information about regular expressions.
-v, --verbose=n
Set the verbose level. You can set n from 0 (no output) to 3 (full output) using a number or by repeating the v. For example, -vvv is level 3 verbose mode.
--remove-source-files
Move, rather than copy, files when mirroring.
2008/03/13
Whats' new in Red Hat Enterprise Linux 5.2
Just tried the Red Hat Enterprise Linux (RHEL) 5.2 beta, for the server part, main improvement is virtualization part, new CPU features from AMD are supported, so a new version of hypervisor introduced for faster full virtualization.
For client part which I use most, the great improvement is the upgrading of user programs, eg. pidgin, firefox, openoffice.org are all new version instead of old old "stable" version, which is a good news to normal users.
For client part which I use most, the great improvement is the upgrading of user programs, eg. pidgin, firefox, openoffice.org are all new version instead of old old "stable" version, which is a good news to normal users.
2008/03/11
200萬奪命奇案 (No Country For Old Men)
2008/03/10
2008/03/08
10000 B.C. the movie
今天是 Josephine 畢業禮,觀禮過後,和 Johnny 跟富一起去了中環 IFC 看電影 "公元前一萬年"。
看這電影之前,沒有看過故事內容,還以為是類似“侏羅紀”的人和野生怪獸拼的電影,原來不是,公元前一萬年跟“戰狼300”有一些相似,就是弱小/人少的民族被人以大欺小,最後以少勝多的故事。雖然沒有想像中的精彩刺激,不過尚算不俗!
看這電影之前,沒有看過故事內容,還以為是類似“侏羅紀”的人和野生怪獸拼的電影,原來不是,公元前一萬年跟“戰狼300”有一些相似,就是弱小/人少的民族被人以大欺小,最後以少勝多的故事。雖然沒有想像中的精彩刺激,不過尚算不俗!
2008/03/07
With Greater Power Comes Greater Responsibility
"With Greater Power Comes Greater Responsibility"
Heard this from the film Spiderman before.
And I found that it is very truth now, also, not just comes greater responsibility, but also comes greater pressure.
XEPC.org is getting more and more popular, but at the same time, a small mistake may be harmful to a lot of people, I have to be careful to handle the thing.
With Greater Power Comes Greater Responsibility,
With Greater Responsibilty Comes Greater Pressure.
Heard this from the film Spiderman before.
And I found that it is very truth now, also, not just comes greater responsibility, but also comes greater pressure.
XEPC.org is getting more and more popular, but at the same time, a small mistake may be harmful to a lot of people, I have to be careful to handle the thing.
With Greater Power Comes Greater Responsibility,
With Greater Responsibilty Comes Greater Pressure.
2008/03/03
OpenOffice.org 2.3.1 Eee PC 優化版推出
[同時發佈到 XEPC.org, XFastest 及 mobile01]
經過幾天的努力,OpenOffice.org 2.3.1 的 Eee PC 優化版 deb 包弄好了。
這個版本的 GUI 字體跟圖示都調小了,比一般在網上下載的版本適合 Eee PC 的小螢幕使用。
另外 OpenOffice.org 2.3.1 比原來的 2.0.4 跑起來還要暢順呢,安裝方法跟之前的更新一樣:
sudo apt-get update
sudo apt-get install openoffice.org
注意:由於 OpenOffice.org 所佔的硬碟空間比較大,請先檢查自己的空間是否足夠,安裝之後大約 300M - 400M 左右。
另外安裝之後的 deb 包可以用 sudo apt-get clean 指令刪除。
經過幾天的努力,OpenOffice.org 2.3.1 的 Eee PC 優化版 deb 包弄好了。
這個版本的 GUI 字體跟圖示都調小了,比一般在網上下載的版本適合 Eee PC 的小螢幕使用。
另外 OpenOffice.org 2.3.1 比原來的 2.0.4 跑起來還要暢順呢,安裝方法跟之前的更新一樣:
sudo apt-get update
sudo apt-get install openoffice.org
注意:由於 OpenOffice.org 所佔的硬碟空間比較大,請先檢查自己的空間是否足夠,安裝之後大約 300M - 400M 左右。
另外安裝之後的 deb 包可以用 sudo apt-get clean 指令刪除。
Pidgin 2.4.0 推出了
[同時發佈到 XEPC.org, XFastest 及 mobile01]
Pidgin 即時通訊軟體已推出 2.4.0 版本, 主要的新功能包括:
- AIM 的離線訊息支援
- 新版的 Yahoo messenger 檔案傳送支援
- 一些小臭蟲的修正
另外也加上一點小修改,使 pidgin 更適合小螢幕的 Eee PC 使用。
同時 pidgin-guifications 即時訊息彈出小視窗,都會更新成最新版本。
更新方法跟以往一樣,就是:
1. sudo apt-get update
2. sudo apt-get install pidgin pidgin-guifications
就會變成最新的版本了。
另外 pcmanfm 檔案總管的 0.3.6.1 也相應更新了,同樣地可以使用 apt-get 安裝。
Pidgin 即時通訊軟體已推出 2.4.0 版本, 主要的新功能包括:
- AIM 的離線訊息支援
- 新版的 Yahoo messenger 檔案傳送支援
- 一些小臭蟲的修正
另外也加上一點小修改,使 pidgin 更適合小螢幕的 Eee PC 使用。
同時 pidgin-guifications 即時訊息彈出小視窗,都會更新成最新版本。
更新方法跟以往一樣,就是:
1. sudo apt-get update
2. sudo apt-get install pidgin pidgin-guifications
就會變成最新的版本了。
另外 pcmanfm 檔案總管的 0.3.6.1 也相應更新了,同樣地可以使用 apt-get 安裝。
2008/03/01
童夢奇緣
訂閱:
文章 (Atom)