Network Windows W/ Linux?


Recommended Posts

Alright, Ive got a Windows (XP) and Linux (Mandriva) boxes hooked to the same router. I need them to talk to each other so I can share files and printers. But so far they are at a stand off. I think the Windows machine called the penguin fat and ugly and it went down hill from there. :blush:

Anyway... I searched google and couldnt find a "For Idiots" guide that I completly understood :rolleyes: Im new to Linux, onyl tinkered around with it before.

Now, I understand I need Samba? So, I installed Samba... and.... dont know where it went. Unlike Windows there is no nice little shortcut on my desktop, so Im lost.

Can someone give me a hint of where to go from here to get these computers network together?

Thanks!

Bubba

Link to post
Share on other sites

for SAMBA you have to configure your SMB.conf file to create shares,

this site gives basics

http://www.samba.org/samba/docs/man/Samba-...l.html#id318178

tools needed

a text editor

root password.

this may help

For this example, we'll say you are using /home/shares.

As root:

mkdir -m 751 /home/shares

mkdir -m 2770 /home/shares/accounting

chgrp accounting /home/shares/accounting

And now add your share to /etc/samba/smb.conf:

~[Accounting]

comment = for the accouting group

path = /home/shares/accouting

browseable = yes

guest ok = yes

valid users = @accounting

writeable = yes

write list = @accounting

create mask = 771

directory mask = 770

map hidden = yes

map archive = yes

map system = yes

available = yes

Notes:

* browseable = no tells Samba that this share will not be visable in the Network Neighborhood. Change this to yes if you want this share visible.

* map hidden = yes, map archive = yes, and map system = yes tell Samba to respectively honor these Windows file attributes.

Now make the share available:

As root:

service smb reload

my suggestion is to read this over, and then see what questions you have. SAMBA can be tricky, and the GUI tool mostly are bad.

Link to post
Share on other sites

I have a pretty simple smb.conf file. It may give you some ideas

[global]
server string = Samba Server %v
map to guest = Bad User
log file = /var/log/samba3/log.%m
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
hosts allow = 192.168.1.


[avi]
path = /mnt/media/avi
writable = yes


[music]
path = /mnt/media/music
writeable = yes


[share]
path = /mnt/media/share
writable = yes

[brighteyed]
path = /mnt/media/brighteyed
writable = yes

Edited by shanenin
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...