October 15th, 2008 ··· andarius
I find my self in a small predicament. I have a network share on my server via NFS. This is where I store all my media such as anime and music so I can get to it from any of my computers. The slight catch is the kid uses Windows XP (games, go figure) so SFU (Services For Unix) are required to access NFS. This turns out to be a bit slow and clunky and can hang from time to time. The solution will be using Samba to share the same directory via CIFS.
I wanted to give all those out there with less of a $clue a quick and dirty. I am not going to get into the details of the config, just touch on getting Samba up and running fast and open the window for easy config.
First make sure Samba and CUPS are installed (CUPS is a dep of Samba). Also make sure you have inetd installed. Copy the sample config into place to get things moving and start Samba up:
cp /etc/samba/samba.conf-sample /etc/samba/samba.conf
chmod +x /etc/rc.d/rc.samba
/etc/rc.d/rc.samba start
Samba should now be running. Don’t expect much from it at this point as nothing is really set up for active duty. To get into configuring things the lazy man’s way we will set up the system for Swat (Samba Web Administration Tool). This is rather simple, just remove the comment in front of the line for it in /etc/inetd.conf and make sure you have inetd running:
Remove the comment from this line:
swat stream tcp nowait.400 root /usr/sbin/swat swat
If not set up already set to auto-start on boot and start inetd:
chmod +x /etc/rc.d/rc.inetd
/etc/rc.d/inetd start
If you already had inetd up and running just restart it to make the changes effective:
/etc/rc.d/rc.inetd restart
You should now be able to log into the SWAT interface by pointing your browser at http://localhost:901/. If your Samba server is on another machine change the address accordingly of course. Now you can use the web UI to set things up as needed and enjoy the wonderful land of Windows network shares.
Leave a Reply







