Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ??????

share|improve this question

2 Answers 2

up vote 2 down vote accepted

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.

share|improve this answer
    
this in linux but how i can do it in unix please :) –  Mohammad AL-Rawabdeh Oct 31 '10 at 9:50
    
Which variant of unix ? –  Iain Oct 31 '10 at 9:53
    
Sun Microsystems Inc. SunOS 5.9 Generic May 2002 –  Mohammad AL-Rawabdeh Oct 31 '10 at 10:03
2  
Why do you accept an answer that doesn't actually answer your question? –  SvW Oct 31 '10 at 12:05

solaris has installed samba in hp-ux swinstall -s /path/to/depot/PKGNAME.depot

share|improve this answer
    
i have Sun Microsystems Inc. SunOS 5.9 Generic May 2002 –  Mohammad AL-Rawabdeh Oct 31 '10 at 10:04
    
then you already have samba :) –  A M Oct 31 '10 at 20:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.