home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / compsrcs / sun / volume02 / xterm.250 < prev   
Encoding:
Internet Message Format  |  1991-08-27  |  4.8 KB

  1. From bacchus.pa.dec.com!decwrl!wuarchive!cs.utexas.edu!bcm!dimacs.rutgers.edu!aramis.rutgers.edu!mcgrew Fri Aug 24 20:10:58 PDT 1990
  2. Article 114 of comp.sources.sun:
  3. Path: bacchus.pa.dec.com!decwrl!wuarchive!cs.utexas.edu!bcm!dimacs.rutgers.edu!aramis.rutgers.edu!mcgrew
  4. From: mcgrew@aramis.rutgers.edu (Charles Mcgrew)
  5. Newsgroups: comp.sources.sun
  6. Subject: v02i016:  Configing a 2/50 as an X terminal
  7. Message-ID: <Aug.24.16.15.59.1990.17881@aramis.rutgers.edu>
  8. Date: 24 Aug 90 20:15:59 GMT
  9. Organization: Rutgers Univ., New Brunswick, N.J.
  10. Lines: 143
  11. Approved: mcgrew@aramis.rutgers.edu
  12.  
  13. Submitted-by: clyde@sirius.cc.utexas.edu
  14. Posting-number: Volume 2, Issue 16
  15. Archive-name: xterm-250
  16.  
  17.  
  18.  
  19.  
  20. This document explains how we converted Sun 2/50s into 'X terminals'.
  21.  
  22. #    This is a shell archive.
  23. #    Remove everything above and including the cut line.
  24. #    Then run the rest of the file through sh.
  25. -----cut here-----cut here-----cut here-----cut here-----
  26. #!/bin/sh
  27. # shar:    Shell Archiver
  28. #    Run the following text with /bin/sh to create:
  29. #    README
  30. #    CCWF_X_TERMINAL
  31. #    Makefile
  32. #    X0.hosts
  33. #    Xfrominit.sh
  34. #    ttytab
  35. #    inetd.conf
  36. # This archive created: Tue May 29 14:07:55 1990
  37. # By:    Head UNIX Hacquer (Moose & Squirrel Software)
  38. cat << \SHAR_EOF > README
  39. How we converted Sun 2/50s into "X terminals".
  40.  
  41. What we did was to strip down SunOS 4.0.3, removing that which isn't
  42. needed.  The process is:
  43.  
  44. 1. Configure a stripped kernel (2/50 configuration supplied).
  45. 2. Edit /etc/rc and or /etc/rc.local to start up only >>essential<<
  46.    network servers (e.g. /etc/inetd).
  47. 3. Edit /etc/inetd.conf to remove most network services (sample provided).
  48. 4. Change /etc/ttytab to start up X server.
  49. 5. Configure an xdm to service the terminal.
  50. 6. Reboot the new X-terminal.
  51.  
  52. SHAR_EOF
  53. cat << \SHAR_EOF > CCWF_X_TERMINAL
  54. #
  55. # %W% %G% (cc.utexas.edu) %P%
  56. #
  57. # CCWF ``X terminal'' - Diskless Model 50 dedicated to running an X server
  58. #
  59. machine        "sun2"
  60. cpu        "SUN2_50"
  61. ident        "CCWF_X_TERMINAL"
  62. maxusers    4
  63. options        INET
  64. options        NFSCLIENT
  65.  
  66. config        vmunix        root on type nfs
  67.  
  68. pseudo-device    ether
  69. pseudo-device    pty
  70. pseudo-device    loop
  71. pseudo-device    ms1
  72. pseudo-device    kb1
  73.  
  74. # connections for machine type 2 (SUN2_50)
  75. controller    virtual 2 at nexus ?    # virtual preset
  76. controller    obmem 2 at nexus ?    # on board memory
  77. controller    obio 2 at nexus ?    # on board io
  78.  
  79. device        zs0 at obio 2 csr 0x7f2000 flags 3 priority 3
  80. device        zs1 at obio 2 csr 0x7f1800 flags 0x103 priority 3
  81. device        ie0 at obio 2 csr 0x7f0800 priority 3
  82. device        bwtwo0 at obio 2 csr 0x0 priority 4
  83. SHAR_EOF
  84. cat << \SHAR_EOF > Makefile
  85. #
  86. # Makefile to configure X terminal systems
  87. #
  88.  
  89. ETC = /etc
  90.  
  91. install: install_Xfrominit install_inetd_conf install_X0_hosts
  92.     
  93. install_X0_hosts: $(ETC)/X0.hosts
  94.     install -c -o root -g staff -m 544 X0.hosts $(ETC)/X0.hosts
  95.  
  96. install_Xfrominit: $(ETC)/Xfrominit
  97.     install -c -o root -g staff -m 544 Xfrominit.sh $(ETC)/Xfrominit
  98.  
  99. install_inetd_conf: $(ETC)/inetd.conf
  100.     install -c -o root -g staff -m 644 inetd.conf $(ETC)/inetd.conf
  101.  
  102. SHAR_EOF
  103. cat << \SHAR_EOF > X0.hosts
  104. Hosts that can xdm this X-terminal
  105. SHAR_EOF
  106. cat << \SHAR_EOF > Xfrominit.sh
  107. #!/bin/sh
  108. #
  109. # @(#)Xfrominit    1.1 4/6/90 (cc.utexas.edu) 
  110. #
  111. # We put X11R4 binaries in /usr/local/X11R4
  112. #
  113. exec /usr/local/X11R4/Xsun -auth /var/adm/xdm-AuthFile
  114. SHAR_EOF
  115. cat << \SHAR_EOF > ttytab
  116. #
  117. # X Terminal ttytab (console entry)
  118. #
  119. console    "/etc/Xfrominit"        sun        on secure
  120. SHAR_EOF
  121. cat << \SHAR_EOF > inetd.conf
  122. # @(#)inetd.conf 1.17 88/02/07 SMI
  123. #
  124. #
  125. # @(#)inetd.conf    1.1 4/6/90 (cc.utexas.edu) 
  126. #
  127. # Allow telnet, rlogin, rstat, and rsh services, that's all.
  128. #
  129. #ftp    stream    tcp    nowait    root    /usr/etc/in.ftpd    in.ftpd
  130. telnet    stream    tcp    nowait    root    /usr/etc/in.telnetd    in.telnetd
  131. shell    stream    tcp    nowait    root    /usr/etc/in.rshd    in.rshd
  132. login    stream    tcp    nowait    root    /usr/etc/in.rlogind    in.rlogind
  133. #exec    stream    tcp    nowait    root    /usr/etc/in.rexecd    in.rexecd
  134. #finger    stream  tcp    nowait  nobody    /usr/etc/in.fingerd    in.fingerd
  135. #tftp    dgram   udp     wait    root    /usr/etc/in.tftpd     in.tftpd -s /tftpboot
  136. #comsat    dgram    udp    wait    root    /usr/etc/in.comsat    in.comsat
  137. talk    dgram    udp    wait    root    /usr/etc/in.talkd    in.talkd
  138. #name    dgram    udp    wait    root    /usr/etc/in.tnamed    in.tnamed
  139. #daytime    stream    tcp    nowait    root    internal
  140. #time    stream    tcp    nowait    root    internal
  141. echo    dgram    udp    wait    root    internal
  142. #discard    dgram    udp    wait    root    internal
  143. #time    dgram    udp    wait    root    internal
  144. #
  145. #mountd/1    dgram    rpc/udp    wait root /usr/etc/rpc.mountd    rpc.mountd
  146. #rexd/1        stream    rpc/tcp    wait root /usr/etc/rpc.rexd    rpc.rexd
  147. #ypupdated/1    stream    rpc/tcp    wait root /usr/etc/rpc.ypupdated rpc.ypupdated
  148. #rquotad/1    dgram    rpc/udp    wait root /usr/etc/rpc.rquotad    rpc.rquotad
  149. rstatd/1-3    dgram    rpc/udp    wait root /usr/etc/rpc.rstatd    rpc.rstatd
  150. #rusersd/1-2    dgram    rpc/udp    wait root /usr/etc/rpc.rusersd    rpc.rusersd
  151. #sprayd/1    dgram    rpc/udp    wait root /usr/etc/rpc.sprayd    rpc.sprayd
  152. #walld/1        dgram    rpc/udp    wait nobody /usr/etc/rpc.rwalld    rpc.rwalld
  153. SHAR_EOF
  154. #    End of shell archive
  155. exit 0
  156.  
  157.  
  158.