how to install samba?

Joined
Oct 28, 2008
Messages
3
Points
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
 
Joined
Oct 28, 2008
Messages
3
Points
0
in Repositories,CentOS-5 - Contrib is unchecked,it well ok.


CentOS-5 - Contrib
CentOS-5 - Media
 
Joined
May 14, 2007
Messages
1,454
Points
0
It seems to be an error with CentOS repositories, maybe you can try an specific mirror.

saludos,

Rafael
 
Joined
Jul 31, 2008
Messages
19
Points
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
 
Joined
Apr 11, 2009
Messages
49
Points
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
 
Joined
Oct 20, 2008
Messages
128
Points
0
cheeks said:
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
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
 
Joined
Jan 27, 2010
Messages
15
Points
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?
 
Joined
May 12, 2010
Messages
1,663
Points
0
Hi zeonz, wellcome to the forum!

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

Code:
chkconfig smb on
 

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,990
Messages
131,103
Members
17,716
Latest member
Orbit114
Top