2. InstallationThis chapter covers the installation of ecromedos from source and binary packages. You should be able to run ecromedos on any system on which the dependencies listed below are available. 2.1. Obtaining the Latest VersionThe latest version of the software can be obtained from the project's website at http://www.ecromedos.net. You will find a tarball for manual installation and binary packages for selected platforms. 2.2. DependenciesFor proper operation, ecromedos depends on the following third-party software offerings:
2.3. Installation from SourceFirst, double check that you have installed the dependencies listed in section 2.2. Step 1: Unpacking the Tarballecromedos can be installed anywhere in the file system. It is recommended, however, that you place it in /opt. In order to do so, open a shell and become superuser root by typing #> su -Then change your working directory to /opt #> cd /optand unpack the tarball. The following example assumes that the tarball resides in the home directory of system user tobias: #> tar -xvzf /home/tobias/ecromeds-x.y.z.tar.gzStep 2: Adding the Executable to the System PathNow change to /usr/local/bin and create a symbolic link to the main executable: #> cd /usr/local/bin
#> ln -s /opt/ecromedos-x.y.z/bin/ecromedosBy placing this link in the system path, you will be able to call ecromedos by name without having to enter the canonical path to the executable. Step 3: Pre-compiling the Source FilesSince you would typically install ecromedos in a location, to which normal system users don't have write access, you should pre-compile the Python source files to bytecode, so that users can benefit from much-improved application start-up times. To do so, change into the installation directory and issue the following command: #> find . -name "*.py" -exec \
python -c "import py_compile; py_compile.compile('{}')" \;Step 4: Adapting the ConfigurationHaving completed the installation procedure described above, you may now edit the configuration file ecmds.conf, which is located in the subdirectory etc below the installation folder. ecromedos is designed to be relocatable, so in many cases it should just work out of the box. However, the configuration variables holding pointers to third-party software that ecromedos relies on may have to be corrected. In particular, check all variables ending in _bin or _dir. The value of a configuration variable can be reused in arguments to other variables by prefexing the name of the variable to be referenced with a dollar sign. For instance, if base_dir is set to /opt/ecromedos-x.y.z/, then you can set lib_dir to /opt/ecromedos-x.y.z/lib by simply writing lib_dir = $base_dir/lib. ecromedos 2 introduces the automatic variable $install_dir, which is set implicitely and points to the installation directory. 2.4. Installing Binary PackagesPackages for Debian, Ubuntu and OpenSUSE are provided. Since ecromedos is written in Python, and thus does not need to be compiled or linked against system libraries, it should run on any version of these distros, as long as the dependencies listed in section 2.2 are available. 2.4.1. Debian/GNU and Ubuntu LinuxIf you are running Debian/GNU or Ubuntu Linux, you can install ecromedos via apt. Just insert the following entry into /etc/apt/sources.list: deb http://ecromedos.net/packages/debian debian contrib Then update the package cache and install ecromedos by saying #> apt-get update
#> apt-get install ecromedosThe documentation is contained in a separate package ecromedos-doc. 2.4.2. OpenSUSE LinuxTo comfortably install ecromedos on OpenSUSE, add the following repository URL to your repository sources: http://ecromedos.net/packages/opensuse You can either do this from YaST or on the command line using zypper like this: #> zypper addrepo -c -f http://ecromedos.net/packages/opensuse/ ecromedos2
#> zypper install ecromedosAnd if you also want to install the documentation: #> zypper install ecromedos-doc |


