C H A P T E R 4 |
Peripherals for Sun Ray DTUs |
This chapter contains information about selected USB, parallel, and serial devices and printing from Sun Ray DTUs.
There are two kinds of peripherals: serial and parallel. Serial peripherals enable RS-232-style serial connections to the Sun Ray DTU. Parallel peripherals enable printing and come in two types: adapters and direct USB-connected printers.
Third-party adapters are useful for supporting legacy serial and parallel devices.
Sun Ray Server Software recognizes a parallel printer with an adapter as a USB printer.
Sun Ray Server Software creates a device directory called IEEE802.MACID in the /tmp/SUNWut/units directory. This directory contains the MAC address for each DTU on the interconnect. The IEEE802.MACID directory for each DTU contains dev and devices directories. The Sun Ray dev directory contains a representation of the logical topology of the devices connected to the DTU. The Sun Ray devices directory contains a representation of the physical topology of some of the devices connected to the DTU.
Note - Sun Ray Server Software does not create device nodes for every USB device. Some USB device drivers export their device interfaces through other mechanisms than a traditional UNIX device node. |
Directories correspond to buses and hubs, and files correspond to ports. Hub directories are named according to the port on the upstream hub into which they are attached.
In Sun Ray devices, device nodes are created for each serial or printer port on an attached USB device. The device nodes are created in the hub directory corresponding to the hub to which they are attached. They are named:
If the USB device has multiple identical ports (for example, two serial ports), the name is followed by :n where n is a numerical index, starting at 1.
The following is a typical device node path:
The physical topology is hub@port/hub@port and so on. The port refers to the port on the parent hub into which the device or child hub is plugged. |
|
The printer and terminal name in the Sun Ray devices directory is manufacturer, model@port with a colon separating the numerical index when the string just described is not unique in the directory. |
|
The printer and terminal name in the Sun Ray dev directory is the manufacturer and serial number concatenated with an alphabetic index when the serial number is not unique. |
Device links are created under the dev directory. A link to each serial node is created in dev/term, and a link to each parallel node is created in dev/printers.
/tmp/SUNWut/units/IEEE802.080020cf428a/dev/term/manufacturer_name-67a /tmp/SUNWut/units/IEEE802.080020cf428a/dev/printers/1608b-64 |
where index is an increasing alphabetical character, starting at a.
If the manufacturer name is not available, the USB vendor and product ID numbers are used for the name of the device link.
Some device nodes are owned by the user whose session is active on the DTU, while others may be owned by root or by other users that may have had previously active sessions on the DTU. Device permissions, access controls and ownership rules are determined by the class of device. For serial and parallel devices, only the user whose session is active on the DTU or the superuser have permission to use the attached device. If there is no user with an active session, superuser owns the serial and parallel device nodes. This rule may not hold for other classes of USB devices connected to the DTU.
Changing the active session on a DTU changes the ownership of the device nodes to the user associated with the new session. A session change occurs whenever a user:
In a failover environment, you can use the utselect or utswitch command to change a session. A session change causes all devices currently open by a non-root user to be closed after 15 seconds. Any input or output to or from any affected device results in an error. Devices currently opened by the superuser remain unaffected by the session change.
Sun Ray Server Software 3 supports PostScript printers connected directly to a USB port on the Sun Ray DTU or connected through a USB-to-parallel port adapter. For non-PostScript printer support, refer to Printers Other Than PostScript Printers.
Note - The lp subsystem opens the device node as superuser for each print request, so print jobs are not affected by hot desking. |
The following generic instructions may vary slightly from one Linux implementation to another but should provide enough information to enable an administrator to set up basic printing services.
1. Log in as superuser on a Sun Ray DTU.
2. To determine the MAC address of the DTU, press the three audio option keys to the left of the power key in the upper right corner of the keyboard.
The alphanumeric string displayed above the connection icon is the MAC address.
3. To locate the Sun Ray DTU, type:
The path to the extended MAC address for your particular Sun Ray DTU is displayed.
4. Locate the port for the printer by typing:
5. In the directory, locate the printer node.
6. Start the Administration Tool by typing:
7. Go to Browse -> Printers -> Edit -> Add -> LocalPrinter.
Choose Other to enter the printer port path name, using the resulting directory from Step 4.
Note - Do not use the port name under the devices directory. |
e. If you are using a PostScript printer, under Printer Type choose PostScript unless your printer is listed.
Select the printer type according to your printer model. If no option matches, select other; then type your printer type or unknown.
f. If you are using a PostScript printer, under File Contents choose PostScript and ASCII.
g. Options: Default Printer (optional)
Note - Do not click OK more than once. If you do, a failure message is displayed. |
9. To verify that the printer has been set up correctly, type:
Printers that do not use PostScript, such as engineering plotters, are best supported by third-party software. Low-cost inkjet printers require third-party software such as:
Check with the vendors for pricing and the precise printer models supported.
For a list of verified serial and parallel adapters, see:
http://www.sun.com/io_technologies/sunray/usb/sunray-usb.html
Copyright © 2004, Sun Microsystems, Inc. All Rights Reserved.