home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / ckscripts / cunix-setup.ksc < prev    next >
Text File  |  2020-01-01  |  2KB  |  81 lines

  1. # Kermit 95 setup script for SSH to Cunix at Columbia University.
  2. # Frank da Cruz - CUIT - The Kermit Project - http://kermit.columbia.edu
  3. # Thu Feb 18 14:42:36 2010
  4. #
  5. .\%o = 0
  6.  
  7. define HR {
  8.     echo "______________________________________________________"
  9.     echo
  10. }
  11. define BAILOUT {
  12.     if \f_status(\%o) fclose \%o
  13.     echo "Problem creating \v(desktop)Cunix.ksc..."
  14.     echo "  \v(errstring)"
  15.     echo "  \f_errmsg()"
  16.     hr
  17.     set command color lgray black
  18.     stop 1
  19. }
  20. set term font courier_new 12
  21. set command height 30
  22. cls
  23. hr
  24. set command color lgreen black
  25. echo "Welcome to Kermit 95 - Columbia University Site License."
  26. xecho "Creating Cunix SSH access icon on your desktop..."
  27.  
  28. kcd desktop
  29. if fail {
  30.     echo "ERROR: Can't CD to to \v(desktop)"
  31.     bailout
  32. }
  33. undef uni
  34. while not def uni {
  35.     ask /gui uni "Please enter your Columbia UNI"
  36. }
  37. undef height
  38. ask /gui height "Enter desired screen height (default 52 lines)"
  39. if not def height .height = 52
  40.  
  41. fopen /write \%o \v(desktop)Cunix.ksc
  42. if fail bailout
  43. fwrite /line \%o "# Kermit 95 2.1.2 for Windows"
  44. if fail bailout
  45. fwrite /line \%o "# [\v(host)] \v(desktop)cunix.ksc"
  46. fwrite /line \%o "# Created \v(timestamp)"
  47. fwrite /line \%o "#"
  48. fwrite /line \%o "SET LOGIN USER \m(uni)"
  49. fwrite /line \%o "SET SSH COMPRESSION OFF"
  50. fwrite /line \%o "SET TERMINAL TYPE VT220"
  51. fwrite /line \%o "SET TERM CHARACTER-SET CP1252"
  52. fwrite /line \%o "SET GUI WINDOW RESIZE-MODE CHANGE-DIMENSIONS"
  53. fwrite /line \%o "SET GUI WINDOW POSITION 70 50"
  54. fwrite /line \%o "SET TERM FONT COURIER_NEW 12"
  55. fwrite /line \%o "SET TERM COLOR TERM LGRAY BLUE"
  56. fwrite /line \%o "SET TERM HEIGHT \m(height)"
  57. fwrite /line \%o "SSH cunix.cc.columbia.edu"
  58. fclose \%o
  59.  
  60. echo " [OK]"
  61. echo "\v(desktop)Cunix.ksc created successfully."
  62. echo "You should see a Columbia Crown Cunix icon on your desktop."
  63. echo "You can start a secure SSH shell session to Cunix simply by"
  64. echo "double-clicking the icon."
  65. echo
  66. echo "Cunix.ksc is plain-text file; here is what's in it:"
  67. echo
  68. set command color yellow black
  69. type \v(desktop)Cunix.ksc
  70. if success echo
  71. set command color lgreen black
  72. echo "You can edit this file with Notepad to make any desired changes."
  73. set command color lgray black
  74. hr
  75. getok /gui "OK to quit Cunix setup? "
  76. if success exit
  77. echo "Use the Page Up / Page Down keys to see previous screens..."
  78. echo "Type 'exit' at the prompt to quit."
  79. echo
  80. stop 0
  81.