[comp.windows.x] guidelines for installation of MIT X11R4 on DECstation 5000

bgh@ice9.uucp (barry hannigan) (04/23/91)

i am looking for some pointers on the best method of installing X11R4 on 
a DECstation which already has UWS 4.0 (X11R3). 

points needing mention:

- UWS uses .pcf fonts, X uses .snf, so no font sharing

- DECstations have no "console mode". if the :0 entry is removed from the
  /etc/ttys file, the machine hangs on startup. this is bad news if the X 
  server has any problems.

- the fix for the "illegal lhs" error in ./clients/xterm/main.c

- any code for utilizing the 2d accellerator in a 5000 PX

- a nice template file for imake

thanks in advance. 

barry

-- 
~~~~~~~ ..walkin on the beaches, lookin at the peaches

stolcke@ICSI.Berkeley.EDU (Andreas Stolcke) (04/23/91)

In article <1991Apr22.221828.2193@ice9.uucp>, bgh@ice9.uucp (barry hannigan) writes:
|> i am looking for some pointers on the best method of installing X11R4 on 
|> a DECstation which already has UWS 4.0 (X11R3). 
|> 
|> points needing mention:
|> 
|> - UWS uses .pcf fonts, X uses .snf, so no font sharing

The .cf file below will use the UWS font tools to install .pcf versions
of the X11R4 fonts in /usr/lib/X11/fonts if BuildServer is set to NO.
This assumes you want to stick to the DEC's DPS server.

|> - the fix for the "illegal lhs" error in ./clients/xterm/main.c

*** main.c.dist Sat Jan 27 01:33:46 1990
--- main.c      Tue Feb  5 19:34:06 1991
***************
*** 104,109 ****
--- 104,114 ----
  #endif        /* !SYSV */

  #include <stdio.h>
+ #ifdef ultrix
+ #undef fileno
+ #define fileno(p)       ((p)->_file)
+ #endif
+
  #include <errno.h>
  #include <setjmp.h>
|> 
|> - a nice template file for imake
|> 
See below.

-- 
Andreas Stolcke					stolcke@icsi.berkeley.edu
International Computer Science Institute	stolcke@ucbicsi.bitnet
1957 Center St., Suite 600, Berkeley, CA 94704	(415) 642-4274 ext. 126
----

/*
 * SET VERSION NUMBERS BEFORE MAKING MAKEFILES
 */

#define OSName            Ultrix V4.0
#define OSMajorVersion    4
#define OSMinorVersion    0
#define SystemV NO
#define HasVoidSignalReturn YES
#define HasPutenv YES
#define HasBsearch YES
#define BuildServer	NO

#undef ExtensionDefines
#define ExtensionDefines -DSHAPE -DMITSHM -DMULTIBUFFER -DMITMISC

#ifdef VaxArchitecture
#define XqvssServer Xqvss
#define XqdssServer Xqdss
#define UnalignedReferencesAllowed YES	       /* if arbitrary deref is okay */
#define HasSaberC YES
#define ServerDefines StandardDefines ExtensionDefines -DXDMCP -DNOSTDHDRS -DX11R4
/* gcc is *VERY USEFUL*, especially for the server; GET it */
/* #define HasGcc YES */
#endif

#ifdef MipsArchitecture
#define XmfbpmaxServer Xmfbpmax
#define XcfbpmaxServer Xcfbpmax
#define StandardDefines
#define DefaultCCOptions -Wf,-XNh2000 -Olimit 2000
#define ServerDefines StandardDefines ExtensionDefines -DXDMCP

#endif

#ifndef HasFortran
#define HasFortran YES
#define FortranDebugFlags -g
#endif

#if !BuildServer
/*
 * MakeFonts - generate rules to build font databases.
 */
#ifndef MakeFonts
#define MakeFonts()							@@\
all::  $(OBJS) fonts.dir						@@\
									@@\
fonts.dir:  $(OBJS)							@@\
	dxmkfontdir .							@@\
									@@\
clean::									@@\
	$(RM) *.snf fonts.dir
#endif /* MakeFonts */

/*
 * InstallFonts - generate rules to install font files
 */
#ifndef InstallFonts
#define InstallFonts(dest)						@@\
install:: $(OBJS)							@@\
	@case '${MFLAGS}' in *[i]*) set +e;; esac; \			@@\
	for i in $(OBJS); do \						@@\
		(set -x; $(INSTALL) -c $(INSTDATFLAGS) $$i  dest/`basename $$i .snf`.pcf); \		@@\
	done								@@\
									@@\
install::  fonts.dir							@@\
	$(INSTALL) -c $(INSTDATFLAGS) fonts.dir dest
#endif /* InstallFonts */


/*
 * FontTarget - generate rules to convert a .bdf file into a .snf file.
 */
#ifndef FontTarget
#define FontTarget(basename)						@@\
basename.snf:  basename.bdf						@@\
	dxfc $(FONTCFLAGS) $? >$@
#endif /* FontTarget */


/*
 * CompressedFontTarget - generate rules to convert a .bdf file into a 
 * compressed .snf file.
 */
#ifndef CompressedFontTarget
#define CompressedFontTarget(basename)					@@\
basename.snf.Z:  basename.bdf						@@\
	dxfc $(FONTCFLAGS) $? >basename.snf				@@\
	$(COMPRESS) basename.snf					@@\
	rm -f basename.snf
#endif /* CompressedFontTarget */
#endif

/**/# platform:  $XConsortium: ultrix.cf,v 1.20 89/12/22 15:56:14 rws Exp $
/**/# operating system:  OSName

muts@fysak.fys.ruu.nl (Peter Mutsaers) (04/23/91)

bgh@ice9.uucp (barry hannigan) writes:

>points needing mention:

>- UWS uses .pcf fonts, X uses .snf, so no font sharing
so just use X11R4 fonts.

>- DECstations have no "console mode". if the :0 entry is removed from the
>  /etc/ttys file, the machine hangs on startup. this is bad news if the X 
>  server has any problems.
put console on in /etc/ttys if something goes wrong.
install xdm as it should be (xdm started from /etc/rc, and set up config
files in /usr/lib/X11/xdm)

>- the fix for the "illegal lhs" error in ./clients/xterm/main.c
this error occurse because of a macro from /usr/include/stdio.h, which
has added an (int) typecast which now appears on the lhs.
Fill in the macro yourself in the source and omit the typecast.

>- any code for utilizing the 2d accellerator in a 5000 PX
??

>- a nice template file for imake
edit site.def and maybe Imake.tmpl according to the instructions. change
the LIBDIR and INCROOT for example.

>thanks in advance. 

>barry

>-- 
>~~~~~~~ ..walkin on the beaches, lookin at the peaches
--
Peter Mutsaers                          email:    muts@fysap.fys.ruu.nl     
Rijksuniversiteit Utrecht                         muts@fys.ruu.nl
Princetonplein 5                          tel:    (+31)-(0)30-533880
3584 CG Utrecht, Netherlands                                  

fingerhu@ircam.fr (Michel Fingerhut) (04/24/91)

We removed UWS altogether.  As to the console mode, we have *two* potential
/etc/ttys files, one called /etc/ttys.X11, with the line

    console	"/etc/getty std.9600" vt100 off	secure	# console terminal

and one called /etc/ttys.noX11 with:

    console	"/etc/getty std.9600" vt100 on	secure	# console terminal

while the startup code in /etc/rc.local looks like:

    if [ -f /usr/local/bin/X11/xdm -a -f /usr/local/lib/X11/xdm/xdm-config ]
    then
	cp /etc/ttys.X11 /etc/ttys
	/usr/local/bin/X11/xdm -config /usr/local/lib/X11/xdm/xdm-config;
	echo -n ' xdm'						>/dev/console
    else
	cp /etc/ttys.noX11 /etc/ttys
    fi

You can obviously refine this to allow for recovery if launching xdm fails, etc.

muts@fysak.fys.ruu.nl (Peter Mutsaers) (04/25/91)

fingerhu@ircam.fr (Michel Fingerhut) writes:

>We removed UWS altogether.  As to the console mode, we have *two* potential
>/etc/ttys files, one called /etc/ttys.X11, with the line

>    console	"/etc/getty std.9600" vt100 off	secure	# console terminal

>and one called /etc/ttys.noX11 with:

>    console	"/etc/getty std.9600" vt100 on	secure	# console terminal

Why not put the console on always (I did this). It doesn't hurt, and if
--
Peter Mutsaers                          email:    muts@fysap.fys.ruu.nl     
Rijksuniversiteit Utrecht                         muts@fys.ruu.nl
Princetonplein 5                          tel:    (+31)-(0)30-533880
3584 CG Utrecht, Netherlands                                  

D. Allen [CGL]) (05/03/91)

In article <muts.672525577@fysaj> muts@fysak.fys.ruu.nl (Peter Mutsaers) writes:
>fingerhu@ircam.fr (Michel Fingerhut) writes:
>
>>We removed UWS altogether.  As to the console mode, we have *two* potential
>>/etc/ttys files, one called /etc/ttys.X11, with the line
>
>>    console	"/etc/getty std.9600" vt100 off	secure	# console terminal
>
>>and one called /etc/ttys.noX11 with:
>
>>    console	"/etc/getty std.9600" vt100 on	secure	# console terminal
>
>Why not put the console on always (I did this). It doesn't hurt, [...]

Yes it does hurt, at least on Xqdss displays.  Having getty print a
login banner on your console while X is trying to use the display
causes all kinds of silly problems such as missing cursors, bad colour
maps, garbled output, etc.  You really do have to turn off the console
on colour displays.
-- 
-IAN! (Ian! D. Allen) idallen@watcgl.uwaterloo.ca idallen@watcgl.waterloo.edu
 [129.97.128.64]  Computer Graphics Lab/University of Waterloo/Ontario/Canada