Thursday, February 24, 2011

Thinkpad x60s กับ Debian Squeeze

ปกติจะใช้ ubuntu สำหรับ notebook แต่ในใจลึกๆแล้วอยากใช้ debian มากกว่า พอดีออกรุ่นใหม่เลยลองซะเลย

ผมลองติดตั้งทั้งสองตัวแล้ว ubuntu ใช้เวลาในการติดตั้งไม่มาก สีสันสวยงาม หน้าตาดีว่างั้นเหอะ  ลงเสร็จใช้งานได้ทันที

พอมาเป็น debian ขั้นตอนในการติดตั้งจะเพิ่มขึ้นอีกนิดหน่อย แต่ก็ไม่ใช่สาระสำคัญอะไร ระหว่างติดตั้งมันพบว่าไดร์เวอร์ของ wireless ไม่ได้รวมมาด้วยเนื่องจากมีบางตัวอยู่ใน non-free ข้ามไปก่อนแล้วค่อยติดตั้งทีหลังก็ได้ตามนี้  http://wiki.debian.org/iwlwifi#Switchingfromipw3945toiwl3945

สิ่งที่ต้องทำเหมือนกันทั้งสองตัวคือ แก้ไขให้ใช้งาน scroll จาก Trackpoint ซึ่งมีคนเจอมาเยอะเหมือนกัน http://psung.blogspot.com/2010/04/thinkpad-trackpoint-scrolling-in-ubuntu.html?spref=bl

ขอบันทึกไว้เผื่อลิ้งค์หาย


Section "InputClass"
    Identifier "Trackpoint Wheel Emulation"
    MatchProduct "TrackPoint"
    MatchDevicePath "/dev/input/event*"
    Driver "evdev"
    Option "EmulateWheel" "true"
    Option "EmulateWheelButton" "2"
    Option "Emulate3Buttons" "false"
    Option "XAxisMapping" "6 7"
    Option "YAxisMapping" "4 5"
EndSection

จะพยายามลองใช้โน่นนั่นนี่ไปเรื่อยๆ แล้วค่อยว่ากันอีกที

 

 

Wednesday, February 23, 2011

I Still Know What You Learned Last Summer: Thinkpad TrackPoint Scrolling in Ubuntu Lucid/10.0...

I Still Know What You Learned Last Summer: Thinkpad TrackPoint Scrolling in Ubuntu Lucid/10.0...: "Update: for (easier) instructions for Ubuntu Maverick/10.10 and later, click here. Another Ubuntu release, another set of X.org shakeups. So..."

Wednesday, February 16, 2011

How to block any MAC address on 3Com 4200G

วิธีนี้เป็นเพียงวิธีการเบื้องต้นเท่าที่พอจะทำได้โดยไม่ต้องเพิ่มเติมอุปกรณ์อะไรมาก แค่ออกแรงนิดหน่อย  ในกรณีที่มีสวิตช์ที่มีฟีเจอร์นี้  บน Cisco เรียกอะไรไม่รู้ แต่บน 3Com 4200G มันคือ Blackhole

Blackhole entries - A blackhole entry configures packets with a specified MAC destination address to be discarded. Blackhole entries are useful as a security measure or in special circumstances where a specific destination address must be discarded. Blackhole entries are treated like permanent entries in the event of a switch reset or power off/on cycle. Blackhole entries are never aged out of the database.

ก็เข้าไปในโหมด system-view แล้วก็สั่งด้วยคอมมานด์ ประมาณนี้

[4200G]mac-address blackhole xxxx-xxxx-xxxx interface ethernet 1/0/24 vlan 1