LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   samba download and installation (https://www.linuxquestions.org/questions/linux-newbie-8/samba-download-and-installation-235637/)

amer_58 09-27-2004 01:35 AM

samba download and installation
 
I am downloading samba and its about 21mb.. i hope that the right file.

For me to install it , do i need to run this command only

rpm -Uvh samba-*.i386.rpm

Tap-Out 09-27-2004 02:12 AM

Re: samba download and installation
 
Quote:

Originally posted by amer_58
I am downloading samba and its about 21mb.. i hope that the right file.

For me to install it , do i need to run this command only

rpm -Uvh samba-*.i386.rpm

I'm not sure if this applies to the web download of Samba, but I know off the cd(s) there are about three or four packages that you need to install to run samba, but like I said I havn't done a web download of it before.

I also noticed something in your command you're planning to use to install. The only suggestion I would make is to replace the U switch with the i switch, as if you man rpm you will find that -U is for upgrading an existing package whereas -i is for installing a package that you don't already have. So unless you already have samba installed I would use

Code:


rpm -ivh samba-*.i386.rpm

Also I'm pretty sure you already know this but you have to be root to install anything via rpm.

Cheers

Tap

:King_58: 09-27-2004 11:54 AM

I have installed it too... how do i run it now.....

How can i locate my shred folders

or how do i map a drive.

Tap-Out 09-27-2004 05:46 PM

Once you have the package all installed all you have to do to run the program is start the Samba daemon. To do this:

Code:


su
type in the root password

/etc/init.d/smb restart

That will turn on the samba service.

As for how you set up shares on your linux drive I would look at your /etc/samba/smb.conf file and try to edit that to set up a new share.

However from personal experience I find the easier way to configure samba is using the Swat utility. Look again on the samba website where you got the samba packages and look for the SWAT rpm file. Download and install that.

Once you have that installed you need to turn on that service too.

Code:


su
type in the root password

/sbin/chkconfig swat on
/etc/init.d/xinetd restart
/etc/init.d/smb restart

Then once that's done open up a web browser and go to http://127.0.0.1:901 and enter the root name and password and from there the website acts almost like a gui/wizard for samba allowing you to set everything in a less confusing way.

Cheers

Tap

:King_58: 09-28-2004 12:27 AM

Quote:

Originally posted by Tap-Out
Once you have the package all installed all you have to do to run the program is start the Samba daemon. To do this:

Code:


su
type in the root password

/etc/init.d/smb restart

That will turn on the samba service.

As for how you set up shares on your linux drive I would look at your /etc/samba/smb.conf file and try to edit that to set up a new share.

However from personal experience I find the easier way to configure samba is using the Swat utility. Look again on the samba website where you got the samba packages and look for the SWAT rpm file. Download and install that.

Once you have that installed you need to turn on that service too.

Code:


su
type in the root password

/sbin/chkconfig swat on
/etc/init.d/xinetd restart
/etc/init.d/smb restart

Then once that's done open up a web browser and go to http://127.0.0.1:901 and enter the root name and password and from there the website acts almost like a gui/wizard for samba allowing you to set everything in a less confusing way.

Cheers

Tap

What did u mean by saying That will turn on the samba service. means that it will scan for shared folders.

on the other hand is there a way that i will scan an ip and would tell me if that IP has a share folder or not.


All times are GMT -5. The time now is 01:05 PM.