home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / sun / volume2 / xterm-250 < prev    next >
Encoding:
Internet Message Format  |  1990-08-24  |  4.6 KB

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