INSTALL for Mirror

by Bill Kendrick
bill@newbreedsoftware.com
http://www.newbreedsoftware.com/

March 22, 2001 - March 23, 2001


Installation
------------

  It is assumed you have X11 libraries and headers, and
  FTLK libraries and headers installed on your workstation.


  Agenda VR3
  ----------
    It is assumed you have a MIPS cross-compiler (eg, "mipsel-linux-g++")
    installed, and have X11 and FLTK libraries built for the MIPS.
    It is also assumed you can enable a network connection to your Agenda
    (eg, via PPP) and can "rsync" files to it, and "telnet" into it.

    Note: When you see "ws%" and "vr3%", those are meant to simulate
    shell prompts.  "ws" reminds you that you must run the command on
    your workstation.  "vr3" are commands you run on your Agenda.


    1. Compile
    ----------
      Simply build the MIPS version of "mirror."  'Makefile' is currently
      hardcoded to use "/usr/mipsel-linux/include" as an include (-I)
      directory, and "/usr/mipsel-linux/lib" as a library (-L) directory.
      Change these if you need to.

      Just run:

        ws% make mirror.mips

      NOTE: "mirror.mips" is included in this TAR archive, so you can
      skip this step!!!



    2. Upload the binary to your Agenda
    -----------------------------------
      Now, let's copy the program to your Agenda.  Run:

        ws% rsync mirror.mips agenda::vr3/local/bin/mirror

      This will upload it into your "/flash/local/bin/" directory,
      and name the executable simply "mirror" (instead of "mirror.mips").



    3. Add it to your VR menu and LaunchPad
    ---------------------------------------
      You can run the program from a terminal by typing
      "/flash/local/bin/mirror", but that's tedious.

      Instead, let's add it to your programs menu (which appears when
      you tap the "VR" button below your LCD screen).  As a side-effect,
      doing this also adds the program to your LaunchPad.

      Open a terminal on your Agenda (either by running "Terminal" on the
      PDA itself, or telnetting into it from your workstation).

      Run the following commands:

        vr3% cd /home/default/.wmx/
        vr3% cd Applications/
        vr3% ln -s /flash/local/bin/mirror Mirror

      This creates a "Mirror" entry in the "Applications" submenu
      of your VR menu.  (And, as a side-effect, adds a "Mirror" entry
      in your LaunchPad, under the "Applications" category.)

      NOTE: As of this writing, the only way to 'refresh' the VR menu
      is to reboot your system.  You can issue a "reboot" while logged
      in as root.  As for LaunchPad, you should see the change the next
      time you run it.



    4. Give your LaunchPad item an icon
    -----------------------------------
      It is assumed you have a "/flash/local/pixmaps/" directory
      on your Agenda.  If not, please create one.

      First, upload the icon included with Mirror:

        ws% rsync mirror.xpm agenda::vr3/local/pixmaps/

      Now, let's add an icon entry to make LaunchPad use the image.

      You can do this one of two ways:

        1. Log directly into your Agenda and manipulate the text
           file (using "cat >>" or "nvi" or "Editor"...)

        2. Download the file (via rsync) to your workstation,
           edit it locally, and upload it back to your Agenda.

      No matter which way you choose to do it, all we're doing is
      adding this line to the file "/home/default/.wmx/.icons":

        Applications/Mirror;/flash/local/pixmaps/mirror.xpm

      Once this change has been made, run (or quit and re-run) LaunchPad.



  WorkStation
  -----------
    The 'Makefile' includes a "mirror.host" target which simply builds
    "mirror" for your local system (using "g++" and standard includes
    and libraries locations).

    You can use this target to test out changes without needing to upload
    them to the workstation over and over.


  Other Systems
  -------------
    No idea!  If other PDA's use FLTK, please send me some info. to add
    to this document!
