Introduction
EMu is designed to allow multiple installations to coexist. Each installation is placed in a directory within the user emu's home directory. The name of this directory typically reflects the client system being installed. The client name may be any name, thus allowing test and production environments to be set up for the same system. In the notes below clientname refers to the name of the client directory for the current installation.
The term ~emu is used to refer to the user emu's home directory. This is typically /home/emu.
Requirements
Installation Notes (EMu Server - emu)
- Log in as emu
- Enter cd ~emu
- The install bundle must be unarchived into a new temporay directory.
It is recommended to use a new temporary directory named ~emu/clientname/install. Enter mkdir -p clientname/install
- Enter cd clientname/install
- Obtain the appropriate EMu server version bundle via the KE EMu Server hyperlink above.
Save the release bundle file in the ~emu/clientname/install temporary directory.
- Extract the client release by using the name of the actual release file.
Enter sh emu-clientname-yymmddv.sh The EMu release will be extracted.
- Enter . ./.profile
- Enter bin/emuinstall clientname.
The EMu installation script will commence.
- Enter cd ~emu/clientname
- Enter cp .profile.parent ../.profile
- Enter cd ..
- Enter vi .profile-local
- Add a single line client clientname to the file and save it. If a default client is already registered then you may leave the existing value.
- Enter . ./.profile
- Enter client clientname
- Enter cd etc
- View the config.sample file.
If you wish to alter some of these settings to suit the client then: Enter cp config.sample config Enter vi config Edit as appropriate, then save the file. Be careful to set EMUSMTPSERVER to the hostname of your mail server machine.
- Enter cd ..
- Enter emubldlinks
- Enter emulutsrebuild
- Removal of the the temporary directory (and its contents) is recommended:
Enter \rm -fr install
In order to allow easier upgrades of Texpress (without having to update the etc/opts file) all Texpress options are now set in the client specific .profile-local file. When installing EMu 4.0 you will have to add all Texpress options required for the installation. In particular the dateorder, dateformat, timeformat, latitudeformat, longitudeformat, tmppath and loadmemory settings should be examined. Please see Texpress options for a list of acceptable values.
- Enter vi .profile-local and add the Texpress options to the file. An example file is:
TEXPRESSOPTS="${TEXPRESSOPTS} dateorder=mdy dateformat='dd MMM yyyy'" export TEXPRESSOPTS
- Enter client clientname
Any other client specific setting can be set at this time (e.g. shell specific settings, etc.).
- Enter exit to close the command shell.
- Log out.
Installation Notes (KE EMu Server - root)
- Log in as root.
Note in all examples below ~emu must be expanded to emu's home directory.
- Enter vi /etc/services
- Add new services to the end of the file and save the file.
| emu |
20000/tcp |
| emutrain |
20001/tcp |
| emutest |
20002/tcp |
| emuweb |
30000/tcp |
| emuwebtrain |
30001/tcp |
| emuwebtest |
30002/tcp |
You should also add client specific services. To determine the port and webport required please view the EMu Ports document.
emuclientname |
port/tcp |
(replace port with port number) |
emuwebclientname |
webport/tcp |
(replace webport with port number) |
- Save the file.
Installation Notes (KE EMu Server - inetd)
If your system uses inetd to start up system services then the following setup is required. All versions of Unix use inetd by default except for Red Hat Linux 7.0 or later and Solaris 10 or later. If the file /etc/inetd.conf exists then these steps are required:
- Enter vi /etc/inetd.conf
- Add the following line to the end of the file:
emuclientname stream tcp nowait root ~emu/clientname/bin/emurun emurun texserver -aemu -i -L -t60 If you also want the emu service to connect to your emuclientname then add the line: emu stream tcp nowait root ~emu/clientname/bin/emurun emurun texserver -aemu -i -L -t60
- Save the file.
- You will need to restart inetd for the changes to take effect.
Locate the process id number pid for the inetd process and then enter kill -HUP pid.
Installation Notes (EMu Server - xinetd)
If you are installing on a Red Hat Linux system, version 7.0 or later, or the file /etc/xinetd.conf exists, the following steps are required:
- Enter cd /etc/xinetd.d
- Enter vi emuclientname
- Enter the following text in the file:
# default: on service emuclientname { flags = REUSE protocol = tcp socket_type = stream wait = no user = root server = ~emu/clientname/bin/emurun server_args = texserver -aemu -i -L -t60 log_on_failure += USERID disable = no }
- Save the file.
- You will need to restart xinetd for the changes to take effect.
Locate the process id number pid for the xinetd process and then Enter kill -HUP pid. Note that on some versions of Red Hat you may need to enter kill -USR2 pid in order to update xinetd. To determine what signal is required on Red Hat consult the manual entry for xinetd.
Installation Notes (EMu Server - smf)
If you are installing on a Solaris system, version 10 or later using smf (Service Management Facility) the following steps are required:
- Enter vi /tmp/inetd
- Add the following line to the file:
emuclientname stream tcp nowait root ~emu/clientname/bin/emurun emurun texserver -aemu -i -L -t60 If you also want the emu service to connect to your emuclientname then add the line: emu stream tcp nowait root ~emu/clientname/bin/emurun emurun texserver -aemu -i -L -t60
- Save the file.
- Enter inetconv -f -i /tmp/inetd
- To determine if the services are enabled use the inetadm command.
Installation Notes (EMu Server - startup)
- Locate the name of the local system initialisation file for your operating system. Some examples are:
Operating System
|
File
|
| AIX |
/etc/rc.tcpip |
FreeBSD |
/etc/rc.local |
Red Hat Linux |
/etc/rc.d/rc.local |
| Solaris |
/etc/rc3.d/S99emu |
| SUSE Linux |
/etc/rc.d/rc3.d/S99emu |
- Enter vi file where file is the name of the local system initialisation file.
- Add the following lines to the end of the file:
# # KE EMu startup # ~emu/clientname/bin/emuboot
- Save the file.
- Enter ~emu/clientname/bin/emuboot
- Log out.
Perl Packages
If the administration utility to change a user's password is used, the perl Net::SSH::Expect package must be installed. If the password utility is not used, this step may be skipped. To install the package:
- Log in as root
- Enter
perl -MCPAN -e shell
- Enter
install Net::SSH::Expect
- Enter
quit
Optional Perl Packages
Significant speed improvements in the EMu auditing facility may be achieved by installing two perl packages. The installation of these packages is optional but recommended.
- Log in as root
- Enter perl -MCPAN -e shell
- Enter install XML::Parser::Expat
- Enter install File::FcntlLock
- Enter quit
- Log in as emu.
- Enter emuload stop audit
- Enter emuload start audit
|