Subject: CDE works
To: None <port-sparc@NetBSD.ORG>
From: Greg Earle <earle@isolar.Tujunga.CA.US>
List: port-sparc
Date: 03/28/1997 19:28:27
In case anyone's interested, I've got TriTeal's TED 4.0 product (basically,
TriTeal's port of CDE) running under NetBSD/SPARC 1.2.1, using their SunOS
distribution:

netbsd4me:1:144 % uname -a
NetBSD netbsd4me 1.2.1 NetBSD 1.2.1 (NETBSD4ME) #4: Fri Mar 28 01:03:11 PST 1997     earle@netbsd4me:/usr/src/1.2.1/sys/arch/sparc/compile/NETBSD4ME sparc

netbsd4me:1:145 % ps -axww | egrep 'PID|dt|tts'
  PID TT  STAT      TIME COMMAND
 4199 ??  S      0:32.04 /usr/X11R6.1/bin/X :0 -auth /var/dt/Anetbsd4me:0-a00165 (Xsun)
 4200 ??  I      0:00.08 /usr/dt/bin/dtlogin 
 4228 ??  I      0:01.66 /usr/dt/bin/dtsession 
 4261 ??  S      0:00.60 /usr/dt/bin/dsdm 
 4262 ??  I      0:00.65 /usr/dt/bin/ttsession -s 
 4276 ??  S      0:07.10 dtwm 
 4277 ??  I      0:03.36 dtfile 
 4279 ??  I      0:01.79 /usr/dt/bin/dthelpview 
 4283 ??  I      0:00.46 dtfile 
 4296 ??  I      0:00.17 /usr/dt/bin/dtexec -open 0 -ttprocid 2.pF7jB 01 4262 1342177295 1 0 1074 128.149.24.252 3_102_1 /usr/dt/bin/dtterm 
 4297 ??  S      0:24.72 /usr/dt/bin/dtterm 
  165 co- I      0:02.02 /usr/dt/bin/dtlogin 

I figured I had a better chance of getting this to work with SunOS binaries
than if I'd tried the Solaris 2.5.1 CDE 1.0.2 stuff ...

Getting this running was, uh, an "interesting exercise"  :-)

My /emul/sunos/etc directory now has a few more things in it as a result
of this.  The CDE login widget thingie demanded to see a SunOS-style readable
passwd file, so I had to copy /etc/master.passwd to /emul/sunos/etc/passwd
and edit it a bit.  Something else wanted a SunOS-style utmp file so
/emul/sunos/etc/utmp became a symlink to /var/run/utmp.  The ToolTalk database
server (rpc.ttdbserverd) wanted to see a SunOS-style /etc/mtab file, so I
copied /etc/fstab to /emul/sunos/etc/mtab and added ",dev=NNN" entries where
appropriate.  Of course "dtterm" wanted a termcap entry, so /emul/sunos/etc
got a "termcap" symlink to /usr/share/misc/termcap.  And so on and so forth ...
(Maybe some of these could be added to compat_sunos(8) ... )

Anyway, if anyone cares, you can get a 30-day eval. CD-ROM from TriTeal, and
I can help with any specific questions about it ... I had to modify a few of
the scripts that come with TED as they're looking in SunOS-specific places for
certain things (like grep, chown, chmod, etc.).  (It would also be cool if
someone wrote an "lpstat" for NetBSD, because the CDE printer stuff wants to
use "lpstat -t" and since that doesn't exist, all the Print Manager stuff
doesn't work - claims there's no printers.)

	- Greg