HDTenEightyP/NetNews huggingface dataset:
From: guy@Auspex.COM (Guy Harris)
Newsgroups: comp.sys.sun.admin
Subject: Re: deciphering printcap fc,fs,xc,xs fields
Date: 24 Dec 92 23:10:27 GMT
Organization: Auspex Systems, Santa Clara

>Does anyone know how to decipher the fc,fs,xc, and xs fields 
>in /etc/printcap?
>
>The values these fields have in my printcap file are:
>
>        :fc#0000374:fs#0000003:xc#0:xs#0040040:

To quote PRINTCAP(5):

	CAPABILITIES
	     Name Type Default            Description

		...

	     fc   num  0                  if   lp   is   a   tty,   clear
	                                  flag                       bits

		...

	     fs   num  0                  like   `fc'   but   set    bits

		...

	     xc   num  0                  if   lp   is   a   tty,   clear
	                                  local         mode         bits
	     xs   num  0                  like `xc' but set bits

	...

     Note: the fs, fc, xs, and xc fields are  flag  masks  rather
     than flag values.  Certain default device flags are set when
     the device is opened by the line printer daemon if the  dev-
     ice is connected to a terminal port.  The flags indicated in
     the fc field are then cleared; the flags in the fs field are
     then  set  (or vice-versa, depending on the order of fc#nnnn
     and fs#nnnn in the /etc/printcap file).  The bits cleared by
     the  fc  field  and  set  by  the  fs field are those in the
     sg_flags field  of  the  sgtty  structure,  as  set  by  the
     TIOCSETP  ioctl  call,  and the bits cleared by the xc field
     and set by the xs field are those in the "local flags" word,
     as  set  by the TIOCLSET ioctl call.  See ttcompat(4M) for a
     description of these flags.  For example, to set exactly the
     flags 06300 in the fs field, which specifies that the EVENP,
     ODDP, and XTABS modes are to be set, and all other flags are
     to be cleared, do:
          :fc#0177777:fs#06300:

     The same process applies to the xc and xs fields.   Alterna-
     tively,  the ms field can be used to specify modes to be set
     and cleared.  These modes are specified as  stty(1V)  modes;
     any  mode supported by stty may be specified, except for the
     baud rate which must be specified with the br  field.   This
     permits  modes not supported by the older terminal interface
     described in ttcompat(4M) to be set or cleared. Thus, to set
     the  terminal  port to which the printer is attached to even
     parity, TAB expansion, no NEWLINE to RETURN/LINEFEED  trans-
     lation, and RTS/CTS flow control enabled, do:
          :ms=evenp,-tabs,nl,crtscts:

The modes in "fc", "fs", "xc", and "xs" are octal; you have to infer
that from the document, because it never comes out and just *says* so.

Pretty gross, eh?  Now you know why I put the "ms" capability into the
4.0 printer stuff - no gross octal numbers, just "stty"-style
strings....
From: guy@Auspex.COM (Guy Harris)
Newsgroups: comp.sys.sun.admin
Subject: Re: How to update shared libraries?
Date: 25 Dec 92 20:54:40 GMT
Organization: Auspex Systems, Santa Clara

>It is also SunOS system calls, and the internal interfaces to system calls
>may change between releases.  These differences can be hidden by the new
>version of the library functions that are used from C.

Or, to give a concrete example:

	SunOS X.Y may well implement the "getdents()" library routine as
	code that uses trap 0, with system call code 174;

	SunOS Z.W may well implement it as, for example, code that uses
	trap 8, with system call code 81;

	SunOS A.B may well implement it as a library routine that makes
	several traps into the kernel.

(For "X.Y", you can substitute "4.x"; for "Z.W", I suspect you can
substitute "5.x"; I don't know that any SunOS implementation is "A.B" -
yet.)

The binary interface to SunOS 4.x and 5.x - and, as well, the ABI for
*all* SVR4 implementations with official SVR4 ABI's - is based on
procedure calls, not to system call traps.  (The old SVR3-vintage BCS's
are still based on system call traps, unfortunately; this includes the
"iBCS" and "iBCS-2" *86 BCS's.)
Newsgroups: comp.sys.sun.admin
From: johnj@welchgate.welch.jhu.edu (John A. Johnston)
Subject: Capacity Planning.
Organization: Johns Hopkins Univ. Welch Medical Library
Distribution: usa
Date: Tue, 29 Dec 1992 22:40:18 GMT


Simple question for system planning... (hopefully):

In a very general sense (like, without a mathematical proof, now) -
if *only* the following services were available on a Sun host:

	email (ucb or pine or elm or mush)
	news (reading and processing eg. full node)
	gopher (client)
	wais (client)
	editing (vi, pico, emacs)
	ftp
	dialin xfer (xmodem, kermit)
	telnet

(to clairfy, no heavy compiles, no graphics)

At what point would I saturate the system, or get an average response
time nearing one second (eg, the system is fully used up), represented
in Number of concurrent users?

	For a sparcstation1
	For a sparcstation2
	For a sparcstationLX
	For a sparcstation10

Thanks for any help - I'll summarize others experience.

-johnj

Newsgroups: comp.sys.sun.admin
From: pete@lynx.spa.umn.edu (Pete Thurmes)
Subject: phigs in OpenWin?
Organization: U of Minn Dept of Astronomy
Date: Thu, 31 Dec 1992 08:51:22 GMT


Does anyone know of a hack to apply phigs to OpenWin, or to get X11R5
and NeWs running on the same machine to run phigs/X and Sunview 
applications simultaneously?

I have an X application that makes phigs calls. I would like to find
a way to run this application in OpenWindows, but I have been
told that X11/NeWs does not include the phigs extensions. So 
the OpenWindows X server has no access to phigs. I just get
errors whenever phigs functions are called when running under
OpenWindows. Under X11R5, the application runs fine.

I want to be able to run X and Sunview applications on the same display;
hence OpenWindows.

I am in desperate need of a quick fix, if possible, as my only alternative
for a upcoming demo is to restart the appropriate window system for each
application in turn. This would really suck.

I'd appreciate any and all suggestions, no matter how whacked-out they
sound.


-- 

           Pete Thurmes
		   pete@aps1.spa.umn.edu

Newsgroups: comp.sys.sun.admin
From: mikey@yoho.carleton.ca (Mike G McFaul)
Subject: Re: tunefs on /usr
Organization: Carleton University, Ottawa, Canada
Date: Tue, 22 Dec 1992 15:48:37 GMT

>In article <ByG0ny.KK1@uxa.ecn.bgu.edu> mflll@uxa.ecn.bgu.edu (Dr. Laurence Leff) writes:
>>I am trying to run tunefs on the /usr file system.  Of course this
>>is part of the two file systems (/root and /usr) that are brought up
>>on bootup.
>>
>>Thus, we can't dismount it to run tunefs.  This is even true when we
>>come up single user (boot with -s option)
>>
>>We are on 4.1.1 operating system on Sun III's.
>>
>>Does anyone know a method of running tunefs on the /usr file system.
>>We want to reduce the disk space allocated to root on this file system.
>>

Well it can be done, without unmounting anything...

What you do is come up in single user mode, then SYNC your disks, then
perform your 'tunefs' command, then interrupt your system, with either
'L1-A' or a break (for those machines without a sun console), then
boot your system without SYNCing your disks.  Yes this sounds
dangerours, but it works because you have SYNC'ed the disks prior to
the tunefs and the only extra thing you have done is the 'tunefs'
command. And since your in single-user mode, there is no other
activity other than you doing the tunefs to worry about.

From the 'BUGS' section of manpage on 'tunefs'

BUGS
     This program should work on mounted and active file systems.
     Because the super-block is not kept in the buffer cache, the
     program will only take effect if it  is  run  on  dismounted
     file  systems;  if  run  on the root file system, the system
     must be rebooted.
 
The last line there gave me the hint I needed to try this out...  I
have performed this on a number of machines running 4.1.2 and 4.1.3
and they all worked...
From: bjd@interstream.com (Bruce J. DaCosta)
Newsgroups: comp.sys.sun.admin
Subject: Novell and Unix Communication
Date: 21 Dec 92 20:37:19 GMT
Organization: INTERSTREAM, Inc.

I am trying to get my Novell server and my UNIX world to communicate so that
I can have my PC and workstations access the same files and be able to send mail
back and forth to each other.  One other benefit I would like to have is to be
able to read mail sent to me with UNIX mail from my PC.  This would allow me
(and my co-workers) to sit in one chair and get mail through UNIX then move the 
information from the mail onto the Novell server easily.

Does anyone know if there is a single product that will allow me to do this?
If not one, is there a set of compatible products that will serve the same
functions.  I am not afraid of implemeting a "puzzle" solution provided it fits
my needs.

Any information would be great.  Please either post to this group or e-mail to:
bjd@interstream.com

Thanks in advance.

John Dacosta
-- 

Bruce J. DaCosta		
INTERSTREAM, Inc.			email: bjd@interstream.com
1501 Reedsdale St.			voice: (412) 323-8000
Newsgroups: comp.sys.sun.admin
From: johnj@welchgate.welch.jhu.edu (John A. Johnston)
Subject: Re: SunPro/Tech software licensing...
Keywords: sunc++3.0.1, Sunc2.0, sparcworks, licensing
Organization: Johns Hopkins Univ. Welch Medical Library
Date: Wed, 23 Dec 1992 18:00:56 GMT

In article <1992Dec19.162637.4175@nobeltech.se> ppan@nobeltech.se (Per Andersson) writes:
>If, for example SUN, were serious about this, the licence manager would
>be included in the system, and for FREE. So every vendor didn't include
>thei own licence manager, a little bit different than the other. And as
>for the one SUN uses, it has a smallest timeframe for how long you allocate
>a license, which is 15 or 30 minutes. Just so you need to buy double the
>amount of licenses you really need. Who has a compile that take 15 minutes ?
>SUN and the others for that has to get their act together soon, or else we
>all vill be running VMS on Alphas soon. At least VMS works, and has the
>basic tools needed included. And it even works in clusters.

Sounds like a plan. The 3rd party sw situation is a dog in other areas
at times, mostly pc stuff entering Unix.  

Getting it done right *with* high quality, and serving the customer
with the red carpet treatment works, look at the success of Saturn
cars.  This probably translates to the computer scenario.  Our Alpha is
getting plenty of praise and our Suns are approaching 4 years ...

Newsgroups: comp.sys.sun.admin,comp.unix.admin
From: x03@sun0.urz.uni-heidelberg.de (A. Stegmeier)
Subject: Re: dial-in modem setup
Organization: University of Heidelberg (Germany)
Distribution: na
Date: Mon, 28 Dec 92 12:27:20 GMT

In article <BzyFyu.1D6@quadsys.com> roland@quadsys.com (Roland Besserer) writes:
>envbvs@epb11.lbl.gov (Brian V. Smith) writes:
>: 
>: My Sparc ELC's also don't have /etc/gettydefs and it is not in the man pages.
>: What is the format for this file and who (which program) uses it?
>: 
>/etc/gettydefs is a Sys V.x beast and is used to control serial line
>behavior. BSD derivatives do not have this file but typically use /etc/ttys
>or, on the SUN, /etc/ttytab.
 
The file you may want to look at, is /etc/gettytab.
In the /etc/ttytab you specify which entry of gettytab to use.

>Anyway, gettydefs is a pretty good example of how System V systems 
>management, though different from BSD, is generally superior - aka easier.
>
					*********************   =8-|.

Achim


-- 
Achim Stegmeier                    EARN: X03@DHDURZ1
Unirechenzentrum Heidelberg        E-Mail: x03@sun0.urz.uni-heidelberg.de
Newsgroups: comp.sys.sun.admin
From: casper@fwi.uva.nl (Casper H.S. Dik)
Subject: Re: Rdist questions..
Organization: FWI, University of Amsterdam
Date: Mon, 28 Dec 1992 17:11:55 GMT

aad@siemens.com (Anthony Datri) writes:

>>How does rdist handle programs that are actively running on the 
>>remote host.. 

>Typically the rdistd/rdist -S on the remote machine will rename the old copy
>and unlink it, so running processes should be unaffected by that act.  Of
>course, if it's part of a bigger package, you could have the problem of it
>getting incompatible versions of other parts of the package while the rdist
>is going on, but if you dist at night usually  not much is going on.

Except that programs run on NFS clients will still abort with core
dumps. But because of the renaming rdist does, it is possible
to work around this problem as well by making a hardlinked shadow
tree using ``find | cpio -pdmlv''.

>>For example, if someone is running X windows
>>and you rdist a new copy of X windows to his fileserver
>>does rdist to the right thing and either unlink or rename
>>has program to keep from over writing the disk image..

>In this case, you're perhaps going to end up replacing shared libaries that the
>running processes are using, which is a whole different ball of wax, especially
>if you're going from R4 to R5 with the incompatible Xaw library.  It's best to
>have your users exit from their X sessions before you dist X.

It's not different, as long as you keep a copy of the old file around,
either because it's in use by the local system or because you have
made a link in a shadow tree.

>I used rdist in a previous life to manage an extensive set of software, and
>while rdist has its problems, I was able to work around most of them with cron
>and some truly evil use of "special".

When we use rdist to rdist a newly installed package that has a number
of files spread out over a filesystem that isn't to be mirrored in full,
we use things like: rdist -c `find /usr/local -mtime -1 -print` therhost:

Casper
Newsgroups: comp.sys.sun.admin
From: dthomas@mcl.bdm.com (David Thomas)
Subject: Extending Input Line Buffer past 256
Date: Tue, 29 Dec 92 15:56:52 GMT
Organization: BDM International, Inc.

I have a Sun SparcStation 2 running SunOS 4.1.1 and I need to configure
it so that the default input keyboard buffer size is more than 256.  I
really need this to work for network conections via telnet and 
still want to have canonical input processing performed.  Is this possible?
How does one go about setting the size of the character input queues?

David Thomas
dthomas@mcl.bdm.com
From: txc6266@ultb.isc.rit.edu (T.X. Cheng)
Newsgroups: comp.sys.sun.admin
Subject: About OpenWindows Developer's Guide
Date: 28 Dec 92 23:34:07 GMT
Reply-To: txc6266@ultb.rit.edu ()
Distribution: na
Organization: Rochester Institute of Technology
Originator: txc6266@ultb

Dear Netters:

    Is there anyone who knows anything about the OpenWindows Developer's
    Guide, like price of the software, performance of codes generated and
    the compatibility with the X Window protocol.  Any comment will be 
    highly appreciated.  Please reply via E-mail.  I check this newsgroup
    quite rarely.

Timothy Cheng
--------------
txc6266@ultb.rit.edu
Newsgroups: comp.sys.sun.admin
From: kimc@w8hd.org (Kim Culhan)
Subject: Re: dial-in modem setup
Organization: w8hd.org
Distribution: na
Date: Mon, 28 Dec 1992 23:02:04 GMT

jwa@yog-sothoth.dcrt.nih.gov (James W. Adams) writes:

>In article <1992Dec23.161954.15618@w8hd.org> I wrote:
>> 
>>I didn't do anything with gettydefs (doesn't exist on my 4.1.2 system.) 
>>If you set the modem to 'always return carrier high' then
>>there is, of courese, no way for the machine to get the message that
>>a connection has been made. I found I needed it to be high in order to 
>>communicate with it on outbound calls, however.
>>If CD is not asserted, you can't see any data coming from it (try it..)
>>I found the ideal solution to this problem to be this:
>>[...]

>Read the zs man page.  It tells you how to configure the port to dial
>out without CD asserted using a device with minor number 128 greater
>than the corresponding /dev/tty*

This *is* the way I have the port configured.
The port will dial out fine but if you don't do as I described, you
can't see what the modem returns on the console whn running the
tip program.

>This, combined with disabling echo and result codes and using the &D3
>mode to reset the modem, will work for outgoing and incoming calls.

I know it will work. Thats why I posted the info on how to do this.
Also, you don't need to disable echo and result codes :)

>You can then set the modem so CD follows carrier.  The built-in locking
>will prevent getty from opening the corresponding /dev/tty* device when
>CD goes high on outgoing data calls.

My description included a scheme for setting the modem which involves
initializing it to allow CD to follow carrier. Whats locking got to do
with this?
-Did you read my post?

>You can put an initialization string in applications such as Kermit that
>use result codes in order to reset echo and result codes if needed.

Huh?

[stuff deleted]

Like I said in my post, if you have trouble following my description
let me know and I'll try again.
regards
kim culhan
------
kimc@w8hd.org
From: pers@ppvku.ericsson.se (Per Stromgren)
Newsgroups: comp.sys.sun.admin
Subject: Safe shutdown by users?
Date: 22 Dec 92 15:52:51 GMT
Organization: Ericsson

Dear Net!
	
	At our site we need a better shutdown program than
pulling the plug. /etc/shutdown is not executable by ordinary
users here, we want it to be that way, but we would like to
wrap shutdown with a script that does such things as 
	- check that user is logged in on console
	- check that user is alone on the system
	- check that the system is diskless
	- send a mail to us admin people

The goal is to let people shutdown/reboot their (own) machines,
if they do it through our programmed checklist above.

I just set off the write the script, but I'm not smart enough
to figure out how to setgid/setsid c-program->csh script or
whatever, to make the whole thing at least medium safe. 

My first idea was to write a setgid c-program that just do
system("<my script>") and my script would have rwxr-x--- with
the group set to same group as the setgid program. But, as I
just said, I need a helping hand. Have one?

Regards,
Per Stromgren.
pers@ppvku.ericsson.se
Ericsson Programatic Sweden AB
From: olson@anchor.esd.sgi.com (Dave Olson)
Newsgroups: comp.sys.sun.admin
Subject: Re: why does an 6000 ft exabyte tape give 2.3Gb capacity?
Date: 2 Jan 93 01:01:20 GMT
Organization: Silicon Graphics, Inc.  Mountain View, CA

In <C06Bpu.2IJ@ie.utoronto.ca> andy@ie.utoronto.ca (Andy Sun) writes:
| I know I am missing something, but I don't know what it is and will
| appreciate your help.
| 
| I know for a fact (from the dump(8) man page) that a 2.3Gbyte 8mm
| Exabyte tape has a length of 6,000 feet and a density of 54,000 bits/inch.
| What I don't understand is WHY 6,000 feet with 54,000 bits/inch would give
| 2.3Gbyte?

An Exabyte tape is neither 6000 feet long, nor does it have a density
of 54000 bpi.  These are just phony numbers to fake out the bizarre
way dump (in almost all implementations) calculates capacity.  dump
thinks it 'knows' how much of the tape is lost to interrecord
gaps at various densities.

Most Exabyte tapes are 112 meters long (for the 2.3 GB capacity
on an 8200 drive).  I forget just what the density is; it partly
depends on whether you include the 'unused' tape between the
diagonal stripes, or just the area actually written.
--
Let no one tell me that silence gives consent,  |   Dave Olson
because whoever is silent dissents.             |   Silicon Graphics, Inc.
    Maria Isabel Barreno                        |   olson@sgi.com
Newsgroups: comp.sys.sun.admin
From: efroyman@lynx.dac.northeastern.edu (Ella Froyman)
Subject: Can't login as single user
Followup-To: poster
Keywords: sun
Organization: Northeastern University
Date: Wed, 30 Dec 1992 16:39:08 GMT


Hi netters;

I can't login to my sun sparc 2 running 4.1.2 when i type boot -s
Its asking for a password. How do i disable this? or how do i fix it?
I have forgotten the passwd.
please reply to my email.Thanks

Newsgroups: comp.sys.sun.admin
From: mp@allegra.att.com (Mark Plotnick)
Subject: running 4.1.3-compiled binaries under 4.1.1
Organization: AT&T Bell Laboratories, Murray Hill, NJ
Date: Thu, 31 Dec 1992 01:18:48 GMT

We're installing 4.1.3 on our currently-4.1.1 systems.  But some
systems have to remain at 4.1.1 because of some third-party kernel
modules that are only supported under 4.1.1.

Is there something that can be done to allow programs compiled on 4.1.3
systems, using the bundled c compiler, to run on 4.1.1 systems?
Preferably, this should be done without requiring the users to take any
special actions such as changing search paths or environment
variables.  Also, users should still be able to compile and run
programs on the (modified) 4.1.1 systems.  Presumably the newer
lib*.s[ao]*'s need to be copied over; anything else?

	Mark Plotnick
	mp@allegra.att.com
From: HJFerrara@TASC.com (Henry Ferrara)
Newsgroups: comp.sys.sun.admin
Subject: Creating static linked executable from dynamic?
Followup-To: comp.sys.sun.admin
Date: 24 Dec 1992 00:41:07 GMT
Organization: TASC
Distribution: world
NNTP-Posting-Host: netmac.read.tasc.com

  This is kind of two fold question.  I want to create a static linked
executable from a dynamicly linked excutable.  I don't have the source just
the binary executable.  (I also don't have the individual object files).  I
want to SUID an Open Windows program that is dynamically linked to the
Openwin libraries.  But SUID executables only search /lib, /usr/lib,
/usr/local/lib when resolving link references.  So I figured a static
linked executable would be the easiest and quickest solution.  
    Some admin out there must have run into a need to create a static
linked executable from just the dynamic linked executable!?!?!

            -Thanks in advance - Henry

P.S. SunOS 4.1.X, Openwin 3.0

---------------------
                     Henry Ferrara
                     TASC
                     hjferrara@TASC.com
From: montjoy@thor.ece.uc.edu (Robert Montjoy)
Newsgroups: comp.sys.sun.admin
Subject: Re: rdist
Date: 1 Jan 93 00:55:53 GMT
Organization: University of Cincinnati



Hi..

Everyone using rdist should get the new BSD4.4 version of it.
It does multiple hosts in parallel. It has all the various
security holes fixed (and does not run setuid)..

Get it from usc.edu in the /pub/rdist or is /pub/rdist6(cant
remember) but it works a lot better than the Classic
Berkeley Implementation..

-- 
Rob Montjoy                   		- Rob.Montjoy@UC.Edu
Computer Engineer    	      		- montjoy@ucbeh.BITNET
University of Cincinnati      		- montjoy@babbage.ece.uc.edu
Electrical and Computer Engineering	- uunet!uceng!rmontjoy

--  To Save the Earth. The Humans must die.
From: mickel@OES.ORST.EDU (Paul M. Mickel)
Newsgroups: comp.sys.sun.admin
Subject: Re: Bootable 8mm tape?
Date: 30 Dec 1992 23:29:42 GMT
Organization: Oregon Extension Service, Oregon State University, Corvallis, Or.
Distribution: na
NNTP-Posting-Host: oes.orst.edu

In article <BzLErs.5nv@csn.org> jk@teal.csn.org (John Kranz) writes:
>I have seen them with my own eyes but have never seen
>any documentation on how to create a bootable 8mm tape.
>
>Any tips would be HUGELY appreciated.
>
>Thanks,
>jk@csn.org

Or for that matter, a bootable 1/4 inch tape. I have looked through our
SunOS manuals, and they make no mention of how to make a botable tape
from scratch. 

If this is in a FAQ, let me know. Will post summary.

-pmm



-- 
Paul M. Mickel			  	   Internet:mickel@oes.orst.edu
Sysadmin, Oregon Extension Service	   Corvallis, OR 97331
Database Programmer, Teledyne Wah Chang    Albany, OR 
Disclaimer: Neither employer has *ever* claimed any of my opinions.
Newsgroups: comp.sys.sun.admin