This HowTo provides information on using OmegaT on Linux. It is particularly aimed at users who are new to Linux.
OmegaT does not run satisfactorily on all versions of Java. If Java is already installed on your system (which is probably the case) and you plan to use this existing, system-wide Java installation in conjunction with OmegaT, first check that it is suitable. To do this, open a terminal (also known as a console or command-line window; common programs for this are konsole (KDE) and gnome-terminal (GNOME)), and type:
The system will output details of the Java version already installed at system level.
Oracle (formerly Sun) Java versions: check the system requirements in the OmegaT documentation (readme.txt) for the precise Oracle Java version required (i.e. whether your version of Java is sufficiently recent).
Third-party Java versions: until relatively recently, OmegaT ran only on Oracle/Sun's own Java. OmegaT will now run on the OpenJDK Java implementation supplied with some Linux distributions, but some functions (such as the full set of command-line options) may not be available; a different font set may be supplied; and some glitches have been reported, such as with window display and the segmentation function.
If you are unsure whether your Java version is suitable, you can:
If you establish that the version of Java installed at system level is not compatible with OmegaT and you wish to replace this Java version with the Oracle Java version, check first whether an Oracle package is available for your Linux distribution (SUSE, Ubuntu, etc.). If so, this makes installation much easier.
If you obtain the Oracle version of Java directly from Oracle, installation is likely to be straightforward, but you will have to configure it manually in order to make it the default version at system level. This is not recommended, particularly if you are unfamiliar with Linux.
The third option, i.e. installing an OmegaT version with Java included at local level, is always the "safe" option, and is recommended.
The following versions of OmegaT are available for Linux:
"Standard", "Latest", "/trunk" and "Webstart". The "Latest" version is recommended. (Refer to the "Downloads" page on the OmegaT website for details of the differences.)
Without/with JRE included, i.e. the cross-platform without JRE, e.g. "OmegaT_2.1.7_02_Beta_Without_JRE.zip" and the Linux-specific version with JRE, e.g. "OmegaT_2.1.7_02_Beta_Linux.tar.bz2". Select a version without or with JRE depending upon your Java situation (see above).
As an open-source application, OmegaT has been included by many Linux distributions in their repositories, so you may be able to install it by this route. Note however that:
Note that it is easy to install multiple versions of OmegaT on Linux without conflicts. They will however always access the same user configuration files (unless launched from a different user account).
The Linux version of OmegaT is now supplied with its own installation script, linux-install.sh. This script:
The bash script is a very basic file that can be edited manually with command-line options for launching and configuring OmegaT.
The kaptain script (or "grammar", as kaptain scripts are termed) enables you to select launch and configuration options from a user-friendly GUI. You can for example use it to select the user interface language, assign more memory to OmegaT, or enter a Google Translate password. You can customize the kaptain launch script so that your preferences are the defaults; simply edit the omegat.kaptn file in a text editor. The file is commented to help you. For the kaptain script to work, however, you must first install kaptain. If it is not in your distribution's repository, you can download it from kaptain.sourceforge.net.
Screenshot of the kaptain OmegaT launcher
The installation script provides added convenience, but you can still install OmegaT on Linux manually if you prefer. Simply unpack the archive in the folder of your choice. The launch scripts will not be written to your execution path in this case.
OmegaT does not have to be launched from the command line, but doing so may be useful as it provides debugging information. To launch from the command line, open a terminal window (root permissions are not needed). Navigate to the folder containing the file OmegaT.jar, e.g.:
and confirm with ENTER.
Then enter the launch command itself, and confirm with ENTER. The basic launch command is:
java -jar OmegaT.jar
The command is case-sensitive.
If you are relying on or wish to use a Java installation that is not installed at system level, this will not be sufficient: you must also instruct your system where to find Java. If you have installed a version of OmegaT with JRE supplied, the launch script supplied already contains this path for you. If you have installed an additional version of Java but have not made it the default version at system level, you must include the whole path of the Java binary in the launch command. This will be something like /usr/lib/jvm/java-6-sun-18.104.22.168/jre/bin/java; make a note of where Java is installed during installation so that you can find it again. The command will therefore be (in this case):
/usr/lib/jvm/java-6-sun-22.214.171.124/jre/bin/java -jar OmegaT.jar
In your launch script, do not confuse the path to OmegaT.jar and the path to the java command. The first (with the cd command) is needed if your launch script is not in the same folder as OmegaT.jar. The second is needed if the Java version you wish to use is not the default installation at system level.
As already mentioned, a bash launch script is provided with OmegaT. Once this has been copied or linked to your execution path (done automatically if you use the installation script provided), you can launch OmegaT by hitting Alt+F2, then typing in omegat and conforming with ENTER.
By default, the bash launch script is executable, but your system may change its permissions (e.g. during unpacking of the archive) and you may have to make it executable again.
To make launching OmegaT even more user-friendly, add it to your application launch menu, or place a launch icon for it on your desktop or in your desktop panel. The possibilities are numerous, and the procedures for implementing them no less numerous, owing to the plethora of distributions.
The appearance of fonts in OmegaT on Linux may differ widely, according to:
To remove all traces of OmegaT from your system:
Delete the OmegaT program folder. This can easily be restored again in the future.
Delete the folder /home/<user>/.omegat of any user account from which OmegaT has been launched. This will result in deletion of any user configuration settings that have been made (such as changes to the segmentation rules), and – if the folder is deleted "properly", i.e. not simply moved to trash, cannot be restored.
Delete any launch scripts and remove any custom entries for OmegaT in your desktop.
Uninstalling OmegaT will not remove any OmegaT projects from your system, unless you have placed such projects within the OmegaT program or configuration files folder(s), which is not a good location for them in any case.
Copyright Marc Prior 2010-2012