They have to be in any directory included in the PATH
environment variable. This is either done by copying it to a directory included in the PATH variable. My PATH looks like this:
$ echo $PATH
/usr/lib/x86_64-linux-gnu/qt4/bin:/usr/lib/lightdm/lightdm:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/local/tigcc
Or you can add the directory with your binaries to the PATH location. For this, include the following line into ~/.profile
or ~/.bashrc
: (Put it at the end of the file; will work after logging out and in again)
export PATH=$PATH:/path/to/binaries
If you want to make it accessible in the application menu, you have to create a launcher for it either in /usr/share/applications/
(for all users) or ~/.local/share/applications
.
This launcher has to be a textfile with the extension .desktop
Look at this to find out how it works. You may also duplicate an existing launcher, which makes things easier to you.
After saving it, make it executable: chmod +x launcher.desktop
(put sudo if in /usr/share/...
)
export PATH=$PATH:/usr/local/bin
– Nehal J Wani May 15 '14 at 16:36