Wednesday, August 09, 2006

Linux-firefox and Java

In order to have Java support with the linux-firefox applications:

# cd /usr/ports/java/linux-sun-jdk15/

Fetch the JDK as mentionned in the result of a "make install" execution.

Copy the JDK to the /usr/ports/distfiles

# make install

# ln -s /usr/local/linux-sun-jdk1.5.0/jre/plugin/i386/ns7/libjavaplugin_oji.so /usr/local/lib/linux-firefox/plugins/

And now it should work. Just check that the Java plugin is enabled by typing "about:plugins" in the address bar of Firefox.


technorati tags:, , , ,

Monday, July 24, 2006

My profile on LinkedIn

If you are interested by knowing how I am, you can have a look at my profile at LinkedIn.

Friday, July 21, 2006

Playing with screen

To create a new session:

$ screen

To retrieve a session (when there is only one running):

$ screen -r -d

To retrieve the list of existing sessions:

$ screen -ls

To retrieve a session (when many are running):

$ screen -r -d <name of the session>

To clear dead sessions:

$ screen -wipe

To detach a session:

<CTRL-A> D


technorati tags:, , , , ,

Updating a FreeBSD 6.1 machine

To rebuild the world and install it on a running FreeBSD 6.1  machine:
<add a KERNCONF=YOUR_KERNEL_HERE entry in your /etc/make.conf file>
# make buildworld
# make kernel
# shutdown -r now
<reboot in single user mode>
# mergemaster -p
#make installworld
# make delete-old
# mergemaster
# shutdown -r now

Wednesday, July 19, 2006

Flash support in Firefox under FreeBSD

To have flash supported in Firefox under FreeBSD, the following tasks have to be done:

  • install www/linuxpluginwrapper (portinstall linuxpluginwrapper)
  • install www/linux-flashplugin7 (portinstall linux-flashplugin7)
  • apply the rtld patch:
  • rebuild rtld-elf
    • cd /usr/src/libexec/rtld-elf
    • make clean cleandir
    • make clean cleandir (yes, twice!)
    • make obj
    • make depend
    • make
    • make install
And now it should work!

technorati tags:, , , , ,

Mapping unsupported keys with xmodmap

Here is the plan:

  • bind the currently unassigned keycodes to unused keysyms (e.g. F13, F14, ...)
  • use xbindkeys or khotkeys (KDE) to execute commands (scripts, DCOP, ...) when those keys are pressed
To find the keycodes of the unsupported keys, use the following command:
xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\).* (.*, \(.*\)).*$/\1 \2/p'

Use your favorite text editor (vim, emacs, kate, nano, whatever) and put the corresponding lines in a file named .Xmodmap (note the dot and the capital X) under your home directory, like this:

keycode 160 = F13
keycode 174 = F14
keycode 176 = F15
...

For more info, have a look at /dev/loki: Mapping unsupported keys with xmodmap

technorati tags:, , , ,