# @(#)ECOPTICAL	2.1 10/7/93
#
# Copyright (c) 1993 Alias Research Inc. All rights reserved.
# This is unpublished proprietary source code of Alias Research 
# Inc.
# The copyright notice does not evidence any actual or intended
# publication of such source code.  Alias Research Inc. cannot 
# be held responsible for any inaccuracies contained herein.
#

.H Alias EcOptical
.nf

To get Help, click on an item in the index.

{Alias EcOptical}
\t{Setting Up the Optical Disk}
\t{Using Alias EcOptical}
\t{Transferring Multiple Files}


.nf
Alias EcOptical:

.fi
You use Alias EcOptical to transfer Tile image files between an optical disk and your computer's hard disk. You can transfer one file one at a time, or create a batch list of files you want to transfer. Before you run Alias EcOptical, follow the steps in the next section to set up your optical disk and set the read/write permissions for the disk.


.nf
Setting Up the Optical Disk:

.fi
The first step is to select a SCSI address on your computer for the optical disk drive. The computer needs to know the SCSI address so it knows where to look for the optical drive. For more information about connecting peripheral devices, see the documentation that came with your computer.


To set up the optical disk drive, follow the steps below:


1. To find an unused SCSI address you can assign to the optical drive, open a shell window, and type hinv (hardware inventory) at the command line.


The system displays a list of the hardware in your system. You will see lines like:


Tape drive: unit N on SCSI controller 0


Disk drive: unit N on SCSI controller 0


The N is the address of the particular device.


2. Make a list of all the addresses already used. Add the addresses 0 and 1 to the list. (0 is the controller address; 1 is the system's hard disk address.) Then choose an unused address (up to address 7) to assign to the optical disk.


Some SGI computers have two SCSI controllers designated 0 and 1. If your computer has two controllers, you may have twice as many adderess available. For example, controller 0 would have addresses 0 through 7, and controller 1 would have addresses 1 though 7.


3. Power off your computer and any peripherals, and connect the optical drive to the computer. When you're done, power everything back on.


4. Login to the system as root, open a shell window, and type cd /dev/scsi to change to this directory. Then type ls -al to see a list of all the SCSI devices on your system. 


The system displays a directory listing of the SCSI devices. You should see lines like:


crw- - -1 root sys 43, 1 Apr 26 09:30 sc0d3l0


These lines show the SCSI addresses. In the example above, the address is 3 (sc0d3l0). 


5. To use the optical disk, you have to make sure thatyou can read files from it and write files to it. To do this, you change the permission mode for the device. At the command line prompt, type:


chmod   666   sc0dNl0 and press Enter.


The N should be the SCSI address you want to use for the optical disk. If you were using the address shown in step 4, you'd type:


chmod   666   sc0d3l0 and press Enter.


6. Now type ls -al again to see the change. The line in step 4 would now look like:


crw-rw-rw-1 root sys 43, 1 Apr 26 09:30 sc0d3l0


This means that the device at address 3 is set for reading and writing.


.nf
Using Alias EcOptical:

.fi
You can start Alias EcOptical from the WorkSpace or from the command line in a shell window. Before you start the program, make sure your optical disk drive is turned on. It's also easier if there's a disk in the drive before you start.


To use Alias EcOptical, follow these steps.


1. In a shell window, change to the /usr/Alias2D/bin directory, and type ecoptical.


You can also open a view of the /usr/Alias2D/bin directory in the WorkSpace, and double click on the ecoptical icon.


The Alias EcOptical window opens. The window contains an SCSI Address text box at the top, two Image Path text boxes and scrolling lists of image files, and two Image Name text boxes.


Below the SCSI Address text box are three fields that display the Format, Volume, and Size of the files on optical disk.


The text boxes and list on the left represent your computer's hard disk and file system. Alias EcOptical tries to use the image path set most recently by Eclipse, but you can choose any path and directory you want. 


The text boxes and list on the right represent the optical disk drive and file system. Alias EcOptical reads this information directly from the disk, if there's one in the drive. 


2. If you see a prompt box that says Alias EcOptical can't read the optical disk, select the SCSI Address text box and type the correct address number for the optical disk drive. If haven't inserted the disk yet, do so now, and click the Okay button to clear any warning box.


3. To change the image path for either the computer's hard disk or the optical disk, select the appropriate Image Path text box and type the path you want. You can also select the Go Up button above the text box to move up one level in the directory structure.


Some optical disk file systems don't use a directory structure, so there may be no Image Path listed, and the Go Up button may not function.


Alias EcOptical displays the names of the files in the directory you type or select. To transfer a file between devices, you select a file name from one of the lists and then use the Arrow buttons located between the two lists.


4. If your optical drive file system supports a directory structure, you can create a new directory using the Image Path text box on the right. Type a new directory name in the Image Path text box, and press Enter.


Alias EcOptical displays a prompt box telling you that the directory doesn't exist and asking iof you want to create it. 


5. Select the OK button to create the new directory. Select Cncl to cancel.


Alias EcOptical displays the new directory name in the Image Path text box.


You can use the same procedure to create a new directory on your computer's hard disk. Repeat steps 4 and 5, but use the hard disk's Image Path text box on the left.


6. To preview an image, double click on the file name.


Alias EcOptical displays a sample version of the image in a small window.


7. To close the sample image window, select its control menu at the upper left corner, and then select Close.


8. Select the name of a file you want to transfer from one of the lists.


Alias EcOptical inserts the name of the file in the two Image Name text boxes below the lists and displays information about the file at the bottom of the window.


Notice also that the appropriate Arrow button becomes active. For example, if you select a file name from the hard disk list, the Right Arrow button becomes active, showing that you can transfer the file to the optical disk.


9. You can change the name that a file will have after you transfer it. Type a new name in the destination drive Image Name box.


For example, if you're transferring a file from your hard disk to the optical disk, select the Image Name box on the right (the optical disk), and type a new name.


10. To delete files from either device, select its name from one of the lists, and then select the Delete button.


Alias EcOptical displays a warning box that asks if you really want to delete the file.


11. Select the OK button to delete the file; select Cancel to stop the delete.


12. When you're ready to transfer a file, select the highlighted Arrow button.


Alias EcOptical displays a status box as it transfers the file. When the transfer is complete, the file name appears in the list of files for the destination drive.


If a file with the same name already exists on the destination drive, Alias EcOptical asks if you want to overwrite it with the new file.


13. Select OK to overwrite the existing file; select Cancel to stop the transfer.


To cancel a transfer or an image preview, press the Esc key. You may have to press and hold the key for EcOptical to recognize the keystroke.


14. If you have more than one optical drive connected to your computer, or you want to change optical disks, select the File menu and then select Close.


Alias EcOptical closes the connection to the optical disk, and removes the file information from the window.


15. If necessary, select the SCSI Address box, and type the number of your other optical drive. If you want to insert a different optical disk into the drive you're using, do so now.


14. When you're ready, select File menu and then select Open.


Eclipse establishes a connection with the optical drive and displays the file lists for the optical and hard disks. You can now continue transferring files.


.nf
Transferring Multiple Files:

.fi
You can select multiple files from the lists in the window and have Alias EcOptical transfer them one after another. This way you don't have to keep selecting the names and selecting the Arrow button for each file.


To transfer a list of files, follow these steps:


1. Select the Batch push button at the bottom right of the Alias EcOptical window.


Alias EcOptical displays an Execute button below the Batch button, and then it displays the OpBatch window. You use this second window to build the list of files you want to transfer.


You can transfer multiple files only in one direction at a time. 


2. Select the files you want to transfer from either the hard disk list (on the left) or the optical disk list (on the right) in the main Alias EcOptical window.


As you select the names, Alias EcOptical adds them to the list in the OpBatch window.


3. To change the order of the file names in the OpBatch list, select a name, and then select the Up or Down Arrow to the right of the list.


Alias EcOptical moves the file name up or down one position in the list. This means the file will be transferred sooner or later in the list.


4. To delete a file from the list, select its name and then select the Delete button.


Alias EcOptical removes the name from the OpBatch list. This does not delete the file from the hard disk or optical disk.


5. After you've built the list of files, select the Execute button in the Alias EcOptical window.


Alias EcOptical displays a prompt box that asks if you want to transfer all the files in the list.


6. Select the OK button to transfer the file; select Cancel to stop the transfer.


Alias EcOptical displays a status box as it transfers the files in the list.


7. When you're done with Alias EcOptical, select the File menu, and then select Quit.

