Link to home
Start Free TrialLog in
Avatar of gabulish
gabulish

asked on

Problems installing samba

I am using the following guide to try and install samba on my linux machine:

http://www.cotse.com/nix/os/nix/samba_server-step_by_step_guide.pdf

All the files install fine but when I try and run this command:

# sh makerpms.sh

I get messages saying no such files or directories. I have no clue what to do when i get this error. I really need help with this I'm new to linux and samba so if I should be using a different guide let me know, thanks.
Avatar of pjedmond
pjedmond
Flag of United Kingdom of Great Britain and Northern Ireland image

OK - 2 things:

a.  Try:

/bin/sh makerpms.sh

If that doesn't work - try:

b. Get a ready made rpm for you distribution. At a guess, there will be one on your install discs. Then start at the rpm -ivh ....... line in the document.

Hope that helps:)

Avatar of ken_330
ken_330

hi there,
      i have no problems with the Samba ..even those as early as REDHAT 5.2 package come with. U can go www.redhat.com to download RPM packages...which i always like to do ..the easier way then tar.
     As for verison 1.9..xxx its easier ....while the version 2.06 ...u dont have smb.conf file until u edited from the samba Webmin called SWAT.

     you had to use netscape browser to key in the IP address of your PC like : http:// IPs :901   meaning port 901 to get into SWAT. U need the root n root passwd to go into SWAT.

     tell u honestly , u need to prepare to sacrific hours to get familir with LINUX n SAMBa .....Orielly books i recommends. As a newbie ,try the RPMS comes with the books...if not ....REDHAT ..version comes with ready packages ..just select it to get it installed.
     At the LINUX command shell key in : setup
 u would be promptwith a choice...select which service to be start up with...remember to tick smb....which stands for samba...
    Problems..refer to the books ..to work with....soon u would find ...it easier....
 
     Hope its helps !...

   

     
oh! ...i fogot a little.
      U need to go to root , then linux X gui (which is easier ) select linux conf...then go to service tab...select SWAT indicated by : [] u need to tick it with a mouse click : [X] indicated selected ..then exit linux config n back to the command shell n type :
samba status ....to see if samba running?
samba retart .....
 u would sees .....
smb shutdown.....
nmb shutdown....
smb restart...
nmb restart..
then u check samba status......u would sees ...
smb running with pid .xxx
nmb running with pid .xxx
Congratulation your samba is running.
next go to X gui.......doubleclick Netscape Explorer..key in  the http:// ips...:901   hit enter
your would be prompt with a passwd logon , if not ..your swat is not started yet even though u had enable your swat in linuxconfig.. Strange, sometimes this happens...which i also dun know why....usually i reboot it ..n its works.
enjoys!
Avatar of gabulish

ASKER

Ken_330 I dont have a service tab for swat what should I do?
hallo gabulish,
       
First you must login as ROOT ,the start click gnome on the bottom left panel , pull up to System ,move right down to LinuxConf and click.
     Now u in GNOME -Linuxconf panel  
 go down to +Basic serives , expand it n u see Servers,click it and u would be shown a list with []nestat
                                                  []auth
                                                  []linconf
                                                  []swat
use your mouse to click at the swat [X] box with a X to enable it.
then click Quit tab on the left hand linuxconf and u would be prompt for a Act/changes , click it to activate changes and then Quit tab at below it.
U DONE !

U need to check if the daemond is running by reentering into GNOME -Linuxconf and go down to Control service activity by click it , u would be shown with a list of daemons Running or Automatic or Manual

Enjoy !
Hi ken_330,
    I am running redhat 7.2. After I go into the system panel under gnome there is not a LinuxConf tab. Are you reffering to the Service Configuration, if so I do not have any options you have specified. Is LinuxConf the exact name of the panel choice? Any suggestions?
hi gabulish,
          In redhat 7.2 , yeap u are on the right track , go to gnome(startbutton)>Program > System > Service Configuration with a click , u would be prompt with a window tab list of all service which is running or not running,select it by clicking it (it would toggle on or off )pay attention to the tick box ticked meants selected,now play with the other option button to restart all services.
          The previous one i mentioned is for redhat 6.2 and below.
        You can called up linuxconf by typing in a command shell : linuxconf           Hit ENTER , a cool linuxconf window would appears ! browse n play with it !
ENJOY!
Right I was in the service configuration last night. There were a bunch of options that you could place a tick by. The only problem I didnt see any of the options that you mentioned. What do you think?
hi,  
   If u scroll thru all the service to see n cannot find the smb , that meants your smb is not installed.
   go get the RPM packager to add samba
I think I already have done that. Is there a specific directory you have to install it in? When I try install it via RPM it says I am missing these weird files. They have an ending of .so or something. I have searched for them but i can't find them on the redhat site. I also have tried to use the command:

rpm --redhatprovides filename

to find out what package this file resides in  but also get an error saying I am missing a file? I'm clueless.
hi  ,
    I think u may need to reinstall your redhat7.2 once again but selecting a Custom mode and browse thru the choice of packages u which U need not have to worry about any dependencies problems , if u happens to encounter one,
u would be automatically prompt with.
    If you are trying the previous step via rpm , the .so is in the libary directory if i m not wrong.
    Put your CDRom 1st disk inside the cdrom and mount it
,go to the directory mount/cdrom > Redhat/RPMS ;then browse thru the RPMS directory , u would be able to find things u need.U need to scroll thru patiencely , otherwise like what i had said Reinstall everything over again by selecting custom choice , tick the wanted choice package.

good luck this time !
get mandrake 9.1.  Its much easier, and better help

or get www.webmin.com
ASKER CERTIFIED SOLUTION
Avatar of mjdme
mjdme

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial