On Friday 12 April 2002 10:03 pm, Belgarius wrote:
(Actually, that subject line should be *utter* newbie)
I've taken the plunge here, and installed ML 8.2 on another machine, one
that I hope to eventually use to replace my present Windoze server system,
but have already hit a stumbling block head on.
My present server system runs under 98SE, and contains those servers and
user files for my domain and the subdomains I host. It also contains the
3COM NIC that hooks to my DSL modem, along with a secondary NIC for the
LAN. The new Linux system was previously a 98SE client system, and things
worked about as well as they ever do under the Win32 platform.
My intention is to use the Linux system as my primary server, and move
the user files and so forth to it, as well as make use of it's FTP, mail,
and http servers to host my domain and clients. This is where I am running
into problems. I need to be able to network the new box into the existing
setup, so that I can test things before making these changes, and to be
able to transfer the existing user files over to their new home, but... I
am unable to make the Linux system connect to the winbox. I'm using the
same IP address and subnet mask that I used with the system when it had
Windoze installed on it, but it refuses to connect now, and I am not nearly
experienced enough with Linux to know where to start looking for clues as
to the how's and why's of this procedure. No doubt, I've not installed
something needed, or have otherwise overlooked the obvious, and was hoping
that some kind soul here could give me a boot in the right direction as to
what I need to set up to at least get the two systems to talk to each
other, perhaps a tutorial somewhere that could lead me in the right
direction.
Many thanks in advance, and apologies for my blatant ignorance on the
topic. ;c)
Windows machines use a proprietary SMB protocol to talk to each other. So in
order to use your Linux box as a Windows file server it needs to 'look like'
a Windows box. That function is performed by a server function called 'Samba'
in 8.2 Samba is quite easy to set up (compared to earlier releases) using a
tool called 'Webmin' Webmin is worth getting to know because you can set up a
whole bunch of stuff with it, and can even set up your linux box with a
remote computer.
First install the rpms samba,samba-client,samba-common,webmin
The webmin server will automatically start when you install the rpm.
Next type
https://localhost:1in the URL line of any browser. This will pull up
the webmin login. Login as username root.
Ignore the other fun stuff for the moment, To set up Samba select Servers
Samba Windows FileSharing
It will show a page showing your default shares which are
homes -This is the home directory of whichever user logs into samba
printers - This is any linux printer attached to the Computer or networked
through CUPS
You can try adding new shares later, but start off just trying to share the
home directories.
Next define the samba user names. These do NOT have to be the same as the
Linux user names, but it makes life simpler to understand if they are. These
users must also exist on the Windows computers. Webmin has a nice facility to
automatically convert linus users to samba users. Select 'Convert Unix users
to Samba Users'
It will then show the users it has converted. Delete any unwanted ones, and
make sure thos that remain are defined with
'normal user'
'password IS required'
and set the password to be the same as the Linux password (for an easy life)
Next Select 'Windows Networking'
Make sure the workgroup name is as for the rest of your network.
Then click on 'Restart Samba Server' and you should be just about there. (So
long as I have not left out some vital step)
You should then see your Linux computer in Windows 'Network Neighbourhood'
and you should be able to mount the home directory of whichever user you used
to log into the windows box. If it does not accept the password, there is
something screwy in your username/password config.
To browse the Windows computers from Linux two methods are easy to do.
1/ Install the rpm 'komba2' Start it from the Kmenu and then you should get
a 'Network Neighbourhood' browse facility. Clicking on a folder will open it
(so long as you have given komba the username/password) and it will mount in
your home directory under the folder 'komba'
2/ Use Mandrake ControlCentreMountPointsSambaMountPoints
Click on 'Search servers' to find your windows computers.
Click on the server name to find shared folders
Select one and click on mount point to specify the folder on the linux
machine where you want this share to go.
Click on options- user allows a user to mount the folder as well as root.
Noauto means the folder will NOT be automatically mounted every tme
the
computer boots.
Select on 'Mount' and the folder will be mounted for