zhao-sun.com

April 9, 2004

Setup Samba

Filed under: Computer — blogadmin @ 10:56 pm


    I am running samba on redhat linux 6.0. Then I tried to use samba to talk to another computer running both Windows 2000 and Windows 98.
  • go http://www.samba.org,
    and download the most updated stable version of samba for my redhat linux 6.0 system

  • untar the download file. If it is in rpm format, use “rpm –install” or “rpm –upgrade” to install the samba package.

  • create a file, called /sbin/startsmb, and make it executable

    #!/bin/sh

    /usr/sbin/smbd -D

    /usr/sbin/nmbd -D -G SIEGE

    (the last word “SIEGE” is your Workgroup name. and if you want to start samba automatically at boot time, create two soft links under /etc/rc.d/init.d and under /etc/rc.d/rc5.d)

  • configure the /etc/smb.conf file.

  • run /sbin/startsmb, that’s almost it on linux side

  • On Both Windows 2000 and Windows 98 systems, set the computer name and workgroup name.

  • I also installed NetBEUI Protocol on the network card talking to my linux box. I know that’s a must for Windows 98, but not sure for Windows 2000

  • On Windows 2000, go Control Panel –> Users and Passwords –> Advanced –> Advanced –> Users –> Guest –> Properties –> unset “Account is disabled”, which make guest accout enabled

  • on Windows 2000, I have also added a Windows component, Internet Information Services (IIS). Again, I don’t know whether this is a must or not. However, after installing IIS, I can ftp to my Windows 2000 now.

  • So, that’s it. Now, from my linux box, I can see all the shared files and use shared printer on my Windows system. From my Windows system, I can see all the shared files defined in /etc/smb.conf. I can just click the files and edit them or winzip them directly on Windows. People won’t notice the files are on another computer. Is that beauty? ENJOY!

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress