2.1 Installing CodeBuilder2.1.1 Optional Installations2.2 Exploring the CD Folders2.2.1 Documentation2.3 Performance Tuning - Optimizing CodeBuilder2.2.1.1 CodeBuilder UNIX Docs2.2.2 Utilities
2.2.1.2 HTML2.3.1 System Optimization Guidelines2.4 Reinstallation
2.3.2 How Can You Tell When a System is Approaching Its Limits?2.4.1 Reconfiguration2.5 Troubleshooting2.4.1.1 Automated Reconfiguration2.4.2 Accessing CodeBulder Source Files Directly From the CD-ROM
This is the CodeBuilder installer. Run this application to install CodeBuilder on your computer. You will need a minimum of 140 MBytes of free space to install CodeBuilder.
This folder contains the bulk of CodeBuilder documentation. This documentation is available in a variety of formats including HTML, PDF, and PostScript. Some additional documentation is available from within CodeBuilder.
This text file provides an overview of CodeBuilder.
The source code distributed with CodeBuilder is stored in the Fast File System format. To view these sources, this fast file system must be mounted within CodeBuilder. (See 2.4.2 Accessing CodeBuilder Source Files Directly)
This folder contains a number of useful utilities, (e.g. debuggers and text editors) from Tenon and others.
Insert the CodeBuilder CD-ROM and double-click on the disk icon. The disk will show an open window as illustrated below.
Launch the CodeBuilder Installer application on the CD and select the drive on which to install. In some cases, it may be necessary to disable extensions not required for CD access. You may also copy the installer to your hard drive and then restart MacOS while holding down the shift key to disable all extensions.
The Installer application will create a folder named Code Builder v1.0. CodeBuilder requires approximately 150 MBytes of free disk space.
An optional X window server and X client development environment may be installed by using the Custom Install option. This optional package requires an additional 60 MBytes of disk space. You may install it along with CodeBuilder Basics, or separately at a later time (see 2.1.1 Optional Installations). CodeBuilder's AfterStep desktop environment requires the installation of the optional X Window software.
Configure the CodeBuilder Control Panel according to the instructions in section "3.0 The CodeBuilder Control Panel".
Launch CodeBuilder by clicking on the CodeBuilder application in the CodeBuilder v1.0 folder. You may make an alias to this application and put it on the desktop for easier launching. If your system does not successfully start up and present you with the login: prompt after a moment, contact Tenon Technical Support.
IMPORTANT: In the same manner that successfully booting and running the Macintosh OS is dependent on the System Folder and some very specifically named files and folders in the System Folder, CodeBuilder is dependent on its file system hierarchy, including the names, locations and permissions of its files.
Unless you are fully aware of CodeBuilder's dependency on its file system organization and the read/write ability of the contained files, DO NOT reorganize the CodeBuilder distribution hierarchy.
Be very careful when imposing Macintosh restrictions on the CodeBuilder folders and files. This includes locking or assigning File Sharing privileges to any CodeBuilder file or folder.
Double click on the CodeBuilder v1.0 Installer on the CD. Select Custom Install. Check the X11R6 check box. Select the disk on which your have previously installed CodeBuilder.
This folder contains a number of supplementary papers from the BSD Release.
This folder contains the CodeBuilder User's Guide in HTML format.
This PDF file is a printable version of the CodeBuilder User's Guide.
This folder contains PostScript versions of GNAT documentation.
This folder contains the HTML formatted documentation.
This alias points to the actual folder which contains HTML formatted man pages.
This file contains an overview of Objective C in PDF format.
This folder contains PostScript versions of man pages.
This folder contains PDF copies of several papers from the Programmer's Supplementary Documents, which is part of the BSD release.
This folder contains PDF copies of several papers from the System Manager's Manual, which is part of the BSD release.
This folder contains PDF copies of several papers from the User's Supplementary Documents, which is part of the BSD release.
This folder contains information on how to program in Ada, how to use the GNAT tools, and why Ada is such a useful language.
This folder contains information on the GNU development tools such as gcc.
This folder contains Lovelace, an Ada tutorial, developed by David A. Wheeler.
This folder contains HTML formatted man pages.
This folder contains HTML documentation for miscellaneous other GNU utilities that are not specifically oriented towards programming such as emacs.
This HTML file gives an overview of the contents of the Utilities folder.
This folder contains Apple's MacsBug 6.5.3 and Macintosh Debugger 2.0, as well as information on obtaining The Debugger (also known as Jasik).
This folder contains the Ada 95 Mac Application Framework (AMAF), libraries and include files from ETO #22, and Apple's resource editor ResEdit 2.1.3.
This folder contains tools to aid correcting file system problems. Fast File First Aid is the CodeBuilder fsck utility built as a Macintosh application, and configured to perform an interactive file system check and repair operation. It may be used to correct file system corruption which prevents CodeBuilder from booting up. The Recovery folder contains a special minimal version of CodeBuilder for use when file system corruption has affected key programs or support files. In the unlikely event that file corruption occurs, drag the Recovery folder onto a hard drive and launch the CodeBuilder.emerg application. This will allow you to access your file systems from within a working CodeBuilder environment and take appropriate actions.
This application installs Mac Perl. CodeBuilder also includes the UNIX version of Perl.
This folder contains the Alpha, AdobeAcrobat, and BBEdit Lite 4.0 text editing and presentation applications. It also contains Unix <-> Text, an application for converting the end-of-line characters in a text file between standard Macintosh and Unix conventions. Alpha is shareware and is not registered, so if you use it, please register it.
The efficiency of the disk device driver plays an important role in the overall performance of the system. Choosing a fast disk and disk driver and adhering to the guidelines of disk optimizing tools will improve the CodeBuilder system's performance.
Setting the disk cache in the MacOS Memory Control Panel is essential to getting the most performance from your Macintosh. MacOS file manipulation software operates much more efficiently when disk caching is enabled and set to a large value. In some cases, the larger the value the better. A disk cache size of 512K is recommended; improved performance gains under CodeBuilder tend to diminish beyond this size. Larger cache sizes increase the chance of file corruption after an improper shutdown.
Disable the file sharing option located in the Sharing Setup Control Panel.
Do not keep the CodeBuilder scheduling priority slide bar or any Control Panel on the desktop. An open Control Panel consumes valuable CPU cycles. (Refer to section "3.0 The CodeBuilder Control Panel" for more information on using the Slide Bar.)
When running CodeBuilder in the default configuration, the following directories are searched (in the order listed) when a CodeBuilder command is executed:
.
~/bin
/usr/bin
/bin
/usr/X11/bin
/usr/libexec
"." refers to the directory the user is currently in and "~/bin" refers to the bin directory that is in the user's home directory. Adjust your search path in the .login or .profile file in your home directory.
Increase the number of UNIX file system buffers (FS buffers) in the CodeBuilder Memory Control Panel. Increasing the number of buffers to 32 or 64 can significantly improve performance by increasing the frequency of file system cache hits.
Disk Space Limitations A system with 200MB or less of hard disk will probably require careful attention to "tidiness" of the available disk space. | By default, the /etc/rc file will preserve the editor files,
and then automatically remove files in /tmp on each restart. (Note
that subdirectories in /tmp are not purged.) A cron(8)Ý entry may be created to purge old 'preserved' editor files from /var/preserve. Use df(1) to determine the capacity and available space of each mounted file system. |
Memory Space Limitations Since CodeBuilder does not support paging or swap processes from memory to disk, all of the processes (blocked, sleeping and running) consume real memory. When the memory is filled up, no new processes can be started. Process instantiation (execve(2)) will fail with an ENOMEM (Error: not enough memory). | Run only the daemon processes that are needed. If you do not need the
services provided by a daemon, you can disable it via rc.conf(5)
(see opposite). Use ps(1) to find out how much memory each process is consuming. If available memory is filled, terminate unwanted processes with kill(1). This will free up the memory those processes were consuming. Keep the maximum memory that you are consuming below a high water mark to avoid memory fragmentation problems. (The probability of memory fragmentation increases as the percentage of free space decreases.) |
syslogd | This is the system logger daemon. Syslogd reads and
forwards system messages to the specified log files and, depending on the
priority of the message and the originating facility. A major reason for
running this daemon is to log the results of lpd activities. Run
syslogd while changing system configuration files for other daemons,
or when running lpd, but not otherwise. |
wind The default .profile and .login files provided automatically start up the window daemon each time a login occurs in the console. Note that the window daemon is started with an exec /usr/libexec/wind to free up the space of the invoking call. | Wind(8) is the window daemon controlling the CodeBuilder window
environment. It is not necessary to use the window daemon since CodeBuilder
also supports a simple console device. However, the added value of the window
environment is almost always worth the extra memory it consumes. |
lpd | The printing service is provided by lpd(8). Systems
that do not require printing services need not run this daemon. CodeBuilder
will automatically start this daemon when a print command is invoked. |
Ý: Throughout this manual, you will see commands and utilities followed by a number in parentheses. This number refers to the section of the man pages where more information can be found. To access the correct man page, type: man # command, where # is the number in parentheses. For example, to find out more information on cron(8), type: man 8 cron.
If you haven't done so already, create a fast file system to preserve changed or locally created files that reside on the root file system (CodeBuilder_FFS). Also preserve any files changed underneath the CodeBuilder_HFS folder. A fast file system within a file is usually the most convenient; see section "6.9.1.1 Creating an FFS Within a File" for details. This file system should be sized large enough to preserve the files and directories identified below. The tar command is probably the best choice for copying files, as it will preserve user, group, modes, and time stamps.
Copy private user files in the /home directory that reside in the root file system (CodeBuilder_FFS). Note that the .cshrc, .login, .mailrc and .profile files for the root account (/home/root) may be updated in subsequent releases.
Copy any configuration files you have changed in /etc. This includes fstab, group and master.passwd. It may be best to save all of /etc and review the files after installation is complete.
Copy any other files you have changed in /bin, /dev, /sbin, or /usr.
Visit the var folder and determine whether or not to preserve the administrative log files, print requests and accounting files contained in the following sub-folders adm, log, spool, tmp and preserve. If in doubt, preserve the file(s) and take a closer look after the installation is complete.
Before launching CodeBuilder, open the CodeBuilder Control Panel and visit each configuration screen. Verify that your installation parameters are correct. Press the "Save" button, even if no changes were made.Step 4 - Launch CodeBuilder by Opening the CodeBuilder Application
When the CodeBuilder installation has completed, review and restore the files preserved in Step 1. Pay special attention to the configuration files stored in /etc. It is usually best to generate differences, and then edit the versions in /etc to include your customizations.
NOTE: If you have not explicitly made changes to a configuration file, do not restore it. Configuration files sometimes change in new releases of CodeBuilder and restoring old configuration files may make the new release behave unexpectedly.
/etc/rc.confTake the following actions:
/usr/etc/zoneinfo/localtime
Choose "Control Panels" from the Apple menu and open "CodeBuilder Controls". Make the appropriate changes, and press the "Save" button.
During the normal boot process, updated configuration parameter values will be noted and applied. Comments similar to the following will be displayed:
# Applying Installation configuration parameter settings..
Creating directory "/etc/PRE.Aug_20_13:54:01" to preserve original copies
Setting timezone to US/Pacific
Updating /etc/rc.conf
# "/etc/PRE.Aug_20_13:54:01" may be removed when the original copies
# it contains are no longer of interest for review or recovery.
# /sbin/mount -t ffs /CDROM/Source_FFS /base/srcNote that the target directory /base/macppc is still on the hard disk, so the objects for the BSD4.4 sources can be built even though the sources are on the CD. Obviously you cannot modify these programs by changing the source without copying them from the CD to your hard disk.
Symptom | Solution |
The CodeBuilder Installer is unable to successfully install CodeBuilder. | Temporarily remove or disable your INITs, particularly
any anti-virus INITs. Retry the installation. |
Launching CodeBuilder causes a system "bomb". | There may be a Control Panel or Extension conflict. Try temporarily
disabling all INITs except the CodeBuilder INITs to determine if you have
a conflict.
|
CodeBuilder seems to slow down. | Do a ps -alx and observe what processes are running. Use kill(1)
to terminate unwanted processes. Read section "2.3
Performance Tuning - Optimizing CodeBuilder" for system optimization
hints. |
You notice loss of data due to file truncation. | Due to CodeBuilder file caching, CodeBuilder may not return an error
when writing to a file system that is full. Check the free space on your
file system before continuing. |
You experience a power failure. | CodeBuilder must be restarted after a power failure. Although, traditional
UNIX file systems are sensitive to power failures, CodeBuilder automatically
checks the fast file system and it should not be necessary to further check
the integrity of the file system. |