Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Kako da Centos postavim na domenu ?

[es] :: Linux :: Kako da Centos postavim na domenu ?

[ Pregleda: 1299 | Odgovora: 4 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

scenarist

Član broj: 169249
Poruke: 441
*.fbih.806590-39.bih.net.ba.



+2 Profil

icon Kako da Centos postavim na domenu ?08.04.2011. u 11:02 - pre 158 meseci
Instalirao sam Centos 4.8 na PC koji se nalazi u firmi i inace ima win7 instaliran i registrovan na domenu.
Sad imam problem da se uopste zakacim na repositorije preko yum-a, naime kada kucam yum install "ime paketa" dobijem slijedece
Code:

Setting up Install Process
Setting up repositories

ili kada pingam neki sajt...jednostavno se nista ne desi...samo kursor predje u novi red i tako blinka vjecno.

Preko firefoxa izlazim na internet ali tako sto podesim u opcijama pod tabom Network, proxy server i port.

Uglavnom ne mogu nista instalirati preko yum-a! Kako da rijesim problem ?
Isto kada kucam ifconfig dobijem command not found!



[Ovu poruku je menjao scenarist dana 08.04.2011. u 13:54 GMT+1]

 
Odgovor na temu

scenarist

Član broj: 169249
Poruke: 441
*.fbih.806590-39.bih.net.ba.



+2 Profil

icon Re: Kako da Centos postavim na domenu ?08.04.2011. u 14:11 - pre 158 meseci
Pronasao sam ovo>>


Using yum with a proxy server
Code:
 

To enable yum operations to use a proxy server you should first add the following parameter to /etc/yum.conf

proxy=http://yourproxy:8080/  

where yourproxy is the name of the proxy server you want to access and 8080 is the proxy port. If the server requires authentication you can specify the login credentials like:

proxy=http://username:password@yourproxy:8080/ 

The rpm package manager makes use of the proxy environment variable. This can be set system wide in /etc/profile or user specific in ~/.bash_profile::

export http_proxy=http://yourproxy:8080/ export ftp_proxy=http://yourproxy:8080/ 

To use wget throug a proxy server add the following lines to /etc/wgetrc

http_proxy = http://yourproxy:8080/  ftp_proxy = http://yourproxy:8080/  

In both cases, login information can be set like in the example above. 


No medjutim dodavanjem proxya, sad mi javi slijedecu gresku

Code:

[root@localhost nedzadsilic]# yum install xxx
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update



a file na putanji etc/yum.repos.d/CentosBase izgleda ovako

Code:

# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#

[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-centos4
priority=1
protect=1
enabled=0

#released updates 
[update]
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-centos4
priority=1
protect=1

#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-centos4
priority=1
protect=1

#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-centos4
priority=1
protect=1

#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-centos4
priority=2
protect=1

#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-centos4
priority=2
protect=1



????

 
Odgovor na temu

maksvel

Moderator
Član broj: 107376
Poruke: 2417

Jabber: maksvel
Sajt: maksvel.in.rs


+161 Profil

icon Re: Kako da Centos postavim na domenu ?08.04.2011. u 23:38 - pre 158 meseci
Vidiš kaže u samom confu:
If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
Znači, pokušaj da otkomentarišeš

#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/

Citat:
Isto kada kucam ifconfig dobijem command not found!

Probaj sa /sbin/ifconfig

(BTW, čini mi se da naslov teme nije baš odgovarajući - asocira kao da CentOS treba da se učlani u domen.)

 
Odgovor na temu

scenarist

Član broj: 169249
Poruke: 441
*.fbih.806590-39.bih.net.ba.



+2 Profil

icon Re: Kako da Centos postavim na domenu ?11.04.2011. u 07:41 - pre 158 meseci
Odkomentirao sam [base], u etc/yum.conf sam takodjer unio proxy server i lokalni admin password za domenu, takodjer pod preferences>Network proxy sam postavio isto ostavke proxyja......i sad imam slijedece>>

Code:

[root@localhost /]# yum install update
Setting up Install Process
Setting up repositories
http://mirror.centos.org/cento...ates/i386/repodata/repomd.xml: [Errno 14] HTTP Error 407: Proxy Authentication Required ( The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied.  )
Trying other mirror.
Cannot open/read repomd.xml file for repository: update
failure: repodata/repomd.xml from update: [Errno 256] No more mirrors to try.
Error: failure: repodata/repomd.xml from update: [Errno 256] No more mirrors to try.


Jel to znaci da bi na ISA serveru trebalo staviti odobrenje....i posto su u firmi sve win7, kako ce se Centos vidjeti na ISA, iako preko browsera mogu regularno izlaziti na internet ???
Mozda bi trebao postaviti novu temu pod nazivom "Problem sa Yum i repozitorijima"



[Ovu poruku je menjao scenarist dana 11.04.2011. u 09:00 GMT+1]

 
Odgovor na temu

scenarist

Član broj: 169249
Poruke: 441
*.fbih.806590-39.bih.net.ba.



+2 Profil

icon Re: Kako da Centos postavim na domenu ?11.04.2011. u 08:51 - pre 158 meseci
PROBLEM DJELIMICNO RIJESEN (Nije mi bila odkomentirana linija za autentifikaciju, do mene je, ne znam kud udaram:))...
Code:

[main]
cachedir=/var/cache/yum
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
installonlypkgs=kernel kernel-smp kernel-devel kernel-smp-devel kernel-largesmp kernel-largesmp-devel kernel-hugemem kernel-hugemem-devel
distroverpkg=centos-release
tolerant=1
exactarch=1
retries=20
obsoletes=1
gpgcheck=1
plugins=1

proxy=http://proxy.xxxxx.ba:8888/
[b]proxy=http://username:[email protected]:8888/[/b]

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d


no medjutim javio se drugi problem sa GPG keyom.............

Code:

[root@localhost /]# yum install yum-plugin-priorities
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package yum-plugin-priorities.noarch 0:0.0.7-2.c4 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 yum-plugin-priorities   noarch     0.0.7-2.c4       extras             13 k

Transaction Summary
=============================================================================
Install      1 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 13 k
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 443e1821
Public key for yum-plugin-priorities-0.0.7-2.c4.noarch.rpm is not installed
Retrieving GPG key from http://mirror.centos.org/centos/RPM-GPG-KEY-centos4


GPG key retrieval failed: [Errno 4] IOError: <urlopen error (110, 'Connection timed out')>



[Ovu poruku je menjao scenarist dana 11.04.2011. u 11:11 GMT+1]

 
Odgovor na temu

[es] :: Linux :: Kako da Centos postavim na domenu ?

[ Pregleda: 1299 | Odgovora: 4 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.