home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 13 / AACD13.ISO / AACD / Online / Samba / INSTALL.AMIGA < prev    next >
Text File  |  2000-08-17  |  17KB  |  397 lines

  1. How to install Samba on your Amiga?
  2. ===================================
  3. Before we discuss the details, first a word of warning: Samba is a very
  4. complex package and so are the many TCP/IP stacks available for the Amiga. If
  5. at first your attempts to install the product do not seem to work, try again.
  6. If it does not work the second time and you are certain that you have followed
  7. and understood every step outlined in this document, ask someone else for
  8. advice. If possible, do not ask the author of this port for advice since he
  9. does not understand every little detail of Samba, the TCP/IP stack you are
  10. using and in particular how Samba interacts with the rest of your network.
  11.  
  12. I'm not joking. It can go wrong and nobody will be able to tell you why it
  13. went wrong.
  14.  
  15.  
  16. 1. Requirements
  17. ---------------
  18. This port of Samba 2.0.0 requires an AmiTCP V4 compatible TCP/IP stack. Among
  19. these are the original commercial "AmiTCP 4.x" product, the "AmiTCP Genesis"
  20. stack that ships as part of the "NetConnect2" product and the "Miami" and
  21. "Miami Deluxe" products. What will not work are the free "AmiTCP 3.x" product
  22. or the "INet-225" product. You'll know that Samba does not support your TCP/IP
  23. stack if it complains about being unable to open "bsdsocket.library V4", etc.
  24.  
  25. This port has no special CPU type requirements. It should work on any Amiga,
  26. provided it is running AmigaOS 2.04 or higher.
  27.  
  28. The next thing this port requires is a lot of memory. If you took a quick look
  29. at the programs this package consists of you will know why: some of these
  30. programs are almost 1 MByte in size. Don't expect this to run on a machine
  31. with less than 4 MBytes of memory installed.
  32.  
  33. Due to how these Samba/Windows networks are usually set up, your computer
  34. should sport an Ethernet card, which is properly set up and not suffering from
  35. defects such as missing terminators, wrong cabling, wrong connections, etc.
  36. You may be able to run Samba via your Amiga's serial port, but honestly, it
  37. would be faster to copy the data you wish to transfer with a floppy disk.
  38.  
  39.  
  40. 2. Preparations
  41. ---------------
  42. The following text makes a few assumptions on the configuration of your
  43. network which may be inappropriate for your system. However, they considerably
  44. simplify the instructions. As said before, this is a complex task and we can
  45. but only touch the subject. If you need more information, it is recommended
  46. that you look at the documentation that came with the package (see the "docs"
  47. drawer) or the original Samba distribution package, as available from
  48. www.samba.org (and its mirror sites).
  49.  
  50. You must have chosen a proper IP address for your Amiga and all the other
  51. machines in the network you want to exchange data with. Do not underestimate
  52. this. The weirdest and most difficult to trace errors can result from an
  53. improper choice of IP addresses. For example, while 1.2.3.4 and 1.2.3.5 may
  54. have worked fine for you so far, they won't continue to work with Samba. If
  55. you ended up with such a choice of IP addresses or want to start from scratch
  56. with a proper setup, I would recommend that you start with addresses in the
  57. range from 192.168.0.1 to 192.168.0.126 which make good sense with a local
  58. network. Note that every machine on the network must have a unique address. If
  59. you are using a different address for a good reason and are confident that it
  60. is a valid class A, B or C address, then you're on your own. You should know
  61. what you are doing. If you haven't got any idea what the term "class A
  62. address" means in the first place, you should either refer to a good book on
  63. this subject or stick with the 192.168.0.x addresses suggested before.
  64.  
  65. Now power up one of the machines on the network you want to exchange data
  66. with. If that's a computer running one or another incarnation of Microsoft
  67. Windows you may have to make sure that the machine is properly connected to
  68. the network and has the necessary TCP/IP, SMB and file sharing software
  69. installed. Exactly how this is accomplished is beyond the scope of this
  70. document. Really a lot can go wrong here. To keep things simple, the following
  71. document will assume that you have already configured such a system and that
  72. it's up and running properly.
  73.  
  74. The next thing to do is to perform a simple test to find out whether all the
  75. components of the network are working properly. This tests both the cabling,
  76. the choice of IP addresses and whether the TCP/IP stack is working. For this
  77. test to work out you must know at least one other IP address in your network
  78. that corresponds to a TCP/IP stack. Yes, we are going to "ping" that address.
  79. It's as simple as that. On the Amiga, start your TCP/IP stack and enter "ping
  80. <address>", then press return; you must replace the <address> with the IP
  81. address of the other machine on the network whose address you know. Note to
  82. users of the Miami TCP/IP stack: use "MiamiPing" in place of "ping". The
  83. "ping" command will send some data to the other machine and wait for it to
  84. come back. After a few seconds you'll see a statistic which shows how much of
  85. the data sent came back and how much got lost on the way. If that number shown
  86. is "100%" then the connection is working properly. If the number is "0%" then
  87. you have a problem. If the number is somewhere in between 0% and 100% then
  88. your networking connections are somewhat flaky. They may still work, but it's
  89. not really a good sign to have dropouts like these. If it doesn't work, you're
  90. on your own again.
  91.  
  92. Now we are going to install the package and add to your "S:User-Startup" file.
  93. Let's say we are going to install the package on your "Work:" partition.
  94. Create a drawer on that partition by the name of "Samba", such as by entering
  95. the following:
  96.  
  97.    MakeDir Work:Samba
  98.  
  99. Next, copy the contents of this package to it. Assuming that the package is
  100. stored in the "RAM:amiga_samba_2.0.0" drawer, you would enter the following:
  101.  
  102.    Copy RAM:amiga_samba_2.0.0/install Work:Samba all clone
  103.  
  104. Now we need to add a few lines to your "S:User-Startup" file. Open that file
  105. with a text editor, such as Ed, and add the following lines to the end of the
  106. file:
  107.  
  108.    Assign Samba: Work:Samba
  109.    Path Samba:bin add
  110.  
  111. Almost finished. Now we need to make a few final changes to the Samba
  112. configuration file. The configuration file in question is found in the drawer
  113. "Work:Samba/lib", as created above. Again, start a text editor and open the
  114. file "Work:Samba/lib/smb.conf". Of particular interest are the lines which set
  115. the "workgroup" and "domain master" options. The work group option must be set
  116. to the name of the work group you want your Amiga to be in on the network. For
  117. the sake of simplicity, set this name to the same as on your Windows machine.
  118. The "domain master" option can cause trouble if your network already has a
  119. domain controller set. This is commonly the case with company networks, in
  120. which case you should set this option to "no", or you will cause trouble for
  121. your colleagues. If you set up a network at home for your own use and are
  122. pretty confident that you don't have a domain controller in it yet, leave this
  123. option set to "yes". In any case, save the "smb.conf" file back now and reboot
  124. your machine.
  125.  
  126. NOTE: The sample "smb.conf" file included in this package was created for
  127.       simple, local network access and therefore is not at all secure.
  128.       It will allow any user on the network to log into your machine and
  129.       read, write, delete, modify files. If this is just what you wanted,
  130.       you'll be fine. If this is not all what you had in mind, you may
  131.       want to read up on the subject of "smb.conf" in the accompanying
  132.       documentation.
  133.  
  134.  
  135. 3. Configuring AmiTCP 4.x
  136. -------------------------
  137. A few new lines need to be added to three files of the AmiTCP package. You
  138. should use a text editor to make the changes. The following files will need to
  139. be updated:
  140.  
  141.    AmiTCP:db/services
  142.  
  143.       The following lines need to be added:
  144.  
  145.          netbios-ns 137/udp
  146.          netbios-dgm 138/udp
  147.          netbios-ssn 139/tcp
  148.          swat 901/tcp
  149.  
  150.    AmiTCP:db/inetd.conf
  151.  
  152.       The following lines need to be added:
  153.  
  154.          netbios-ssn stream tcp nowait root Samba:bin/smbd smbd
  155.          netbios-ns dgram udp wait root Samba:bin/nmbd nmbd
  156.          swat stream tcp nowait root Samba:bin/swat swat -a
  157.  
  158.    AmiTCP:db/passwd
  159.  
  160.       The following line needs to be added (NOTE: the
  161.       <ID> in the follow line must be replaced by a
  162.       number that does not appear in the "passwd"
  163.       file yet):
  164.  
  165.          pcguest||<ID>|100|PC Guest|SYS:|NewShell
  166.  
  167. And that's all there is to be done.
  168.  
  169.  
  170. 4. Configuring Miami and Miami Deluxe
  171. -------------------------------------
  172. We need to add a few entries to the Miami database, so click on the button
  173. labeled "Database" to make the "database" section visible. Next, click on the
  174. button that appears at the top of the window until it reads "services". Click
  175. on the "Add" button and enter the following:
  176.  
  177.        Name: netbios-ns
  178.          ID: 137
  179.    Protocol: udp
  180.  
  181. Repeat this procedure for the following entries:
  182.  
  183.        Name: netbios-dgm
  184.          ID: 138
  185.    Protocol: udp
  186.  
  187.        Name: netbios-ssn
  188.          ID: 139
  189.    Protocol: tcp
  190.  
  191.        Name: swat
  192.          ID: 901
  193.    Protocol: tcp
  194.  
  195. Click on the button that read "services" until it reads "InetD", then click on
  196. the "Add" button and enter the following:
  197.  
  198.     Service: netbios-ssn
  199.      Socket: stream
  200.    Protocol: tcp
  201.        Wait: nowait
  202.        User: root
  203.      Server: Samba:bin/smbd
  204.        Name: smbd
  205.        Args: -- Leave this empty --
  206.  
  207. (The description "-- Leave this empty --" really means that you should enter
  208.  nothing in this place rather than entering "-- Leave this empty --".)
  209.  
  210. Repeat this procedure for the following entries:
  211.  
  212.     Service: netbios-ns
  213.      Socket: dgram
  214.    Protocol: udp
  215.        Wait: wait
  216.        User: root
  217.      Server: Samba:bin/nmbd
  218.        Name: nmbd
  219.        Args: -- Leave this empty --
  220.  
  221.     Service: swat
  222.      Socket: stream
  223.    Protocol: tcp
  224.        Wait: nowait
  225.        User: root
  226.      Server: Samba:bin/swat
  227.        Name: swat
  228.        Args: -a
  229.  
  230. Click on the button that read "InetD" until it reads "users", then click on
  231. the "Add" button and enter the following:
  232.  
  233.    User name: pcguest
  234.      User id: <ID>
  235.     Group id: 100
  236.    Real name: PC Guest
  237.     Home dir: SYS:
  238.        Shell: NewShell
  239.  
  240. In this database, enter a number instead of <ID> that is not found among the
  241. other entries currently visible.
  242.  
  243. And that's all there is to be done. You should save your configuration now.
  244.  
  245.  
  246. 5. Configuring AmiTCP Genesis
  247. -----------------------------
  248. In theory, you could use the same steps to configure "AmiTCP Genesis" as with
  249. "AmiTCP 4.x". But since "AmiTCP Genesis" has a graphical user interface for
  250. the configuration section, we'll use that instead.
  251.  
  252. Begin by starting the "GenesisPrefs" program. When it has started, click on
  253. the "Database" label in the list on the left hand side of the window. Next,
  254. click on the button at the top of the window which appears near its the right
  255. hand side until it reads "Services". Now click on the "Add" button and enter
  256. the following data:
  257.  
  258.        Name: netbios-ns
  259.        Port: 137
  260.    Protocol: udp (i.e. in the list with the names "ip", "icmp", etc.
  261.              in it, click on the entry by the name of "udp").
  262.  
  263. Repeat this procedure for the following entries:
  264.  
  265.        Name: netbios-dgm
  266.        Port: 138
  267.    Protocol: udp (i.e. in the list with the names "ip", "icmp", etc.
  268.              in it, click on the entry by the name of "udp").
  269.  
  270.        Name: netbios-ssn
  271.        Port: 139
  272.    Protocol: tcp (i.e. in the list with the names "ip", "icmp", etc.
  273.              in it, click on the entry by the name of "tcp").
  274.  
  275.        Name: swat
  276.        Port: 901
  277.    Protocol: tcp (i.e. in the list with the names "ip", "icmp", etc.
  278.              in it, click on the entry by the name of "tcp").
  279.  
  280. Click on the button that read "Services" until it reads "Inetd", then click on
  281. the "Add" button and enter the following:
  282.  
  283.     Service: netbios-ssn
  284.     Enabled: Yes (i.e. there must be a checkmark in this field)
  285.        User: root
  286.      Server: Samba:bin/smbd
  287.    CLI name: smbd
  288.        Args: -- Leave this empty --
  289.    Protocol: tcp (i.e. in the list with the names "ip", "icmp", etc.
  290.              in it, click on the entry by the name of "tcp").
  291.      Socket: stream (i.e. below the list with the names "ip", "icmp",
  292.              etc. in it, there is a button which you should press
  293.              until it reads "stream").
  294.        Wait: nowait (i.e. right above the "Cancel" gadget there is a
  295.              button which you should press until it reads "nowait").
  296.  
  297. (The description "-- Leave this empty --" really means that you should enter
  298.  nothing in this place rather than entering "-- Leave this empty --".)
  299.  
  300. Repeat this procedure for the following entries:
  301.  
  302.     Service: netbios-ns
  303.     Enabled: Yes (i.e. there must be a checkmark in this field)
  304.        User: root
  305.      Server: Samba:bin/nmbd
  306.    CLI name: nmbd
  307.        Args: -- Leave this empty --
  308.    Protocol: udp (i.e. in the list with the names "ip", "icmp", etc.
  309.              in it, click on the entry by the name of "udp").
  310.      Socket: dgram (i.e. below the list with the names "ip", "icmp",
  311.              etc. in it, there is a button which you should press
  312.              until it reads "dgram").
  313.        Wait: wait (i.e. right above the "Cancel" gadget there is a
  314.              button which you should press until it reads "wait").
  315.  
  316.     Service: swat
  317.     Enabled: Yes (i.e. there must be a checkmark in this field)
  318.        User: root
  319.      Server: Samba:bin/swat
  320.    CLI name: swat
  321.        Args: -a
  322.    Protocol: tcp (i.e. in the list with the names "ip", "icmp", etc.
  323.              in it, click on the entry by the name of "tcp").
  324.      Socket: stream (i.e. below the list with the names "ip", "icmp",
  325.              etc. in it, there is a button which you should press
  326.              until it reads "stream").
  327.        Wait: nowait (i.e. right above the "Cancel" gadget there is a
  328.              button which you should press until it reads "nowait").
  329.  
  330. Click on the "User" label in the list on the left hand side of the window.
  331. Next, click on the button "New", then enter the following:
  332.  
  333.       User name: pcguest
  334.       Real Name: PC Guest
  335.        Home Dir: SYS:
  336.           Shell: NewShell
  337.    Disable User: No (i.e. there must not be a checkmark in this field)
  338.         User ID: <ID>
  339.        Group ID: 100
  340.  
  341. In this database, enter a number instead of <ID> that is not found among the
  342. other entries currently visible in the user list. When you have entered this
  343. data, click on the "Ok" button.
  344.  
  345. That's all there is to be done. Don't forget to save these settings.
  346.  
  347.  
  348. 6. What else is in the package?
  349. -------------------------------
  350. This archive file should also include the source code to the Amiga specific
  351. portions of the Samba port (in the "source" directory). To learn more about
  352. rebuilding Samba from scratch on your machine, please look at the file located
  353. at "source/README".
  354.  
  355. What is probably more important for you are the many files found in the
  356. "docs" and "examples" directories. The "examples" directory holds sample
  357. configurations for Samba, some of which are applicable to the Amiga port (not
  358. all of them are, though). Of particular interest is the "docs" directory which
  359. contains a whole load of useful and cryptic information. You might want to
  360. read the file "docs/textdocs/DIAGNOSIS.txt" to learn more about diagnosing
  361. Samba configuration and network errors.
  362.  
  363.  
  364. 7. What is not in the package?
  365. ------------------------------
  366. There is no support for printing in this Samba port. It might appear to work,
  367. but trust me that it does not do this reliably. This functionality has been
  368. omitted since I couldn't come up with a halfway plausible way to emulate and
  369. configure this feature. Amiga Samba users already have to wrestle with a lot
  370. of configuration options and it's all too easy to get things wrong. It doesn't
  371. get better if there is another poorly configurable option nobody can really
  372. handle. Therefore, stay away from the printing option!
  373.  
  374. The options you can see and operate in the "swat" utility do not all work as
  375. you might expect. In particular the options to start, stop and restart the
  376. nmbd and smbd daemons are not operational at all. Again, they may appear to do
  377. something useful, but they don't.
  378.  
  379.  
  380. 8. Conclusion
  381. -------------
  382. I hope that this brief description is helpful, but as said before, it cannot
  383. possibly cover all the details of getting Samba up and running on your Amiga.
  384. Feel free to comment on the text and to make additions. Here is how to reach
  385. me:
  386.  
  387.    Postal address: Olaf Barthel
  388.                    Brabeckstr. 35
  389.                    30559 Hannover
  390.  
  391.                    Federal Republic of Germany
  392.  
  393.    e-mail address: olsen@sourcery.han.de
  394.  
  395. Again, don't rely upon my help to get Samba up and running on your machine. I
  396. may be just as helpless as you are.
  397.