This post will guide you how to install .bin file on Ubuntu 14.04/16.04/18.04 Linux. How do I execute a .bin file using SSH on Ubuntu Linux server. How to execute binary files on Ubuntu Linux.
What is Bin file?
Binary Files can be in .bin or .run files under Ubuntu Linux. and the .bin or .run is the only file types, and you need to mark as executable permission to install it on your Ubuntu system. You can install it either in terminal or through GUI.
Install Or Execute Bin File
This guide will introduce two methods to install executable file under Ubuntu Linux. And executable files can also be recognized by the extension .bin and .run.
Terminall Installation
Here are the steps to install .bin files via terminal on Ubuntu:
#1 you need to download the .bin file that you want to install.
#2 Open a terminal window by clicking the Ubuntu terminal icon located on the Launcher taskbar. and then searching for “Terminal” and then clicking Terminal icon on the result page. or you can right click on the desktop, and select Terminal from the popup menu list to open one terminal window.
#3 change the current directory to your directory where the executable file is stored. for example, you have downloaded .bin files into the /tmp directory. Then type the following command:
$ cd /tmp
#4 You need to mark the file permission as executable with the following chmod command, type:
$ sudo chmod +x filename.bin
Or
$ sudo chmod +x filename.run
Then type the required password for root, and press Enter key. And the file can be executed by the current user with root privileges now.
#5 the bin file can be run in the terminal by typing the following command:
$ ./filename.bin
Or
$ ./filename.run
If you hit an error message such as “permission denied”, and you can try to execute the file by adding sudo before the above command.
$ sudo ./filename.bin
GUI Installation
You can also install the executable binary files via Ubuntu Desktop GUI. Here are the steps:
#1 Click the Files icon on the Ubuntu Launcher to start the File Manger and then change to the directory in which the executable file is stored.
#2 right click on the BIN file and select Properties from the popup menu list, and the Properties dialog will appear. then switch to Permissions tab, and check the Allow Executing File as Program. then click the Close button.
#3 double-click on the .run or .bin file. and if there is no any action appears to be happening, and you need to run it in the terminal.
Conclusion
You should know that how to install the executable binary file (.bin or .run) on your Ubuntu 14.04 or 16.04 or 18.04 Linux from this guide.