Update September 13th 2009: Easier to use install script available.

I have been asked for a patch for installing Adobe Flash Media Server 3.5 on Ubuntu. Here it is, with instructions for Ubuntu 8.04.:

# install dependencies for Ubuntu 8.04
# please let me know what is needed on other versions of Ubuntu
sudo apt-get install libnspr4-0d libstdc++6

Now download Flash Media Server 3.5 and copy FlashMediaServer3.5.tar.gz over to your Ubuntu box. Don’t untar the .tar.gz file on windows and copy the files over to linux – this way file permissions will be wrong and the patch won’t work. Then

tar xfz FlashMediaServer3.5.tar.gz
cd FMS_3_5_0_r405
wget http://www.bluetwanger.de/~mbertheau/flash-media-server-3.5-ubuntu.patch
patch -p1 < flash-media-server-3.5-ubuntu.patch
sudo ./installFMS

If you get

./installFMS: line 172: ./fmsini: No such file or directory

ERROR: You are running the Adobe Flash Media Server installer on the wrong platform.

then execute the following:

sudo apt-get install ia32-libs

That will install 32bit support on your 64bit Ubuntu.

If you opted to install Apache and it doesn't work, execute the following if you are on 32 bit:

sudo ln -s libexpat.so.1 /usr/lib/libexpat.so.0

If you are on 64 bit, execute this instead:

sudo ln -s libexpat.so.1 /usr/lib32/libexpat.so.0

You can later uninstall the server:

cd /opt/adobe/fms
sudo ./uninstallFMS

Update September 13th 2009: Easier to use install script available.

Update January 31st 2009: Patch for Adobe Flash Media Server 3.5 on ubuntu available.

I have been asked for a patch for installing Adobe Flash Media Server 3 on Ubuntu. Here it is:

# install dependencies
sudo apt-get install libnspr4-dev

Now download Flash Media Server 3, unzip the file and copy FlashMediaServer3.tar.gz over to your Ubuntu box. Don’t untar the .tar.gz file on windows and copy the files over to linux – this way file permissions will be wrong and the patch won’t work. Then

tar xfz FlashMediaServer3.tar.gz
cd FMS_3_0_0_r1157
wget http://www.bluetwanger.de/~mbertheau/flash-media-server-3-ubuntu.patch
patch -p1 < flash-media-server-3-ubuntu.patch
sudo ./installFMS

You can later uninstall the server:

cd /opt/adobe/fms
sudo ./uninstallFMS

Ok, as I promised, here is how to map CapsLock to Escape in Xorg. This is especially useful for folks who use vim, as CapsLock in on the home row, and Escape is not. Actually escape is that far away that you have to have really long fingers in order to hit escape without moving your hand from its usual position.

Paths and line numbers are given for Ubuntu 7.04 Feisty Fawn, so if you’re on another distribution or another version of Ubuntu, your mileage may vary.

What we’ll do is add an XkbOption to the keyboard configuration files. At first, add the following at the end of /usr/share/X11/xkb/symbols/capslock:

partial hidden modifier_keys
xkb_symbols "escape" {
    key <CAPS> {        [       Escape  ]       };
    key <ESC>  {        [       None    ]       };
};

This defines an option that maps the CAPS and ESC key codes to the Escape and None symbols respectively. If you don’t want to disable the original Escape key, leave the corresponding line out. Now let’s give it an option name: insert the following line to /usr/share/X11/xkb/rules/base, somewhere around line 810, where the other capslock lines are:

caps:escape          =       +capslock(escape)

Now let’s add that option to the keyboard configuration in /etc/X11/xorg.conf: Find the InputDevice section for the keyboard and add the following line to the section:

        Option          "XkbOptions"    "caps:escape"

Now restart X by logging out and typing Ctrl-Alt-Backspace at the login prompt. That’s it. CapsLock is gone and on its place Escape stood in.

I wasn’t successful in convincing the XKeyboardConfig maintainer Sergej Udaltsov to accept a patch for this, but I attempted only once yet :)

If it wasn’t for Vimperator, I would still be using Epiphany instead of Firefox. Compare how you create a custom search engine in both:

Epiphany

  1. Create a bookmark of a result page of the search engine (Ctrl-D)
  2. Replace the search term with %s in the URL

Firefox

  1. Write up an XML file according to the OpenSearch spec
  2. Figure out how to load that file into Firefox
  3. Figure out how to get that XML file right – Firefox just says that it doesn’t support this search engine

End of rant.

Next Page »