Thanks for your great guide!!! ... I just finished installing it on ESX 4.1, but I had to adjust a few things to make it work with the new version, some updated packages I needed to install, just google the package name and its easy to find:
Follow same steps from original poster, if you want to install dependencies for cups-libs, install these first:
The package "samba-common-3.0.28-1.el5_2.1.x86_64.rpm" is already installed on the new version esx 4.1, to check its there just run "rpm -q samba-common".
Install the following 3 packages/dependencies ONLY if you want to install cups-libs with dependencies, otherwise use the --nodeps option when installing cups-libs:
rpm -Uvh libjpeg-6b-37.x86_64.rpm
rpm -Uvh libpng-1.2.10-7.1.el5_5.3.x86_64.rpm
rpm -Uvh libtiff-3.8.2-7.el5_5.5.x86_64.rpm
If using with the mentioned dependencies install:
rpm -Uvh cups-libs-1.3.7-11.el5_4.5.x86_64.rpm
If not using the dependencies install :
rpm -Uvh --nodeps cups-libs-1.3.7-11.el5_4.5.x86_64.rpm
rpm -Uvh perl-Convert-ASN1-0.20-1.1.noarch.rpm (this package is needed now)
rpm -Uvh samba-3.0.33-3.15.el5_4.1.x86_64.rpm
To set up samba and use it you'll need to open extra ports for this version (4.1):
1. Open the following firewall ports in ESX:
esxcfg-firewall -o 445,tcp,in,smb-server (as original poster, if you do this port only it works but you wont be able to see the samba shares on Windows Networks)
Open these ports as well and samba shares will be visable on Windows Network and other Unix boxes:
esxcfg-firewall -o 445,tcp,out,smb-server
esxcfg-firewall -o 445,udp,in,smb-server
esxcfg-firewall -o 445,udp,out,smb-server
esxcfg-firewall -o 137:139,tcp,in,smb-server
esxcfg-firewall -o 137:139,udp,in,smb-server
esxcfg-firewall -o 137:139,tcp,out,smb-server
esxcfg-firewall -o 137:139,udp,out,smb-server
2. Edit the smb.conf as noted on the original poster:
3. Follow same steps as original poster.
NOTE: You may see these warning messages after installing some packages, just ignore them, everyting works.
/sbin/ldconfig: /usr/lib/libkrb4.so.2 is not a symbolic link
/sbin/ldconfig: /usr/lib64/libkrb4.so.2 is not a symbolic link
To query firewall open ports run:
esxcfg-firewall -q
In my setup I had an Ubuntu server acting as WINS server, so on this ESX server under "smb.conf" I added the option of "wins server = <my ubuntu server ip>", not sure if it matters but I mention it.
Cheers! and thanks for such a great guide!