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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-25-2008, 05:32 PM
|
#1
|
|
LQ Newbie
Registered: Aug 2008
Posts: 14
Rep:
|
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!
|
|
|
|
08-25-2008, 05:37 PM
|
#2
|
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 3 / CrunchBang Linux 10 Statler / Easy Peasy
Posts: 4,288
|
For number (2) try issuing as rootAlso check your firewall settings.
|
|
|
|
08-25-2008, 05:41 PM
|
#3
|
|
Member
Registered: Jul 2008
Distribution: Arch, Debian
Posts: 61
Rep:
|
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.
|
|
|
|
08-27-2008, 03:07 PM
|
#4
|
|
LQ Newbie
Registered: Aug 2008
Posts: 14
Original Poster
Rep:
|
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!
|
|
|
|
08-27-2008, 03:19 PM
|
#5
|
|
Senior Member
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 3 / CrunchBang Linux 10 Statler / Easy Peasy
Posts: 4,288
|
You should also be able to do ifconfig as a regular user with: Do you get any output from: also issued as a regular user?
|
|
|
|
08-27-2008, 03:49 PM
|
#6
|
|
LQ Newbie
Registered: Aug 2008
Posts: 14
Original Poster
Rep:
|
/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
|
|
|
|
08-27-2008, 04:33 PM
|
#7
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,288
|
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.
|
|
|
|
08-27-2008, 04:55 PM
|
#8
|
|
LQ Newbie
Registered: Aug 2008
Posts: 14
Original Poster
Rep:
|
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!
|
|
|
|
08-27-2008, 05:12 PM
|
#9
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,288
|
"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.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 11:10 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|