next up previous contents index
Next: 3.2 What are the Up: 3.1 Configuring, building and Previous: 3.1.2 Building the twin

3.1.3 Configuring the run-time software

 
1.
Make sure ld.so, the system dynamic linker has access to the TWIN shared libraries.

2.
Build a  /.twinrc, run-time configuration file
See the file ./template/readme.twinrc for more information about configuring the software, and file ./template/sample.twinrc for an sample  /.twinrc configuration file.

The following is a minimal example of the  /.twinrc file:
[boot]
control=1
windows=/willows/twin/windows
openpath=/willows/bin/win:/willows/bin/demo

This file is a standard windows .ini file, with 1 required section, the [boot] section. This section allows you to set the following:

control This variable controls certain runtime
configuration switches. The low four bits
enable various runtime verbose output, the
other control advanced run-time features
that are described in the readme.twinrc file.
windows This variable points to where the microsoft
WINDOWS directory is located, this is the
same as the C: $\backslash{}$WINDOWS directory. This is
where we will search for .ini files. This
directory will contain the windows SYSTEM
directory containing windows dll's.
openpath This colon separated list is equivalent to
the PATH variable under windows and unix.
This path is where we should search to find
applications that are not given fully
qualified pathname.

3.
Running the TWIN windows binary emulator
 

Assuming that xwin32 is in your PATH environment variable

xwin32 will bring up the common file dialog asking for what windows executable to run.

Examples of running a specific windows application

(a)
xwin32 sol
(b)
xwin32 sol.exe
(c)
xwin32 /willows/windows/sol.exe
(d)
xwin32 C: $\backslash{}$willows $\backslash{}$windows $\backslash{}$sol.exe

Options (a),(b) assume that sol.exe is in the openpath list, an .exe suffix is assumed if not given. Option (c) provides an explicit unix pathname to the windows executable, while option (d) provides a DOS pathname to the executable. (see the documentation on the twinrc run-time configuration file to see how to set additional drive letters, other than the default C: $\backslash{}$ mapping to / )


next up previous contents index
Next: 3.2 What are the Up: 3.1 Configuring, building and Previous: 3.1.2 Building the twin
Send corrections/suggestions via e-mail to: Rob Penrose