studmuffin007 Posted June 2, 2007 Report Share Posted June 2, 2007 Ive done a bit of looking round concerning samba and file sharing between my linux PC and Win pc and am unable to find a simple idiot proof guide, any one know of a good guide? Thanks in advance Quote Link to comment Share on other sites More sharing options...
spinynorman Posted June 2, 2007 Report Share Posted June 2, 2007 Have you tried the Wiki article? Quote Link to comment Share on other sites More sharing options...
studmuffin007 Posted June 2, 2007 Author Report Share Posted June 2, 2007 thanks for that, but when i go to configure samba i get "you need to readjust your host name 'localhost' is not a correct hostname for a DNS server ect. How do i change my host name? Ive looked but maybe i cant see for looking Thanks Quote Link to comment Share on other sites More sharing options...
spinynorman Posted June 2, 2007 Report Share Posted June 2, 2007 I don't know which version you're using, but in 2007.0, you can change the host name in the MCC under Network & Internet. There are actually 2 places you can do it - I don't know which is required by Samba as I don't use it. Look at 'Manage host definitions' and 'Manage miscellaneous internet settings'. Quote Link to comment Share on other sites More sharing options...
studmuffin007 Posted June 2, 2007 Author Report Share Posted June 2, 2007 Ive changed my host name now to configure samba thanks Quote Link to comment Share on other sites More sharing options...
studmuffin007 Posted June 2, 2007 Author Report Share Posted June 2, 2007 Well it went OK......but windose cant see my Linux PC but i can share files and folders from Linux if i open Konqueror as described in wiki Thanks Quote Link to comment Share on other sites More sharing options...
pindakoe Posted June 3, 2007 Report Share Posted June 3, 2007 Well it went OK......but windose cant see my Linux PC but i can share files and folders from Linux if i open Konqueror as described in wiki Thanks There are numerous reasons why Windows cannot see your Linux PC. Some stuff to check: Does your winPC know the name of your Linux PC or are you adressing it by IP. Try with command 'ping linuxname' to see whether it knows the name it all. Your (Windows) firewall should let info from my (Linux) server pass, or else will not display whatever the server is sending. Again make sure that you define your linux server in such a way that Windows knows it, i.e. name only if you have defined a mapping from that name to an ip address (c:\windows\hosts or running a DNS or having the Linux box setup with a proper fully qualified domain n ame). Your linux firewall should give your Windows host (by IP or name) access on some ports. MCC can do this for you: security, firewall and then select Windows file sharing (SMB). Look in /var/log/messages to see whether info is rejected. (Also) Samba needs to define which hosts can access it, either by IP or name. Check the file /etc/samba/smb.conf for a line starting with 'hosts allow'. If this only lists 127.0.0.1 then only the server itself can access the Samba shares. Check /var/log/samba for logfiles with the name or ip adresss of your windows pc and read them. Quote Link to comment Share on other sites More sharing options...
polemicz Posted June 3, 2007 Report Share Posted June 3, 2007 Another bit to be aware of: you need to add Samba users for each user, who is also a Linux user, via smbpasswd. That is how Samba authentication works. Quote Link to comment Share on other sites More sharing options...
studmuffin007 Posted June 4, 2007 Author Report Share Posted June 4, 2007 (edited) Thanks for the info guys BUT some times i can see the win PC and other times i cant, since i connected to the win pc i now no longer am able to print from it when i choose to print no mater what application i am using the Linux pc locks up. in the screen dump you can see BT which is the wireless hub then local host samba server then Ms home (the PC) then Thompson (unknown) from the Ms home there should be TOWER (work) attached to it could there be a conflict in names as i used to print via Ms home and not TOWER (work). When configuring Samba i told it the win PC was Ms home but it saw that the PC is called TOWER (work)? have i screwed up somewhere? Thanks Edited June 4, 2007 by studmuffin007 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.