Archive for December, 2010

December 27, 2010

Install latest kernel from experimental repo to sid

To install kernel from experimental repo in Debian Sid, following:

– Add experimental repo by add line:

deb http://ftp.debian.org/debian experimental main

to file:

/etc/apt/sources.list

check it:

  # grep experimental /etc/apt/sources.list

  deb http://ftp.debian.org/debian experimental main

then make file “/etc/apt/preferences.d/experimental” such as:

# cat /etc/apt/preferences.d/experimental
Package: linux-base
Pin: release a=experimental
Pin-Priority: 800

– Finally, update system and install kernel

# apt-get update
# apt-get install linux-image-2.6.37
According to http://nerdbynature.de/s9y/?202
December 26, 2010

Start changing myself?

Today, I had just finished read the book “Why procrastinate?”. I believe it’s a good book. And I wonder I did as many action in this book without analyzing them. And now, I understand more about them. Will I start doing my work?

December 26, 2010

RESOVLE BUGS

– Bug 1: cannot change brightness of monitor using Function Key and cannot re-enable touch-pad:

modify file: “/etc/default/grub” using root:

sudo gedit /etc/default/grub

edit options of GRUB_CMDLINE_LINUX_DEFAULT as:

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi_osi="Linux"  i8042.nomux"

explain:

#acpi_osi="Linux" :to fix brighness button
#i8042.nomux : to fix re-enable touchpad

– Bug 2: can not read data-dvd-cd, instead of that, using cdrom as blank cd:

To fix it you can set in “/etc/ fstab”:

instead of: 
   /dev/scd0 /media/cdrom0  udf, iso9660 user, noauto, exec, utf8 0 0
by this:
   /dev/scd0  /media/cdrom0 auto user, noauto, exec, utf8 0 0
December 26, 2010

Listen to microphone over the speakers using pulseaudio

By default, We cannot hear any sound of microphone over speaker on Debian or Ubuntu OS. So, we cannot sing karaoke. After “google” its, I’ve found a solution at “http://ubuntuforums.org/showthread.php?p=8672035”.
Using this command to route the mic input through output:
pactl load-module module-loopback latency_msec=1

To turn it off:

first find the module number
it gives it to you when you run the first command, or use this to find it:
pacmd list-modules
then to unload it use this with your module number:
pactl unload-module 27

Additional:

To fix the problem permanently, you need to load the modules when Pulseaudio starts. To do this, you need to add a line to the /etc/pulse/default.pa file with the following commands:

sudo gedit /etc/pulse/default.pa

Scroll down to the bottom of the file and add this line:

load-module module-loopback

Now the modules will load automatically and your line-in audio will always be available.

December 26, 2010

Install the package with wrong architecture

* Problem: you are running Ubuntu 64 bit, and the software package you want to install is  32 bit.
Gdebi-gtk will give you the following error message:
Error: Wrong architecture ‘i386’

* Solution: install the package from the command line with the –force-architecture option:
sudo dpkg -i –force-architecture NameOfPackage.deb
For example:
sudo dpkg -i –force-architecture skype-debian_2.0.0.72-1_i386.deb

December 26, 2010

Find and Auto install all dependencies package need to compile the source

There are two cases:

1. If the package has been locate at repo, and we need to manual re-compile or compile new version of its, simple, type:

sudo apt-get build-dep package_name

2. For almost cases, using “auto-apt” to auto find all dependencies and install them. Follow:

sudo apt-get install auto-apt
sudo auto-apt update
sudo auto-apt updatedb && sudo auto-apt update-local
auto-apt run ./configure