how to install samba?

Discussion in 'General' started by guodahai, Oct 29, 2008.

  1. guodahai

    Joined:
    Oct 28, 2008
    Messages:
    3
    Likes Received:
    0
    I want to install samba,but it shows errors,how to do now?

    >yum -y install samba

    Setting up Install Process
    Setting up repositories
    http://centosh.centos.org/centos/5/cont ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
    Trying other mirror.
    http://centoso.centos.org/centos/5/cont ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
    Trying other mirror.
    http://centosk.centos.org/centos/5/cont ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
    Trying other mirror.
    http://centosh.centos.org/centos/5/cont ... repomd.xml: [Errno 14] HTTP Error 404: Not Found
    Trying other mirror.
    Error: Cannot open/read repomd.xml file for repository: contrib
     
  2. agidi

    Joined:
    Jan 13, 2008
    Messages:
    152
    Likes Received:
    0
    try yum update yum
    then yum install samba

    hope it helps
     
  3. guodahai

    Joined:
    Oct 28, 2008
    Messages:
    3
    Likes Received:
    0
    I am tested,but is also on error
     
  4. guodahai

    Joined:
    Oct 28, 2008
    Messages:
    3
    Likes Received:
    0
    in Repositories,CentOS-5 - Contrib is unchecked,it well ok.


    CentOS-5 - Contrib
    CentOS-5 - Media
     
  5. MailSouth

    Joined:
    Sep 23, 2007
    Messages:
    49
    Likes Received:
    0
    I installed it using Webmin. It was totally easy.
     
  6. rafael

    Joined:
    May 14, 2007
    Messages:
    1,454
    Likes Received:
    1
    It seems to be an error with CentOS repositories, maybe you can try an specific mirror.

    saludos,

    Rafael
     
  7. Gwayne

    Joined:
    Jul 31, 2008
    Messages:
    19
    Likes Received:
    0
    The yum repo config files are wrong.

    When enable the base it works. This one also works, had not time to do discover the differences.

    [base]
    name=CentOS-$releasever - Base
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
    #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
    exclude=kernel*

    #released updates
    [updates]
    name=CentOS-$releasever - Updates
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
    #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
    exclude=kernel*

    #packages used/produced in the build but not released
    [addons]
    name=CentOS-$releasever - Addons
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
    #baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
    exclude=kernel*

    #additional packages that may be useful
    [extras]
    name=CentOS-$releasever - Extras
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
    #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
    gpgcheck=1
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
    exclude=kernel*


    #additional packages that extend functionality of existing packages
    [centosplus]
    name=CentOS-$releasever - Plus
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
    #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

    #contrib - packages by Centos Users
    [contrib]
    name=CentOS-$releasever - Contrib
    mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
    #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/
    gpgcheck=1
    enabled=0
    gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5
     
  8. cheeks

    Joined:
    Apr 11, 2009
    Messages:
    49
    Likes Received:
    0
    MailSouth please help

    how did you install and start samba using webmin.

    i need to get samba working with elastix a.s.a.p.

    any help greatly appreciated
     
  9. ramoncio

    Joined:
    May 12, 2010
    Messages:
    1,663
    Likes Received:
    0
    From linux console:

    yum -y install samba
     
  10. Mirko87

    Joined:
    Oct 20, 2008
    Messages:
    128
    Likes Received:
    0
    1- yum install samba
    2- cd /etc/samba
    mv smb.conf smb.conf.backup
    nano smb.conf (If you haven't got nano... Get It with "yum install nano")
    3- config smb.conf with the folloiwing settings:
    Code:
    [global]
    	workgroup=wrkgrp
    	netbios name = smbserver
    	security = SHARE
    	load printers = No
    	default service = global
    	path = /var/lib/asterisk
    	available = yes
    	encrypt passwords = no
    	[share]
    	writeable = yes
    	admin users = smbuser
    	path = /var/lib/asterisk
    	force user = root
    	valid users = nobody
    	public = yes
    4- Make the following form shell:
    - adduser smbuser
    - passwd smbuser
    - smbpasswd -a smbuser
    - /etc/init.d/smb start

    5 - From a Windows Machine go to Start-->Run--><IP OF THE ELASTIX SERVER>


    Mirko
     
  11. zeonz

    Joined:
    Jan 27, 2010
    Messages:
    15
    Likes Received:
    0
    Then what about when start the Elastix the samba will be auto start up no need to do the /etc/init.d/smb start?
     
  12. ramoncio

    Joined:
    May 12, 2010
    Messages:
    1,663
    Likes Received:
    0
    Hi zeonz, wellcome to the forum!

    To configure samba to load at boot you need to run this command:

    Code:
    chkconfig smb on
    
     
  13. zeonz

    Joined:
    Jan 27, 2010
    Messages:
    15
    Likes Received:
    0
    Thank Ramoncio it working now :)
     

Share This Page