LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-25-2008, 05:32 PM   #1
oceanarches
LQ Newbie
 
Registered: Aug 2008
Posts: 14

Rep: Reputation: 0
illusive IP command & troubleshooting network/USB connection on a CoreOS workstation


I have a CoreOS (apparently synonymous with RedHat Enterprise) that has a Gnome GUI. I am also surrounded by LINUX books that aren't helpful because I am that new to this OS.

My two fundamental problems are (1) I can't see my NTFS formatted USB drive when I plug it in, and (2) I can't connect to the internet through my DSL LAN.

In order to help diagnose (2), I tried to query my IP address using the command "ip route". The error that I get is "bash: ip: command not found;" but I can see the man pages for "ip" when I query "man ip." Why is it that I can see the man page and still get a "command not found" error??? Do man pages describe more than what is installed? If not, am I not able to use "ip" because of my PATH defs? If so, where is "ip" located? I looked in /usr/bin and /usr/sbin without success.

I am stuck not being able to help myself resolve the primary problem of internet connectivity. The internet cable seems active: The green network connection light is on at both the computer and my router ends; yet, my web browser fails to bring up a website. Harumpf.

As for (1), I have 4xUSB ports in the front of my workstation. I have tested a couple of ports using a 1TB external and a 2GB jumpdrive, but I can't see either, which screams user error to me! I have a couple of drives mounted under "Computer", like "Memory stick drive" and "Compact flash drive", but none connect to the port with my external/jump drives. I have no idea where to go from here.

Thanks in advance for your help!
 
Old 08-25-2008, 05:37 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,297

Rep: Reputation: 205Reputation: 205Reputation: 205
For number (2) try issuing as root
Code:
route
Also check your firewall settings.
 
Old 08-25-2008, 05:41 PM   #3
userlander
Member
 
Registered: Jul 2008
Distribution: Arch, Debian
Posts: 61

Rep: Reputation: 17
first, I (think) you mean CentOS, not CoreOS.

the command to find your local IP and interface information is ifconfig, not ip or route.

for ntfs support, you might need to enable it in CentOS by adding some packages/modules. I'm not sure what comes enabled by default, this page might help:

http://gerardmcgarry.com/node/106

Last edited by userlander; 08-25-2008 at 05:44 PM.
 
Old 08-27-2008, 03:07 PM   #4
oceanarches
LQ Newbie
 
Registered: Aug 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Unhappy no cigar

Thanks to nexus and userland for the response, but neither sudo (su) nor ifconfig seem to work.

I still get the command not found error when I use sudo, for either ip or ifconfig. Both, however, have man pages!

My internet connection worked before on my network, but perhaps something did change on my router...? Either way, the above commands should work.

Any other suggestions for troubleshooting internet connection???

thanks,
Rachael

p.s. Yes...Cent OS!
 
Old 08-27-2008, 03:19 PM   #5
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 4
Posts: 4,297

Rep: Reputation: 205Reputation: 205Reputation: 205
You should also be able to do ifconfig as a regular user with:
Code:
/sbin/ifconfig
Do you get any output from:
Code:
/sbin/route
also issued as a regular user?
 
Old 08-27-2008, 03:49 PM   #6
oceanarches
LQ Newbie
 
Registered: Aug 2008
Posts: 14

Original Poster
Rep: Reputation: 0
/sbin/... works!

Thanks Nexus.

Some progress, I am connecting to the internet okay now! Perhaps due to re-boot? No idea.

In any case, /sbin/route and /sbin/ifconfig both work, but the individual commands do not.

[rmueller@localhost ~]$ ip route
bash: ip: command not found
[rmueller@localhost ~]$ ifconfig
bash: ifconfig: command not found
[rmueller@localhost ~]$ route
bash: route: command not found

This screams a path issue? Or does that just apply in windows? If so, what is the LINUX equiv.?

I'm afraid I still don't understand why man pages show up when "command not found."

Thanks,
R
 
Old 08-27-2008, 04:33 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,130

Rep: Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986
It's a pathing problem - actually it's a Redhat problem because of the way the do their pathing (for non-root users). To find a command (so you can issue it specifically) use "which <command-name>".
The reason you get the man pages is they are installed in world viewable locations - actually a pretty good clue the command involved really is installed. Somewhere.

When I run into this I usually just "su -" (note the minus); this switches you to the super-user (root), and sets the pathing to root as well. "exit" to resume to the real world. You can adjust your user pathing, but I usually don't bother due to differing systems. Try "echo $PATH" on each (root and normal user) to see the difference.
 
Old 08-27-2008, 04:55 PM   #8
oceanarches
LQ Newbie
 
Registered: Aug 2008
Posts: 14

Original Poster
Rep: Reputation: 0
Smile success

Thanks to you all for the feedback.

syg00, "su -" worked like a charm! I hadn't realized the subtly of switching to root but keeping my user path by just using "su."

To add a PATH to my .bashrc, would I use
PATH = $PATH:/dir/of/choice

OR

export PATH = $PATH:/dir/of/choice

(or something else?)

I'm not sure what "export" has to offer, but I have seen this in a .bashrc file. I'm assuming that "$PATH:" indicates the current path with everything after the colon appending the path?


I'll start new post for further questions, as I'm starting to branch too far out.

Thanks again!
 
Old 08-27-2008, 05:12 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,130

Rep: Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986Reputation: 986
"Suck it and see" - best way to learn. Try from the command line first.
I'd suggest you use export - propagates the change to new shells I believe.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
need help troubleshooting connection benoit808 Linux - Wireless Networking 11 02-22-2007 01:34 AM
Troubleshooting Internet connection hussar Linux - Networking 3 12-05-2005 01:43 PM
Internet connection sharing help...using USB modem & Network card Daz155HGT Linux - Networking 6 04-28-2004 01:44 PM
HP Deskjet (USB) & CUPS & Slackware 9.1: Unable to open USB device "usb:/dev/usb/lp0&qu arnostienen Slackware 2 01-29-2004 03:22 PM
troubleshooting wireless connection basd Linux - Wireless Networking 5 04-22-2003 03:30 AM


All times are GMT -5. The time now is 02:36 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration