---------------------------------------------------------------------------- Miscellaneous Tips SunFLASH Vol 20 #6 August 1990 ---------------------------------------------------------------------------- Here are some miscellaneous tips. If you would like to share a tip, hint or gotcha! that would be useful for other Sun users, please send them to me. -flash -------------------------------------------------------------------------------- Subject: 4/490 8mm tape Subject: How to make your LaserWriter go twice as fast... Subject: Disk erase in SunOS Subject: Scan Rates For Sun Monitors Subject: IBM coax connect -------------------------------------------------------------------------------- Subject: 4/490 8mm tape local dump: about 70 minutes/gigabyte remote dump: about 2 hours/gigabyte using dump 0ubcdsf 126 54000 6000 /dev/rst1 /dev/xy0g or its rdump equivalent. the 126 is the blocking factor, 54000 and 6000 are the tape density and length fudge factors: these are not the actual parameters of the tape, but suffice to "fool" the algorithms in /etc/dump into using an entire P120 8mm tape to hold 2+ Gbytes. These estimates are based on my experiences with the Exebyte drive from Perfect Byte, your mileage may vary. Sun 3/280 doing the dump -- the 4/490 may dump a little faster. -------------------------------------------------------------------------------- Subject: How to make your LaserWriter go twice as fast... Did you ever wish that your LaserWriter printer would go faster than 9600 bps? How about 19200? Well, I just put together this hack to make our printers do 19200. Be Warned that at least one of our printers would NOT go to 19200. I do not understand why. For those of you lucky enough to have a LWII, you can probably go to 38400. Several things to note: If you mess this up, you can put the printer on 1200 baud, repair the /etc/printcap file, and print this file with 9600 baud set. The power-on print out page indicates what the baud rate is for both the 9pin and 25pin connections. For more data, look in the "Red Book" (PostScript Language Reference Manual) starting at page 271. This will fail if your printer "root" passwd is not "0000000000" (which is the default). To use this, do the following: save this message in a file go.fast.ps, edit it down to the "%!" line, and print it. AFTER it has cleared the queue, change the /etc/printcap entry(s) for this printer to indicate 19200 bps (ie, "br#19200"). Abort the printer queue (as root: lpc abort PRINTERNAME) Power cycle the printer and verify that it is set for 19200 (check the power on page). Restart the printer queue (as root: lpc start PRINTERNAME) Good luck... ------------------ %! % This is the printer "root" passwd % | % | % v serverdict begin 0000000000 exitserver statusdict begin %connector (9 or 25 pin) %| baud rate %| | parity (0--> 8th bit ignored, see page 279) %| | | %v v v 25 19200 0 setsccbatch end ------------------------------------------------------------------------ Subject: Disk erase in SunOS First, lets look at the man page for /dev/zero: ZERO(4S) DEVICES AND NETWORK INTERFACES ZERO(4S) NAME zero - source of zeroes SYNOPSIS None; included with standard system. DESCRIPTION A zero special file is a source of zeroed unnamed memory. Reads from a zero special file always return a buffer full of zeroes. The file is of infinite length. Writes to a zero special file are always successful, but the data written is ignored. Mapping a zero special file creates a zero-initialized unnamed memory object of a length equal to the length of the mapping and rounded up to the nearest page size as returned by getpagesize(2). Multiple processes can share such a zero special file object provided a common ancestor mapped the object MAP_SHARED. FILES /dev/zero ==================== Use this if you want to zero out the whole disk or the first partition (to avoid scrogging the label): dd if=/dev/zero of=/dev/rXXXX seek=1 bs=512 or, if just a partition: dd if=/dev/zero of=/dev/rXXXX bs= ------------------------------------------------------------------------ Subject: Scan Rates For Sun Monitors Mono 1152x900 62.5khz 1600x1280 89Khz Color 1152x900 61.8Khz 1024x1024 65.3Khz ------------------------------------------------------------------------ Subject: IBM coax connect This product will allow a sun4 or sun3 connect to IBM coax via the SCSI port on the Sun. It provides 3270 terminal emulation as well as bi-directional file transfer in CUT or DFT modes. The terminal emulation supports both MVS/TSO and VM/CMS! PRODUCT: IOC3270-S SCSI Mainframe Adapter COMPANY: I/O Concepts, Inc. 2040 Westlake Ave. North Seattle, WA 98109 PHONE: (206)286-7407 FAX: (206)283-1443 CONTACT: Michael Millspaug ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Sunflash is an electronic mail news service from Sun Microsystems, Ft. Lauderdale, Florida, USA. It is targeted at Sun Users and Customers. As a field sales and support office, we try to keep SunFlash useful and interesting to you. If you have any comments or suggestions for enhancing SunFlash, please send them to us. SunFlash is distributed via a hierarchy of aliases. Try to address change requests to the owner of the alias that you belong to. If you want to be added to the SunFlash alias, please contact the systems engineers at your local Sun as many Sun Sales offices have their own SunFlash alias. Address comments to the SunFlash editor (John McLaughlin) at sun!sunvice!flash or flash@sunvice.East.Sun.COM. (305) 776-7770.