Dronky

Hercules config

Sep 23rd, 2019
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ========= ========== ===== =====
  2. ========= ============ ====== ======
  3. === === ==== ===== =====
  4. === ========= ====== ====== INSTALLIN' THAT SWEET SWEET
  5. === ======== ============= BIG IRON ON YOUR LINUX LAPTOP
  6. === ========= ============= OR SERVER - BY MR. SKILLFULL
  7. === === ==== === === ===
  8. ========= ============ ===== = =====
  9. ========= ========== ===== =====
  10.  
  11. THE GOOD FOLKS OVER AT THE HERCULES MAILING LIST WILL NEVER SHARE THIS. THATS WHY IVE DECIDED TO PUT TOGETHER INSTRUCTIONS TO INSTALL ZOS ON YOUR DEBIAN MACHINE USING HERCULES. FOR THE PEOPLE. ILL TRY TO MAKE THIS AS EASY AS POSSIBLE BUT YOURE ALL NEW TO ZOS SO IT WILL TAKE SOME TIME. GET A DEBIAN OR UBUNTU SYSTEM SPUN UP BECAUSE THIS GUIDE WILL BE BEST FOLLOWED IN EITHER OF THOSE.
  12.  
  13. STEP 1: DOWNLOAD ZOS.
  14.  
  15. GET THE "IBM ZOS 1.10" TORRENT: magnet:?xt=urn:btih:653a0697533b42b495c18c0e06222a7b2e9af2c3
  16.  
  17. STEP 2: WHILE YOU WAIT FOR THE 16GB DOWNLOAD TO FINISH INSTALL GIT REXX C3270 AND BUILD-ESSENTIALS IN DEBIAN
  18.  
  19. sudo apt-get install git build-essential libtool automake autoconf libregina3-dev screen c3270
  20.  
  21. STEP 3: GET HERCULES 4.00 RUNNING
  22.  
  23. git clone https://github.com/hercules-390/hyperion.git
  24. cd hercules-390
  25. ./autogen.sh
  26. ./configure --enable-cckd-bzip2 --enable-regina-rexx
  27. make
  28. sudo make install
  29.  
  30. STEP 4: TEST YOUR HERCULES
  31.  
  32. /usr/local/bin/hercules
  33.  
  34. THEN IN ANOTHER TERMINAL WINDOW
  35.  
  36. c3270 localhost:3270
  37.  
  38. IT SHOULD LOOK LIKE THIS:
  39.  
  40. /=======================================================================\
  41. | |
  42. | Hercules Version : 4.00 |
  43. | Host name : MS |
  44. | Host OS : DEBIAN |
  45. | Host Architecture : x86 |
  46. | Processors : MP=2 |
  47. | LPAR Name : HERCULES |
  48. | Device number : 0:001F |
  49. | Subchannel : 0004 |
  50. | |
  51. | HHH HHH The S/370, ESA/390 and z/Architecture |
  52. | HHH HHH Emulator |
  53. | HHH HHH |
  54. | HHH HHH EEEE RRR CCC U U L EEEE SSS |
  55. | HHHHHHHHHHHHHHHH E R R C U U L E S |
  56. | HHHHHHHHHHHHHHHH EEE RRR C U U L EEE SS |
  57. | HHHHHHHHHHHHHHHH E R R C U U L E S |
  58. | HHH HHH EEEE R R CCC UU LLLL EEEE SSS |
  59. | HHH HHH |
  60. | HHH HHH |
  61. | HHH HHH My PC thinks it's a MAINFRAME |
  62. | |
  63. | Copyright (c) 1999-2011 Roger Bowler, Jan Jaeger, and others |
  64. | |
  65. \=======================================================================/
  66.  
  67.  
  68. TO EXIT THE CONSOLE USE CTRL-] AND TYPE 'quit'
  69.  
  70. STEP 5: ONCE THE DOWNLOAD IS DONE MAKE THE FOLLOWING CHANGES:
  71.  
  72. COPY THE FOLDER "ZOS 110 Copy" in "IBM ZOS 1.10/Z110SA/images/" TO YOUR HOME FOLDER AND RENAME IT TO "MAINFRAME"
  73. MAKE A DIRECTORY CALLED PRTR IN THE "MAINFRAME" DIRECTORY. YOU SHOULD NOW HAVE THREE FOLDERS: CONF, DASD AND PRTR
  74. EDIT THE FILE "MAINFRAME/CONF/ADCD_LINUX.CONF" AND MAKE THE FOLLOWING CHANGES
  75. LINES 38, 39 AND 40 REPLACE "/home/ehrocha/hercules/images/Z110/" WITH "/home/<your user>/MAINFRAME/"
  76. LINE 115 REPLACE "0E20.2 LCS 10.0.1.20" WITH "0E20.2 3088 CTCI /dev/net/tun 1500 192.168.0.210 192.168.0.211 255.255.255.255" SUBSTITUTING YOUR OWN NETWORK SUBNETS INSTEAD OF 192.168.0
  77. OPTIONAL: CNSLPORT DEFINES THE PORT TO BE USED YOU CAN CHANGE TO WHATEVER. THE CURRENT SETTING IS 23
  78.  
  79.  
  80. STEP 6: LAUNCH ZOS
  81.  
  82. sudo /usr/local/bin/hercules -f /home/<your user>/MAINFRAME/CONF/ADCD_LINUX.CONF
  83.  
  84. IN A SEPERATE TERMINAL CONNECT WITH c3270
  85.  
  86. c3270 localhost:23
  87.  
  88. NOW BACK TO THE HERCULES WINDOW AND TYPE:
  89.  
  90. ipl a80
  91.  
  92. BACK TO YOUR c3270 WINDOW AND WAIT AS THE ZOS ENVIRONMENT BOOTS. IF IT LOOKS LIKE IT STALLS OR SAYS WAITING JUST WAIT FOR A BIT AND IT WILL CONTINUE ON ITS OWN. COULD TAKE 15 MINUTES OR MORE
  93. ONCE ITS ALL DONE OPEN A THIRD WINDOW AND CONNECT TO 'localhost' AGAIN. THIS MIGHT LOOK LIKE THE ORIGINAL HERCULES WINDOW. IF SO JUST CLOSE THAT CONNECTION AND WAIT A BIT LONGER.
  94. IT SHOULD LOOK LIKE THIS
  95.  
  96. /===============================================================================\
  97. | |
  98. | Mainframe Operating System z/OS V1.10 |
  99. | |
  100. | |
  101. | |
  102. | |
  103. | DDD U U ZZZZZ AAA |
  104. | D D U U Z A A |
  105. | D D U U Z AAAAA |
  106. | D D U U Z A A |
  107. | DDD UUU ZZZZZ A A |
  108. | |
  109. | |
  110. | |
  111. | Welcome to DUZA Mainframe System! |
  112. | |
  113. | |
  114. | TSO - Logon to TSO/ISPF SA - System Automation |
  115. | CICS - CICS System TWS - Workload Scheduler |
  116. | IMS - IMS System |
  117. | |
  118. | Enter your choice==> |
  119. | Enter one of above commands in red |
  120. | |
  121. | Your IP( : ), SNA LU(LCL702 ) 01/17/13 03:55:47 |
  122. | |
  123. \===============================================================================/
  124.  
  125.  
  126. STEP 7: LOGGING ON
  127.  
  128. AT THE "==>" PROMPT ENTER "TSO". YOULL BE ASKED FOR A USER ID ENTER "IBMUSER". YOULL THEN BE ASKED FOR THE PASSWORD ENTER "SYS1".
  129. EVENTUALLY YOULL SEE 'ispf' FOLLOWED BY '***'. HIT ENTER.
  130. WELCOME TO ZOS!
  131.  
  132. YOU DID IT, THATS ALL THERE IS TO IT REALLY. NOW GO LEARN HOW TO INSTALL GCCMVS OR HOW TO COMPILE C PROGRAMS IN OMVS (HINT: AT THE Command ===> PROMPT TYPE "TSO OMVS" FOR SOME UNIX GOODNESS)
  133.  
  134.  
  135. **** OPTIONAL BUT RECOMMENDED ****
  136.  
  137. STEP 8: GETTING NETWORKING GOING
  138.  
  139. FROM THE ISPF MENU SCREEN TYPE "3.4"
  140. REPLACE "IBMUSER" WITH "DUZA" AND HIT ENTER
  141. HIT PAGE DOWN AND FIND "DUZA.TCPPARMS"
  142. ON THAT SAME LINE THREE CHARACTERS TO THE LEFT FROM THE LETTER "D" IN "DUZA" TYPE THE LETTER "E" AND HIT ENTER
  143. ON THE FIRST BLANK LINE NEXT TO "PROFILE" TYPE THE LETTER "E" AND HIT ENTER
  144. PAGE DOWN TO LINE 90 WHICH WILL LOOK LIKE THIS:
  145.  
  146. 000090 DEVICE LCS1 LCS E20
  147. 000091 LINK ETH1 ETHERNET 0 LCS1
  148. 000092
  149. 000093 HOME
  150. 000094 10.0.1.20 ETH1
  151. 000095
  152. 000096 GATEWAY
  153. 000097 10.0.1.100 = ETH1 1500 HOST
  154. 000098
  155. 000099 DEFAULTNET 10.0.1.100 ETH1 1500 0
  156.  
  157. MAKE IT LOOK LIKE THIS:
  158.  
  159. 000090 DEVICE CTCA1 CTC e20
  160. 000091 LINK CTC1 CTC 1 CTCA1
  161. 000092
  162. 000093 HOME
  163. 000094 192.168.0.210 CTC1
  164. 000095
  165. 000096 GATEWAY
  166. 000097 192.168.0.1 = CTC1 1492 HOST
  167. 000098
  168. 000099 DEFAULTNET 192.168.0.5 CTC1 1492 0
  169.  
  170. *****SPECIAL NOTE***** IF YOURE NOT ON A 192.168.0.* NETWORK JUST MATCH UP THE FIRST IP ADDRESS TO BE THE ONE YOU SET IN THE .CONF FILE. THE SECOND IS YOUR ROUTER IP ADDRESS AND THE THIRD IS THE IP ADDRESS OF THE HERCULES HOST MACHINE
  171.  
  172. WHEN DONE ON THE 'Command ===>' LINE TYPE "SAVE" AND THEN "END"
  173. GO BACK TO THE OTHER c3270 WINDOW AND TYPE "STOP TCPIP" AND THEN "START TCPIP"
  174.  
  175. IN LINUX IN A NEW TERMINAL WINDOW RUN THE FOLLOWING AS ROOT:
  176. echo "1" > /proc/sys/net/ipv4/conf/all/proxy_arp
  177. echo "1" > /proc/sys/net/ipv4/conf/all/forwarding
  178.  
  179. THEN TRY TELNETING TO YOUR MAINFRAME: telnet 192.168.0.210 1023 (USER/PASS: IBMUSER/SYS1)
  180.  
  181. STEP 9: SHUTTING IT ALL DOWN
  182.  
  183. IN THE c3270 YOU OPENED FIRST TYPE "S SHUTSYS" AND AFTER A WHILE TYPE "Z EOD"
  184. WAIT A MINUTE OR TWO
  185. IN THE HERCULES WINDOWS TYPE "exit"
  186. TO BOOT AGAIN FOLLOW STEP 6
  187.  
  188. YOUR ALL SET NOW WELCOME TO THE WORLD OF BIG IRON.
Add Comment
Please, Sign In to add comment