Unix Server – How to Install Samba

command-line-interfaceinstallationsambaunix

How i can install samba to unix server ? …. for example i can install openssh-client in linux by the following command :-
apt-get install openssh-client
how i can install samba in unix …. by command ??????

Best Answer

To install samba with apt-get

sudo apt-get install samba smbfs

EDIT

Solaris 9 may already have samba installed to check run

pkginfo | grep samba

if it is installed you should see that the following packages are installed

system SUNWsmbac samba - A Windows SMB/CIFS fileserver for UNIX (client)
system SUNWsmbar samba - A Windows SMB/CIFS fileserver for UNIX (Root)
system SUNWsmbau samba - A Windows SMB/CIFS fileserver for UNIX (Usr)

if the packages are not installed then you will need to locate your original SUN installation media. To install the SAMBA packages above.

Mount the relevant disk in your CD drive then

cd /cdrom/cdrom0/Solaris_9/Product

pkgadd -d . SUNWsmbac 
pkgadd -d . SUNWsmbar
pkgadd -d . SUNWsmbau

I don't think that the bits of samba that you want (smbmount) are installed by default on Solaris though.