home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / mincom15.zip / Install < prev    next >
Text File  |  1993-10-09  |  5KB  |  126 lines

  1.     Installation of Minicom.
  2.  
  3. Edit the Makefile to choose your C-compiler and CFLAGS. Entries
  4. for a lot of systems are already defined, you only have to
  5. uncomment them. Also define where your binaries go and where you want
  6. the configuration files to be placed.
  7.  
  8. The default configuration is to compile for Linux, and to install it in
  9. /usr/local{bin,etc}.
  10.  
  11. Now edit "config.h". Reasonable defaults for some systems are
  12. already filled in, and changes will probably not be needed.
  13. If everything is allright, you can type "make" and "minicom", "keyserv"
  14. and "runscript" will be compiled.
  15. If you have gotten this far, it is time to install the executables.
  16.  
  17. if you trust the installation procedure (I do!) you can just type
  18. 'make install' as root. If you insist on installing manually:
  19.  
  20. 1. Copy "minicom" to a bin directory (eg /usr/local/bin).
  21.    chown it to root and install it set-uid. (chmod 4755 minicom)
  22. 2. Copy "runscript" to the place defined in "Makefile".
  23. 3. Do this with "keyserv" too.
  24.    (If you have a system with the select() system call, you won't
  25.     have the 'keyserv' binary anymore !).
  26.    Don't install "runscript" and/or "keyserv" setuid root!
  27. 4. Edit the "minicom.users" file (in the directory as defined in
  28.    "Makefile") to add users who may use minicom. If you don't
  29.    install "minicom.users" everybody may use minicom!
  30. 5  Minicom has been installed.
  31.  
  32. Configuration.
  33.  
  34. Probably most defaults are not good enough for your system.
  35. So type (still as root) "minicom -s". This will not initialize
  36. minicom but brings you directly into the configuration menu.
  37. See the minicom manual page for details.
  38.  
  39. Graphics.
  40.  
  41. Some terminals, such as most consoles on Unixes that run on IBM
  42. compatible PC's, can display special line drawing characters.
  43. If these characters map 1-to-1 to the IBM character set, you can just
  44. use the '-l' (literal) flag when invoking minicom. If this mapping is
  45. not 1-to-1, you can add some special entries to your termcap file.
  46.  
  47. The things to be added to a minix console termcap entry are
  48. for example:
  49.  
  50.     :gA=\311:gB=\315:gC=\273:gD=\310:gE=\272:gF=\274:gG=\332:\
  51.     :gH=\304:gI=\277:gJ=\300:gK=\263:gL=\331:gM=\307:gN=\266:\
  52.     :gO=\209:gP=\207:gQ=\198:gR=\181:gS=\210:gT=\208:gU=\206:\
  53.     :gV=\197:gW=\215:gX=\216:gY=\176:gZ=\178:
  54.  
  55. (Don't forget to add a backslash at the end of the original entry!)
  56. This is only an example, this termcap information is not needed
  57. because the mapping is 1-to-1.
  58.  
  59. Minicom does not need this termcap information, but it looks a lot nicer.
  60. The termcap entries for these graphic characters were made up
  61. by Fred van Kempen I believe, and minicom only uses gA-gL.
  62. These are the IBM box-drawing characters, their coding is:
  63.  
  64.      double lined single lined meaning               ASCII equivalent
  65.           gA           gG      upper-left corner          +
  66.           gB           gH      horizontal line            -
  67.           gC           gI      upper-right corner         +
  68.           gD           gJ      lower-left corner          +
  69.           gE           gK      vertical line              |
  70.           gF           gL      lower-right corner.        +
  71.  
  72. The Linux console only maps 1-to-1 in a special mode. Therefore you need to
  73. make a special termcap entry in /etc/termcap that initializes the
  74. console on startup:
  75.  
  76. mc|minicom|mc80x25|termcap entry for minicom on the console:\
  77.     :is=\E(U\E[m\E>\E[4;20l:\E[?8;25h\E[?1;5;6;7l:\
  78.     :rs=\E(B\E[m\E>\E[4;20l:\E[?7;8;25h\E[?1;5;6l:\
  79.     :bc=:as=:ae=:am=:vb=\E(B\007\E(U:\
  80.     :tc=console:
  81.  
  82. To use this information instead of the normal 'console' information,
  83. minicom has to be invoked with the '-t mc' option (meaning use TERM=mc
  84. instead of the normal TERM environment variable).
  85.  
  86. And, in my /etc/profile I have added the lines:
  87.  
  88.     if [ "$TERM" = console ]
  89.     then
  90.         MINICOM="-l -con -tmc" ; export MINICOM
  91.     fi
  92.  
  93. So when I log in on the console I can use minicom in full color full
  94. ANSI mode to call all kinds of BBS's and the like!
  95.  
  96.  
  97. x/y/z modem.
  98.  
  99. It is possible to use rz/sz from Minicom, but the newest versions
  100. don't use stdin/stdout and stderr , so you'll have to patch them.
  101. The Minix versions of rz/sz work ok, so no worries.
  102.  
  103. Security.
  104.  
  105. For those of you who never trust a program running as root, it is
  106. possible to run minicom setgid UUCP. This is not entirely trivial,
  107. so the default is to run as root anyway. To enable minicom running
  108. as group uucp, the following steps, under Minix, must be taken:
  109. - Recompile minicom with the '-D_SECURE' flag added to CFLAGS in Makefile.
  110. - Install minicom setuid root, setgid uucp like this:
  111.  
  112. -r-sr-sr-x  1 root     uucp        85636 May  7 19:43 minicom*
  113.  
  114. - If you use ungetty, make it setuid root, group uucp like this:
  115.  
  116. -r-sr-xr--  3 root     uucp        14698 Mar 10 21:07 /etc/getty*
  117.  
  118. - Make the lockfiles directory, /usr/spool/uucp, writable for group uucp.
  119.  
  120. When minicom starts up, it opens the modem device (that's why it has
  121. to be setuid root) and then it sets its effective uid to its real uid.
  122. Then only the setgid bit stays honoured, so that minicom runs setgid uucp.
  123. There is one major disadvantage: all files created by the minicom for
  124. the user (~/.dialdir and ~/.minirc.*) will have the group 'uucp'. I can't
  125. see major problems with this, but I don't really like it.
  126.