發表文章

目前顯示的是 8月, 2009的文章

Building deb with dpkg-deb

之前在ubuntu-TW上看到hepha大把剛釋出的pps for linux打包成了deb 很好奇這是如何達成的,之前只聽說過可以用checkinstall從source建立deb 後來終於 查到了 主要是利用dpkg-deb這個指令 你必去建立一個資料夾然後將需要的檔案按照檔案系統架構把檔案加入 假設我建立一個資料夾叫做debain 我想將一個程式test封裝進去,而test應該放在/usr/bin/test 所以我就必須建立debian/usr/bin然後把test複製到debian/usr/bin 然後還需要一個control檔 [control] Package: Version: Section: Priority: Architecture: Depends: Suggests: Conflicts: Replaces: Installed-Size: Maintainer: Description: 不需要全部都填 然後放在 debain/DEBIAN裡頭 註:DEBIAN下可包含檔案 control, prerm, postinst 接著 fakeroot dpkg-deb --build debian 然後就產生了一個deb封裝啦! P.S.可以用ar x *.deb來解開一個封裝 流程from http://tldp.org/HOWTO/html_single/Debian-Binary-Package-Building-HOWTO/ Prerequisite files: 1. one or more binary executable or shell script files 2.a man page for each executable file 3.a 'control' file 4.a 'copyright' file 5. a 'changelog' and 'changelog.Debian' file Setup temporary 'debian' directories: 1. create 'd...

8/22

有了個版後 果然會荒廢網誌 XD

Loop-AES-Crypto

For ubuntu, you need package 'loop-aes-utils' and 'cryptsetup' apt-get install loop-aes-utils apt-get install cryptsetup First, modprobe aes modprobe cryptoloop There are two ways to get this work: Old way: using losetup losetup -e aes /dev/loop0 $YOUR_LOOP_FILE Format the loop device: mkfs -t ext2 /dev/loop0 Journaled filesystems are reported to have bad problems with cryptoloops, so I use ext2 instead. Now you can mount the crypted device mount /dev/loop0 $MOUNT_POINT umount: umouunt /dev/loop0 losetup -d /dev/loop0 Usage: Mount: losetup /dev/loop0 $YOUR_LOOP_FILE mount -t ext2 -o encryption=aes /dev/loop0 $MOUNT_POINT Umount: umouunt /dev/loop0 losetup -d /dev/loop0 New way Using device mapping You must enable two voices when compiling kernel: device mapper support and its sub-voice crypt target support. ubuntu enabled these two options by default First modprobe loop modprobe dm-crypt Setup loop device losetup /...

辦了一個個版

如題 版名叫做ZetaFantasy 網誌還是會寫啦 個版的東西可能會比叫瑣碎~ 就醬~

From Now On

I'm in EE. -- Aitjcize aka. AZ

Arch Linux 資源整理

Arch Linux 官方 http://www.archlinux.org/ Arch Linux 中文指南 http://arch.linux.org.tw/Docs/ Lawliet's blog: http://antimalicious.blogspot.com/2009/04/archlinux.html http://antimalicious.blogspot.com/2009/08/archlinux.html CLE http://cle.linux.org.tw/forum/viewforum.php?f=12

Conky

圖片
Conky介紹 其實簡單來說,就是一套系統監控軟體,可以把目前系統資訊顯示在桌面上 我的配置主要來自 這裡 ,在加上一些自己的修改,漂亮吧:)

Windows 7 必關系統服務

services.msc http://www.chs8.com/read.php/1303.htm http://forum.slime.com.tw/thread31383.html