owned this note changed 4 years ago
Linked with GitHub

源碼在哪裡 - 何泰祥

由於場地問題,第二天我們移動到另一棟大樓啦!議程教室變動請見網站上的議程表

歡迎來到 https://hackmd.io/@coscup/2019 共筆

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

點擊本頁上方的 開始用 Markdown 一起寫筆記!
手機版請點選上方 按鈕展開議程列表。

tai271828@gmail.com (e = 2.71828)

Slide: http://bit.ly/2zmorzL

grep

可以搜尋字串 (隱藏功能>二進位檔當字串搜尋)
應用:搜尋lINUX版本號
是 grep 重度使用者,過了多年還是覺得很好用

如果想要知道他為什麼這麼快? > 找源碼
去哪裡找 grep 的 source code ? > GOOGLE
哪一個才是我要找的源碼呢?

4 stages of competence
unconcious incompetence > concious incompetence > concious competence > unconcious competence

問自己是否了解以下資訊

Technical/Development History

  • mailing list (推薦了解)

Management:方法

  • source hosts
  • launchpad for ubuntu
  • local
    • FHS
  • versionmajor.minor.patchmajor.minor.patchmajor.minor.patch
    • major.minor.patch
      *
      Domain Knowledge
    • e.g. web, Application, Science, etc.

找到命名規矩對於找到目標很有幫助

indicator 放小東西的區域
applet

指令
apt - ??
dpkg

要注意名稱跟版號是否一致
automake
相依地獄!!!
dpkg 直接打包就好

  • Technical / Development History
    • Firsthand
      • Mailing lists
      • IRC
      • HipChat
      • Slack
      • Issue trackers
      • Forums
      • Journals / Papers
    • Summary
      • Wiki
      • Tech News
      • Tech Document
      • White Papers
      • Blogs
      • Books
      • Review papers
  • Mangement
    • Source Hosts
      • Github / Bitbucket etc.
      • SourceForge
      • Launchpad
    • Local Deployment
      • FHS
      • Language-specific path
    • Distributed Deployment
      • Auxiliary servies (e.g., Open Stack, web)
  • Version
    • Major.Minor.Patch

DEMO

$ which grep
$ dpkg -S /bin/grep
$ apt-get source grep
$ dpkg-buildpackage -us -uc
$ ar x grep_2.25-1~16.04.1_amd64.deb
$ tar -xf data.tar.gz
$ ./bin/grep --version
tags: COSCUP2019 帶您讀源碼 IE2102
Select a repo