how to install samba?

guodahai

Joined
Oct 28, 2008
Messages
3
Likes
0
Points
0
#1
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
 

agidi

Joined
Jan 13, 2008
Messages
152
Likes
0
Points
0
#2
try yum update yum
then yum install samba

hope it helps
 

guodahai

Joined
Oct 28, 2008
Messages
3
Likes
0
Points
0
#3
I am tested,but is also on error
 

guodahai

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


CentOS-5 - Contrib
CentOS-5 - Media
 

MailSouth

Joined
Sep 23, 2007
Messages
49
Likes
0
Points
0
#5
I installed it using Webmin. It was totally easy.
 

rafael

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

saludos,

Rafael
 

Gwayne

Joined
Jul 31, 2008
Messages
19
Likes
0
Points
0
#7
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
 

cheeks

Joined
Apr 11, 2009
Messages
49
Likes
0
Points
0
#8
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
 

ramoncio

Joined
May 12, 2010
Messages
1,663
Likes
0
Points
0
#9
From linux console:

yum -y install samba
 

Mirko87

Joined
Oct 20, 2008
Messages
128
Likes
0
Points
0
#10
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
 

zeonz

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

ramoncio

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

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

Code:
chkconfig smb on
 

zeonz

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

Members online

No members online now.

Latest posts

Forum statistics

Threads
30,902
Messages
130,886
Members
17,563
Latest member
dineshr
Top