wiki:jazz/09-09-12

Version 6 (modified by jazz, 15 years ago) (diff)

--

2009-09-12

  • [課程準備] 測試 pyvnc2swf 錄聲音跟桌面

Debian / Ubuntu

  • Debian switches to Upstart
    • http://upstart.ubuntu.com/
    • Upstart is an event-based replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping them during shutdown and supervising them while the system is running.
    • 看樣子為了讓開機速度加快,或者解決到一些傳統 Linux /sbin/init 造成的問題,開機程序又再重新改寫了。
  • setting up an Ubuntu chroot for development testing using schroot and debootstrap
    • Q: schroot 跟 chroot 有什麼不同呢? A: schroot 是給一般使用者用的,不需要 root 權限!!
      /etc/schroot/schroot.conf
      
      [karmic]
      description=Ubuntu 9.10 Karmic Koala
      users=mbp
      root-users=mbp
      location=/home/chroot/karmic
      type=directory
      run-setup-scripts=true
      run-exec-scripts=true
      
      ~$ schroot -c karmic
      
    • 從這篇文章也學到 lsbrelease 的一些新用法
      ~$ lsb_release -is
      Debian
      ~$ lsb_release -ds
      Debian GNU/Linux 5.0.3 (lenny)
      ~$ lsb_release -rs
      5.0.3
      ~$ lsb_release -cs
      lenny
      

Vim 密技

  • 可怕的 VIM - 輸入 :TOhtml 就可以產生有 Syntax Highlight 的程式碼!!!
  • Vim with Mouse - 如果 PieTTY 用 Vim 時沒辦法用滑鼠,可能就要檢查一下參數了!!

Functional Programming 函數式編程/函數式程式設計

Screencast