Find the answer to your Linux question:
Page 2 of 3 FirstFirst 1 2 3 LastLast
Results 11 to 20 of 23
Originally Posted by smolloy Originally Posted by spoon! "which" is not going to find it if it's not in the PATH (which it obviously isn't). But yes it is usually ...
  1. #11
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234


    Quote Originally Posted by smolloy
    Quote Originally Posted by spoon!
    "which" is not going to find it if it's not in the PATH (which it obviously isn't). But yes it is usually at /sbin/ifconfig
    You can see that spoon already told you it wasn't going to work like that.
    Quote Originally Posted by anomie
    You can su to root before running it.
    It will work if you do this.

    Quote Originally Posted by Cabhan
    http://www.whatismyip.com/
    Thanks Cabhan. I was just wondering if there was a way I could do it without using a website like this. Is there some way for me to interrogate the router for this information??
    I dun have the root user permission
    Proper Planing is a way of success

  2. #12
    Linux Guru bryansmith's Avatar
    Join Date
    Nov 2004
    Location
    /Ontario/Canada
    Posts
    2,621
    You should. What happens when you try to su into root?

    Did you choose what groups you were added to during install?

    Bryan
    Looking for a distro? Look here.
    "There can be no doubt that all our knowledge begins with experience." - Immanuel Kant (Critique of Pure Reason)
    Queen's University - Arts and Science 2008 (Sociology)
    Registered Linux User #386147.

  3. #13
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,413
    Quote Originally Posted by thcc2
    I dun have the root user permission
    Do you mean you don't know the root password, or you don't know how to get root permissions??
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  4. #14
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by smolloy
    Quote Originally Posted by thcc2
    I dun have the root user permission
    Do you mean you don't know the root password, or you don't know how to get root permissions??
    I don't know the root password
    Proper Planing is a way of success

  5. #15
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by bryansmith
    You should. What happens when you try to su into root?

    Did you choose what groups you were added to during install?

    Bryan
    It ask for password
    Proper Planing is a way of success

  6. #16
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,318
    Quote Originally Posted by thcc2
    Quote Originally Posted by anomie
    You can su to root before running it.

    Or try
    Code:
    which ifconfig
    and then type the full path as a normal user. (In my case it is /sbin/ifconfig.)
    it gives me the following error message
    which: no ifconfig in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:.)
    You could try:

    locate ifconfig

    and that should turn it up if the locatedb is up to date.
    Linux user #126863 - see http://linuxcounter.net/

  7. #17
    Linux Newbie
    Join Date
    Dec 2005
    Location
    Singapore
    Posts
    234
    Quote Originally Posted by Roxoff
    Quote Originally Posted by thcc2
    Quote Originally Posted by anomie
    You can su to root before running it.

    Or try
    Code:
    which ifconfig
    and then type the full path as a normal user. (In my case it is /sbin/ifconfig.)
    it gives me the following error message
    which: no ifconfig in (/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/games:/usr/lib/java/bin:/usr/lib/java/jre/bin:.)
    You could try:

    locate ifconfig

    and that should turn it up if the locatedb is up to date.
    Thks
    Proper Planing is a way of success

  8. #18
    Linux User
    Join Date
    Apr 2005
    Location
    Ohio
    Posts
    326
    Quote Originally Posted by smolloy
    Quote Originally Posted by spoon!
    "which" is not going to find it if it's not in the PATH (which it obviously isn't). But yes it is usually at /sbin/ifconfig
    You can see that spoon already told you it wasn't going to work like that.
    Quote Originally Posted by anomie
    You can su to root before running it.
    It will work if you do this.

    Quote Originally Posted by Cabhan
    http://www.whatismyip.com/
    Thanks Cabhan. I was just wondering if there was a way I could do it without using a website like this. Is there some way for me to interrogate the router for this information??
    What do you need the external IP for ? to ssh to or access a web page maybe ?

    You could use a dynamic DNS service so you would just access smolloy.dynip.com or a similar DNS name that wouldn't change.
    http://www.dyndns.com/
    http://www.dynamip.com/

    Then you run a Dyanmic IP client on your workstation that 'phones home' to the dynamic DNS service to update your IP address and keey your DNS name pointed at it..

    Really a neat service for home users.
    far...out

  9. #19
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,413
    Thanks farslayer (and apologies to the original poster for hijacking this thread ). I've been thinking about setting up a ssh server, and was wondering how to solve the problem of having a dynamic IP. Thanks for the info.
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  10. #20
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    Wow, who would have guessed a thread about displaying your NIC's IP could get so long.

    "which" is not going to find it if it's not in the PATH (which it obviously isn't).
    True. I should have said
    Code:
    whereis ifconfig

Page 2 of 3 FirstFirst 1 2 3 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •