Other Nokia N900 GNU mobile phone tips

I've compiled GNU Emacs 23.1.1 for use on the Nokia N900 GNU mobile phone.

There are two ways to install it:

  1. Advanced, for a GNU/Linux expert, enabling you to put the GNU Emacs files anywhere.
  2. Basic, from an installable package.

Advanced

  1. Download GNU Emacs 23.1.1 for the Nokia N900 GNU mobile phone:
     wget -c http://sumoudou.org/n900/emacs_23.1_shiroikuma_2009-11-30-030000
     _fremantle_armel.tar.xz
  1. cd anywhere you want to place the GNU Emacs files, it will create an emacs subdirectory there when extracted.
  2. Extract:
    $ tar xvf emacs_23.1_shiroikuma_2009-11-30-030000_fremantle_armel.tar.xz
    If you need XZ Utils to decompress the xz archive, I've compiled these also.
    If you need GNU Tar that supports XZ decompression, to work with the above XZ Utils, I've compiled it also.
  3. Install the needed dependencies:
    # apt-get install libungif4g libxpm4 librsvg2-2
  4. If you wish to create a hildon menu for Emacs:
     # cd /usr/share/applications/hildon/<br>
     # wget -c http://sumoudou.org/n900/emacs.desktop<br>
     # cd /usr/share/icons/hicolor/scalable/apps/<br>
     # wget -c http://sumoudou.org/n900/emacs22.png

Basic

  1. Download the installation package.
  2. If you don't have the `rootsh' application installed, open Application Manager and install `rootsh'.
  3. Launch the X-terminal application.
  4. In X-terminal, gain root priviledges:
    $ sudo gainroot
  5. As root in the X-terminal, install the downloaded file. Assuming you saved it to your Documents directory, it is in /home/user/MyDocs/
    # cd /home/user/MyDocs
    # dpkg -i emacs_23.1.1_armel.deb
    It will complain about missing dependencies, this is the expected behavior. IT WILL THROW ERRORS ABOUT PACKAGES NOT INSTALLED, this is EXPECTED, they will be installed in the next step.
  6. Install dependencies, to fix the install errors. For this step you need an internet connection on the N900, since it needs to download the dependencies.
    # apt-get -f install
  7. Install the Droid TTF font, it'll give you good display for GNU Emacs, the default N900 font is not good. For this step you also need to be connected to the internet.
    # apt-get install ttf-droid
  8. Remap the N900 keyboard, this is necessary, as otherwise you will not be able to use GNU Emacs, especially without an Escape key.
  9. Fix the GNU Emacs maximization on Nokia N900.

When installing the basic way, the package is fully optified, therefore it will not take up any space in your device's root, it'll install fully to /opt which is on a different partition. You can however increase the space on the partition where /opt resides even further.

You can now use GNU Emacs on the Nokia N900 GNU mobile phone. It enables you to do incredible things, for instance gives you full Chinese/Japanese/Korean (CJK) input capabilities on the N900.


.