Yet another setupscript for RMIR on Linux

Discussion forum for JP1 software tools currently in use, or being developed, such as IR, KM, RemoteMaster, and other misc apps/tools.

Moderator: Moderators

Post Reply
Barf
Expert
Posts: 1524
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Yet another setupscript for RMIR on Linux

Post by Barf »

Just hacked together this script for downloading and/or installing RMIR/RMDU/RMPB on Linux. Just download, make executable (chmod +x setup.sh) and execute (or double click). It downloads the most recent RMIR distro, unpacks to /usr/local/rmir, calls the contained setup.sh, and set up desktop files and links froim /usr/local/bin. The way I like it :wink: . Alternatively, if given one argument, that argument is assumed to be a ZIP file containing the RemoteMaster-*bin.zip file to be installed.

A wrapper is installed that makes the programs use freedesktop-compatible locations for the property files and the error file.

If anyone finds it useful... 8-)
mathdon
Expert
Posts: 4726
Joined: Tue Jul 22, 2008 8:53 am
Location: Cambridge, UK

Post by mathdon »

The announcement thread for RMIR says
To install RMIR for any OS, first unzip the installation package to a new folder that is not read-only.
There are reasons for this. There are features in RMIR that will not work if the installation folder is read-only. One such feature, for example, is that it will not work with XSight remotes. I do not regard this as a defect and have no intention of fixing it. Bengt (Barf) and I have different philosophies about such things. Feel free to use this script by all means, but be aware that there are some features that will not work.
Graham
Barf
Expert
Posts: 1524
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

I have been maintaining this script for some time now. It is now found here. It is very useful for me at least; whenever Graham issues a new version, just one shell command to install it. It handles both the development versions (using the -d or --development option) and the official release (without the option). It can install anywhere the user requests. If normal user (i.e. not root or sudo), it installs per default in $HOME//share/rmir (which is then writeable). The script creates wrappers called rmir, rmdu, rmpm, per default linked though $HOME/bin. It modifies the desktop icons to uses these wrappers.

There are also a number of other options. This is what the --help option says:

Code: Select all

$ ./download-install.sh --help
Usage: ./download-install.sh [OPTIONS] [zip-file]

Installs RMIR, RMDU, and RMPB in the system, compatible with the
Freedesktop standard (https://www.freedesktop.org).
If a zip-file is not given as argument, it is downloaded from
https://sourceforge.net/projects/controlremote/files/latest/download.

Options:
    -d, --development                 Try to download from the development folder instead of "latest".
    -?, -h, --help                    Display this help and exit.
    -j, --java command-for-java       Command to invoke Java, default "java".
    -s, --scale scale-factor          scale factor for the GUI, default 1. Not supported by all JVMs.
    -H, --rmhome RM-install-dir       Directory in which to install, default /home/bengt/share/rmir.
    -l, --link directory-for-links    Directory in which to create start links, default /home/bengt/bin.
    -u, --uninstall                   Undo previous installation.
    -w, --writeable-install           Write config and logs in installation directory.

This script should be run with the privileges necessary for writing
to the locations selected.
(where, of course, "/home/bengt" is replaced by the current user's home directory.)

Again, this is not suppored or condoned by Graham. It is intended for Linux user who are not afraid of the command line. The script program is public domain.

Possibly somone finds it useful. :wink:
Lurker
Posts: 130
Joined: Sun Apr 11, 2004 10:10 am

Post by Lurker »

To use a USB serial interface with RMIR, you need to be a member of the
dialout group. Currently you are not a member. This script can add you
to that group but you will need to give your sudo password. Do you want
it to add you to that group?

Please answer Y or N. > Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
Please answer Y or N. > Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
Please answer Y or N. > Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
Please answer Y or N. > Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
Please answer Y or N. > Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
Please answer Y or N. > Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
Please answer Y or N. > Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
Please answer Y or N. > Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
Barf
Expert
Posts: 1524
Joined: Fri Oct 24, 2008 1:54 pm
Location: Munich, Germany
Contact:

Post by Barf »

Lurker, thank you for the problem report (although it was somewhat hard to understand at first :wink: ).

The problem is that I invoked RMIR's setup.sh, which is not written to be invoked without an attached terminal; as you see, it loops. I have rewritten my script not to use that script, just download it again.
Lurker
Posts: 130
Joined: Sun Apr 11, 2004 10:10 am

Post by Lurker »

Barf wrote:Lurker, thank you for the problem report (although it was somewhat hard to understand at first :wink: ).

The problem is that I invoked RMIR's setup.sh, which is not written to be invoked without an attached terminal; as you see, it loops. I have rewritten my script not to use that script, just download it again.
Thanks for the quick fix. Sorry I did not explain, I was having trouble pasting the errors and it sent before I was ready.
Post Reply