git 專案共享方法

適用於不使用 SSH 傳輸,而是透過 group 進行管理的方式

1
2
3
4
5
cd project_directory
git config core.sharedRepository group
sudo chgrp -R group_name .
sudo chmod -R g+rwx .
sudo find . -type d -exec chmod g+s {} \;

閱讀更多

嵌入式系統如何設置 TimeZone

  1. 在 etc 下建立 TZ 檔案,內容需填入時區,可參考 ubuntu 裡面 /usr/share/zoneinfo/ 的內容。
    國家: 時區
    Taipei: CST-8
    Hong_Kong: HKT-8
    Tokyo: JST-9

閱讀更多

STM8 函式庫注意事項

    閱讀更多

    如何關閉下載 Exchange Server 上的信件到本地端的功能

    解決 Microsoft Outlook 的信件無法留在 server 上面

    Microsoft Outlook -> 工具 -> 帳戶設定 -> 資料檔頁面
    將 Exchange Server 上的資料夾設定為預設即可

    閱讀更多

    如何使用_alsa-utils

    amixer

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    # amixer --help
    Usage: amixer <options> [command]

    Available options:
    -h,--help this help
    -c,--card N select the card
    -D,--device N select the device, default 'default'
    -d,--debug debug mode
    -n,--nocheck do not perform range checking
    -v,--version print version of this program
    -q,--quiet be quiet
    -i,--inactive show also inactive controls
    -a,--abstract L select abstraction level (none or basic)
    -s,--stdin Read and execute commands from stdin sequentially
    -R,--raw-volume Use the raw value (default)
    -M,--mapped-volume Use the mapped volume

    Available commands:
    scontrols show all mixer simple controls
    scontents show contents of all mixer simple controls (default command)
    sset sID P set contents for one mixer simple control
    sget sID get contents for one mixer simple control
    controls show all controls for given card
    contents show contents of all controls for given card
    cset cID P set control contents for one control
    cget cID get control contents for one control

    閱讀更多

    如何編譯 alsa-lib 與 alsa-utils

     到 http://www.alsa-project.org/main/index.php/Main_Page 下載 alsa-lib 跟 alsa-utils 並解壓縮

    閱讀更多

    Embedded Linux 使用 boot chart 的注意事項

     若 rootfs 一開始 /etc 為 ro,則需要將 /var 改成 rw

    閱讀更多

    如何安裝 boot-chart

    1. 安裝 opne-jdk
      1
      2
      sudo apt-get update
      sudo apt-get install default-jdk

    閱讀更多