Monthly Archives: November 2013

Enable vertical/edge scroll in (some) linux (distro)

I face problem on some distros, esp debian and ubuntu, that the vertical scroll (edge scroll) does not work. There is a hack for this problem, although I believe this kind of repetitive (across releases) issues should be fixed upstream. Anyway, the reason I’m adding a log here is because I am very forgetful and having an online copy helps.

As root (or sudo) excute the following:

sudo modprobe -r psmouse

sudo modprobe psmouse proto=imps

If the vertical scrolling now works (mostly it will), the next step would be to make it permanent. Yes, the above fix works only till the next reboot, unless we make it permanent as follows. We need to create a file in ‘/etc/modprobe.d/’. The file name can be anything but it seems the filename has to end with ‘.conf’ extension. I named it ‘edge-scroll-fix.conf’. We then need to add the following line in that file.

options psmouse proto=imps

Now, even when we reboot, the vertical scrolling works :-)

Advertisements

Add google search to firefox on Linux Mint

Linux mint does not offer google search as option under search engines in firefox. I tried the method given in the . But we don’t get ‘Add Google’ option. This could be intentional or just a bug.

All these search engines are in the form of xml files placed (usually) under ‘searchplugins’ directory in ‘/usr/lib/firefox’. The actual path to ‘searchplugins’ directory may vary a bit. On Slackware it is under ‘/usr/lib64/firefox-/’.

I thought of copying the ‘google.xml’ from Slackware to Linux Mint. But then to which directory? There are so many directories containing ‘searchplugins’. There is one under /usr/lib/firefox/ which points to /usr/lib/firefox-addons, one in /usr/share/linuxmint/common/artwork/firefox/searchplugins … and then there are subdirectories under ‘searchplugins’ for each locale.

I tried to put google.xml in each of these directories (including locale) and/or removing yahoo.xml to check which one gives desired result. Uff…that was a lot of trial and error.. 🙂 But I finally found the correct directory which is ‘/usr/lib/firefox/distribution/searchplugins/locale/en-US/’.

Now, I have google as a search option under search engines. I don’t know if my settings will be overrriden when there will be an update to firefox. In that case placing google.xml under .mozilla/firefox/searchplugins (by creating ‘searchplugins’ directory ofcourse) will help? Will have to see.

Note: I understand Linux Mint’s reason for including yahoo as default search provider and not having google. But a bug is a bug (‘Add Google’ option not being available). If it is intentional then it is wrong!

SLiM login manager on Slackware

Today I installed SLiM and have switched to it completely.

Following are the two things I did.
1. I changed the ‘sessions’ line in the /etc/slim.conf file as follows:
Xfce4,KDE4,Fluxbox,Blackbox

The names should match exactly like the case entries given below.

2. I also changed my ~/.xinitrc file to the following. It is taken from archlinux wiki.

# The following is taken from archwiki.
# Source: https://wiki.archlinux.org/index.php/SLiM
# which inturn is taken from the following
# Source: http://svn.berlios.de/svnroot/repos/slim/trunk/xinitrc.sample

DEFAULT_SESSION=startxfce4

case $1 in
KDE4)
exec ck-launch-session startkde
;;
Fluxbox)
exec ck-launch-session startfluxbox
;;
Blackbox)
exec ck-launch-session blackbox
;;
*)
exec ck-launch-session $DEFAULT_SESSION
;;
esac

It is said SLiM 1.3.3 onwards is ConsoleKit ready. But I run 1.3.2 on my Slackbox. So have added ‘ck-launch-session’ to ‘exec’ lines. If I’m wrong, hopefully someone would correct me.

It also tried to change default theme to ‘slackware-black’ theme. The change itself works but I’m not able to choose sessions with F1. Its not that with black background the options are not visible. I tried to press F1 couple of times and the login. It still logs into default session. Have to check later.

No audio in amarok 2.5.x (KDE 4.8.x) while audio works in other media players

I’ve a full install of Slackware, now upgraded to -current 🙂 I have this habit of hopping between DEs/WMs. Today I was working in KDE and wanted to listen to some music. But when I tried amarok there was no sound. I could see the volume was max. I tried to check if sound is working under ‘Playback’ settings. If I ‘test’ the playback it works fine. More irritating was that all other players installed were able to play music.

The backend was set default to Gstreamer. Since gstreamer does not come with default Slackware installs I changed the backend first to Xine and then to MPlayer. Logged out and logged back in. No luck.

Then, as is the good practice, I searched online to find that it was indeed an issue with backend. See here in this kde forum thread. The lady who seems to be associated with the amarok project says only supported backends now are phonon-backend-gstreamer and phonon-backend-vlc!

I have not installed VLC. VLC has always worked for me. But this time I wanted to try gstreamer (in Slackware I mean). So, I grabbed gst-ffmpeg, gst-plugins-bad and gst-plugins-ugly from slackbuilds.org. Created SBo packages and installed. Changed amarok’s backend to gstreamer. Logged out and logged in. Now, amarok works normal. 🙂

My problem is solved. But how come so many people have problem with such issue and find their answers in forums or irc channels. Hasn’t amarok made it clear to all? Don’t packagers know? Slackware does not come with Gstreamer (because it is available in slackbuilds.org). If Xine and Mplayer backends are not supported by amarok, what is the use of packaging amarok which cannot have sound? Huh…

No icons in Thunar under Fluxbox but OK under XFCE

I have both Xfce and Fluxbox installed. I am dabbling with Fluxbox now. When I lauched Thunar I realised I don’t have any icons for files and directories. I switched back to Xfce and found it was there. On searching LQ I found two solutions:

1. Put xfce-mcs-manager & in Fluxbox’s startup file and use xfce-settings-show.

I’m not sure for which version of Slackware was this, but on my 1337 release it did not work. That’s because I don’t have either xfce-mcs-manager or xfce-settings-show.

2. Put the following in the ~/.gtkrc file

gtk-icon-theme-name="Tango"

I did so but still it did not work. Was reading related search results and found in one thread that the actual file was ~/.gtkrc-2.0! I changed file name from .gtkrc to .gtkrc-2.0 and voila it works! 🙂