Bitcoin donations are welcome:14snQXeLcnJtWUduKZ6rC2MHdPYrYar1Tw

Friday, July 23, 2010

FIX: Can't click flash videos in firefox.

This bug has been fixed in Firefox v. 3.6.7. Upgrade to this version.

If you are running i.e. debian squeeze as I am, simply add swiftfox(google it) to your apt sources & install it.

Tuesday, July 20, 2010

Enable Touchpad Tapping & Scrolling in Debian

Just execute the following lines:
synclient VertEdgeScroll=1
synclient HorizEdgeScroll=1
synclient TapButton1=1

If you are running fluxbox, you can add them to your startup file located in ~/.fluxbox/startup


Saturday, July 3, 2010

Java in Debian Squeeze not appearing

Had lots of problems with Java not "appearing" or seems to not be loading (though it does) in Debian. Using the sun java6 plugin.

Here's my howto for Debian Squeeze + Java + (Swiftfox/iceweasel/google chrome)

1.) Install sun-java6-plugin (apt-get install sun-java6-plugin)
2.) Make sure your browser has loaded the java6 plugin. In the browser of your choice, type: about:config and check that java6 is loaded. If it's not, google :P Shouldn't be hard to find. If not, I can write a howto on it.
3.) Go here and test your java. If you get an error, click the box, and read the first lines. Otherwise, you're done.
4.) If the error looks like this: Network is unreachable
then edit the following file: /etc/sysctl.d/bindv6only.conf, and make sure net.ipv6.bindv6only is set to "0". Save and quit.
5.) Restart procps like this (as root): invoke-rc.d procps restart
6.) You're done, and it should be working.

Thursday, July 1, 2010

Bluetooth and Thunar

This is a copy paste from a forum. Storing it here in case it should disappear, and this is the "golden ticket" to bluetooth browing in fluxbox :) Remember to change dolphin to browser of choice. For example thunar.



first, thanks a lot for the useful pointer on how to use something different than nautilus for blueman's "Browse Device".

It works well, but nevertheless, there are a few shortcomings:
  • BT channel 10 is only correct for some devices (mainly Nokia S40, it seems).
  • There is no explicit removal of the obex mount and its mount point.
  • Only one device can be browsed at once.
The following script gets rid of these issues. I have tested it successfully with more than one devices (2, actually) on Debian Squeeze with KDE4 and dolphin. Every other file manager will work just as well, you only need to change the dolphin invocation appropriately.

The first click on "Browse Device" will setup the obexfs mount point (as .obex- in your home directory) and open dolphin with it. The second click on "Browse Device" will disable the obex mount and also remove the mount point again. Blueman's connection graph will help to indicate the state you are currently in.

You will (at least) need the packages blueman, obexfs, fuse-utils from your favorite distribution. You may need a new session start to make sure you are a member of the fuse group. Additionally, the script (as it is) expects a writable logfile, which you may create as root with:
Code: Select all
touch /var/log/blueman-browse-helper.log chmod a+rw /var/log/blueman-browse-helper.log
Now, enter
Code: Select all
blueman-browse-helper %d
in the field Command to start an obex ftp browser in the Advanced section of Local Services... (after right-click on tray icon) and save the following script accordingly as (e.g.) /usr/local/bin/blueman-browse-helper (as root, of course, and make it executable for users).

Now, finally, here comes the script:

#!/bin/bash log=/var/log/blueman-browse-helper.log mp=~/.obex-"$1" channel=`sdptool search --bdaddr "$1" FTP | awk '/Channel:/ {print $2}'` if [ -e "$mp" ]; then         echo "`date`: cleaning up mount point '$mp'"                             >> $log         fusermount -u -z "$mp"                                                  &>> $log         rmdir "$mp"                                                             &>> $log else         echo "`date`: opening FTP channel '$channel' for mount point '$mp'"      >> $log         mkdir "$mp"                                                             &>> $log         obexfs -b "$1" -B $channel "$mp"                                        &>> $log         dolphin "$mp"                                                           &>> $log fi echo "`date`: `basename $0` finished for mount point '$mp'"                      >> $log

Have fun,