Friday, August 14, 2009

Changing the default display manager (GDM / KDM / XDM etc.) in Slackware


To change the Display Manager in Slackware, we have to edit the /etc/rc.d/rc.4 file as root user.

Monday, August 10, 2009

extracting audio from video (.flv) files downloaded from Youtube - the Linux way!


I had downloaded some videos from Youtube and wanted to extract the soundtrack as an .mp3 file or .ogg file.
At first I tried the following command -
$ mplayer -dumpaudio my_file.flv -dumpfile my_file.mp3
Most of the times the audio was extracted perfectly. But some .flv files proved stubborn, and I was left with non-playable mp3s.
I found a solution at LinuxQuestions.org, where a knowledgeable member Ilgar provided the following solution
$ mplayer -quiet my_file.flv -ao pcm:fast:file=my_file.mp3 -vc dummy -vo null -channels 2
after which I was left with my_file.mp3 .
$ file my_file.mp3
revealed that it was a WAV file and not an mp3. It was still playable with mplayer. However when I downloaded it on my Samsung UltraTouch S8300 mobile, I was not able to play it.
I then converted it to .mp3 format using the app - SoundConverter.
Thanks Ilgar

Tuesday, July 28, 2009

Scim error with OpenOffice 3.1


I was getting the following error when I pressed Ctrl + Space in OpenOffice window to initiate scim -

Gtk-WARNING **: /opt/openoffice.org3/program/../basis-link/ure-link/lib/libstdc++.so.6: version `GLIBCXX_3.4.9' not found (required by /usr/lib/gtk-2.0/immodules/im-scim.so)

After a bit of googling I found a solution -


cd /opt/openoffice.org3/basis-link/ure-link/lib

sudo mv libstdc++.so.6 libstdc++.so.6.orig
sudo ln -s /usr/lib/libstdc++.so.6.0.9 libstdc++.so.6

sudo mv libgcc_s.so.1 libgcc_s.so.1.orig
sudo ln -s /usr/lib/libgcc_s.so.1 libgcc_s.so.1




Sunday, June 14, 2009

Got touchpad to scroll

After upgrading to Slackware 12.2, the touchpad on my laptop was not scrolling. After a bit of googling, I found this thread -
http://www.linuxquestions.org/questions/slackware-14/synaptics-touchpad-in-slackware-12.2-on-hp-g60-702809/#post3573157

as suggested in the above link, I changed the line
options psmouse proto=imps

to
options psmouse proto=auto

in /etc/modprobe.d/psmouse

then after reloading the psmouse module, and restarting X, my touchpad was scrolling.

Thursday, April 9, 2009

Getting Right Alt key to work

The right alt key press was eliciting no response on my Ubuntu 8.10 laptop in Gnome. After a bit of Googling, I found the following solution -
System -> Preferences -> Keyboard
Here choose Layouts tab. Then choose Other Options button. Keyboard Layout Options widow pops up. In this click on Alt/Win key behaviour and select -
Alt and Meta are on Alt keys.
This should solve the problem.