LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-10-2008, 01:19 PM   #1
av.dubey
Member
 
Registered: Nov 2007
Posts: 148

Rep: Reputation: 15
commands not workin in fedora 9


i have freshly installed fedora 9 on my dell inspiron 1420 laptop..
but there are many commands which are not working on it as superuser ...
like neat,ifconfig,locate..m gettin comand not found..
i really liked the looks but my touchpad is also not working properly.
can neone tell me wats the problem..
 
Old 07-10-2008, 01:43 PM   #2
camorri
LQ Guru
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 14.1, 14.2
Posts: 5,090

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
Quote:
many commands which are not working on it as superuser ...
like neat,ifconfig,locate..m gettin comand not found..
If you are getting 'command not found' errors, then the command processor does not know where the file is. There are a few reasons why that might be.

1. The command and the package it is installed from is not installed. In this case, install it using the package manager. This is not usually the case for ifconfig.

2. The path to the command is not known by bash. Ifconfig can be run as a regular user or root. To run it a s regular user, you need to supply the path information to the executable. On my system ifcongig is installed in /sbin/ directory, so to run it as a user, I type '/sbin/ifconfig' and it works. As root I don't need to do add the path, since root has a different set of known paths to look for command executables.

Locate is a bit different. To use it, you need to update the database first, as the root user. To do that, 'su' press enter, and give your root password. Then run the command 'updatedb'. Let it run, and when done, exit back to your user. Then do a 'locate filenameyouwanttofind'. You should not get 'command not found' If you do then there are packages missing on your system.

Quote:
my touchpad is also not working properly
As root you will need to edit the file /etc/X11/xorg.conf. There will be a section for your mouse/touchpad. In order to know what to put there, you need to post the make and model information of your system. Then do a search for touchpad information. I'm sure someone has made on of these work. Once we know what to add or modify, then edit the file, make the changes. That should be it.

Last edited by camorri; 07-10-2008 at 01:46 PM.
 
1 members found this post helpful.
Old 07-10-2008, 03:30 PM   #3
kcorupe
Member
 
Registered: Nov 2004
Location: Arizona
Distribution: Arch
Posts: 107

Rep: Reputation: 15
just type...

whereis ifconfig, and it will tell you /sbin/ifconfig.
/sbin isnt in your path ... Thats the problem. On a redhat type distro

edit ~/.bash_profile

ex: vi /home/YOURUSERNAME/.bash_profile

and add /sbin to the end of the PATH like this:

PATH=$PATH:$HOME/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin (I have added some others)
 
Old 07-10-2008, 03:49 PM   #4
ronlau9
Senior Member
 
Registered: Dec 2007
Location: In front of my LINUX OR MAC BOX
Distribution: Mandriva 2009 X86_64 suse 11.3 X86_64 Centos X86_64 Debian X86_64 Linux MInt 86_64 OS X
Posts: 2,369

Rep: Reputation: Disabled
Using Fedora9 both commands whereis and locate works directly.
So maybe something was going wrong with the installation by av.dubey
I remember in the past before using the commands you have to build up the database first
Even in Mandriva it works directly
The difference is locate gives more information

all the best
 
Old 07-10-2008, 05:07 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Or, perhaps, he was doing a su without the - so his path was not set to root 's path.
 
Old 07-11-2008, 06:04 AM   #6
av.dubey
Member
 
Registered: Nov 2007
Posts: 148

Original Poster
Rep: Reputation: 15
no ..actually while iam installing fedora 9 using its dvd ...its taking quite a long time to boot up .and from the very beginnig my touch pad is not working properly...even the graphics are coming slightly distorted..
should i continue or not
 
Old 07-11-2008, 10:58 PM   #7
av.dubey
Member
 
Registered: Nov 2007
Posts: 148

Original Poster
Rep: Reputation: 15
i got the dvd along with pc quest magazine...
while the installation is starting that time only my problem with touchpad is starting..
actually my tracker is working but when iam pressing on the tracker its not doing what left key or mouse does..dat is m not able to click on ne option using tracker....for this i have to use the two button provided below the touchpad...
but in fedora 8 there wat no such problem..
 
Old 11-15-2008, 09:28 AM   #8
mythcat
Member
 
Registered: Dec 2007
Location: Fălticeni, Romania
Distribution: Debian;Fedora
Posts: 66

Rep: Reputation: 15
Wink

Use this :
Code:
whereis command
If result is
Code:
command:
then "command" not exist
else run with
Code:
/path/command
 
Old 11-15-2008, 01:05 PM   #9
ritam_bkp
Member
 
Registered: Sep 2008
Location: Calcutta,India
Distribution: Fedora 11, OpenSUSE 11.0
Posts: 116

Rep: Reputation: 17
first run this command
"whereis ifconfig"
i guess it would be in
/sbin/ifconfig

to see ur path type this command
"env PATH"
update ur path by this

"export PATH=$PATH:/sbin"

that will be fine
 
1 members found this post helpful.
  


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
Fedora Core 6 Shell Commands bob3dan Fedora 1 11-19-2006 07:44 PM
Fedora vs Redhat 7.2 commands marlon2006 Linux - General 1 06-02-2006 11:44 AM
Sound not workin for Creative Labs SB Audigy in Fedora 4 robertjo Linux - Hardware 2 08-28-2005 07:07 PM
Fedora Shell Commands tregg Fedora 3 01-12-2005 05:52 AM
Fedora 3 networking commands?? bond00 Linux - Networking 3 11-29-2004 08:37 AM


All times are GMT -5. The time now is 06:54 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration