Reply
 
Thread Tools Display Modes
  #1  
Old 05-05-2011, 07:59 AM
howard howard is offline
Junior Member
 
Join Date: May 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Using Samba
I am trying to integrate PCBSD with a MS windows network, particularly sharing a printer attached to my PCBSD. Previously (with linux) I have used Samba for this. Although present in the KDE sharing interface, Samba does not appear to be installed - is this so? Samba is not in the list of available PBI software - can I install it via the pkg route in PCBSD. If I install it "in jail" will it connect to a network and my printer?

Many thanks for any advice or pointers to docs.
I have already looked at offical Samba howto and FreeBSD handbook.
new to PCBSD
Reply With Quote
  #2  
Old 05-05-2011, 11:47 AM
thnewguy thnewguy is offline
Senior Member
 
Join Date: May 2010
Posts: 797
Thanks: 3
Thanked 54 Times in 43 Posts
Default
You can get Samba through FreeBSD's ports/packages. The command to install the latest version is

pkg_add -r -v samba4-devel
Reply With Quote
  #3  
Old 05-13-2011, 02:36 PM
howard howard is offline
Junior Member
 
Join Date: May 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Smile Getting Samba to Work
Many thanks.
I was able to get the samba package as above.
Used a terminal and logged on as root using su -l.
The configuration mentioned in the Free BSD handbook 29.9 seems mostly to have been done in PCBSD. Samba is set to run in inetd and once installed it did.
The configuration panels are greyed out in KDE but were reading the configuration file smb.conf I edited manually.

This was not initially successful but when I carefully followed the instructions in The official Samba HowTo - cure for the impatient. Success - a PCBSD folder accessable from windows.
Note the instructions need modifying for FreeBSD.

However my PCBSD machine only becomes visible on the network when the Firewall is turned off. It can be turned on again and this machine will continue to be visible. A change in the configuration makes it invisible again.

Printing via Samba did not work (it requires a specially compiled version?) but Printing to CUPS directly from Windows does work when set up as per FreeBSD CUPS documentation. Again the firewall needs to be turned off to allow this.

Next on my agenda to learn more about setting up the firewall correctly.
Reply With Quote
  #4  
Old 05-14-2011, 10:04 AM
joe75 joe75 is offline
Senior Member
 
Join Date: Jan 2010
Posts: 109
Thanks: 1
Thanked 4 Times in 2 Posts
Default
If you are using the pf-firewall a quick and dirty workaround ist adding this line into /etc/pf.conf.
Code:
pass in proto {udp tcp} from any to any port {137 138 139 445} keep state
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:47 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.

Copyright 2005-2010, The PC-BSD Project. PC-BSD and the PC-BSD logo are registered trademarks of iXsystems.
All other content is freely available for sharing under the terms of the Creative Commons Attribution License.