[comp.sys.amiga] DNet on Sun3 with SunOS 4.1

pashdown@javelin.es.com (Pete Ashdown) (12/14/90)

I posted this a while ago:

>Someone posted a fix for using DNet on a Sun 3 under 4.1 a while ago.  If
>anyone is using DNet 2.10.13 under this configuration, please mail me and
>tell me how.

I got several responses.  Half of them were "If you find out how, tell me" and
the other half were "I don't have any problems, it works fine."  After a bit
more dinking around with DNet, I did manage to get it to run.  What was
bothering me originally is the fact that DNet will coredump if you don't have
DNETDIR set.  Just setenv the DNETDIR to the directory where the server files
are kept and you shouldn't have any problems running DNet.

Another thing to watch out for is stray DNet processing hanging around.  If
you have to quit by disconnecting the modem, BE SURE to kill the DNet
processes when you log back in.  When they start to stack, funky things begin
to happen.  Use "quitdnet" ALWAYS for terminating your sessions.

I did receive the patch I requested, although it really isn't necessary.  It
does make things nicer in the fact that it doesn't read .login for every
new fterm.  The patch follows this post.  Another thing you may want to add
is the fixed amiga termcap.  The amiga termcap that comes with the SunOS
distribution sucks rocks.  This one is much more full featured.  It also
follows this post.

Thanks for all the help!  DNet is WONDERFUL to use!

---------------------------------------------------------------------------

From: tadguy@abcfd01.larc.nasa.gov (Tad Guy)
Newsgroups: comp.sys.amiga
Subject: Re: DNet running under SUNOS4.0.3?
Message-ID: <TADGUY.90Jul16104245@abcfd17.larc.nasa.gov>
Date: 16 Jul 90 14:42:45 GMT
References: <3530@strider.oakhill.UUCP>
Sender: news@cs.odu.edu
Organization: NASA/Langley Research Center, Hampton, VA
Lines: 49
Posted: Mon Jul 16 15:42:45 1990
In-reply-to: sinclair@oakhill.UUCP's message of 14 Jul 90 21:40:36 GMT

In article <3530@strider.oakhill.UUCP> sinclair@oakhill.UUCP (Brian Sinclair) writes:
> I have been trying to get DNET running on a sun 3/80 under SUN OS
> 4.0.3 using version 2.13.  I know the docs say it does not run under
> 4.0.3, but I was just wondering if any had gotten around that
> problem yet. 

DNet 2.13 does work under SunOS 4.0.3c.  I used the copy that was
posted to comp.binaries.amiga/comp.sources.amiga not too long ago.
I made a couple of minor changes.  The first makes the fterm's shell a
normal subshell (instead of a login shell).  This means only my .cshrc
will be read for each window instead of both .cshrc and .login.  The
second change is a minor fix to the server Makefile (it has two
rulesets for the same object).  Diffs enclosed.

	...tad

*** /tmp/,RCSt1a01936	Mon Jul 16 10:42:08 1990
--- unix/dnet/internal.c	Sun Jun 24 20:00:48 1990
***************
*** 122,128 ****
  		if (!home)
  		    home = ".";
  		chdir(home);
! 		execl(shell, "-fshell", NULL);
  		perror(shell);
  	    }
  	    _exit(1);
--- 122,128 ----
  		if (!home)
  		    home = ".";
  		chdir(home);
! 		execl(shell, "fshell", NULL);
  		perror(shell);
  	    }
  	    _exit(1);
*** /tmp/,RCSt1a01939	Mon Jul 16 10:42:11 1990
--- unix/server/Makefile	Sun Jun 24 18:57:57 1990
***************
*** 24,32 ****
  $(BIN)/sgcopy:		sgcopy.o
  	cc sgcopy.o $(NETLIB) -o $(BIN)/sgcopy
  
- $(BIN)/snfs:		snfs.o
- 	cc snfs.o $(NETLIB) -o $(BIN)/snfs
- 
  $(BIN)/sshell:    	sshell.o
  	cc sshell.o $(NETLIB) -o $(BIN)/sshell
  
--- 24,29 ----



---------------------------------------------------------------------------

                           Amiga Ansi Termcap v 1.2
                           ------------------------

Here is the latest version of my Amiga termcap file (Actually pretty old).

Thanks to Ross Bogue and a couple of others for inspiration.

If you want to try this termcap entry without putting it in /etc/termcap,
or automatically invoking it, you can probably use the following alias:

alias amiga "setenv TERMCAP path/amiga; set term = amiga"

where path/amiga is the path name to the file 'amiga' which is the following
termcap entry file. Then type 'amiga' in the csh in which you wish to use
this termcap.

Good Luck,

Kent Polk
Southwest Research Institute
kent@swrinde.nde.swri.edu

07/89 - 1.2 changes:
--------------------

Converted caret-type control sequence (^x) entries to '\0xx' entries
since a couple of people mentioned loosing the '^x' sequences when sent
via mail.
 
Changed the following: 

  :k0=\E9~: map F10 to k0 - could have F0-9 -> k0-9, but F10 was 'k;'
  Apparently vi only knows up to k9

  F1-FA   : removed F11 through F20. Who uses them? 
  Also removed a couple of 'sent by xx key' commands. Couldn't find anything
  which used them either.

03/89 - 1.1 changes:
--------------------
Added a few more entries:
  as, ae : Support for alternate character sets. Handy with termcap
  version of tput() for recovering your default character set.

  :ve=\E[\040p:vi=\E[\060\040p  cursor visible/invisible.

  :nl=\E[B:  Old versions of Jove and vi need this.

  :xn:  vt100 kludginess at column 80/NEWLINE ignore after 80 cols(Concept)
     This one appears to fix a problem I always had with a line ending
     at 'width+1' (I think) followed by a blank line in vi. The blank
     line tended to disappear and reappear depending on how the screen
     was refreshed. Note that this is probably needed only if you use
     something like a Dnet Fterm with the window sized to some peculiar
     dimension larger than 80 columns.

--------------------------------------------------------------------
  It has also been brought to my attention that only the following
  commands are typically used by such as vi, so a more compact Amiga
  termcap could be made for those who so wish.

  AL DL DO LE RI UP
  al am bc bs bt cd ce cl cm co cr cs da db dc dl dm do ed ei eo hc ho hz
  ic im in ip k0 k1 k2 k3 k4 k5 k6 k7 k8 k9 kd ke kh kl kr ks ku li ll mi
  nc nd nl ns os pc rc sc se sf so sr ta te ti ul up vb ve vs xb xn xt xx
 
  Also, Ross mentioned that you might want to add the following items to use
  hard tabs with vt100 tabsettings (8 spcs). Actually I don't see any
  difference as tabs are currently expanded to 8 spaces on the Amiga, but ...
  :pt:if=/usr/lib/tabset/vt100:
-----------------------------------------------------------------------------
# Amiga termcap by Kent Polk
AA|amiga|Amiga ANSI:\
   :co#80:li#24:am:bs:bw:\
   :AL=\E[%dL:DC=\E[%dP:DL=\E[%dM:DO=\E[%dB:\
   :LE=\E[%dD:RI=\E[%dC:SF=\E[%dS:SR=\E[%dT:UP=\E[%dA:\
   :ae=\017:al=\E[L:as=\016:bl=\007:bt=\E[Z:cd=\E[J:ce=\E[K:cl=\E[H\E[J:\
   :cm=\E[%i%d;%dH:dc=\E[P:dl=\E[M:do=\E[B:ho=\E[H:ic=\E[@:is=\E[20l:\
   :k1=\E0~:k2=\E1~:k3=\E2~:k4=\E3~:k5=\E4~:k6=\E5~:k7=\E6~:k8=\E7~:k9=\E8~:\
   :k0=\E9~:kb=^H:kd=\EB:kl=\ED:kr=\EC:ku=\EA:le=\E[D:\
   :mb=\E[7;2m:md=\E[1m:me=\E[0m:mh=\E[2m:mk=\E[8m:mr=\E[7m:nd=\E[C:nl=\E[B:\
   :rs=\Ec:se=\E[0m:sf=\E[S:so=\E[7m:sr=\E[T:ue=\E[0m:up=\E[A:us=\E[4m:\
   :ve=\E[\040p:vi=\E[\060\040p:xn:


-- 
"While you are here, your wives and girlfriends are dating handsome American
 movie and TV stars. Stars like Tom Selleck, Bruce Willis, and Bart Simpson."
                                -- Baghdad Betty
  Pete Ashdown  pashdown%javelin@dsd.es.com  ...dsd.es.com!javelin!pashdown