Friday, July 27, 2012

Dynamic Kernel Module Support  (DKMS)


Dell有一個project 叫 Dynamic Kernel Module Support  (DKMS)
讓update module變得更簡單...


https://wiki.kubuntu.org/Kernel/Dev/DKMSPackaging

dkms.png


看來 Dell 在這方面跟Canonical已經做了不少努力 http://linux.dell.com




Wednesday, July 25, 2012

Bluetooh on Ubuntu

Bluetooth is a standard for the short-range wireless interconnection of cellular phones, computers, and other electronic devices. In Linux, the canonical implementation of the Bluetooth protocol stack is BlueZ.


BlueZ, included with the official Linux kernel distributions, initially developed by Qualcomm.


Host Controller Interface


Device address 
$ hcitool dev
Devices:
 hci0 7C:E9:D3:B8:17:6E

Every Bluetooth device has a unique 48-bit BD_ADDR (Bluetooth Device Address), which is divided into three fields:
most significant
NAP(Non-significant Address Part),16 bits.}These 24-bits are the manufacturer's company_id / OUI (Organizationally Unique Identifier), allocated by the IEEE. For example, Rohde & Schwarz's is 0x0090B8.
UAP(Upper Address Part),8 bits.
LAP(Lower Address Part),24 bits.These 24-bits are a serial number assigned by the manufacturer.
least significant

service discovery protocol (SDP)

$ sdptool browse A8:6A:6F:04:21:2E


Logical link control and adaptation protocol (L2CAP)
$ l2ping A8:6A:6F:04:21:2E



Bluetooth Wireless Technology Profiles



At a minimum, each Bluetooth profile contains information on the following topics:
  • Dependencies on other profiles
  • Suggested user interface formats.
  • Specific parts of the Bluetooth protocol stack used by the profile. To perform its task, each profile uses particular options and parameters at each layer of the stack and this may include, if appropriate, an outline of the required service record.



Bluetooth Introduction
Bluetooth http://www.bluetooth.org/Building/HowTechnologyWorks/
Bluetooth http://www.dziwior.org/Bluetooth/index.html 
SUSE LINUX Bluetooth  http://www.novell.com/documentation/suse91/suselinux-adminguide/html/ch08s04.html

Bluetooh Testing
BlueTooth要怎麼進測試模式要怎麼搞-3 http://ggyytony0921.blogspot.tw/2011/09/bluetooth-3.html
Bluetooth HCI Data format http://kunyichen.wordpress.com/2006/11/28/bluetooth-hci-data-format/


Upstart

Ubuntu把init換成upstart已經一段時間了...

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.

基於NIH Utility Library來實作. libnih is a small library for C application development containing functions that, despite its name, are not implemented elsewhere in the standard library set.

Starting a Service
# Traditional:
/etc/init.d/myservice start
# Upstart
service myservice start

Stopping a Service
# Traditional: 
/etc/init.d/myservice stop
# Upstart
service myservice stop

Getting a list of Services
# Traditional:
ls /etc/init.d
# Upstart: 
service --status-all


Each job has a life-cycle which is shown in the graph below:


http://upstart.ubuntu.com/cookbook/
https://wiki.ubuntu.com/ReplacementInit
https://help.ubuntu.com/community/UbuntuBootupHowto
http://netsplit.com/2006/08/26/upstart-in-universe/

其他相關project Mac OSX Launchd http://launchd.macosforge.org/trac/
Fedora systemd http://www.freedesktop.org/wiki/Software/systemd/
OpenRC (Gentoo/BSD) http://www.ohloh.net/p/openrc
Sabayon Linux http://en.wikipedia.org/wiki/EINIT

Why systemd? http://0pointer.de/blog/projects/why.html

Sunday, December 13, 2009

新出爐的好物-pitz (issue tracker)

如果你用過ditz,又信大蟒教...
那一定覺得缺了點什麼,沒錯...
可以參考 Ditz versus bugs everywhere分布式缺陷跟踪系统Bug Everywhere,修正并打包版 , 這兩篇的比較
剛好都是跟Bugs Everywhere比...

但是Matt Wilson 太神了..
比著比著就自己寫一套出來啦 pitz

就...本人的開箱經驗(2hr)
功能性還蠻完整的
be 有一個自己的libbe+turbogears的web ui 也是用python的,但不知道為什麼就是慢的離譜
pitz 更神 藉由ipython 讓一個task就是一個object, web 也差不多了,
有互動介面CLI可以使用,也有類似git pitz-xxx 一堆的指令可以用
看名字就知道 仿 ditz 很兇, 以YAML為底,另外搭配了許多現成的專案,
mock, clepy, IPython,PyYAML,sphina,nose,jinja2,Tempita,

不過目前似乎 似乎還不多人用
整體架構相當不錯...推

如果問我為什麼不用trac就好...除了 Distributed 的優點不說...
trac實在太慢了...慢到都不想發issue了...

Tuesday, May 20, 2008

USB 開機

原來設定UUID 很簡單嘛...
有了UUID 隨身碟隨便插,才不會混亂
稍微計一下吧...
下面那篇文章,從debootstrap 整個USB 的開機都寫的很詳細

http://www.debian-administration.org/users/figjam/weblog/3

Monday, November 12, 2007

小白來啦...再見了小黑

自從小黑被聯想併購以後,
就不是很想買小黑...
雖然還是很不錯...

最近eee pc出來以後...
就一直有衝動,要買一台來玩...

恩...小白...應該說小小白...
實在太小了...
滿足我愛小台機的需求...

如果你說螢幕太小,趕快接上一顆外接螢幕,外接鍵盤,外接滑鼠
運算太慢,可以搭配remote來用
硬碟太小,趕快使用sshfs來搭配,簡單又方便,安全又沒顧慮

還有...skype linux版終於可以用webcam了...
在用eee pc的webcam時候後記得先
sudo echo 1 > /proc/acpi/asus/camera
不知道為什麼華碩要預設關起來...
可能為了省電吧...:)

Tuesday, October 23, 2007

令人感動得雙螢幕

之前一直以為是我driver的問題...
自從換了ubuntu之後,真的太讚了...

在一開使設定的時後可能會有一些問題
因為預設的 screen 不夠大,
所以必須在 xorg.conf 中加上


SubSection "Display"
Viewport 0 0
Depth 24
Virtual 2560 1024
EndSubSection

> xrandr --output DVI-0 --right-of DVI-1
> xrandr: screen cannot be larger than 1280x1200
> (desired size 2304x1024)

xrandr --output VGA-0 --mode 1280x1024 --right-of LVDS

把新的畫面接到 右邊