LinuxQuestions.org
Help answer threads with 0 replies.
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-16-2003, 05:28 AM   #1
Jalalabee
Member
 
Registered: Aug 2003
Distribution: Slackware 10.2
Posts: 102

Rep: Reputation: 15
bash: xmodmap: command not found


bash: xmodmap: command not found

I just restarted from having my box up for 3 days+ and it worked fine before, now it says this to me when i attempt the commands: xmodmap "pointer = 1 2 3 6 7 4 5" or xmodmap

What can I do about this?

Distro: Slackware 9

Thanks for any help,

Jalalabee
 
Old 08-16-2003, 05:36 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Try using a whereis or locate:
whereis xmodmap
locate xmodmap

Mine is located:
/usr/X11R6/bin/xmodmap (as well as /usr/bin/X11/xmodmap /usr/X11/bin/xmodmap )

So then you'll need to check your PATH:
echo $PATH

And see if that directory is listed. If not, do a search on here to see how to edit your PATH, or open up /etc/profile and see if you can wing it (I don't suggest this though...)

Cool
 
Old 08-16-2003, 07:10 AM   #3
maroonbaboon
Senior Member
 
Registered: Aug 2003
Location: Sydney
Distribution: debian
Posts: 1,495

Rep: Reputation: 48
If you are just swapping your mouse buttons around you can put the line

pointer = 1 2 3 6 7 4 5

in a file called /etc/X11/Xmodmap (you need to be root to create and/or edit this) and then it will run automatically every time X starts.
 
Old 08-16-2003, 01:04 PM   #4
Jalalabee
Member
 
Registered: Aug 2003
Distribution: Slackware 10.2
Posts: 102

Original Poster
Rep: Reputation: 15
Thanks for the reply

Quote:
Originally posted by MasterC
Try using a whereis or locate:
whereis xmodmap
locate xmodmap

Mine is located:
/usr/X11R6/bin/xmodmap (as well as /usr/bin/X11/xmodmap /usr/X11/bin/xmodmap )
root@computer:~# whereis xmodmap
xmodmap: /usr/X11R6/bin/xmodmap /usr/bin/X11/xmodmap /usr/X11/bin/xmodmap /usr/share/xmodmap /usr/man/cat1/xmodmap.1x.bz2 /usr/share/man/cat1/xmodmap.1x.bz2 /usr/X11/man/man1/xmodmap.1x /usr/X11/man/cat1/xmodmap.1x.bz2
root@computer:~# cd /usr/X11R6/bin/xmodmap
bash: cd: /usr/X11R6/bin/xmodmap: Not a directory
root@computer:~# cd /usr/X11R6/bin/
root@computer:/usr/X11R6/bin# xmodmap
bash: xmodmap: command not found
root@computer:/usr/X11R6/bin#

I must be doing something wrong?

Quote:
Originally posted by MasterC
So then you'll need to check your PATH:
echo $PATH

And see if that directory is listed. If not, do a search on here to see how to edit your PATH, or open up /etc/profile and see if you can wing it (I don't suggest this though...)
I'm not specifically understanding this what echo does or what I should be putting in for the path. Could that please be explained? I did read over a few things about it.

Quote:
Originally posted by MasterC
Cool
Yes, Cool, I understand this one, I think.

Quote:
Originally posted by MasterC
If you are just swapping your mouse buttons around you can put the line

pointer = 1 2 3 6 7 4 5
root@computer:~# pointer = 1 2 3 6 7 4 5
bash: pointer: command not found

It doesn't seem to work for me.

Quote:
in a file called /etc/X11/Xmodmap (you need to be root to create and/or edit this) and then it will run automatically every time X starts.
I'll be sure to blast that in there as soon as I can find the file.

Thanks for the help so far.

-Jalalabee
 
Old 08-16-2003, 10:41 PM   #5
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
The full path must be used if it's not in your PATH, so to execute it:
/usr/X11R6/bin/xmodmap

Or, if you want to cd into that directory:
cd /usr/X11R6/bin/
Then to execute it you have to use the ./ :
./xmodmap



Finally, the /etc/X11/Xmodmap (might be hidden with .Xmodmap ) is gonna really be the way to go.

Cool
 
  


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
bash: g++: command not found m_lp_ql_m Linux - Software 8 07-08-2010 02:45 PM
command xmodmap not found during boot MatthiasOtto Linux - Software 4 02-17-2005 07:09 AM
-bash: cp: command not found johnlittlepeap Fedora 2 11-15-2004 09:52 AM
-bash: ls: command not found jchun Linux - General 3 11-02-2004 11:11 AM
bash: ll: command not found x2000koh Linux - Newbie 3 08-08-2003 06:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:04 PM.

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
Open Source Consulting | Domain Registration