One of programs I often use is Winbox, tool for managing Mikrotik routers. So I want to make it fast and easy to run it from anywhere.
Winbox is windows application and requires Wine to run, so you cannot simply type in winbox and run it. We are going to do just that.
First download winbox or any application you want and place it somewhere. I don't like using default Wine location in ~/.wine/drive_c/Program Files/ and I make folder just for my apps like home/locodog/programs
So, you installed Wine with sudo apt-get install wine or yum install wine or how ever you install applications on your distro.
To run winbox simply by typing winbox into terminal or Alt+F2 Run screen, open console and type this line:
echo "/usr/bin/wine home/locodog/programs/winbox.exe" > winbox
/home/locodog/programs/winbox.exe is actual location of winbox.exe and it can be where ever you want.
Now let's make newly created file winbox executable by doing
chmod +x winbox
At this point you can run winbox by typing complete path to it, but to be able to run it from anywhere copy file to /usr/local/bin/ or move it there if you don't want copy of it with
sudo mv winbox /usr/local/bin
That's it, you can now run your winbox app from anywhere.
Winbox is windows application and requires Wine to run, so you cannot simply type in winbox and run it. We are going to do just that.
First download winbox or any application you want and place it somewhere. I don't like using default Wine location in ~/.wine/drive_c/Program Files/ and I make folder just for my apps like home/locodog/programs
So, you installed Wine with sudo apt-get install wine or yum install wine or how ever you install applications on your distro.
To run winbox simply by typing winbox into terminal or Alt+F2 Run screen, open console and type this line:
echo "/usr/bin/wine home/locodog/programs/winbox.exe" > winbox
/home/locodog/programs/winbox.exe is actual location of winbox.exe and it can be where ever you want.
Now let's make newly created file winbox executable by doing
chmod +x winbox
At this point you can run winbox by typing complete path to it, but to be able to run it from anywhere copy file to /usr/local/bin/ or move it there if you don't want copy of it with
sudo mv winbox /usr/local/bin
That's it, you can now run your winbox app from anywhere.