BluG_BlueTsBlog

07 六, 2007

Build Your Own Update Server -- Cuama - Customized Ubuntu Archive Mirroring Agent

Perl — 作者 bluet @ 12:16

Cuama 0.3 Beta 版釋出!! 

這幾天好好衝了一下, 把這支程式完成了.

為了求精簡訊速, 改寫了三次.

 

Features:

1. 自定所要 mirror 的 ubuntu 版本的 archive
2. 只 mirror 所要的版本 archive, 節省硬碟空間.
3. 不斷改進中的 UI
4. 自動化 download Packages.gz 並分析, 提供所需的資訊.
5. 自動更新 package pool 中的檔案並移除舊檔, 不再被過時檔案佔用硬碟空間.

 

 

Changelog:

ver 0.3:

新增互動式 UI, 階段性執行, user friendly message.
把掃描 file size summury 的功能整合進主程式.
詢問並自動做新版 Packages.gz.
舊版本 deb 檔自動偵測並移除, 節省 disk space.

 

ver 0.2:

新增兩個 script,
第一支幫 user 自動抓取 ubuntu.csie.nctu.edu.tw 上所有 feisty 會用到的 Packages.gz 自動解開,
第二支掃描完全部的 file 並列出整個 repos 所需總空間.
主程式修改為會先判定自己的 repos 裡的檔案是否為最新版, 若已過時擇再下載最新版.

ver. 0.1:

user 自己到 archive mirror site 上抓 Packages.g, 解開後餵給它吃.
一次掃一個 dist, 全部 download 下來放在某特定 dir 裡, 然後 user 自己手動做新的 Packages.gz

 

 

 TODOs:

1. 先比對 upstream 的 Packages.gz 是否更新, 有更新才下載檢查, 省去 Packages.gz 下載與分析時間.
2. 重新架構 repos dir tree 以符合原始 Release(.gpg). -- for preseed install server

 Bugs:

none for now.

 


迴響

  1. ver 0.3.1

    1. using Summary file size check before checking every file, downing CPU loading, I/O loading, and time wasting.
    2. show what's new, what's old, and what's exist. aka verbose mode.

    作者 bluet — 07 六 2007, 14:26

  2. 為了要 satisty d-i, 整個架構又大改版了......
    然後整個檔案驗證方式和流程也全都得改掉.
    now working on ver 0.5 :-)

    作者 bluet — 25 六 2007, 23:57

  3. bluet
  4. Ver 0.5 done.
    一切都很棒 :D
    只要再加 getopt 就可以直接跳到 ver 0.9 了 XDDD
    我真是邪惡 (竊笑)

    作者 bluet — 29 六 2007, 00:38

  5. bluet
  6. 決定要開成兩(或三)個 branch

    A. 想做小型 mirror site 的人, 或是要自己建一個 install/update server 的人用的, 用 0.5 的版本的這個 branch.

    B. 家裡網路資源少, 要做 local archive mirror 回家的人用的.

    A 的話, 因為 debian-installer 要認 Release.gpg 所以不能對所有 Packages.gz 做更動, 所以得維持原本的 dir tree.
    B 的話, 就直接丟到一個 dir 裡, 重做 Packages.gz 就好了 XD

    作者 bluet — 29 六 2007, 00:47

  7. 01:35 CUAMA is what enterprise needs
    01:37 both enterprise and somebody who have no fast internet coneection but wanna upgrade their
    ubuntu box :)
    01:37 as Mark said, the package "debmirror" can do similar things,
    01:37 but,
    01:38 if i wanna use the mirror built by debmirror, it will not work
    01:38 I mean for enterprise, they might not want their users to install what ever software.
    Therefore they need to control it
    01:40 actually i was doing something to "Lie" the debian-installer that the local mirror site is one
    of the "Official" mirror site, which have "ALL" .debs for all versions of ubuntu. But actually
    it contains only the .debs for One version of ubuntu :p
    01:40 hahaha
    01:40 that would not be a problem,
    01:41 i see
    01:42 think about enterprise needs, they might need a private mirror site.
    01:42 but what i wanna do is mirror every debs which are for (for example) feisty, but not others
    (dapper, edgy, and else.)
    01:45 actually, the next function on my todo list is just sa the same sa your idea :)
    01:46 i'll write another program, which will parse the dependency tree the packages you want, and
    mirror them :)

    作者 bluet — 29 六 2007, 01:51

  8. ooops.........
    人名都被拿掉了 XD

    作者 bluet — 29 六 2007, 01:52

  9. bluet
  10. matthew@matthew-desktop:/media/sda5/repos$ cat lalala
    nautilus-cd-burner_2.18.1-0ubuntu1_i386.deb
    nautilus-cd-burner_2.18.1-0ubuntu1.1_i386.deb
    matthew@matthew-desktop:/media/sda5/repos$ cat lalala |sort
    nautilus-cd-burner_2.18.1-0ubuntu1.1_i386.deb
    nautilus-cd-burner_2.18.1-0ubuntu1_i386.deb

    that ASCII code of . (dot) is smaller than _ (underscore)
    that means, i have to rewrite the main function fo CUAMA.

    作者 bluet — 02 七 2007, 12:09

  11. bug fixed.

    作者 bluet — 02 七 2007, 16:32

  12. 1.0 RC1 now can download here http://blog.psinfo.com.tw/~bluet/cuama_1.0rc1.tar.gz

    作者 bluet — 02 七 2007, 16:53

  13. buy cheap online tramadol pharmacies
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-cheap-online-tramadol.html - buy cheap online tramadol[/URL - lists
    buy cheap phentermine invision
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-cheap-phentermine.html - buy cheap phentermine[/URL - trusted
    buy cheap phentermine free fedex kerneltrap
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-cheap-phentermine-free-fedex.html - buy cheap phentermine free fedex[/URL - trusted
    buy cheap phentermine online pharmacy kerneltrap
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-cheap-phentermine-online-pharmacy.html - buy cheap phentermine online pharmacy[/URL - medicalexpert
    buy cheap tramadol hydrochloride ultram pharmacy
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-cheap-tramadol-hydrochloride-ultram.html - buy cheap tramadol hydrochloride ultram[/URL - tablets
    buy cod phentermine cheap
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-cod-phentermine.html - buy cod phentermine[/URL - comment
    buy com online phentermine viagra rapidboards
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-com-online-phentermine-viagra.html - buy com online phentermine viagra[/URL - diet
    buy discount tramadol drugplace
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-discount-tramadol.html - buy discount tramadol[/URL - online
    buy drug tramadol movies
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-drug-tramadol.html - buy drug tramadol[/URL - favorite
    buy generic tramadol no prescription lingue
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-generic-tramadol-no-prescription.html - buy generic tramadol no prescription[/URL - straniere
    buy mexico online pharmacy tramadol hcl
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-mexico-online-pharmacy-tramadol.html - buy mexico online pharmacy tramadol[/URL - lingue
    buy phentermine pharmacy
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-phentermine.html - buy phentermine[/URL - prescriptio
    buy phentermine cheap approved
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-phentermine-cheap.html - buy phentermine cheap[/URL - approved
    buy phentermine no perscription prescription
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-phentermine-no-perscription.html - buy phentermine no perscription[/URL - needed
    buy phentermine online prescription wroblewskiwilie
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-phentermine-online.html - buy phentermine online[/URL - sales
    buy phentermine online with a debit card gronk
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-phentermine-online-with-a-debit-card.html - buy phentermine online with a debit card[/URL - alpha
    buy phentermine overnight delivery prescription
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-phentermine-overnight-delivery.html - buy phentermine overnight delivery[/URL - kerneltrap
    buy phentermine tablets without prescription blue
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-phentermine-tablets-without-prescription.html - buy phentermine tablets without prescription[/URL - echeck
    buy phentermine without a prescription new
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-phentermine-without-a-prescription.html - buy phentermine without a prescription[/URL - york
    buy phentermine without prescription pharmacies
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-phentermine-without-prescription.html - buy phentermine without prescription[/URL - comparison
    buy tramadol favorite
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-tramadol.html - buy tramadol[/URL - soma
    buy tramadol cheap cod official
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-tramadol-cheap-cod.html - buy tramadol cheap cod[/URL - pharmacy
    buy tramadol hcl pharmacies
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-tramadol-hcl.html - buy tramadol hcl[/URL - official
    buy tramadol now prescription
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-tramadol-now.html - buy tramadol now[/URL - pharmacy
    buy tramadol online delivery
    [URL=http://www.export.gov/wcm/fragments/fl_eg_outsidelinks/redirect.asp?URL=http://chenabgroup.com/TP/images/jpg/buy-tramadol-online.html - buy tramadol online[/URL - pharmacies

    作者 Fyjebaza — 01 十二 2007, 17:31


發表迴響






Powered by LifeType