LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bash: xmodmap: command not found (https://www.linuxquestions.org/questions/linux-newbie-8/bash-xmodmap-command-not-found-82479/)

Jalalabee 08-16-2003 04:28 AM

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

MasterC 08-16-2003 04:36 AM

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

maroonbaboon 08-16-2003 06:10 AM

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.

Jalalabee 08-16-2003 12:04 PM

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. :D

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. :D

Thanks for the help so far. ;)

-Jalalabee

MasterC 08-16-2003 09:41 PM

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


All times are GMT -5. The time now is 09:02 AM.