Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > check IP

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 12-13-2005   #11 (permalink)
Linux Newbie
 
Join Date: Dec 2005
Location: Singapore
Posts: 234
Send a message via MSN to thcc2
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
thcc2 is offline  


Reply With Quote
Old 12-13-2005   #12 (permalink)
Linux Guru
 
bryansmith's Avatar
 
Join Date: Nov 2004
Location: /Ontario/Canada
Posts: 2,623
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.
bryansmith is offline   Reply With Quote
Old 12-13-2005   #13 (permalink)
Linux Guru
 
smolloy's Avatar
 
Join Date: Apr 2005
Location: CA, but from N.Ireland
Posts: 2,407
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
smolloy is offline   Reply With Quote
Old 12-13-2005   #14 (permalink)
Linux Newbie
 
Join Date: Dec 2005
Location: Singapore
Posts: 234
Send a message via MSN to thcc2
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
thcc2 is offline   Reply With Quote
Old 12-13-2005   #15 (permalink)
Linux Newbie
 
Join Date: Dec 2005
Location: Singapore
Posts: 234
Send a message via MSN to thcc2
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
thcc2 is offline   Reply With Quote
Old 12-13-2005   #16 (permalink)
Trusted Penguin
 
Roxoff's Avatar
 
Join Date: Aug 2005
Location: Nottingham, England
Posts: 2,830
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
Quote:
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://counter.li.org/
Roxoff is offline   Reply With Quote
Old 12-13-2005   #17 (permalink)
Linux Newbie
 
Join Date: Dec 2005
Location: Singapore
Posts: 234
Send a message via MSN to thcc2
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
Quote:
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
thcc2 is offline   Reply With Quote
Old 12-13-2005   #18 (permalink)
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
farslayer is offline   Reply With Quote
Old 12-13-2005   #19 (permalink)
Linux Guru
 
smolloy's Avatar
 
Join Date: Apr 2005
Location: CA, but from N.Ireland
Posts: 2,407
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
smolloy is offline   Reply With Quote
Old 12-13-2005   #20 (permalink)
Linux Guru
 
anomie's Avatar
 
Join Date: Mar 2005
Location: Texas
Posts: 1,697
Wow, who would have guessed a thread about displaying your NIC's IP could get so long.

Quote:
"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
anomie is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 09:05 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2