|
Home > Archive > Red Hat General > January 2004 > Newbie Question(s) about Traceroute and Installing Programs
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Newbie Question(s) about Traceroute and Installing Programs
|
|
| Lenroc 2004-01-23, 6: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
| |
| Alexander Dalloz 2004-01-23, 6: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
| |
| Alexander Dalloz 2004-01-23, 6: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
| |
| Lenroc 2004-01-23, 6: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
| |
| Lenroc 2004-01-23, 6: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
|
|
|
|
|