🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.next.announce
Article #138

NeXT-FAQ.misc: tidbits

#138
From: Nathan F. Janette
Date: Fri, 13 Nov 1992 20:00
444 lines
16975 bytes
NeXT-FAQ.misc: tidbits


*** Subject: M1. Is there any way to change the text in the title bar of a  
terminal window?

There is no way of changing the title bar of a Terminal window, but with Stuart
2.4 you can change the title of the current window from the command line. In
Stuart is possible to get more descriptive titles by linking /usr/ucb/rsh to
/usr/hosts/<hostname>.  Then by adding /usr/hosts to your Stuart ShellPath
you can then get the hostname into the title bar:   

	$ dwrite StuartShellPaths <various dirs>:/usr/hosts
	
You should then type in the hostname as the shell to invoke (disable the "Shell
reads .login file" for this.  You can also add hosts to your .Stuartrc file: 
 
	Shell=golem.ps.uci.edu
	SourceDotLogin=NO
	WinLocX=545
	WinLocY=563
	Lines=24
	|
	WinLocX=76
	WinLocY=833

For the localhost, link /bin/csh to /usr/hosts/<name>, or even better
/usr/local/bin/tcsh instead of using rsh  


[Garance A Drosehn <gad@eclipse.its.rpi.edu>] adds:

For what it's worth, I do this with a script called "telnet_to" and a (bash)
function called "telnet_window".  The function simply does a  

     local soil_pars="-Lines 32 -Keypad YES -Reverse YES -Strict YES -TestExit  
YES";
     soil -Shell "telnet_to $1" $soil_pars

and the script is just:

     #!bin/sh
     /usr/ucb/telnet $*
     echo ' '
     echo '  -->   telnet exited, press enter to close window.'
     read -r Waste_Var
     exit 0

This has a number of advantages, not the least of which being that I can pop up  
a
"telnet_window" to anywhere.  I don't have to create links for each host
(though I do create aliases for the most common hosts), and I can type
"telnet_window" (or, e.g., "tel_aix") as a unix command.  Also, if I lose the
connection suddenly then the window stays around until I get a chance to see
what happened.  I use telnet instead of rsh because I generally connect to  
hosts
which won't accept rsh's.  

____________________________________________________________________________

*** Subject: M2. Can I put both a 68030 and a 68040 system board in a single  
NeXT cube?

There is a company which plans to offer hardware (extra CPU boards) and
software support solutions for the OD with Turbo NeXTcubes.   

For more information:

	Sam Goldberger
	Spherical Solutions
	smg@sphersys.net.netcom.com
	415-383-7512


[Note that we have no first hand experience with this problem, we have compiled
what we consider to be an accurate report.  We acknowledge conflicting reports
where appropriate.]

In general Mach may be configured as a multiprocessor operating system;
however, the NeXT kernel is only configured to deal with one processor. This
configuration can not be changed without access to the kernel sources. 
[hopefully NeXT will offer a multiprocessor version of the NeXT operating
system at some future date] 

Some have asked about the possibility of installing the 030 board for use as a
printserver or other CPU-intensive task server.  In this hypothetical setup,
each CPU would run its own copy of the operating system (essentially two
different computers sharing the same cube).

This might be workable except for the fact that even if the NBIC (NextBus
Interface Chip) chip is removed, the CPU board probes the  bus for slot ID [**a
conflicting report comes from Richard Dib who heard that someone ran a cube
with the CPU in another slot].

You could do hardware modification to the 68030 board which would isolate it
enough to use only the cube as a power supply, however you can not run two
monochrome monitor heads off the cube power supply. In this case you would
probably want to first boot the 68030 with a display head, set the boot prom to
boot off ttya, and attach an ascii terminal to that serial port.  

____________________________________________________________________________

*** Subject: M3. Where is libc.a under 2.0?

From the developer's release notes concerning the 2.0 NeXT Operating System
Software available on-line with 2.0 extended:  

	/NextLibrary/Documentation/NextDev/ReleaseNotes/OperatingSystem.rtf 

- libc.a is not shipped with release 2.0.  All routines contained in   libc.a  
are
also contained in the shared library libsys.a which should be used instead of
libc.a.  libc.a is not shipped because  as a normal archive it is impossible  
for
improvements and system interface changes made to library routines to be
applicable to  existing applications without those applications being
relinked.   Applications referencing shared libraries, because they are
bound at runtime, always access the most recent release.  Release 1.0 
applications linked against libc.a may not be compatible with  release 2.0
until they are relinked with libsys.a.  


*** Subject: M4. How do I get pictures of people from remote sites to appear in   
Mail.app and NewsGrazer? 

Mail.app:
In /LocalLibrary/Images/People put a tiff (64x64) in the form of
person@remote.site.domain.tiff (all lowercase). In
/LocalLibrary/Images/People/passwd add an entry for the person:
person@remote.site.domain:*:-2:-2::/nodir:/noshell (person and
sitename need to be all lowercase as well)...  In the future anytime you get  
mail
from the person their picture should appear.  

You can include an "aliases" file in /LocalLibrary/Images/People too.  This
allows you to use the same picture for somebody that might send you mail from
accounts on many different sites, or for those people whose letters use
several different routings.  

To do this, you include entries in this local aliases file like so:  

	bkohler@ucrac1.ucr.edu:bkohler.gonzo.ucr.edu
	gonzo.ucr.edu!bkohler@uupsi2.uucp:bkohler.gonzo.ucr.edu

There should then be a .tiff file called bkohler.gonzo.ucr.edu.tiff.  

There can be no CAPITAL LETTERS in this file.  So even if the address in the  
From:
field looks like gonzo.ucr.edu!bkohler@uupsi2.UUCP, keep the letters
lowercase in the aliases file.

As always, you have to restart Mail.app before these changes take effect.  


NewsGrazer:
In /LocalLibrary/NewsGrazer/People put a tiff (64x64) in the form of
person.remote.site.domain (all lowercase).  This is a different naming
convention from what Mail.app uses. 

There is a large archive of some 4000 or 5000 pictures prepared for this
purpose. The name of this archive is Faces3.tar.Z and it is about 4.1 MBytes
large. Currently it is available from several anon ftp sites (e.g.
sonata.cc.purdue.edu) in: 

	/pub/next/graphics/Images/icons/people.

That image archive also contains a script which automatically creates proper
alias and passwd files.  

____________________________________________________________________________

*** Subject: M5. How do I access the "help" facilities in Mathematica 1.0?

While the help dialog doesn't show anything, you can get the help info by
clicking on the place where the slider bar should be.  This tidbit doesn't seem
to work on all systems though, and will be irrelevant once the new version of
Mathematica comes out. [Which it has]. 

____________________________________________________________________________

*** Subject: M6. How do I find out what are the defaults for a NeXT  
application?

A command line utility for examining defaults is available from
sutro.sfsu.edu:/pub/wmdefaults1.0.tar.Z.

A PD App, DefaultMgr.app, is available on the NeXT ftp archives. 

A more brute approach (done by DefaultMgr.app):

Start the application under gdb, and then try the following sequence of
commands:  

	break  *0x500976a
	commands 1
	silent
	printf "%s: ", *$a2
	output {char *}(4+$a2)
	echo \n
	cont
	end
	run

____________________________________________________________________________

*** Subject: M7. How do I run NextApps remotely?

On the local machine make sure you have public window server access, this is  
set
from the Preferences application.  On the foreign NeXT machine run the
application from a terminal window with the -NXHost <local_machine_name>. 
Both machines should be running the same version of NeXTstep.  

____________________________________________________________________________

*** Subject: M8. Why does UUCP hangs on outgoing connections after sending the  
password, but other communications software do not have a problem with it?

What is happening is that the remote machine is waiting for you to end your  
login
or password by typing a "Return" (aka ^M or CR or CARRIAGE RETURN).  UUCP ends  
a
line by sending a LineFeed (aka ^J or LF).  Since UUCP doesn't send the CR, the
login sequence is never completed, and you will usually get one of two error
messages:  

	wanted "password:" (means that username needs to end with a CR)
	imsg waiting for SYNC< (means that password needs to end with CR)

So how do you get UUCP to send CR, instead of LF?

End the send string with the sequence \n\c.  For instance this line in L.sys  
will
send a LF after login, but a CR after password. 

	myfeed Any DIR 9600 cub "" ATTD19095551212 9600 \
	"" ogin:--ogin: Unext ssword: secret\n\c

____________________________________________________________________________

*** Subject: M9. How do I access the NeXT's Digital Websters Dictionary from a  
program?

Get Jiro Nakamura's define program from the archiver servers define.tar.Z. 
This will allow you to access the database from the command line.  

____________________________________________________________________________

*** Subject: M10. How do I remap the \ and | keys on my keyboard?

NeXT introduced a new keyboard configuration with the 040 products. The \|
keys which had been located on the main keyboard was moved to the numeric
keypad.  Many users have since complained about it, and a work around is to  
remap
these keys using the demo application Keyboard
(/NextDeveloper/Demos/Keyboard), Mike Carlton's keyboardfix program (on
cs.orst.edu next/sources/next-interface/keyboardfix.tar.Z) which lets
you put these keys on shift-return or shift-delete.  One can hope that there
will be a choice of keyboards in the future.  

____________________________________________________________________________

*** Subject: M11. Why doesn't email registration to Mathematica work?

There is a bug with this option where the mail instead of being sent to Wolfram  
is
stored in /tmp/email.message. This file seems to be suitable for mailing to
register@wri.com 

____________________________________________________________________________

*** Subject: M12. How do I stop NeXTMail/Sendmail adding\ ^Ms onto the end of  
lines? 

In /etc/sendmail.cf make this change:

[old code]

	#####		UUCP Mailer specification
	#####
	Muucp,	P=/usr/bin/uux, F=msDFMhuU, S=13, R=23,

[new code]

	#####		UUCP Mailer specification
	#####
	Muucp,	P=/usr/bin/uux, F=msDFMhuU, S=13, R=23, E=\n,

____________________________________________________________________________

*** Subject: M13. Where can I get black spray paint for my NeXT? 

Sprayon Paint
Omni-Packblend
4Next-Black (icon black)
LAV-16
25216

Call 1-800-777-2966 for the name of a dealer near you. It's nominally $2.75/16
oz. can. 

____________________________________________________________________________

*** Subject: M14. What default affects menu location?

dwrite GLOBAL NXMenuX <value>
dwrite GLOBAL NXMenuY <value>

____________________________________________________________________________

*** Subject: M15. How to get Gourmet to boot up the Mathematica 2.0 kernel? 

Login as root, or get root privileges running 'su', and execute the following
five commands:  

	mkdirs /NextApps/Mathematica.app/Kernel/NeXT
	cd /NextApps/Mathematica.app/Kernel
	ln -s uuuuu/Mathematica.app/Kernel/Display Utilities
	cd NeXT
	ln -s vvvvv/math mathexe

where uuuuu is the directory where Mathematica.app was placed (typically,
/LocalApps) and vvvvv is the directory where the executable 'math' was placed
(typically, /usr/local/bin)  

____________________________________________________________________________

*** Subject: M16. How to have the hostname show up on the NeXT login screen? 

As root:

	dwrite loginwindow HostName localhost

The "localhost" will be replaced with your system name.	
	
____________________________________________________________________________

*** Subject: M17: How does one set UNIX man pages to be viewed in nroff format  
with DL like the standard manual pages?

Beyond looking in the man pages under ixBuild, etc., what you want to do is put  
a
few files (contents listed below file name) the .index directory:  

	.roffArgs:
	-man

	displayCommand:
	tbl %s | nroff -man

	ixBuildOptions:
	-fman -Nwhatis -Ncat[1-8ln] -V

Other options that people suggested for ixBuildOptions:

	-fman -Nwhatis -Ncat[1-8] -V /usr/local/man
	-fman -Nwhatis -V /usr/local/man/man*

I don't think you need to explicitly name the directory in the first
alternative, but you do in the second unless you want the cat* directories
indexed as well.

Note: Do NOT leave a trailing return after the line in ixBuildOptions; DL will
barf.  (I think someone said that, as shipped, the standard man .index/
ixBuildOptions had this problem.)  

____________________________________________________________________________

*** Subject: M18: Can I automatically have my ~/.signature file appended to  
mail I send with Mail.app?

I want to automatically add additional header lines to mail going  out from
Mail.app (such as Reply-To or X-faces headers). Can this be  done? 

[Carl Edman]

Yes, on both counts. First create a simple text file the following  content: 

	#!/bin/sh
	{
	if test -r ${HOME}/.add-header; then cat ${HOME}/.add-header; fi
	cat -
	if test -r ${HOME}/.signature; then echo "--"; cat ${HOME}/.signature; 
	fi
	}| /usr/lib/sendmail "$@"

A good name for this file would be "sendmail-addheader". If you want to  and  
can
install it for system-wide use put this file in e.g. /usr/lib.  Otherwise your
private ~/Unix/bin directory is also fine. Make certain  that this file has
execute permission. To set that, use e.g. "chmod 755 
/usr/lib/sendmail-addheader".

Next, open up the preferences panel in Mail.app. Switch to the expert  options.
Change the Mailer option from "/usr/lib/sendmail" (which it  should
originally be) to "/usr/lib/sendmail-addheader" (or whatever the  name of
the file you created is). OK this and you should be set. 

From now on your ~/.signature file should always be appended to all  mail sent
out with Mail.app. In addition if you have a file called  add-header in your
home-directory it should automatically be prepended  to your outgoing mail.
To implement a reply-to line, you would simply  give it the following content:  

	Reply-to: My Real Human Name <name@my.real.address>

IMPORTANT: Make certain that you have one and exactly one newline at  the end  
of
~/.add-header. Anything might break outgoing mail. Beware !

BUG: The ~/.signature file is not added properly for NeXT mail  containing
attachments. The headers will still be added properly. This  could be fixed but
probably is more of a hassle than it is worth. 

____________________________________________________________________________

*** Subject: M19: How can I quickly find a file if I don't know it's directory?

The Unix 'find' command on the NeXT has the capability of quickly searching a
database of all the files.  This database is located in /etc/find.codes and has
to be generated periodically.  You can automatically generate this database,
say twice a week at 3:15 a.m., by adding this line to your file
/etc/crontab.local (you might have to create this file).  

15 03 * * 2,5 root	/usr/lib/find/updatedb > /usr/adm/updatedb.err

After this has run, you can quickly find any file from a terminal by typing 


	find pattern
	
where pattern is a part of the file name you want (it is case-sensitive).  


____________________________________________________________________________

NeXT-FAQ Editor:
Nathan Janette nathan@laplace.csb.yale.edu


--
Nathan Janette		"I'm a NeXTstep man,
Dept MB&B, Yale Univ	 I'm a NeXTcube guy"
New Haven, CT
nathan@laplace.biology.yale.edu (NeXT)
Technical Details
Message-ID: <1992Nov13.200008.14330@cs.yale.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!gumby!yale!cs.yale.edu!news

Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.announce
Path: arc1-ca.pugleaf.net!sparky!uunet!gumby!yale!cs.yale.edu!news
From: nathan@laplace.biology.yale.edu (Nathan F. Janette)
Subject: NeXT-FAQ.misc: tidbits
Message-ID: <1992Nov13.200008.14330@cs.yale.edu>
Sender: news@cs.yale.edu (Usenet News)
Nntp-Posting-Host: jacobi.biology.yale.edu
Reply-To: nathan@laplace.biology.yale.edu
Organization: Yale University, Department of Computer Science, New Haven, CT
Date: Fri, 13 Nov 1992 20:00:08 GMT
Approved: nathan@laplace.csb.yale.edu
Lines: 445