LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-11-2011, 05:49 AM   #16
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45

thanks for guiding. I does not use now iso file. with "deep27ak" method I try but it does not work so I just keep all things inside the directories as i previously do .I think it does not matter that u keep things in the root or make sub directories.

Ok I copy all rpm files from my dvd to

var/ftp/pub/server

and then use createrepo for the above path.


Under /etc/yum.repos.d I create a new file i.e server.repo

Code:
[server]
name=Centos Repo
bauseurl=file:///var/ftp/pub/server
gpgcheck=0
enabled=1
then

Code:
#yum clean all
#yum update
#yum list
For ftp

Code:
#vi vsftpd.conf
anon_root=/var/ftp/pub/server

Now start the # service vsftpd restart

On client side
Under /etc/yum.repos.d create a new filei.e server.repo

vi /etc/yum.repos.d/client.repo
[client]
name=client
baseurl=ftp://192.168.1.10/pub/server/
gpgcheck=0
enabled=1


In the browser when i try

ftp://192.168.1.10/pub

it does not show any thing. But by clicking "Up to hirelevel directory" two times I can see all rpm files as "deep27ak" show in the attachment

i.e
Code:
ftp://192.168.1.10/../../
The issue is now why it does two times up to the directories and show the rpm file?
Actually the couuect way was by just typing in the browser ftp://192.168.1.10
but here nothing.
 
Old 11-11-2011, 06:01 AM   #17
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by gardenair View Post
thanks for guiding. I does not use now iso file. with "deep27ak" method I try but it does not work so I just keep all things inside the directories as i previously do .I think it does not matter that u keep things in the root or make sub directories.

Ok I copy all rpm files from my dvd to

var/ftp/pub/server

and then use createrepo for the above path.


Under /etc/yum.repos.d I create a new file i.e server.repo

Code:
[server]
name=Centos Repo
bauseurl=file:///var/ftp/pub/server
gpgcheck=0
enabled=1
then

Code:
#yum clean all
#yum update
#yum list
For ftp

Code:
#vi vsftpd.conf
anon_root=/var/ftp/pub/server

Now start the # service vsftpd restart

On client side
Under /etc/yum.repos.d create a new filei.e server.repo

vi /etc/yum.repos.d/client.repo
[client]
name=client
baseurl=ftp://192.168.1.10/pub/server/
gpgcheck=0
enabled=1


In the browser when i try

ftp://192.168.1.10/pub

it does not show any thing. But by clicking "Up to hirelevel directory" two times I can see all rpm files as "deep27ak" show in the attachment

i.e
Code:
ftp://192.168.1.10/../../
The issue is now why it does two times up to the directories and show the rpm file?
Actually the couuect way was by just typing in the browser ftp://192.168.1.10
but here nothing.

on the client side
Code:
baseurl=ftp://192.168.1.10 ------------->make this correction
you don't need to type ftp://192.168.1.10/pub

this is the reason we mentioned
Code:
anon_root=/var/ftp/pub/server --------> this will land your anonyomus user by default to this directory
Now if everything works fine kindly mark the thread as solved
 
2 members found this post helpful.
Old 11-12-2011, 11:37 AM   #18
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
I believe on one thing "Fail does not mean that u can not do something,Fail is a one step ahead to achieve the success.

I am extremly thankfull to "deep27ak" for his help regarding to solve my issue as well linuxquestions.org that they give us a plateform to share our knowledge.

I even was also confuse that why things are not going ok .

I try the same thing with RHEL 5 & every things goes smothly.With same things I do with centos5 i see different experience.I does not know why !

As to my questions my problem have been solved but i want to do two more questions regarding to yum server.

1- I can see all of my rpm files in the web browser using GUI interface.If i am in run level 3 then how the client will access the ftp & see the list of rpm files ?

2- We say that it is a yum repository but these are like foo.rpm files ! When i will install any software package it will also install its dependencies ?regards
gardenair
 
Old 11-13-2011, 10:04 PM   #19
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by gardenair View Post
I believe on one thing "Fail does not mean that u can not do something,Fail is a one step ahead to achieve the success.

I am extremly thankfull to "deep27ak" for his help regarding to solve my issue as well linuxquestions.org that they give us a plateform to share our knowledge.

I even was also confuse that why things are not going ok .

I try the same thing with RHEL 5 & every things goes smothly.With same things I do with centos5 i see different experience.I does not know why !

As to my questions my problem have been solved but i want to do two more questions regarding to yum server.

1- I can see all of my rpm files in the web browser using GUI interface.If i am in run level 3 then how the client will access the ftp & see the list of rpm files ?

2- We say that it is a yum repository but these are like foo.rpm files ! When i will install any software package it will also install its dependencies ?regards
gardenair


1. Being a newbie I prefer using linux in CLI always rather than GUI
Code:
# ftp 192.168.x.x
Connected to 192.168.x.x.
220  
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (192.168.x.x:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>ls
(see your output)
Code:
ftp>get (file name u want to download)
ftp>quit
2.if you don't want the dependencies to be installed use "rpm"

But a software is build using a bunch of small packages which we refer as dependencies without the presence of which you would not be allowed to proceed the installation

So we prefer "yum" over "rpm"
 
1 members found this post helpful.
Old 11-14-2011, 11:33 AM   #20
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
Thanks "deep27ak" for your entire help.Everythings is working perfact.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get list of client if accessing server centos123 Linux - Server 4 05-23-2011 06:47 AM
Yum client package/updates installation and updates through local Yum Server gautamnarayan Linux - Server 1 03-11-2010 01:51 AM
Linux client accessing Samba Server waljure Linux - Networking 4 06-25-2005 07:20 PM
Configuration for a client accessing a proxy server darin3200 Linux - Networking 2 01-08-2005 12:48 PM
Problems accessing server using ssh client. rmc Linux - Networking 1 12-12-2002 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration