January 20, 2011

move to blogspot

what the f viettel-adsl is! it ‘s too slow and often drop internet out. With this adsl, running on google is faster than workpress. So, must move to it, let’s go

January 20, 2011

resume from hibernate on arch

After freshly install arch, I cannot resume from hibernate although can resume standby and  hibernate process is success without error in pm-suspend log file.

And today, after read  wiki with so careful and some trying, I found the solution to solve it:

- with Grub2 : must add resume=/dev/disk/by-uuid/<uuid of swap partition> to option in: “/boot/grub/grub.cfg”.

Better, you should add it to: “/etc/default/grub” and then update grub by command: sudo grub-mkconfig -o /boot/grub/grub.cfg’

or add the line:

alias update-grub=’sudo grub-mkconfig -o /boot/grub/grub.cfg’

to .bashrc, then simple run update-grub.

Note: don’t use resume=/dev/sdaX because grub2 disable /dev/sdXY by default, or you can use this option with enable /dev/sdXY in grub.

- Add resume to HOOKS in the file “/etc/mkinitcpio.conf”. Note: resume must be before filesystems and after base, udev.

Example: HOOKS=”base udev autodetect pata scsi sata usbinput resume filesystems”

then, run command:

sudo mkinitcpio -p kernel26

to generate image to boot by grub.

Ok, it’s done.

January 16, 2011

use dolphin to open folder in firefox

When I installed KDE and Firefox this feature actually worked – I downloaded a file, clicked on “open containing folder”, and Dolphin would happily pop with the respective folder open.
However, when I installed a few more apps,  Firefox started calling Gwent or other app to “open the folder”.

Solution:

In the file /usr/share/applications/mimeinfo.cache , find “inode/directory” and make “kde4-dolphin.desktop” on first such as:

inode/directory=kde4-dolphin.desktop;kde4-gwenview.desktop;kde4-kfmclient_dir.desktop;
January 14, 2011

Arch-KDE-network (temp)

I just installed Arch since 3 days ago. Arch is really great for me because it fulfill my requests: always update latest version of package, can install minimal system with the software that I want, and of course, allow full control permission.

beside, i like interface of KDE but most satified about ability control network of gnome, So, I install all of them on arch:

kdebase, networkmanager, network-manager-applet and gnome-keyring.

January 11, 2011

Some ways to add or remove application start up with kde

After some time searching google, I found somewhere applications locates to start up with kde:

1. ~/.kde4/Autostart

or something similars: ~/.kde/Autostart

2. /etc/xdg/autostart/

3. /usr/share/autostart/

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&#8243;.
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

Follow

Get every new post delivered to your Inbox.