Re: [CentOS] Creating a user defined service in Cent os

2010-05-24 Thread Chaitanya Yanamadala
thank u marcelo.
so after creating a file how do i add it to service list.
coz when  i create a new file in /etc/init.d it is not appearing in the
services list..

Chaitanya

"A man can get discouraged many times but he is not a failure until he stops
trying..."

"The difference between 'involvement' and 'commitment' is like an
eggs-and-ham breakfast: the chicken was 'involved' - the pig was
'committed'."


On Mon, May 24, 2010 at 8:32 PM, Marcelo M. Garcia <
marcelo.maia.gar...@googlemail.com> wrote:

> Chaitanya Yanamadala wrote:
> > hai all
> >  thank you for your replies.
> > but can you send me some examples so that i can understand the things
> > more better..
> Hi
>
> Have a look in the scripts in /etc/init.d/, some of them can be little
> bit complex, but worth the time to learn. You can start with
> /etc/init.d/atd.
>
> Regards
>
> mg.
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Creating a user defined service in Cent os

2010-05-24 Thread Chaitanya Yanamadala
hai all
 thank you for your replies.
but can you send me some examples so that i can understand the things more
better..
i am quite new to linux..

so can u help me out.


Chaitanya




On Mon, May 24, 2010 at 8:03 PM, Jerry McAllister  wrote:

> On Mon, May 24, 2010 at 07:29:21PM +0530, Chaitanya Yanamadala wrote:
>
> > hai
> >  i have a perl script which will automatically check for the existing
> files
> > and then ftp them to a server, this one runs in a loop until i kill it,
> now
> > what i wants is i want to make this as a service so that it can keep on
> > running until i kill the service. so does any one have an idea how to do
> > this??
>
> Has anyone syggested using rsync instead of a Perl script?
> That is designed just for things like this and works well
> and might be more secure than the Perl script.
>
> Or you could put use rsync in your Perl script.
>
> You will need to create a little binary to invoke the Perl script.
> Then create an rd.d type script that takes a 'start' and 'stop'
> put it in and run it with a 'start' parameter.   Give the startup
> script a 'stop' when you want to quite.
>
> Look at the stuff in init.d, etc such as apachectl for hints.
> You probably don't need anything as elaborate as that for
> the start/stop script, but it is a good example.
>
> jerry
>
>
> >
> > Chaitanya
>
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > http://lists.centos.org/mailman/listinfo/centos
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Creating a user defined service in Cent os

2010-05-24 Thread Chaitanya Yanamadala
hai
 i have a perl script which will automatically check for the existing files
and then ftp them to a server, this one runs in a loop until i kill it, now
what i wants is i want to make this as a service so that it can keep on
running until i kill the service. so does any one have an idea how to do
this??


Chaitanya
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] update of rpm directory

2010-05-13 Thread Chaitanya Yanamadala
On 5/13/10, Adrian Sevcenco  wrote:
> Hi! I have an directory full with rpms that are installed on some
> machines.. what is the best way to update those rpms to the latest
> version? are there more optimal approaches then searching for each rpm
> names in an update repo and download one by one?
>
> Thanks,
> Adrian
>
>

Try

yum upgrade
 to upgrade all the installed rpms or else try
Yum update rpmname
To upgrade individual rpm


-- 
Chaitanya

"A man can get discouraged many times but he is not a failure until he
stops trying..."

"The difference between 'involvement' and 'commitment' is like an
eggs-and-ham breakfast: the chicken was 'involved' - the pig was
'committed'."
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] your session only lasted less than 10 seconds error

2010-05-12 Thread Chaitanya Yanamadala
Dude
I dont whether u read the entire thing whch i posted in my first mail
at d botom of the post i gave u d error mesg whch i m geting
Read d post first and i knw wt putty is
I said dt i cannt able to login to my machine anymore and i cant get
any logs as i m unable to log into d machine.
 As for the posts i m not the one who started speaking rude.


On 5/12/10, m.r...@5-cent.us  wrote:
>> Dear roth
>> This is wt u have started using of filthy language.
>
> "Filthy language"? Did you mean putty, which is a free Windows xterm that
> everyone uses?
>
> Or did you mean me telling you to read the *ahem* fine manuals?
>
>> For your kind info when some one starts learning obviously makes mistake.
>> This is the reaosn i have installed it in vbox
>> Any way thank you for ur help i reinstalled my machine
>> It is obviously the cent os which got crashed not the vbox i think u
>> can get this from the error i have posted
>>
>
> And you have posted *no* error. What was in /var/log/messages? Or what was
> on the monitor when it crashed?
>
>mark
>>
>> On 5/12/10, m.r...@5-cent.us  wrote:
>>> Chaitanya,
>>>
>>>First, please stop top posting. Email is like a conversation, and
>>> simply makes more sense if you go to the end, just like reading a
>>> conversation. DO delete irrelevant stuff.
>>>
> Chaitanya wrote:

 This is the exact scenario of my machine.
 i am running the cent os under my virtual box and i have made a network
 bridge to that VBOX
>>>
>>> So, what's the host o/s, Windows?

 so from my machine i connect to the VBOX using the Xshell.
>>>
>>> What are you using, putty?
>>>
 and by the way i am new to linux and this is my test machine so that i
 do
 some testing.
>>>
>>> So READ UP on Linux/Unix.
>>>
 this is the F reason i am using the root user.
>>>
>>> DON'T. Either use root only to do maintenance, or just use sudo to do
>>> that. Do *not* test as a root user, except for things only root can do.
>>>
 what ever os is it i dont think logging in as root user will crash the
 system.
>>>
>>> It won't. However, if you're exposed to the 'Net, you are begging anyone
>>> who finds a way to break in to take over your system. Also, doing things
>>> as root, esp. if you don't know what you're doing, is a wonderful way to
>>> destroy it. Think "format c:/".

 regarding the halt command i used it to check what this command will do
 and this one i have done from the F manual only.
>>>
>>> I have no idea what the "F manual" is. From the command line,
>>> prompt> man halt
>>>
>>> Linux, unlike Windows, comes with man pages for almost all commands.

 but now my VBOX machine crashed.
>>>
>>> CentOS crashed, or the VBOX?
>>> 
>>>
>>> mark
>>>
>>> ___
>>> CentOS mailing list
>>> CentOS@centos.org
>>> http://lists.centos.org/mailman/listinfo/centos
>>>
>>
>> --
>> Sent from my mobile device
>>
>> Chaitanya
>>
>> "A man can get discouraged many times but he is not a failure until he
>> stops trying..."
>>
>> "The difference between 'involvement' and 'commitment' is like an
>> eggs-and-ham breakfast: the chicken was 'involved' - the pig was
>> 'committed'."
>>
>> http://doiop.com/dr.virus.india
>>
>> http://www.drvirusindia.co.cc/
>>
>> http://chaitu09986025424.blog.co.in/
>>
>> http://9986025424.co.cc -- Live news channels
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

-- 
Sent from my mobile device

Chaitanya

"A man can get discouraged many times but he is not a failure until he
stops trying..."

"The difference between 'involvement' and 'commitment' is like an
eggs-and-ham breakfast: the chicken was 'involved' - the pig was
'committed'."

http://doiop.com/dr.virus.india

http://www.drvirusindia.co.cc/

http://chaitu09986025424.blog.co.in/

http://9986025424.co.cc -- Live news channels
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] your session only lasted less than 10 seconds error

2010-05-12 Thread Chaitanya Yanamadala
Dear roth
This is wt u have started using of filthy language.
For your kind info when some one starts learning obviously makes mistake.
This is the reaosn i have installed it in vbox
Any way thank you for ur help i reinstalled my machine
It is obviously the cent os which got crashed not the vbox i think u
can get this from the error i have posted


On 5/12/10, m.r...@5-cent.us  wrote:
> Chaitanya,
>
>First, please stop top posting. Email is like a conversation, and
> simply makes more sense if you go to the end, just like reading a
> conversation. DO delete irrelevant stuff.
>
>>> Chaitanya wrote:
>>
>> This is the exact scenario of my machine.
>> i am running the cent os under my virtual box and i have made a network
>> bridge to that VBOX
>
> So, what's the host o/s, Windows?
>>
>> so from my machine i connect to the VBOX using the Xshell.
>
> What are you using, putty?
>
>> and by the way i am new to linux and this is my test machine so that i do
>> some testing.
>
> So READ UP on Linux/Unix.
>
>> this is the F reason i am using the root user.
>
> DON'T. Either use root only to do maintenance, or just use sudo to do
> that. Do *not* test as a root user, except for things only root can do.
>
>> what ever os is it i dont think logging in as root user will crash the
>> system.
>
> It won't. However, if you're exposed to the 'Net, you are begging anyone
> who finds a way to break in to take over your system. Also, doing things
> as root, esp. if you don't know what you're doing, is a wonderful way to
> destroy it. Think "format c:/".
>>
>> regarding the halt command i used it to check what this command will do
>> and this one i have done from the F manual only.
>
> I have no idea what the "F manual" is. From the command line,
> prompt> man halt
>
> Linux, unlike Windows, comes with man pages for almost all commands.
>>
>> but now my VBOX machine crashed.
>
> CentOS crashed, or the VBOX?
> 
>
> mark
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

-- 
Sent from my mobile device

Chaitanya

"A man can get discouraged many times but he is not a failure until he
stops trying..."

"The difference between 'involvement' and 'commitment' is like an
eggs-and-ham breakfast: the chicken was 'involved' - the pig was
'committed'."

http://doiop.com/dr.virus.india

http://www.drvirusindia.co.cc/

http://chaitu09986025424.blog.co.in/

http://9986025424.co.cc -- Live news channels
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] your session only lasted less than 10 seconds error

2010-05-12 Thread Chaitanya Yanamadala
Dear roth
This is wt u have started using of filthy language.
For your kind info when some one starts learning obviously makes mistake.
This is the reaosn i have installed it in vbox
Any way thank you for ur help i reinstalled my machine
It is obviously the cent os which got crashed not the vbox i think u
can get this from the error i have posted


On 5/12/10, m.r...@5-cent.us  wrote:
> Chaitanya,
>
>First, please stop top posting. Email is like a conversation, and
> simply makes more sense if you go to the end, just like reading a
> conversation. DO delete irrelevant stuff.
>
>>> Chaitanya wrote:
>>
>> This is the exact scenario of my machine.
>> i am running the cent os under my virtual box and i have made a network
>> bridge to that VBOX
>
> So, what's the host o/s, Windows?
>>
>> so from my machine i connect to the VBOX using the Xshell.
>
> What are you using, putty?
>
>> and by the way i am new to linux and this is my test machine so that i do
>> some testing.
>
> So READ UP on Linux/Unix.
>
>> this is the F reason i am using the root user.
>
> DON'T. Either use root only to do maintenance, or just use sudo to do
> that. Do *not* test as a root user, except for things only root can do.
>
>> what ever os is it i dont think logging in as root user will crash the
>> system.
>
> It won't. However, if you're exposed to the 'Net, you are begging anyone
> who finds a way to break in to take over your system. Also, doing things
> as root, esp. if you don't know what you're doing, is a wonderful way to
> destroy it. Think "format c:/".
>>
>> regarding the halt command i used it to check what this command will do
>> and this one i have done from the F manual only.
>
> I have no idea what the "F manual" is. From the command line,
> prompt> man halt
>
> Linux, unlike Windows, comes with man pages for almost all commands.
>>
>> but now my VBOX machine crashed.
>
> CentOS crashed, or the VBOX?
> 
>
> mark
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>

-- 
Sent from my mobile device

Chaitanya

"A man can get discouraged many times but he is not a failure until he
stops trying..."

"The difference between 'involvement' and 'commitment' is like an
eggs-and-ham breakfast: the chicken was 'involved' - the pig was
'committed'."

http://doiop.com/dr.virus.india

http://www.drvirusindia.co.cc/

http://chaitu09986025424.blog.co.in/

http://9986025424.co.cc -- Live news channels
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] your session only lasted less than 10 seconds error

2010-05-12 Thread Chaitanya Yanamadala
Dear Mark

This is the exact scenario of my machine.
i am running the cent os under my virtual box and i have made a network
bridge to that VBOX

so from my machine i connect to the VBOX using the Xshell.
and by the way i am new to linux and this is my test machine so that i do
some testing.
this is the F reason i am using the root user.
what ever os is it i dont think logging in as root user will crash the
system.

regarding the halt command i used it to check what this command will do and
this one i have done from the F manual only.

but now my VBOX machine crashed.



Chaitanya




On Wed, May 12, 2010 at 8:38 PM,  wrote:

> Chaitanya wrote:
> > Thank you for your reply Brain
> >
> > oops i have corrupted the entire system i think .
> > but one thing i dont understand is y this has happened all of a sudden
> > i choose to reinstall the cent os again..
> > i heard that cent os is the stable version with less number of
> crashes..:(
> >
> It is, very much so. You haven't given us *any* idea as to what you,
> personally, did to break the system. You say you halted it - did you mean
> to turn the system off? If you'd just intended to restart it, you should
> have used the command reboot.
>
> And were you running as root? Do you normally log in as root? If so, STOP
> IT, NOW. This is *not* Windows, and you should *never* log in as root,
> unless you're doing system maintenance. You should ALWAYS log in as
> yourself, or as a user, *not* root. (Yes, I'm repeating myself: pay
> attention.)
>
> Btw, try RTFM.
>
>   mark
> >
>
> >
> >
> >
> > On Wed, May 12, 2010 at 8:01 PM, Brunner, Brian T.
> >  >> wrote:
> >
> >>  Suggest:
> >> Boot with an install CD/DVD in rescue mode.
> >> Mount your file system (this should happen automagically)
> >> edit /mnt/sysimage/etc/inittab
> >> Set your default runlevel to 3 (currently it is set to 5)
> >> quit the rescue, and reboot your hard drive.
> >>
> >> Now you will have the shell available to debug what goes wrong when you
> >> command 'startx'
> >>
> >>  --
> >> *From:* centos-boun...@centos.org [mailto:centos-boun...@centos.org]
> *On
> >> Behalf Of *Chaitanya Yanamadala
> >> *Sent:* Wednesday, May 12, 2010 10:21 AM
> >> *To:* CentOS mailing list
> >> *Subject:* [CentOS] your session only lasted less than 10 seconds error
> >>
> >> hai i have run the halt command from the xshell and the machine got
> >> restarted, now when i restart the machine, i am getting this error . I
> >> have
> >> tried to press the CTRL+ALT+F2 and tried to login with the root user but
> >> that one is also not working.
> >> can any one help me with this..
> >> this the error message i am getting after i tried to login
> >>
> >> " your session only lasted less than 10 seconds ...try logging in with
> >> one
> >> of the failsafe sessions to see if you can fix the problem"
> >> and it published details
> >> (.xsession-errors file)
> >> /etc/gdm/PreSession/Default: Registering your session with utmp
> >> /etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -u
> >> /var/run/utmp
> >> -x "/var/gdm/ :0.Xservers" -h " " -l ":0" "chaitu"
> >> session_child_run: Could not exec /etc/X11/xinit/Xsession default
> >>
> >> Regards
> >> Chaitanya
> >>
> >> ***
> >> This email and any files transmitted with it are confidential and
> >> intended solely for the use of the individual or entity to whom
> >> they are addressed. If you have received this email in error please
> >> notify the system manager. This footnote also confirms that this
> >> email message has been swept for the presence of computer
> >> viruses.www.Hubbell.com - Hubbell Incorporated**
> >>
> >>
> >>
> >> ___
> >> CentOS mailing list
> >> CentOS@centos.org
> >> http://lists.centos.org/mailman/listinfo/centos
> >>
> >>
> > ___
> > CentOS mailing list
> > CentOS@centos.org
> > http://lists.centos.org/mailman/listinfo/centos
> >
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] your session only lasted less than 10 seconds error

2010-05-12 Thread Chaitanya Yanamadala
Thank you for your reply Brain

oops i have corrupted the entire system i think .
but one thing i dont understand is y this has happened all of a sudden
i choose to reinstall the cent os again..
i heard that cent os is the stable version with less number of crashes..:(


Chaitanya



On Wed, May 12, 2010 at 8:01 PM, Brunner, Brian T.  wrote:

>  Suggest:
> Boot with an install CD/DVD in rescue mode.
> Mount your file system (this should happen automagically)
> edit /mnt/sysimage/etc/inittab
> Set your default runlevel to 3 (currently it is set to 5)
> quit the rescue, and reboot your hard drive.
>
> Now you will have the shell available to debug what goes wrong when you
> command 'startx'
>
>  --
> *From:* centos-boun...@centos.org [mailto:centos-boun...@centos.org] *On
> Behalf Of *Chaitanya Yanamadala
> *Sent:* Wednesday, May 12, 2010 10:21 AM
> *To:* CentOS mailing list
> *Subject:* [CentOS] your session only lasted less than 10 seconds error
>
> hai i have run the halt command from the xshell and the machine got
> restarted, now when i restart the machine, i am getting this error . I have
> tried to press the CTRL+ALT+F2 and tried to login with the root user but
> that one is also not working.
> can any one help me with this..
> this the error message i am getting after i tried to login
>
> " your session only lasted less than 10 seconds ...try logging in with one
> of the failsafe sessions to see if you can fix the problem"
> and it published details
> (.xsession-errors file)
> /etc/gdm/PreSession/Default: Registering your session with utmp
> /etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -u /var/run/utmp
> -x "/var/gdm/ :0.Xservers" -h " " -l ":0" "chaitu"
> session_child_run: Could not exec /etc/X11/xinit/Xsession default
>
> Regards
> Chaitanya
>
> ***
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom
> they are addressed. If you have received this email in error please
> notify the system manager. This footnote also confirms that this
> email message has been swept for the presence of computer 
> viruses.www.Hubbell.com - Hubbell Incorporated**
>
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] your session only lasted less than 10 seconds error

2010-05-12 Thread Chaitanya Yanamadala
hai i have run the halt command from the xshell and the machine got
restarted, now when i restart the machine, i am getting this error . I have
tried to press the CTRL+ALT+F2 and tried to login with the root user but
that one is also not working.
can any one help me with this..
this the error message i am getting after i tried to login

" your session only lasted less than 10 seconds ...try logging in with one
of the failsafe sessions to see if you can fix the problem"
and it published details
(.xsession-errors file)
/etc/gdm/PreSession/Default: Registering your session with utmp
/etc/gdm/PreSession/Default: running: /usr/bin/sessreg -a -u /var/run/utmp
-x "/var/gdm/ :0.Xservers" -h " " -l ":0" "chaitu"
session_child_run: Could not exec /etc/X11/xinit/Xsession default

Regards
Chaitanya
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Configuring proftpd

2010-05-12 Thread Chaitanya Yanamadala
hai karan
 i have made some configuration to the vsftpd service and which has made my
ftp gone wrong. now disabled the vsftpd service and using the proftpd.

thank you for the suggestion of proftpd users list

Chaitanya




On Wed, May 12, 2010 at 4:31 PM, Karanbir Singh wrote:

> On 05/12/2010 11:32 AM, Chaitanya Yanamadala wrote:
>
>> Hai
>>
>> can anyone help me configuring the proftpd for a new user.
>> i have already googled for this one and have found a lot of documents
>> and tried almost all, but none looks to be working. so if anyone have a
>> known way help me out.
>>
>
> did you go talkto the proftpd user list ?
>
> CentOS ships vsftpd, which has very good man pages and the example config
> file already there would give you a good idea about what and how it does
> things.
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Configuring proftpd

2010-05-12 Thread Chaitanya Yanamadala
Hai

can anyone help me configuring the proftpd for a new user.
i have already googled for this one and have found a lot of documents and
tried almost all, but none looks to be working. so if anyone have a known
way help me out.

Chaitanya
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] compile httpd 2.3.5 error

2010-05-05 Thread Chaitanya Yanamadala
hai
 i need to upgrade my apache to 2.3.5 and what i need is to compile it out
by myself not to use the rpm.. so where i am stuck is that i require to have
the apr 1.3 but i got the 1.2.7 with me, so i have downloaded the apr-1.3
rpm but now when i am upgrading it out i am getting an error of dependencies
problem like this.Can any one help me on this..


 uname(release) >= 2.6 is needed by apr-1.3.3-1.i586
 rpmlib(PayloadIsLzma) <= 4.4.6-1 is needed by apr-1.3.3-1.i586
 apr = 1.2.7-11.el5_3.1 is needed by (installed)
apr-devel-1.2.7-11.el5_3.1.i386


Chaitanya
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos