Wednesday, August 20, 2008

How to install iwlwifi Intel Prowireless 3945

1. Install Firmware
# aptitude install firmware-iwlwifi
2. Loading the iwl3945
# modprobe iwl3945
3. Restart

ต้นฉบับ
http://wiki.debian.org/WiFi
http://wiki.debian.org/iwlwifi

Saturday, August 16, 2008

How to install ntfs-3g

How to install ntfs-3g เพื่อให้ใช้งานพาร์ทิชั่นของวินโดว์ได้
1. ทำการ update ข้อมูลของ package ใน synaptics ให้ใหม่ล่าสุดก่อน
# apt-get update
2. ติดตั้งโปรแกรม ntfs-3g เพื่อให้อ่านพาร์ติชั่น NTFS
# apt-get install ntfs-3g
ตอบ Y
3. upgrade fuse-module เพื่อประโยชน์จาก NTFS-3G ได้อย่างเต็มที่
# apt-get install fuse-source module-assistant
# module-assistant auto-install fuse
# shutdown -r now // ทำการ restart debian
4. ดูรายการพาร์ติชั่นของเครื่อง
# fdisk -l
หรือถ้าต้องการแสดงเฉพาะของพาร์ทิชั่นที่ต้องการจะใช้คำสั่งดังนี้
# fdisk -l | grep
5. สร้างไดเร็คทอรี่สำหรับ mount ฮาร์ดดิสก์
# mkdir /media/windows
6. สั่ง Mount ใน Command Line ในกรณีต้องการ Mount บางครั้ง โดยการ
สำหรับ NTFS
# mount -t ntfs-3g /dev/sda1 /media/windows -o umask=0,nls=th_TH.utf8
7. หากต้องการให้ Mount อัตโนมัติทุกครั้งให้ทำการแก้ไขไฟล์ fstab โดย
# gedit /etc/fstab
ให้ใส่คำสั่งเพิ่มลงไป

สำหรับ NTFS:
/dev/sda1 /media/windows ntfs-3g umask=0,nls=th_TH.utf8 0 0

8. save และทำการ restart.


หากเปิด /media/windows แล้วเป็นไฟล์เปล่า ๆ แสดงว่าคำสั่งผิด แต่หากมีข้อมูลอยู่แสดงว่าถูกต้องแล้ว

การ unmount

#
umount /dev/sda1

ปัญหาและสาเหตุ

1. NTFS: เมื่อทำการ mount ด้วยตัวเอง สามารถ อ่านเขียนได้ แต่ เมื่อ auto-mount กลับอ่านได้เพียงอย่างเดียว
  • รุ่นของ Fuse Module กับ NTFS-3G ไม่สัมพันธ์กัน > ให้ทำการ Upgrade Fuse Module
2. มองไม่เห็นภาษาไทย
  • การถอดรหัสตัวอักษรไม่ถูกต้อง > ให้ทำการกำหนด locale=th_TH.utf8 (NTFS) หรือ iocharset=utf8 (VFAT)
  • รุ่นของ Fuse Module กับ NTFS-3G ไม่สัมพันธ์กัน > ให้ทำการ Upgrade Fuse Module

ต้นฉบับจาก
http://wiki.opentle.org/Ntfs-3g_%E0%B8%AA%E0%B8%B3%E0%B8%AB%E0%B8%A3%E0%B8%B1%E0%B8%9A_LinuxTLE
http://technowizah.com/2006/11/debian-how-to-writing-to-ntfs.html




Sunday, July 13, 2008

How to install NVIDIA Driver for Debian Linux

1. Get into pure console mode ( runlevel3 )

  • Reboot into Recovery Mode or switch down to run level3 or the equivalent
  • Ctrl + Alt + F1
# /etc/init.d/gdm stop
# apt-get update
# apt-get install binutils build-essential


2. Install Kernel Sources

# apt-get install linux-source-2.6.12
or
# apt-get install linux-source-'uname -r' ( -r or -a )
or
# apt-get install linux-source-$(uname -a)

# cd /usr/src

# tar -jxvf linux-source-2.6.12

# ln -s linux-source-2.6.12 linux


ถ้าติดตั้ง linux-source ไม่ได้ในขั้นตอนนี้อาจจะข้ามไปในขั้นตอนต่อไปได้เลย

3. Install Kernel Headers

# apt-get install linux-headers-$(uname -r)


4. Install Nvidia Driver

# wget http://us.download.nvidia.com/XFree86/Linux-x86/100.14.23/ NVIDIA-Linux-X86-100.14.23.pkg1.run

( or download from http://www.nvidia.com )
# cd /usr/src && sh NVIDIA-Linux-x86-100.14.23-pkg1-run

( to launch the Nvidia install script )
  • Accept the license agreement to continue
  • Select No on the first question prompting to download kernel from nVidia
  • Click Ok to compile a new kernel
  • Select No at the prompt to abort now
  • Let the installer finish the build
  • Select Yes to let nVidia-xconfig automatically update your xorg.conf file
  • Click Ok
  • Once the installer has completed, type startx and enjoy you new video hardware enabled Lenny with nVidia driver or
# /etc/init.d/gdm start

You can change your resolution and other advanced video card setting via the nice NVIDIA X Server Settings control applet.
Simply navigate to Application -> System Tools -> NVIDIA X Server Settings


If you haven't, then you simply have to make a few changes to your /etc/X11/xorg.conf file. Here they are. Debian sarge users have to modify /etc/X11/XF86Config-4 instead.

In Section "Modules" comment the dri and GLcore modules:

#Load "dri" #Load "GLcore"

In Section "Device" make sure you use the NVIDIA driver :

Driver "nvidia"

And finally comment the whole Section "DRI"

#Section "DRI"
# Mode 0660

#EndSection

เสร็จแล้วครับ ต้องเอามาเรียบเรียงและรวม ๆ มาเพราะว่า บางที่ก็ใช้ได้ครึ่ง ไม่ได้ครึ่ง ก็เลยต้องเอามาเรียบเรียงในส่วนที่เราทำแล้วใช้งานได้

ต้นฉบับจาก
http://technowizah.com/2006/11/debian-how-to-nvidia-drivers.html
http://www.linuxquestions.org/linux/answers/Applications_GUI_
Multimedia/HOWTO_Installing_nVidia_Grapics_Drivers_on_Debian_Etch