Sound Debugging in ubuntu 7.10

21 10 2007

วันดีคืนดี ใช้ๆ ubuntu ไปแล้วเสียงมันหาย ก้ออย่าเครียด

ให้ รัน คำสั่งนี้ ใน terminal

$: sudo alsamixer

แล้วก็เร่งเสียงเอาตามใจชอบเลยครับ





xorg.conf of gutsy gibbon 7.10

21 10 2007

This is the xorg.conf file as generated from the Live CD.

# xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the xorg.conf manual page.
# (Type "man xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
# sudo dpkg-reconfigure -phigh xserver-xorg

Section “Files”
EndSection

Section “InputDevice”
Identifier “Generic Keyboard”
Driver “kbd”
Option “CoreKeyboard”
Option “XkbRules” “xorg”
Option “XkbModel” “pc105″
Option “XkbLayout” “us”
EndSection

Section “InputDevice”
Identifier “Configured Mouse”
Driver “mouse”
Option “CorePointer”
Option “Device” “/dev/input/mice”
Option “Protocol” “ImPS/2″
Option “ZAxisMapping” “4 5″
Option “Emulate3Buttons” “true”
EndSection

Section “InputDevice”
Identifier “Synaptics Touchpad”
Driver “synaptics”
Option “SendCoreEvents” “true”
Option “Device” “/dev/psaux”
Option “Protocol” “auto-dev”
Option “HorizScrollDelta” “0″
EndSection

Section “InputDevice”
Driver “wacom”
Identifier “stylus”
Option “Device” “/dev/input/wacom”
Option “Type” “stylus”
Option “ForceDevice” “ISDV4″ # Tablet PC ONLY
EndSection

Section “InputDevice”
Driver “wacom”
Identifier “eraser”
Option “Device” “/dev/input/wacom”
Option “Type” “eraser”
Option “ForceDevice” “ISDV4″ # Tablet PC ONLY
EndSection

Section “InputDevice”
Driver “wacom”
Identifier “cursor”
Option “Device” “/dev/input/wacom”
Option “Type” “cursor”
Option “ForceDevice” “ISDV4″ # Tablet PC ONLY
EndSection

Section “Device”
Identifier “ATI Technologies Inc M22 [Mobility Radeon X300]“
Driver “ati”
BusID “PCI:1:0:0″
EndSection

Section “Monitor”
Identifier “Generic Monitor”
Option “DPMS”
EndSection

Section “Screen”
Identifier “Default Screen”
Device “ATI Technologies Inc M22 [Mobility Radeon X300]“
Monitor “Generic Monitor”
DefaultDepth 24
SubSection “Display”
Modes “1400×1050″
EndSubSection
EndSection

Section “ServerLayout”
Identifier “Default Layout”
Screen “Default Screen”
InputDevice “Generic Keyboard”
InputDevice “Configured Mouse”
InputDevice “stylus” “SendCoreEvents”
InputDevice “cursor” “SendCoreEvents”
InputDevice “eraser” “SendCoreEvents”
InputDevice “Synaptics Touchpad”
EndSection





What will you do after install UBUNTU Part II

12 07 2007

โปรแกรมสำคัญ

โปรแกรมประเภทขาดเธอเหมือนขาดใจ พวกนี้ apt-get ได้

  • vim – ที่มากับ edgy เป็น vim-minimal
  • libthai0 – ให้ Firefox ตัดคำ
  • gstreamer0.10-ffmpeg gstreamer0.10-plugins-bad gstreamer0.10-plugins-ugly gstreamer0.10-plugins-bad-multiverse gstreamer0.10-plugins-ugly-multiverse – ให้เล่นฟอร์แมตพิสดารได้ รายละเอียดดูใน Ubuntu Wiki
  • msttcorefonts – ฟอนต์ของวินโดวส์

โปรแกรมสำคัญที่ apt ไม่ได้

Enhancement

โปรแกรมเพิ่มเติมที่ไม่สำคัญมาก แต่ก็ต้องใช้

  • azureus – BitTorrent Client
  • mplayer – Media Player ที่ Sugree เลือกใช้
  • pptp-linux – ไว้ต่อ VPN มาเช็คเมล
  • banshee – ผมชอบ Banshee มากกว่า Rhythmbox แต่บน Edgy นี่แครชเยอะ กลับไปใช้ Rhythmbox ก่อน
  • k3b – Gnome ไม่มีโปรแกรมเขียนซีดีเข้าท่าเล้ย (ต้องลง libk3b2-mp3 ด้วย เอาไว้เขียน audio cd จาก mp3 เพราะว่าใช้ serpentile แล้วมันห่วย)
  • dia – ถึงมันจะไม่สวยอย่างแรง แต่ก็ไม่มีตัวอื่นแล้ว
  • gparted – เหมือน partition magic
  • inkscape
  • nexuiz – เกมยิงแบบ Unreal เอาไว้ลอง 3D (ชื่อมันอ่านไงไม่รุ)
  • eclipse – apt-get ได้ตรงๆ แล้ว (เคยเขียน)
  • rar – สั่ง sudo ln -fs /usr/bin/rar /usr/bin/unrar เพิ่มด้วย
  • beagle

พวก apt-get ไม่ได้

  • Flash 9 Beta – พี่กี้เขียนไว้ที่ howforge ตัวไฟล์อยู่ที่ Adobe Labs – ต้องลง alsa-oss เพิ่มด้วยเพื่อให้มีเสียงใน YouTube
  • Sun Java – อ่าน Ubuntu Wiki ใช้วิธีเดียวกับ Dapper อย่าลืมเลือก Sun JRE เป็น default ด้วย
  • NetBeans – เคยเขียนไว้แล้ว

พวกที่ต้องลง Repository พิเศษ

Tweaks

เพิ่มไอคอนโปรแกรมใช้บ่อย

เอา Evolution กับ Help ออกไป เพิ่ม Terminal, Home, Gaim เข้ามา

เพิ่ม keyboard ภาษาไทย

คลิกขวาบน Panel สั่งเพิ่ม Keyboard Indicator เพิ่มภาษาไทย (TIS-820) และตั้งปุ่มเปลี่ยนเป็น Alt+Shift

เพิ่ม applet System Monitor

แอบโรคจิตนิดๆ ต้องดู CPU Load กับ Network Status เพิ่มได้จาก Panel เช่นกัน

แก้ Vim

Vim ใน Edgy Eft เกิดอาการแปลกๆ ดูใน forum พบว่ามันรันเป็น vi-compatable mode วิธีแก้ก็สร้าง ~/.vimrc ข้างในใส่ตามนี้

set nocompatible # ให้กลับมาใช้โหมด Vim แทน Vi
syntax on # แสดงสี
set tabstop=2 # อันนี้ผมใช้เอง ปกติชอบ tab เล็กๆ

Font

บนลินุกซ์ไม่มีฟอนต์ภาษาไทยสวยๆ ก็อป Tahoma ของวินโดวส์มาลง เอาไปไว้ที่ /usr/share/fonts/truetype/thai/ เท่าที่ทราบยังไม่มีวิธีติดตั้งฟอนต์ผ่าน GUI

Firefox

  • ลง Extension ที่ใช้บ่อยๆ ปกติก็ใช้แค่ Web Developer, Gmail Notifier, Translate Page, DownThemAll
  • ลง Search Plugin ของ Longdo (บอกพี่ Ott ให้ใช้ OpenSearch แล้ว ควรจะเห็นจากเว็บ Longdo เลย)
  • เพิ่ม Bookmarklet ที่ใช้บ่อยๆ ผมใช้ post to del.icio.us กับ Send to Flickr
  • แก้คอนฟิกให้ Search for text when I start typing
  • แก้ให้รับ magnet link ของ Azureus – อ่าน

เท่านี้ก็ได้ระบบที่ usable พอสมควรล่ะ