2008年11月12日 星期三

配置Trackpoint的中鍵滾輪功能

請參考以下文章

配置Trackpoint的中鍵滾輪功能

Scrolling with the Thinkpad's TrackPoint in Ubuntu 8.10 Intrepid



Ubuntu 8.10 Linux on ThinkPad X61 升級筆記


安裝多媒體編碼
sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list

wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update

sudo apt-get install w32codecs

修正firefox按backspace不會回到上一頁
網址列輸入 about:config
Filter打 ‘browser.backspace_action’ 然後將數值改成 0

修正firefox按中間鍵會亂跑
網址列輸入 about:config
Filter打 ‘middlemouse.contentLoadURL’ 然後將數值改成false

用指紋辨識
在 /etc/apt/sources.list加入
deb http://ppa.launchpad.net/jldugger/ubuntu gutsy main restricted universe multiverse
deb-src http://ppa.launchpad.net/jldugger/ubuntu gutsy main restricted universe multiverse
然後執行
apt-get install thinkfinger-tools libpam-thinkfinger
接著編輯/etc/pam.d/common-auth
auth sufficient pam_thinkfinger.so <----加入這行
auth required pam_unix.so try_first_pass nullok_secure
再來編輯 /etc/modules並且加入uinput
接著執行modprobe uinput

最後新增指紋辨識的user:
sudo tf-tool --add-user YourUserName

2008年10月21日 星期二

antivir 病毒碼下載

當你遇到 AntiVir 防毒軟體無法自動下載最新病毒碼自動更新時,可以透過手動更新病毒碼方式更新,更新方法如下:

1.打開IE,在網址列輸入 http://www.avira.com/en/support/vdf_update.html

2.下載IVDF(Unicode)病毒碼,下載位置如下:
http://dl.antivir.de/down/vdf/ivdf_fusebundle_nt_en.zip

3.然後點選右下角 AntiVir 防毒軟體圖示,開啟 AntiVir 主控台管理畫面,選擇功能表單上的 Update >> Manual Update,選擇你剛下載的病毒碼檔案,點選[開啟],就可以手動更新最新病毒碼了。

2008年7月15日 星期二

Trackpoint scroll with Fedora 9

http://vbraun.name/cms/node/7

Trackpoint scroll with Fedora 9

The trackpoint the red knob in the middle of Thinkpad keyboards, its one of the best mouse alternatives I've ever seen. You don't ever have to move your hand away from the home row!

One of the features of the windows driver is that you can hold the middle mouse button down and push the trackpoint up/down to scroll. This is really convenient, and of course I'd like to use it everywhere. But it is not a hardware function, and must be simulated by the driver.

Fortunately, the xorg "mouse" input driver supports this, and I have used this option happily over the years. But with Fedora 9 this suddenly stopped working. Further investigation revealed that the "evdev" driver was taking over, even though another driver is explicitly configured in xorg.conf. Talking about greedy. The correct solution is to disable this autodetection via the "AutoAddDevices" server flag. Here is my working configuration:

Section "ServerFlags" Option "AutoAddDevices" "false" EndSection Section "ServerLayout" Identifier "single head configuration" Screen 0 "Screen0" 0 0 InputDevice "Keyboard" "CoreKeyboard" InputDevice "Trackpoint" "CorePointer" InputDevice "BluetoothMouse" "SendCoreEvents" Option "AIGLX" "true" EndSection Section "InputDevice" Identifier "Keyboard" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" Option "XkbVariant" "dvorak" EndSection Section "InputDevice" Identifier "Trackpoint" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "Emulate3Buttons" "off" Option "EmulateWheel" "on" Option "EmulateWheelTimeOut" "200" Option "EmulateWheelButton" "2" Option "YAxisMapping" "4 5" # Option "XAxisMapping" "6 7" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" Identifier "BluetoothMouse" Driver "evdev" Option "Name" "Logitech MX900 Mouse" Option "Buttons" "1 6 3 4 5 2 7 8 9 10" EndSection Section "Device" Identifier "Videocard0" Driver "intel" Option "DRI" "true" Option "AccelMethod" "EXA" Option "ExaNoComposite" "false" Option "MigrationHeuristic" "greedy" EndSection Section "Screen" Identifier "Screen0" Device "Videocard0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection Section "DRI" Group "video" Mode 0660 EndSection Section "Extensions" Option "Composite" "Enable" EndSection

Note that I only enable middle mouse button + up/down to scroll, not left/right. The left/right option is interpreted as backwards/forwards in firefox, which gets annoying quickly. Now it is possible to reassign the keys in firefox, but in the end I noticed that I never use the left/right scrolling functions anywhere.

http://www.mobile01.com/topicdetail.php?f=240&t=425441&p=1

編輯/etc/X11/Xmodmap. 貼在最後面 keycode 234 = XF86Back keycode 233 = XF86Forward #以上是方向鍵旁邊的上下一頁 #也可改成pgUp,pgDn #keycode 234 = Prior #keycode 233 = Next keycode 159 = XF86Start keycode 162 = XF86AudioPlay keycode 164 = XF86AudioStop keycode 153 = XF86AudioNext keycode 144 = XF86AudioPrev keycode 227 = XF86LaunchF keycode 249 = XF86ZoomIn

http://racklin.blogspot.com/2008/04/ubuntu-804-thinkpad-t61.html

The trackpoint the red knob in the middle of Thinkpad keyboards, its one of the best mouse alternatives I've ever seen. You don't ever have to move your hand away from the home row!

One of the features of the windows driver is that you can hold the middle mouse button down and push the trackpoint up/down to scroll. This is really convenient, and of course I'd like to use it everywhere. But it is not a hardware function, and must be simulated by the driver.

Fortunately, the xorg "mouse" input driver supports this, and I have used this option happily over the years. But with Fedora 9 this suddenly stopped working. Further investigation revealed that the "evdev" driver was taking over, even though another driver is explicitly configured in xorg.conf. Talking about greedy. The correct solution is to disable this autodetection via the "AutoAddDevices" server flag. Here is my working configuration:

Section "ServerFlags" Option "AutoAddDevices" "false" EndSection Section "ServerLayout" Identifier "single head configuration" Screen 0 "Screen0" 0 0 InputDevice "Keyboard" "CoreKeyboard" InputDevice "Trackpoint" "CorePointer" InputDevice "BluetoothMouse" "SendCoreEvents" Option "AIGLX" "true" EndSection Section "InputDevice" Identifier "Keyboard" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" Option "XkbVariant" "dvorak" EndSection Section "InputDevice" Identifier "Trackpoint" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "Emulate3Buttons" "off" Option "EmulateWheel" "on" Option "EmulateWheelTimeOut" "200" Option "EmulateWheelButton" "2" Option "YAxisMapping" "4 5" # Option "XAxisMapping" "6 7" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" Identifier "BluetoothMouse" Driver "evdev" Option "Name" "Logitech MX900 Mouse" Option "Buttons" "1 6 3 4 5 2 7 8 9 10" EndSection Section "Device" Identifier "Videocard0" Driver "intel" Option "DRI" "true" Option "AccelMethod" "EXA" Option "ExaNoComposite" "false" Option "MigrationHeuristic" "greedy" EndSection Section "Screen" Identifier "Screen0" Device "Videocard0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection Section "DRI" Group "video" Mode 0660 EndSection Section "Extensions" Option "Composite" "Enable" EndSection

Note that I only enable middle mouse button + up/down to scroll, not left/right. The left/right option is interpreted as backwards/forwards in firefox, which gets annoying quickly. Now it is possible to reassign the keys in firefox, but in the end I noticed that I never use the left/right scrolling functions anywhere.

http://www.mobile01.com/topicdetail.php?f=240&t=425441&p=1

編輯/etc/X11/Xmodmap. 貼在最後面 keycode 234 = XF86Back keycode 233 = XF86Forward #以上是方向鍵旁邊的上下一頁 #也可改成pgUp,pgDn #keycode 234 = Prior #keycode 233 = Next keycode 159 = XF86Start keycode 162 = XF86AudioPlay keycode 164 = XF86AudioStop keycode 153 = XF86AudioNext keycode 144 = XF86AudioPrev keycode 227 = XF86LaunchF keycode 249 = XF86ZoomIn

http://racklin.blogspot.com/2008/04/ubuntu-804-thinkpad-t61.html

2008年6月25日 星期三

管理 Samba 使用者-- pdbedit

來源網址: http://blog.yam.com/iq180/article/13382018

Samba 2 版以前的帳號管理是用 smbpasswd , 密碼檔為文字檔 , 使用者多的話 , 效率較差 .
Samba 3 版的使用者帳號管理預設是使用後端 tdbsam 資料庫管理機制 .


管理 Samba 使用者是用 pdbedit 這個指令 , 參數满多 ,
下面提列幾個簡單常用的參數 : (詳細使用方式請參考 man pdbedit)


pdbedit -L # 列出使用者列表 .
pdbedit -Lv # 列出詳細的使用者列表 .
pdbedit -Lw # 列出同 smbpasswd 格式的使用者列表 .
pdbedit -a user # 新增 user 這個帳號 .
pdbedit -x user # 刪除 user 這個帳號 .
pdbedit -c "[D]" -u user # 暫時停用 user 這個帳號 .
pdbedit -c "[]" -u user # 恢復使用 user 這個帳號 .