LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   illusive IP command & troubleshooting network/USB connection on a CoreOS workstation (https://www.linuxquestions.org/questions/linux-newbie-8/illusive-ip-command-and-troubleshooting-network-usb-connection-on-a-coreos-workstation-665346/)

oceanarches 08-25-2008 05:32 PM

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!

{BBI}Nexus{BBI} 08-25-2008 05:37 PM

For number (2) try issuing as root
Code:

route
Also check your firewall settings.

userlander 08-25-2008 05:41 PM

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

oceanarches 08-27-2008 03:07 PM

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!

{BBI}Nexus{BBI} 08-27-2008 03:19 PM

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?

oceanarches 08-27-2008 03:49 PM

/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

syg00 08-27-2008 04:33 PM

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.

oceanarches 08-27-2008 04:55 PM

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!

syg00 08-27-2008 05:12 PM

"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.


All times are GMT -5. The time now is 11:16 AM.