Newbie Question(s) about Traceroute and Installing Programs
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Red Hat support > Red Hat General > Newbie Question(s) about Traceroute and Installing Programs




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Newbie Question(s) about Traceroute and Installing Programs  
Lenroc


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 11:55 PM

Hello,

I just installed RedHat 9.

I was trying to do a traceroute, so I went to the terminal and typed
"traceroute <ip>", but it didn't work. As far as I can tell, I did not
have traceroute installed. So I googled around for a bit, found a
downloadable version, ran "make" and then "make install". Then, I tried
"traceroute <ip>", and it still did not work. I looked at the output from
the "make install" command, and noticed that it mentioned /usr/sbin, so I
tried "/usr/sbin/traceroute <ip>", and that worked (kinda).

So that leaves me with a few questions:

1. How do I make it so that I can just type "traceroute <ip>" instead of
"/usr/sbin/traceroute <ip>"?

2. When I run "/usr/sbin/traceroute <ip>", I don't get any results. Every
hop times out. I assume it is because my router (hop 1) swallows ICMP
packets, but I can use traceroute on Windows with no problem (except that
hop 1 times out). I tried "/usr/sbin/traceroute -f 2 <ip>", to skip hop 1,
but all the hops still time out.

3. Finally, I found a Traceroute program under RH's "Hat" menu (does it
have a better name?), in the "System Tools" directory. However, when I run
this (it is apparently a link to xmtr I am prompted for my root password.
Is there a way to not require the root password to run this program?

TIA!

--
Lenroc






[ Post a follow-up to this message ]



    Re: Newbie Question(s) about Traceroute and Installing Programs  
Alexander Dalloz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 11:55 PM

Lenroc <lenroc@NOSPAMFORYOU.hotmail.com> wrote:
quote:
> Hello, > > I just installed RedHat 9. > > I was trying to do a traceroute, so I went to the terminal and typed > "traceroute <ip>", but it didn't work. As far as I can tell, I did not > have traceroute installed. So I googled around for a bit, found a > downloadable version, ran "make" and then "make install". Then, I tried > "traceroute <ip>", and it still did not work. I looked at the output from > the "make install" command, and noticed that it mentioned /usr/sbin, so I > tried "/usr/sbin/traceroute <ip>", and that worked (kinda).
Why the hell did you install traceroute from source while it is available as one of the RH9 rpms?
quote:
> So that leaves me with a few questions: > > 1. How do I make it so that I can just type "traceroute <ip>" instead of > "/usr/sbin/traceroute <ip>"?
/usr/sbin is not in the normal user's $PATH. Either do a traceroute as root or just add /usr/sbin to your user's $PATH with: echo "export PATH= $PATH:/usr/sbin" >> ~/.bash_profile
quote:
> 2. When I run "/usr/sbin/traceroute <ip>", I don't get any results. Every > hop times out. I assume it is because my router (hop 1) swallows ICMP > packets, but I can use traceroute on Windows with no problem (except that > hop 1 times out). I tried "/usr/sbin/traceroute -f 2 <ip>", to skip hop 1, > but all the hops still time out.
Maybe you have firewalling roules active on your RH9 host?
quote:
> 3. Finally, I found a Traceroute program under RH's "Hat" menu (does it > have a better name?), in the "System Tools" directory. However, when I run > this (it is apparently a link to xmtr I am prompted for my root password. > Is there a way to not require the root password to run this program?
This tool is also in /usr/sbin and this directory is for superuser tools. You may place it under /usr/bin so normal users can use it without su'ing.
quote:
> TIA!
You should read a good documentation about the linux basics I feel. And the Redhat documentation on www.redhat.com to know how to search and install the needed software which is delivered with you system. Alexander -- Alexander Dalloz | Enger, Germany PGP key valid: made 13.07.1999 PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653




[ Post a follow-up to this message ]



    Re: Newbie Question(s) about Traceroute and Installing Programs  
Alexander Dalloz


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 11:55 PM

Lenroc <lenroc@NOSPAMFORYOU.hotmail.com> wrote:
quote:
> Hello, > > I just installed RedHat 9. > > I was trying to do a traceroute, so I went to the terminal and typed > "traceroute <ip>", but it didn't work. As far as I can tell, I did not > have traceroute installed. So I googled around for a bit, found a > downloadable version, ran "make" and then "make install". Then, I tried > "traceroute <ip>", and it still did not work. I looked at the output from > the "make install" command, and noticed that it mentioned /usr/sbin, so I > tried "/usr/sbin/traceroute <ip>", and that worked (kinda).
Why the hell did you install traceroute from source while it is available as one of the RH9 rpms?
quote:
> So that leaves me with a few questions: > > 1. How do I make it so that I can just type "traceroute <ip>" instead of > "/usr/sbin/traceroute <ip>"?
/usr/sbin is not in the normal user's $PATH. Either do a traceroute as root or just add /usr/sbin to your user's $PATH with: echo "export PATH= $PATH:/usr/sbin" >> ~/.bash_profile
quote:
> 2. When I run "/usr/sbin/traceroute <ip>", I don't get any results. Every > hop times out. I assume it is because my router (hop 1) swallows ICMP > packets, but I can use traceroute on Windows with no problem (except that > hop 1 times out). I tried "/usr/sbin/traceroute -f 2 <ip>", to skip hop 1, > but all the hops still time out.
Maybe you have firewalling roules active on your RH9 host?
quote:
> 3. Finally, I found a Traceroute program under RH's "Hat" menu (does it > have a better name?), in the "System Tools" directory. However, when I run > this (it is apparently a link to xmtr I am prompted for my root password. > Is there a way to not require the root password to run this program?
This tool is also in /usr/sbin and this directory is for superuser tools. You may place it under /usr/bin so normal users can use it without su'ing.
quote:
> TIA!
You should read a good documentation about the linux basics I feel. And the Redhat documentation on www.redhat.com to know how to search and install the needed software which is delivered with you system. Alexander -- Alexander Dalloz | Enger, Germany PGP key valid: made 13.07.1999 PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653




[ Post a follow-up to this message ]



    Re: Newbie Question(s) about Traceroute and Installing Programs  
Lenroc


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 11:55 PM

On Tue, 22 Jul 2003 05:11:02 +0200, Alexander Dalloz said:
quote:
> Why the hell did you install traceroute from source while it is > available as one of the RH9 rpms?
I don't really know. I couldn't find it, assumed I didn't have it installed (possibly incorrectly), went searching around, and found a download link. It worked, so what's the difference?
quote:
> /usr/sbin is not in the normal user's $PATH. Either do a traceroute as > root or just add /usr/sbin to your user's $PATH with: echo "export PATH= > $PATH:/usr/sbin" >> ~/.bash_profile
Ok, done. Thanks. FWIW, that seems like a very non newbie friendly way to explain that to someone. If I didn't already know what >> did, I'd have no idea what you were doing there. As it is, I just opened up ~/.bash_profile in gedit and added :/usr/sbin to my PATH. I can't find a difference, or is it just more fun to give one line terminal commands as answers?
quote:
> Maybe you have firewalling roules active on your RH9 host?
I'll investigate. Does it matter that xmtr is successful in it's traceroutes?
quote:
> This tool is also in /usr/sbin and this directory is for superuser > tools. You may place it under /usr/bin so normal users can use it > without su'ing.
Actually, xmtr is located at /usr/bin/xmtr, not /usr/sbin/xmtr Should I just chmod it to allow my user to execute it?
quote:
> You should read a good documentation about the linux basics I feel. And > the Redhat documentation on www.redhat.com to know how to search and > install the needed software which is delivered with you system.
Well, actually, the reason I don't use the CDs is that the CD drive I have is a piece of crap. With broadband, it is a matter of a few moments to download a program like traceroute, but to install it from the CD would be a few minutes of trying to get the CD drive to work. Thanks though. -- Lenroc




[ Post a follow-up to this message ]



    Re: Newbie Question(s) about Traceroute and Installing Programs  
Lenroc


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-23-04 11:55 PM

On Tue, 22 Jul 2003 05:11:02 +0200, Alexander Dalloz said:
quote:
> Why the hell did you install traceroute from source while it is > available as one of the RH9 rpms?
I don't really know. I couldn't find it, assumed I didn't have it installed (possibly incorrectly), went searching around, and found a download link. It worked, so what's the difference?
quote:
> /usr/sbin is not in the normal user's $PATH. Either do a traceroute as > root or just add /usr/sbin to your user's $PATH with: echo "export PATH= > $PATH:/usr/sbin" >> ~/.bash_profile
Ok, done. Thanks. FWIW, that seems like a very non newbie friendly way to explain that to someone. If I didn't already know what >> did, I'd have no idea what you were doing there. As it is, I just opened up ~/.bash_profile in gedit and added :/usr/sbin to my PATH. I can't find a difference, or is it just more fun to give one line terminal commands as answers?
quote:
> Maybe you have firewalling roules active on your RH9 host?
I'll investigate. Does it matter that xmtr is successful in it's traceroutes?
quote:
> This tool is also in /usr/sbin and this directory is for superuser > tools. You may place it under /usr/bin so normal users can use it > without su'ing.
Actually, xmtr is located at /usr/bin/xmtr, not /usr/sbin/xmtr Should I just chmod it to allow my user to execute it?
quote:
> You should read a good documentation about the linux basics I feel. And > the Redhat documentation on www.redhat.com to know how to search and > install the needed software which is delivered with you system.
Well, actually, the reason I don't use the CDs is that the CD drive I have is a piece of crap. With broadband, it is a matter of a few moments to download a program like traceroute, but to install it from the CD would be a few minutes of trying to get the CD drive to work. Thanks though. -- Lenroc




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:34 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register